LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2006, 09:17 PM   #1
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Rep: Reputation: 30
Lightbulb jsp with jstl


hello,

I have a jsp page with jstl tags in it.
For some reason they do not work. When I load the page i see the code but not whatever it is supposed to generate. Why?

Thanks
 
Old 04-16-2006, 10:53 PM   #2
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Initially I had everythging working on WinXP (Tomcat)

On FC5 I noticed that if I run:
service tomcat5 start
the system will start tomcat. So if I place my jsp pages in corresponding folder it should work. However, I need to run a web server and, therefore, I need to run jsp pages from /home/blah/public_html ...
Does this mean that I have to put tomcat inside this folder and start it from there?
thanks
 
Old 04-16-2006, 11:16 PM   #3
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
How do I set up tomcat to serve jsp pages in public_html folder so they can be viewed outside of my network?

Thanks!
 
Old 04-17-2006, 05:18 AM   #4
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Apache HTTPD (= "Apache") and Apache Tomcat are different servers. HTTPD - without modification - servers static pages only while Tomcat also serves JSP pages and servlets. Both are webservers though - HTTPD by default listens on port 80, Tomcat listens on port 8180 - so, if Tomcat is running, pointing your browser to http://127.0.0.1:8180 should display some default contents.

As for where to place new web apps, Tomcat's default directory should be /usr/share/tomcat5, and there within should be a folder or link "webapps".
(You can always find Tomcat locations on your file system by stating
Quote:
$ cd /
$ whereis tomcat5
).

Now, theoretically, you wouldn't need Apache for serving JSPs. If you wanted though, you would use the Tomcat Apache Connector.
 
Old 04-17-2006, 10:28 AM   #5
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Thanks,
I do need Tomcat since I've got jsps and servlets.
I found out that I can start tomcat by:
service tomcat5 start
after that I can access its default page by pointing the web browser to http://localhost:8080 (just like in win xp)
however, since this tomcat resides not in public_html I cannot view pages if I put them into /usr/share/tomcat5. Well, theoretically I can but it is supposed to be a web server so, therefore, I have to have them in public_html.
The question is how to tell tomcat to run pages in public_html.
Have not clue.
Any ideas?

Thanks!
 
Old 04-17-2006, 10:59 AM   #6
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Sorry, I haven't done this before - you would install and configure the Apache Tomcat Connector (see my last post).
 
Old 04-17-2006, 01:38 PM   #7
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Thank you though
 
Old 04-17-2006, 03:35 PM   #8
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
Is there a good step by step guide for FC5?
 
Old 04-17-2006, 05:07 PM   #9
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
There appear to be some references on Google but not exactly for Fedora Core 5.

Seems you have a steep learning curve these days.
 
Old 04-17-2006, 05:47 PM   #10
thisObject
Member
 
Registered: Apr 2006
Posts: 170

Original Poster
Rep: Reputation: 30
U tell me about that!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
jsp and jstl not displayed thisObject Linux - Software 5 04-18-2006 09:43 AM
urgent help on JSP anirudh Programming 8 08-17-2005 04:54 PM
jstl problem with c:out csfalcon Programming 3 07-14-2005 05:20 PM
VB to JSP jayakrishnan Linux - General 3 05-08-2002 12:28 AM
jsp deepak Programming 0 04-18-2001 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration