Solved

jsp display issue...

Posted on 2012-03-27
4
233 Views
Last Modified: 2012-06-21
I have made a simple jsp file (CarBean_1.jsp). Codes inside is commented out for now.

I want make sure it is displaked using: http://localhost:8080/test/CarBean_1.jsp

It doesn't. Please see the attached images for what is displaying nstead and the folder for Tomcat I have:

Question: What folder I need to put test\CarBean_1.jsp

Maybe in root\test\CarBean_1.jsp


THank you
0
Comment
Question by:Mike Eghtebas
  • 3
4 Comments
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
Normally you would create web application - say called MyApp
and in webapps folder there will be folder MyApps and your .jsp
should be in that folder

Tomcat comes with very good application called "examples"

Find such folder in webbapps folder of Tomcat and use that one to study the general structure of how web applications should be organaized
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
Comment Utility
One of the simplese ways is to use IDE for J2EE development - say Eclipse for J2ee
this IDE will create the MyApp.WAR file.
If you put this MyApp.WAR file in the webapps folder of your tomact and restart tomact then tomact will unzip the .WAR file and crete the MyApp folder and necessary structure within it for your web application
0
 
LVL 33

Author Comment

by:Mike Eghtebas
Comment Utility
thanks
0
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
You are always welcome.

Look at examples - it always helps me
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now