Results 1 to 3 of 3

Thread: Please help

  1. #1
    Swamipsn is offline Member
    Join Date
    Jul 2007
    Posts
    74
    Rep Power
    0

    Smile Please help

    Hi,
    In a MVC approach project I want to pass the values presented in Servlet to
    a JSP page. For example

    String x = request.getParameter("xvalue");
    int i = Integer.parseInt(x);
    i = x*100;
    Now I want to display the value of "i" into a JSP page how can I..?

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Posts
    135
    Rep Power
    0

    Default

    Two ways off the top of my head.
    1. put the value on the session and then redirect to the jsp
    2. put the value as part of the query string in the redirect.

  3. #3
    Swamipsn is offline Member
    Join Date
    Jul 2007
    Posts
    74
    Rep Power
    0

    Default

    Hi brainhks,
    Thanks for your reply I will try then get back you soon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •