It's not a secret anymore!
The moose likes JSP and the fly likes just learning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "just learning " Watch "just learning " New topic

just learning

April Benzine

Joined: Sep 23, 2004
Posts: 17
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

Joined: Oct 25, 2004
Posts: 40
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:

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

Joined: Sep 14, 2001
Posts: 582
Hi April,
To import some class in jsp, you can use this

Correct me if i am wrong..
Hope this help
I agree. Here's the link:
subject: just learning
It's not a secret anymore!