Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting values in forward  RSS feed

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From First.jsp, I am forwarding it to another Second.JSP.
In my First.jsp , three elements were set in the request.

Now specifically while doing a forward at that time I want to set a value more in the request attribute
for. eq I want to set a value in success attribute.
the way we do in req.sendredirect(Second.jsp?success=true) but here we would lose the previous request object.

Thanks,
aakash
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37242
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aakash,
You could use request.setAttribute() for this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!