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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:51:06+00:00 2026-06-01T03:51:06+00:00

I need from one JSP open another JSP, and send POST parameters to this

  • 0

I need from one JSP open another JSP, and send POST parameters to this JSP. I need to make same result as response.sendRedirect(url); but using this way I cant use POST request. Also note that I can’t use requestDispatcher because this JSP in another context. I think I need to use something like this:

    URL url = new URL("http://www.somesite.com");
    URLConnection conn = url.openConnection();
    ....
    writer.write(data);

But I’m not sure that I will open new page.

EDIT: @jaxb, yes, i tried it. But when I use it, I get only new page in existing page (i.e. I change page1 to page2, but not open new one with sending POST data to it).

  • 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-06-01T03:51:08+00:00Added an answer on June 1, 2026 at 3:51 am

    I guess what you need is a way to construct a valid HTTP Post Request. When I had a similar problem I found a httpclient library shared at http://www.devx.com/Java/Article/17679/1954 to be quite useful and simple to use. It exposes simple methods for setting your post request and then calling a post method to do the actual post. Everything is quite well explained in the article and I would recommend you to give it a try.

    At the end of this article the author (Vlad Patryshev) says:

    Answer to the Eternal Question
    Now you know how an HTML form (GET or POST) gets passed to the server as an HTTP request and how you can reproduce this behavior in your Java program—without overloading it with protocol details. You could say this solution answers the eternal question: How can one call a servlet or JSP from another servlet or JSP?

    this I feel is quite similar to what you may be looking for.

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

Sidebar

Related Questions

I need to pass a request parameter from one JSP to another JSP page
How to open One jsp from another through Struts ? For example, I have
I need to pull data from one SQL 2005 Express database to another and
I need to select data from one table and insert it into another table.
I need to copy about 40 databases from one server to another. The new
I need to copy several tables from one DB to another in SQL Server
I need to copy a jar file from one directory to another when my
I need to copy a table from one server to another.for that I have
I need to redirect the user from one page to another, but I need
I need to make a sequence diagram out from JSP file (or is it

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.