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

    Smile How to mix servlet & JSP

    Hi,

    How to pass the variables presented in Servlet to JSP Page Eg

    String name=request.getParameter("name");
    this.name="GOOd";

    Now i want to print variable name in JSP page.Pls help me..

  2. #2
    goldhouse is offline Senior Member
    Join Date
    Mar 2007
    Posts
    134
    Rep Power
    0

    Default

    Session is the obvious choice and you can also access the variables in the page if the request is forwarded , You have choice to save to cookies and read also
    I advice you to read wel about everything I said and make a reasonable choice

Similar Threads

  1. Servlet vs JSP
    By javaplus in forum Java Servlet
    Replies: 5
    Last Post: 06-26-2008, 10:19 PM
  2. my first servlet
    By sireesha in forum Java Servlet
    Replies: 3
    Last Post: 04-09-2008, 03:11 PM
  3. Regarding Servlet
    By Sudha in forum New To Java
    Replies: 1
    Last Post: 02-12-2008, 12:44 AM
  4. JSP or Servlet
    By ravian in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 12-03-2007, 03:00 PM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

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