Linux - SoftwareThis 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.
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.
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?
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.