This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

send value using response.sendRedirect()  RSS feed

 
Oswald King
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use

request.setAttribute("something","boolean_value");
request.getRequestDispatcher(url).forward(request,response);
[ March 01, 2006: Message edited by: srilatha reddy ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!