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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-16-2006, 09:17 PM
|
#1
|
Member
Registered: Apr 2006
Posts: 170
Rep:
|
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
|
|
|
04-16-2006, 10:53 PM
|
#2
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
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
|
|
|
04-16-2006, 11:16 PM
|
#3
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
How do I set up tomcat to serve jsp pages in public_html folder so they can be viewed outside of my network?
Thanks!
|
|
|
04-17-2006, 05:18 AM
|
#4
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Rep:
|
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
).
Now, theoretically, you wouldn't need Apache for serving JSPs. If you wanted though, you would use the Tomcat Apache Connector.
|
|
|
04-17-2006, 10:28 AM
|
#5
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
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!
|
|
|
04-17-2006, 10:59 AM
|
#6
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Rep:
|
Sorry, I haven't done this before - you would install and configure the Apache Tomcat Connector (see my last post).
|
|
|
04-17-2006, 01:38 PM
|
#7
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Thank you though
|
|
|
04-17-2006, 03:35 PM
|
#8
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Is there a good step by step guide for FC5?
|
|
|
04-17-2006, 05:07 PM
|
#9
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Rep:
|
There appear to be some references on Google but not exactly for Fedora Core 5.
Seems you have a steep learning curve these days.
|
|
|
04-17-2006, 05:47 PM
|
#10
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
U tell me about that!
|
|
|
All times are GMT -5. The time now is 10:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|