users@jersey.java.net

Re: [Jersey] RFH Jersey MVC - Reading JSPs from a Jar

From: Imran M Yousuf <imyousuf_at_smartitengineering.com>
Date: Tue, 25 May 2010 21:03:32 +0600

On Tue, May 25, 2010 at 8:49 PM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>> <snip />
>>
>> the same manner as the resources. Can you please suggest me how to
>> achieve it?
>
> You can change the base location where JSPs are located:
>
> https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/spi/container/servlet/ServletContainer.html#JSP_TEMPLATES_BASE_PATH
>
> But i do not think that suits your need.

From the looks of it, it does not indeed.

>
> How are you assembling the war? do you want JSPs to be served from the
> WEB-INF/classes or from jar files in WEB-INF/lib?
>

Actually since I was mainly thinking of maven dependency to a WAR
packaged module, it would be from WEB-INF/lib.

> AFAIK JSPs must be placed in the web area of the war.
>

Well, it very well could be since JSP in other cases are directly
linked in the URI, but in case of Jersey that is not the case as its
referred to using Viewable. So I guessed its a possibility; e.g.
Apache Wicket does it.

Any suggestions how I could achieve my desired behavior using Jersey?

Thanks,

/Imran

> Paul.
>
>> Please feel free to ask me any questions for further
>> clarifications.
>>
>> Thank you,
>>
>> --
>> Imran M Yousuf
>> Entrepreneur & CEO
>> Smart IT Engineering Ltd.
>> 25/5B, Block F, Haji Chinu Miah Road Bylane
>> Joint Quarter, Mohammadpur
>> Dhaka - 1207, Bangladesh
>> Email: imran_at_smartitengineering.com
>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
>> Mobile: +880-1711402557
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Imran M Yousuf
Entrepreneur & CEO
Smart IT Engineering Ltd.
25/5B, Block F, Haji Chinu Miah Road Bylane
Joint Quarter, Mohammadpur
Dhaka - 1207, Bangladesh
Email: imran_at_smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557