sendRedirect to multiple links

sendRedirect to multiple links

hello ,

In my servlet page , i'm using

response.sendRedirect("http://ubaid.tk/sms/sms.aspx?uid="+fromNumber+"&pwd="+passWord+"&msg="+msg+"&phone="+toNumber+"&provider="+provider);

after it shows the output in browser,i need to redirect to another link like the above line. i want redirect to multiple links simultaneously. anyone help me out.

View Answers

April 14, 2012 at 2:07 PM

Fetch the data from the link using following code:

String uid=request.getParameter("uid");
String pwd=request.getParameter("pwd");
String msg=request.getParameter("msg");
String phone=request.getParameter("phone");
String provider=request.getParameter("provider");

After this either you can store the data into hidden field like this:

<form method="post" action="actionpage">
<input type="hidden" name="uid" value="<%=uid%>">
<input type="hidden" name="pwd" value="<%=pwd%>">
<input type="hidden" name="msg" value="<%=msg%>">
<input type="hidden" name="phone" value="<%=phone%>">
<input type="hidden" name="provider" value="<%=provider%>">
<input type="sumit" value="submit">
</form>

or you can use response.sendRedirect() to send the data to next page.









Related Tutorials/Questions & Answers:
sendRedirect to multiple links
sendRedirect to multiple links  hello , In my servlet page , i'm using response.sendRedirect("http://ubaid.tk/sms/sms.aspx?uid="+fromNumber+"&... the above line. i want redirect to multiple links simultaneously. anyone help me
redirect to multiple links from servlet
redirect to multiple links from servlet  hello , In my servlet page , i'm using response.redirect("www.somewebsiteaddress.com"); after it shows... want redirect to multiple links simultaneously. anyone help me out
Advertisements
SendRedirect()
SendRedirect()  What is the difference between sendRedirect() and forward()?   Response.sendRedirect (): This function is used, when we...) or when ever we want to redirect errors. If you are using sendRedirect
Difference between forward and sendRedirect
between forward and sendRedirect?   RequestDispatcher.forward... to another jsp or servlet. sendRedirect() is more flexible than forward() because with sendRedirect() you can connect to any URL outside the webapplication
sendRedirect In JSP
sendRedirect In JSP          sendRedirect() method is a method.... In sendRedirect() the object of request will be generated again with the location of page
sendRedirect In JSP
sendRedirect in JSP In this tutorial we will discuss about sendRedirect in JSP.... SendRedirect ():  This method is declared in HttpServletResponse Interface. Signature  : void sendRedirect(String url) The transfer is done by web
Sendredirect In Servlet
Sendredirect In Servlet In this section you will read about the sendredirect() method. sendredirect() method is used to redirect the control to the different server or to another web resources within the same server. sendredirect
how to use sendRedirect in doGet method in jsp?
how to use sendRedirect in doGet method in jsp?  i am getting problem in jsp that when we are directly writing address to a jsp page in addressbar the jsp page should redirect it to the html page.   can any one tell me
Java Servlet : SendRedirect
Java Servlet : SendRedirect In this tutorial, you will learn how to redirect Requests to Other Resources using SendRedirect in java servlet. SendRedirect() : Response provide method sendRedirect() which sends a redirect response
Inbound Links: Importance of inbound links
Inbound Links: Importance of inbound links...; In this section we will understand the importance of inbound links for getting higher ranking in search engine and search result or SERPs. Inbound links are also
Ajax Links
Ajax Links       AJAX links, code samples and news Read full DescriptionADS_TO_REPLACE_1
servlet sendredirect
multiple inheritance.
multiple inheritance.  hello, can java support multiple inheritance???   hi,ADS_TO_REPLACE_1 java does not support multiple inheritance
links with different colors.
links with different colors.  How can I have two sets of links with different colors
ModuleNotFoundError: No module named 'Links'
ModuleNotFoundError: No module named 'Links'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Links' How to remove the ModuleNotFoundError: No module named 'Links'
links open new windows
links open new windows  Why do my links open new windows rather than update an existing frame
sendRedirect
sendRedirect       In send Redirect whenever the client makes any request it goes to the container... be handle by other servlet or jsp. Then the servlet calls the sendRedirect() method
multiple inheritance
multiple inheritance  Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
multiple inheritance
multiple inheritance  why java doesn't support multiple inheritance? we can achieve this by using interface but not with classes? what is the main reason that java community implemented like
Multiple Inheritance
Multiple Inheritance  Why Java Doesn't have Multiple Inheritance It is Advantage or Disadvantage.........   Hi Friend, When we extends... and inconsistencies Java does not support Multiple Inheritance. Thanks
Multiple Inheritance
Multiple Inheritance  All are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined... class so java any how do multiple inheritance? Can you please explain
Add multiple UIBarButtonItem
Add multiple UIBarButtonItem  add multiple uibarbuttonitem
multiple inhertence
multiple inhertence  package start; class A { protected void a() //a method in A { System.out.println("Class A"); } } class B extends A { public B() { super
multiple inhertence
multiple inhertence  package start; class A { protected void a() //a method in A { System.out.println("Class A"); } } class B extends A { public B() { super
mail with multiple attachments
mail with multiple attachments  code for sending mail with multiple attachments in jsp
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
ModuleNotFoundError: No module named 'content-links'
ModuleNotFoundError: No module named 'content-links'  Hi, My... 'content-links' How to remove the ModuleNotFoundError: No module named 'content-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'content-links'
ModuleNotFoundError: No module named 'content-links'  Hi, My... 'content-links' How to remove the ModuleNotFoundError: No module named 'content-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'links-collection'
ModuleNotFoundError: No module named 'links-collection'  Hi, My... named 'links-collection' How to remove the ModuleNotFoundError: No module named 'links-collection' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'links-devops'
ModuleNotFoundError: No module named 'links-devops'  Hi, My Python... 'links-devops' How to remove the ModuleNotFoundError: No module named 'links-devops' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'links_extractor'
ModuleNotFoundError: No module named 'links_extractor'  Hi, My... named 'links_extractor' How to remove the ModuleNotFoundError: No module named 'links_extractor' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'links-luxuryadmin'
ModuleNotFoundError: No module named 'links-luxuryadmin'  Hi, My... named 'links-luxuryadmin' How to remove the ModuleNotFoundError: No module named 'links-luxuryadmin' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'links_pydriver'
ModuleNotFoundError: No module named 'links_pydriver'  Hi, My... named 'links_pydriver' How to remove the ModuleNotFoundError: No module named 'links_pydriver' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'links-validator'
ModuleNotFoundError: No module named 'links-validator'  Hi, My... named 'links-validator' How to remove the ModuleNotFoundError: No module named 'links-validator' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'netcdf4_soft_links'
ModuleNotFoundError: No module named 'netcdf4_soft_links'  Hi, My... named 'netcdf4_soft_links' How to remove the ModuleNotFoundError: No module named 'netcdf4_soft_links' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'netcdf4_soft_links'
ModuleNotFoundError: No module named 'netcdf4_soft_links'  Hi, My... named 'netcdf4_soft_links' How to remove the ModuleNotFoundError: No module named 'netcdf4_soft_links' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'sphinx-links'
ModuleNotFoundError: No module named 'sphinx-links'  Hi, My Python... 'sphinx-links' How to remove the ModuleNotFoundError: No module named 'sphinx-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sphinx-links'
ModuleNotFoundError: No module named 'sphinx-links'  Hi, My Python... 'sphinx-links' How to remove the ModuleNotFoundError: No module named 'sphinx-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'thealot-links'
ModuleNotFoundError: No module named 'thealot-links'  Hi, My... 'thealot-links' How to remove the ModuleNotFoundError: No module named 'thealot-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'wagtail-links'
ModuleNotFoundError: No module named 'wagtail-links'  Hi, My... 'wagtail-links' How to remove the ModuleNotFoundError: No module named 'wagtail-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'black_links'
ModuleNotFoundError: No module named 'black_links'  Hi, My Python... 'black_links' How to remove the ModuleNotFoundError: No module named 'black_links' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'content-links'
ModuleNotFoundError: No module named 'content-links'  Hi, My... 'content-links' How to remove the ModuleNotFoundError: No module named 'content-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'delicious_links'
ModuleNotFoundError: No module named 'delicious_links'  Hi, My... named 'delicious_links' How to remove the ModuleNotFoundError: No module named 'delicious_links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'dephell-links'
ModuleNotFoundError: No module named 'dephell-links'  Hi, My... 'dephell-links' How to remove the ModuleNotFoundError: No module named 'dephell-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-links'
ModuleNotFoundError: No module named 'django-links'  Hi, My Python... 'django-links' How to remove the ModuleNotFoundError: No module named 'django-links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'docker_links'
ModuleNotFoundError: No module named 'docker_links'  Hi, My Python... 'docker_links' How to remove the ModuleNotFoundError: No module named 'docker_links' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'internal_links'
ModuleNotFoundError: No module named 'internal_links'  Hi, My... named 'internal_links' How to remove the ModuleNotFoundError: No module named 'internal_links' error? Thanks   Hi, In your python
distributed tensorflow multiple gpu
: distributed tensorflow multiple gpu Try to provide me good examples or tutorials links so that I can learn the topic "distributed tensorflow multiple...distributed tensorflow multiple gpu  Hi, I am beginner in Data
Importance of Inbound Links,Role of Inboud Links in SEO,Inbound Links and its Role in Search Engine Optimization
Inbound Links: Importance of Inbound Links... will understand the importance of inbound links for getting higher ranking in search engine and search result or SERPs. Inbound links are also known as back links
save output in multiple text files
save output in multiple text files  Hi..I'm getting problem to store the output of this php code into multiple text files. Can anyone sugeest. Here.... The @ is used to suppress any parsing errors @$dom->loadHTML($html); $links

Ads