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

How to read data from a url in jsp  RSS feed

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if my servlet sends something like

How would i read this in a jsp page , i dont think its an attribute so ${Val} wont work..
Any suggestions ???
 
Tim Moores
Saloon Keeper
Posts: 3885
91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a request parameter.
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will the above work then ?? Since servlets cant read it using request.getAttribute so I have to use request.getparameter
 
Tim Moores
Saloon Keeper
Posts: 3885
91
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read up on the implicit EL object "param": http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html
 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajesh Khan wrote:if my servlet sends something like



Try this:
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A forward is not the same as a redirect and they are generally not interchangeable. This is not a helpful suggestion.
 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:A forward is not the same as a redirect and they are generally not interchangeable. This is not a helpful suggestion.

understood !!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!