Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Also....how to get this object from request  RSS feed

 
James Workmen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Acction class...

//get project by id and store into request
Project proj = getProjectById(projid);
request.setAttribute("PROJECT",proj);

in my Jsp:
How do I get this single object from request?

Help!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,
Using a scriplet:


Alternatively, you could use tags to get it as a bean. Tags are the prefered approach, but it is good to understand what goes on in the scriptlets too.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!