• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

jsp outside my war file

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. If the JSP isn't part of a web app, it won't be evaluated as a JSP.
 
sam bartl
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a servlet read the content of these jSP and render to response will the tag libs work?
 
Bear Bibeault
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

Back up a bit and tell us what you're trying to accomplish, not how.
 
sam bartl
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I'll move this post to the Open Source forum for you.
 
sam bartl
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using xforms I can render by writing to response outpjtstream
 
Do not threaten THIS beaver! Not even with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic