This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp forward" Watch "jsp forward" New topic
Author

jsp forward

James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148
Hi all,

I have code that looks similar to the below in a JSP page:

<%out.println("testing");%>
<jsp:forward page="uploadFile.jsp">
</jsp:forward>
</html>

In theory this should forward without printing anything out, put sometimes it prints "testing" and doesn't go anywhere, does anyone know what could be causing this ?

thanks,

J.C
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
why do u need a seperate closing tag. Make it a self-closing tag and try. It may work.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp forward
 
Similar Threads
Pop up new HTML page in JSP
calling servlet from jsp
jsp:forward doubt
Anchor in Jsp:forward
jsp:forward problem