Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 753423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:53:43+00:00 2026-05-14T14:53:43+00:00

I currently have a JSP page with a Form for the user to enter

  • 0

I currently have a JSP page with a Form for the user to enter their name, but what I want is to get the user forwarded to a different JSP page after form submission and to carry on their name to be used.

I don’t want to use JSTL EL just simple JSP uses.

I was thinking of using a bean storing the detail in a session but how would it work.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:53:44+00:00Added an answer on May 14, 2026 at 2:53 pm

    duffymo you have the best idea but here is a quick solution by just passing things through the JSP.
    Here is the JSP with the form

    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head><title>Simple jsp page</title></head>
    <body><form name="test" action="./stackTest2.jsp" method="POST">
     Text Field<input type="text" name="textField">
      <input type="submit"> 
    </form> </body>
    </html>
    

    and then the second page looks like this:

    <html>
    <head><title>Simple jsp page</title></head>
    <body><%=request.getParameter("textField")%></body>
    </html>
    

    And then put information in a hidden field, you can get information by using the request.getParameter method. This just prints out what was in the form, but using the same idea for inputting it in to the hidden field in a form. I recommend this as all my experience with sessions have ended in a failure. I STRONGLY DO NOT Recommend this method, MVC is a much better way of developing things.
    Dean

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am changing a GET to a POST. Currently I have .jsp?id=a,b,c,d. When changing
I have a form JSP web page, this form contains multiple instances of the
I currently have two files, register.html and register.jsp. The HTML file asks the user
Here's my issue: I have a html form that after a user fills in
I have a form on my .jsp page which sends a password back to
I have a jsp page where I'm trying to send multiple (two currently) ajax
I currently have the below code, but obviously I am not that skilled on
My index.jsp page, load my form with this line of code : $('#box').load('/Edit_Data.jsp?id=' +
Hello I have a jsp with an html form. I set the content type
I have a JSP page that renders a block of HTML. In normal usage,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.