Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet sendRedirect to multiple links

Have Programming Question? Ask it here!
 
 
 


preethi
sendRedirect to multiple links
1 Answer(s)      2 years ago
Posted in : JSP-Servlet


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.


Advertisement
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
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 Description
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
links with different colors.
links with different colors.  How can I have two sets of links with different colors
links open new windows
links open new windows  Why do my links open new windows rather than update an existing frame
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
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
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
Bioinformatics Tutorials, Links, Programs
Tools, Online Resource, Links to Bioinformatic Resources and Tutorials. Here you... number of Biological Database Links   
save links clicked in search engine results
save links clicked in search engine results  hello i need to access search engine results in my program(any search engine).ie suppose i give...; But i'm not able to find how to save the links the user clicks.hope you
In pagination how to hilight the links - JSP-Servlet
In pagination how to hilight the links  Dear Sir, In pagination how to highlight the links or how to change the color of that link when i clickon that particular link....Please help me sir.. Some of the code which i
multiple inheritance.
multiple inheritance.  hello, can java support multiple inheritance???   hi, java does not support multiple inheritance
Biological Databases Links
are organized for optimal retrieval and analysis.Here are the links of biological databases: Biological Database Links... are the multiple alignments of amino acid sequences deduced from genomic and EST
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
fixing broken relational links in MySQL database after an upgrade
fixing broken relational links in MySQL database after an upgrade  Need help fixing broken relational links in MySQL database after an upgrade
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
Add multiple UIBarButtonItem
Add multiple UIBarButtonItem  add multiple uibarbuttonitem
dynamically created links id from mysql table is not getting
dynamically created links id from mysql table is not getting  guys, i'm trying to access dynamically called attributes from mysql table as a link to another page, but while i'm trying to access its value, i'm getting only
How to generate pdf file on click of the links using jsp..
How to generate pdf file on click of the links using jsp..  How to generate the pdf file using jsp file. Generate table in pdf by using jsp.   Here is an example that will generate a pdf file into c drive.The pdf file
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
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
multiple selections list in Struts
multiple selections list in Struts  How to create a multiple selections list in Struts? and retrive seleted values
multiple resultset in one resultset
multiple resultset in one resultset  how to retrive multiple resultsets in one resultset in java.? plz help
multiple select values
multiple select values   can you provide an example for multiple select values for html:select tag
insert multiple selection - Java
insert multiple selection - Java  how to insert multiple selection values from html into database using servlets
Remove multiple elements in arraylist
Remove multiple elements in arraylist   how can we remove multiple values in arrayList? only remove method we used for single remove.but i want to delete multiple value in arrayList
struts2 select tag multiple
struts2 select tag multiple  struts2 select tag multiple
multiple choice questions
multiple choice questions  how can i store 10 multiple choice questions in one class with using java language
multiple choice questions
multiple choice questions  how can i implement the program to store multiple questions in class with using core java concepts
multiple submits, single form.
multiple submits, single form.  is it possible to use multiple submit buttons in a single form?   Thank you
select tag multiple values
select tag multiple values   I want to insert multiple values in database which i have selected from select tag
Joining Multiple table in Hibernate
Joining Multiple table in Hibernate  Hi everyone, I'm new to Hibernate (even in JAVA), and I'm having some doubt's about one thing. I created 2..., Raul  Please visit the following links: http://www.roseindia.net
query regarding multiple select
query regarding multiple select  i have a select in jsp with multiple options.When i select multiple values i am not able to insert it into database and how do i retrieve them..please help me with an example code
Data from multiple ResultSets?
Data from multiple ResultSets?  hello, How can I get data from multiple ResultSets?   Hi, You can iterate the ResultSet separately and get the required data. Thanks
multiple choice questions program
multiple choice questions program  how can i implement the program to store 10 multiple choice questions in one class to develop a oneline quiz with using java language
multiple choice questions program
multiple choice questions program  how can i implement the program to store 10 multiple choice questions in one class to develop a oneline quiz with using java language
Advertisements
 

 

 

DMCA.com