how to pass two variable values from a servlet to jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepthisoft
    New Member
    • Jul 2007
    • 27

    how to pass two variable values from a servlet to jsp

    hai,

    I have one jsp page.In that jsp i am passing two values using the javascript function to a servlet.In that servlet i get that 2 values.And then how to pass these 2 values to another jsp page.
  • muralihkrishna
    New Member
    • Aug 2007
    • 3

    #2
    Originally posted by deepthisoft
    hai,

    I have one jsp page.In that jsp i am passing two values using the javascript function to a servlet.In that servlet i get that 2 values.And then how to pass these 2 values to another jsp page.
    hi
    communication between servlets and jsp is possible through session attributes or resquest attributes. add the 2 values to the session attributes using session.setAttr ibute() and later in the jsp you can retrieve them using session.getAttr ibute().

    Comment

    Working...