aspose file tools*
The moose likes Other Open Source Projects and the fly likes jsp outside my war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jsp outside my war file" Watch "jsp outside my war file" New topic
Author

jsp outside my war file

sam bartl
Ranch Hand

Joined: Oct 29, 2010
Posts: 44
is it possible to redirect to a jsp which is not inside my war file , suppose some jsp I put in my server in some folder , and a servlet will read this folder and lists all the jsp's with link to each , and on clicks this link I want to redirect to this jsp , is this possible? , I am not talking about deploying my app in exploded way , my app is going to be war file but somne of the jsp will be outside the war and my app should access them , please advice me how.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

Nope. If the JSP isn't part of a web app, it won't be evaluated as a JSP.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sam bartl
Ranch Hand

Joined: Oct 29, 2010
Posts: 44
Can a servlet read the content of these jSP and render to response will the tag libs work?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

No.

Back up a bit and tell us what you're trying to accomplish, not how.
sam bartl
Ranch Hand

Joined: Oct 29, 2010
Posts: 44
We want to use xforms and we write jsp for defining our form , using orbeon xforms is nothing but just use lot of xforms tags in jsp. We wanted to add the capability of adding new forms at runtime without deployment , so I am thinking of dropping the tested jsp in my server file system and update database with the form name and path to jsp (form definition), and on selecting a form I want to redirect to the jsp bound to the form.
so the goal is to render these jsp and be able to change at runtime , One option is to deploy my war as exploded but I am trying not to deploy as exploded and read the jsp from file system.
here is a sample xforms jsp (just to give a feel of jsp using xforms)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

OK, I'll move this post to the Open Source forum for you.
sam bartl
Ranch Hand

Joined: Oct 29, 2010
Posts: 44
Using xforms I can render by writing to response outpjtstream
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp outside my war file