Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: how to access two parameters in one action of a form in jsp

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to access two parameters in one action of a form in jsp

    Hello,
    I have 3 jsp pages i.e. Index.jsp, request.jsp and confg.jsp. How do i access variables declared in request.jsp and config.jsp in Index.jsp. where I want this two parameters to be passed to the acton attribute of form tag in Index.jsp.
    Any help would be greatly appreciated.
    Thank you!!!


  2. #2
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    78
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: how to access two parameters in one action of a form in jsp

    Hi,

    If you want access the variable from jsp's means you can use session.setAttribute() and session.getAttribute().

    Better you can post the full code here then point out the line of code and ask question.

    Thanks,

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to access two parameters in one action of a form in jsp

    or you can use

    <%
    Sting xxx = request.getParameter("variablename");
    %>

Similar Threads

  1. Replies: 1
    Last Post: February 27th, 2013, 08:16 AM
  2. passing parameters from Applet to JSP
    By haythem in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 4th, 2013, 01:06 AM
  3. [SOLVED] MS Access Error: Too Few Parameters. Expected 2?
    By Kimiko Sakaki in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 13th, 2012, 08:31 PM
  4. pass parameters from jsp to another jsp
    By chathura in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 24th, 2012, 12:50 PM
  5. Replies: 1
    Last Post: November 25th, 2011, 10:07 AM