Solved

jsp display issue...

Posted on 2012-03-27
4
234 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
ID: 37773320
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
ID: 37773329
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
ID: 37773331
thanks
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37773353
You are always welcome.

Look at examples - it always helps me
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

929 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

10 Experts available now in Live!

Get 1:1 Help Now