File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in jsp:forward-->Urgent

 
k swamy
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to forward my Jsp page to a servlet on clicking a button in the form in that Jsp page.Help how to do this.
Thanx
Swamy
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One has to know HTML as well as Java to do JSPs correctly.
How do you tell a <FORM> what to do when it's submitted? By specifying the resource URL action in the ACTION = "..." attribute. It could be the URL for a CGI script, another JSP or (drum roll...) a Servlet!
 
k swamy
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I asked for how to use jsp:forward on clicking a button.I know how to forward to another jsp using form action.But i dont want this.Help in this.
 
Dmitriy Pavlyuk
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Clicking button is a client-level event, but jsp:forward is server proccessed. And you can't call jsp page by button on the page without sending form (or other request) to your server.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic