• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Marshal
Posts: 34965
377
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic