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



Home Answers Viewqa JSP-Servlet sendRedirect to multiple links
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


preethi
sendRedirect to multiple links
1 Answer(s)      2 years and 8 months 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
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.  hello, can java support multiple inheritance???   hi, java does not support multiple inheritance
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 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  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  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
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 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
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
Add multiple UIBarButtonItem
Add multiple UIBarButtonItem  add multiple uibarbuttonitem
Advertisements
 

 

 

DMCA.com