• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

just learning

 
April Benzine
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i need to make a html table (this i know how to do) but i have to pass in the information from my proerties file that is in my util package. how do i import my own util package. any help is greatly appreciated.
 
Sean Stephens
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the servlet forwarding to the page that displays the table, you put your Properties object into the request using request.setAttribute(name, obj). Then to get it into your receiving jsp page, you use a <jsp:useBean> tag. You can now use that Properties object in your jsp.

See this link for a syntax overview:
http://java.sun.com/products/jsp/tags/10/tags.html

This, of course is only one way to do it - can't say its even the best way, just the one that came to mind first.

Hope it helps.
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi April,
To import some class in jsp, you can use this



Correct me if i am wrong..
Hope this help
danil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic