This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send value using response.sendRedirect()

 
Oswald King
Greenhorn
Posts: 10
  • 0
  • 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
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic