This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet and JSP Session  RSS feed

 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Can someone sent me the code of an MVC architectured program or give an idea online. I am passing user details from an HTML page to a Servlet, instantiating the bean in the servlet and passing the control to the Jsp which will access that same bean and will display the same info through the bean getter methods. I am not able to pass the access the bean from the JSP .. till servlet it works fine .. I use the same Bean name which i used in the Servlet .
please help .. i am not using RequestDispatcher.. cause i am using a submit button which will foward me to the JSP page ..
reply soon
bye
[This message has been edited by Dharmesh Chheda (edited June 13, 2001).]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that you are attaching the bean to the session, this should work. Are both the servlet and the JSP part of the same web application? Is the servlet defined in web.xml for that application?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!