Win a copy of Head First Android this week in the Android forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

application and static content

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jsp file that displays a link to login page if a user isn't logged in or a link to logout page if user is logged in.

I have tomcat installed and this jsp page works under my java folder (it is created using .htaccess and cookies).

In another folder named docs: I have static html files.
if I put my logging jsp file under "docs" chategory it won't work.

I would like to have a little menu on top of my static html files that has the login/logout jsp application on it.
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it won't work.



That doesn't exactly give us much to go on...

What does "won't work" mean? Is the JSP code untranslated? Does the server throw an error? Does your keyboard burst into flame?

Details are required to even begin to guess why it "won't work".
 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could also let us know what your folder hierarchy is like... especially where the docs folder fits in.
 
Mark Moore
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for being vague, I don't know enough about JSP to even give the right questions. The docs folder is in the same hierarchy as the javaui, not under it.

the login logic of jsp files works fine under javaui but when I am trying to insert jsp in the docs directory the browsers shows the code instead of the login/logout logic.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That you're using the .htaccess file tells me that you're probably using Apache HTTPD as your webserver. If so, there are some extra configuration issues that need to be dealt with. Without a lot of information from you it would be hard for anyone on a forum to help you.
Your claim: "I don't know enough about JSP to even give the right questions" suggests that you're probably using hosted space.
Setting up the connector is not a trivial task for a beginner.

If this is so, the best people to ask would be the hosting company.
They may have a specific hierarchy for files.
[ February 21, 2006: Message edited by: Ben Souther ]
 
Mark Moore
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thx for the info and I appreciate your time
 
reply
    Bookmark Topic Watch Topic
  • New Topic