jQuery in Action, 2nd edition
The moose likes JSP and the fly likes jsp:forward   problem with Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jsp:forward   problem with Tomcat" Watch "jsp:forward   problem with Tomcat" New topic
Author

jsp:forward problem with Tomcat

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
I am using Tomca 4
i forward a page like this

and in "ForumHome.jsp"
i do

but gives nothing..
What can be the problem?
Ajit
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
solved
this works
Dhananjay Inamdar
Ranch Hand

Joined: Jan 27, 2003
Posts: 128
Hello Ajit,
There is not a need to declare a saperate String variable "name" here.
The mistake you had done in the "ForumHome.jsp" is, while showing value of any java expression on the jsp page output you have to use <%= %> and you have used <% %>.
So if you made the following change in the "ForumHome.jsp" then also it will work
Welcome <%= request.getParameter("user");%>
Note: Consider I am using "<%=" here.
- Dhananjay


Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Ya u r right
That also worked thanx for posting..
Ajit
 
 
subject: jsp:forward problem with Tomcat
 
Threads others viewed
Session variables in Netscape 4.76?
Unable to use forward option with parameters
passing parameters in jsp:include
hello help me in authentication
JSP tags in jspx
developer file tools