• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:forward problem with Tomcat

 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
solved
this works
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya u r right
That also worked thanx for posting..
Ajit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!