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

    Default I want to get values from login jsp

    Hi, I am having an login page written in jsp. I want to get values from login jsp to another jsp by submit button.
    How can i get.
    Thanks.

  2. #2
    toby is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    The syntax for a JSP expression

    Java Code:
    <%= any Java expression that can be converted to a string % >
    The syntax for getting a parameter from the implicit request object

    Java Code:
    request.getParameter(parameterName);
    Examples that use scriptlets and expressions

    A scriptlet and expression that display the value of the firstName parameter

    Java Code:
    <%
    String firstName = request.getParameter("firstName");
    %>
    The first name is <%= firstName %>
    .

    An expression that displays the value of the firstName parameter
    Java Code:
    The first name is <%= request.getParameter("firstName") %>
    .

Similar Threads

  1. Login Forms
    By dankonsoer in forum New To Java
    Replies: 1
    Last Post: 08-07-2008, 01:06 PM
  2. Replies: 4
    Last Post: 04-15-2008, 02:04 PM
  3. Login with mysql
    By fernando in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 04:30 PM
  4. problems with Login
    By Peter in forum Java Servlet
    Replies: 2
    Last Post: 06-12-2007, 02:50 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
  •