File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Help in jsp:forward-->Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help in jsp:forward-->Urgent" Watch "Help in jsp:forward-->Urgent" New topic
Author

Help in jsp:forward-->Urgent

k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
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

Joined: Jan 30, 2000
Posts: 3222
    
    5
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!


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
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

Joined: Mar 25, 2001
Posts: 33
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help in jsp:forward-->Urgent
 
Similar Threads
what is defalut value of Custom tag body-content
WA #1.....word association
pop up page
creating a pop up calendar within a form
Struts: No getter method for property name problem