File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Forms ( html:form )

 
S Krishnan
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I give the action url in the <html:form> tag, inorder to point (submit) to the same page. I am using a JSP page.

Thanks,
SK
 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:form action="/actionName">
 
vijaya bharath
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I didn't get u
You told like you are working on jsp page
And the submit button shud return to the same page
If u want to return to the same jsp page with out going to the action u can use <html:link> which directly calls jsp page
Other wise if u want to come to the same jsp page by going to the action
In that action u can write forward to the same jsp page
I think u got my point.
if u write<html:form action="/action">
in the action return mapping.findForward("success");
In the struts-config.xml
Give in the action mappings
<action name="something" path="/action" type="something">
<forward name="success" type="something" />
</action>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic