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

  • Home
  • SEARCH
  • 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 3843474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:56:35+00:00 2026-05-19T15:56:35+00:00

I have a system that allows guest logins via a guest account. I cannot

  • 0

I have a system that allows guest logins via a guest account. I cannot modify the source code of the system, but I can add my own JSP files. I am implementing an anti-phishing login process and don’t want to expose the real login URL in my HTML. Instead of creating a “guest” link that posts directly to the real login URL, I would like to forward the user to my own JSP that redirects their request to the real login.

This means I need to send POST data do the real login script in my redirect. If possible, I do not want to use the HttpClient class to open a connection and do the posting. The system does several redirects of its own after posting to the login script. Which means I would have to handle them myself if I used HttpClient.

So, is it possible to do a response.sendRedirect() and include POST data to the redirect URL?

  • 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-19T15:56:36+00:00Added an answer on May 19, 2026 at 3:56 pm

    Just forward the complete request to the other controller (servlet/JSP) and let the other controller process and respond.

    From the Java Docs:

    forward(ServletRequest request,
            ServletResponse response)
            throws ServletException,
                   IOException
    

    Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server. This method allows one servlet to do preliminary processing of a request and another resource to generate the response.

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

Sidebar

Related Questions

I have a system that creates an order and that order can be billed
I have a system that combines the best and worst of Java and PHP.
I have a system that uses a meta refresh to a logout page, which
We have a system that has a Mysql database with about 2Gigs of data.
Here's an interesting question. I have a system that attempts to run some initialization
I have a shop system that integrates PayPal in the usual way, i.e. the
I have an old system that uses XML for it's data storage. I'm going
The scenario: we have a web system that automatically generates office 2003 excel files
We have two tasks (T1 and T2) in our vxWorks embedded system that have
At my current job we have a CMS system that is .NET/SQL Server based.

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.