File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes jsp:forward issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:forward issue" Watch "jsp:forward issue" New topic
Author

jsp:forward issue

deb ra
Greenhorn

Joined: Nov 05, 2009
Posts: 1
I am having an issue with the jsp:forward tag.

I forward say from page1 to page 2. I have a javascript function decalred in the head of page 2 which I
call from the body of page2. But I get a javascript function not found error.

Also there are certain texts and buttons that are displayed on page 2 taken from page 1.

What do I need to do so that the page2 does not get any content from page1 and to include the
javascript to call in page2.

Thanks,
D
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

If you don't want the output of both pages, why are you forwarding?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: jsp:forward issue
 
Similar Threads
request object
How to make a JSP/HTML page to stay on itself when user clicks on back button on the browser?
Returning JavaScript via Ajax
history.back() not retaining changed values in previous page after window.open() call
How to use a Java class into an HTML file