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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:22:44+00:00 2026-05-26T04:22:44+00:00

I am using java servlet with google app engine. I need a secure way

  • 0

I am using java servlet with google app engine.
I need a secure way to pass a pass and user name from one servlet to other.
what is a good way?

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-26T04:22:45+00:00Added an answer on May 26, 2026 at 4:22 am

    If the data needs to be request scoped, just pass it as request attribute.

    User user = new User(username, password);
    request.setAttrubute("user", user);
    request.getRequestDispatcher("/otherServletUrl").forward(request, response);
    

    In the other servlet it’s available as:

    User user = (User) request.getAttribute("user");
    // ...
    

    If the data needs to be session scoped, just store it in the session scope. This also survives redirects.

    User user = new User(username, password);
    request.getSession().setAttrubute("user", user);
    response.sendRedirect(request.getContextPath() + "/otherServletUrl");
    

    In the other servlet it’s available as:

    User user = (User) request.getSession().getAttribute("user");
    // ...
    

    There’s absolutely no need to encrypt this information as it isn’t exposed in public. The data is entirely stored in server memory. I only wonder how it’s useful to pass passwords around. You usually keep them in the database which is been validated upon login and then only pass the user identifier around.

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

Sidebar

Related Questions

I'm using Google App Engine to process Paypal IPN messages, when my servlet starts
i'm trying to connect a desktop application in java to google app engine using
I'm building something using Google App Engine and I'm trying to create a java
I have web application written in java using Eclipse. It has just one servlet
I'm developing a simple servlet/JSP, data-driven web site on Google App Engine. I've started
I have a web application running on Google App Engine (GAE) for JAVA. I'm
I'm looking at Google App Engine's new task queue API for Java and I'm
I am currently creating my first project using Google App Engine in Eclipse. For
so I am trying to build a google app engine using servlets, filters etc.
I'm considering building a web app using Java and Google Web Toolkit and I

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.