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 7015289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:37:57+00:00 2026-05-27T22:37:57+00:00

My page flow is like, Jsp1 -> Jsp2 -> … -> Servlet -> JspN

  • 0

My page flow is like,

Jsp1 -> Jsp2 -> ... -> Servlet -> JspN -> ... 

where, Jsp1 is log in page where user has to give password and username. Now, I want to use username and password value in servlet page. Is it possible to get those value in servlet without passing parameters from Jsp1 to Jsp2 …. to Servlet?

  • 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-27T22:37:58+00:00Added an answer on May 27, 2026 at 10:37 pm

    You can set them in session in Jsp2 stage. Get the parameters from request and set them in session as so:

    <%
        session.setAttribute("username", request.getParameter("username"));
        session.setAttribute("password", request.getParameter("password"));
    %>
    

    To be able to do this, your Jsp1 should have fields defined with the same names as the request parameters.

    <input type="text" name="username"/>
    <input type="password" name="password"/>
    

    Then in the Servlet, you can simply read them as so:

    public void doGet(HttpServletRequest request, HttpServletResponse response) {
        HttpSession session = request.getSession();
    
        String username = session.getAttribute("username");
        String password = session.getAttribute("password");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple flow: A.html -> B.html -> C.html Now, page B either
I have a shopping cart flow like this: Page 1 . Choose Products Page
I am expecting to implement a work flow like this. Browse facebook Canvas Page
The flow for my application, for non-logined users, looks like this: 1) non-logined user
What is the best way to graphically represent page flow, as applicable to an
I'm using Spring Web Flow (v. 1.0.5) and I have a JSP page that
I have this web application using Spring Web Flow framework. In my main page
Page A has a meta refresh to redirect to another page, C , after
Page has menu items that would replace a 'div id=foo_(current menu item)' with 'div
I'd like links to pop out of the page when hovering over them, without

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.