I think his problem is probably linking to stylesheets and such... Actually, now I have to ask you... if you put *everything* under WEB-INF, I assume you are serving all graphics from a fronting web server then? Otherwise, any document returned to the user that links back to a resource under WEB-INF won't be reachable, which was the crux of his problem as I understood it, that's why he was talking about includes and such all over the place. But, if you really are serving everything from there, how are you doing it? Just curious at this point :)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

Dakota Jack wrote:
I don't know why you are saying that css and/or js must be placed
directly under "WebRoot". Why do you? I can give you various
solutions, once I find out what the problem is supposed to be. There
is no issue, by the way, with putting your JSP files under WEB-INF. There are other ways to protect access, but this is, I think, a good
one too.


Jack


On Sun, 26 Dec 2004 22:31:32 +0800, Koon Yue Lam <[EMAIL PROTECTED]> wrote:

Hi, I want to protect my JSP from direct access, so they can only
access by Struts action.
but....

If I want to include some Javascript or CSS to a JSP, I can't !
Because .js and .css needed to place directly under WebRoot

My solution is to use <jps:include> to include all those Javascript
and CSS to JSP, but then the JSP will look very ugly and fill up with
long long non HTML stuffs ...... which is not so nice

Is there any any to solve this or I just need to accept this trade-off?

Any help would be appreciated

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to