File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:forward issue" Watch "jsp:forward issue" New topic

jsp:forward issue

deb ra

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: jsp:forward issue
It's not a secret anymore!