Hi Rich,

> Question 1: Do I pretty much need to put that utility class down in 
> /WEB-INF/classes?  Am I correct that there is no natural way to put 
> such a class up in WebRoot with the JSPs which use it?

Correct.

> Trying to write my method in a utility class down there in 
> /WEB-INF/classes, I discover that HttpServletRequest can't be resolved 
> down there.  I gather the servlet jar is not on the build path, not 
> for the lowly citizens of /WEB-INF/classes anyhow.  But it seems 
> obvious to me that the servlet jar is accessible to my JSPs, which can 
> refer freely to the servlet packages.  Seems sort of unfair.

Just put it in your build path and you'll be fine.

> Question 2: What is the best way for my class down in /WEB-INF/classes 
> to get access to the servlet packages.

They automatically have access in the servlet container. Don't know how you have to 
configure Eclipse (I prefer Idea), but in the runtime environment this won't be an 
issue.

Have a great day,

-hendrik
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to