File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes application and static content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "application and static content" Watch "application and static content" New topic
Author

application and static content

Mark Moore
Greenhorn

Joined: Feb 21, 2006
Posts: 15
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

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".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

You could also let us know what your folder hierarchy is like... especially where the docs folder fits in.
Mark Moore
Greenhorn

Joined: Feb 21, 2006
Posts: 15
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.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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 ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mark Moore
Greenhorn

Joined: Feb 21, 2006
Posts: 15
thx for the info and I appreciate your time
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application and static content
 
Similar Threads
javascript called within JSP
Login Problem
tomcat-users.xml login
HttpServletRequest equivalent on html page
How to control static pages and dynamic pages