File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes send value using response.sendRedirect() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "send value using response.sendRedirect()" Watch "send value using response.sendRedirect()" New topic
Author

send value using response.sendRedirect()

Oswald King
Greenhorn

Joined: Feb 11, 2005
Posts: 10
I have a A.jsp page with some text fields whose values are required to insert in database.
In "A.jsp" action="B.jsp" after inserting the values in B.jsp i want send boolean value back to A.jsp

for e.g.
B.jsp::
boolean bFlag = insertToDB(some args...);
response.sendRedirect("A.jsp?flag=bFlag");

I know this sends back only the string "bFlag". so what can i do ??
srilatha kareddy
Ranch Hand

Joined: Jan 12, 2006
Posts: 32
use

request.setAttribute("something","boolean_value");
request.getRequestDispatcher(url).forward(request,response);
[ March 01, 2006: Message edited by: srilatha reddy ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send value using response.sendRedirect()
 
Similar Threads
Passing Object from A.jsp page to B.jsp page in another context
session problem
How to keep values from calling multiple jsp
response.sendRedirect not working when Parent window is closed - Help
response.sendRedirect not working when Parent window is closed