Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2008, 11:02 PM
Member
 
Join Date: May 2008
Posts: 3
techissue2008 is on a distinguished road
Not direct to localhost:8080/test/index.do and show This is my JSP page?
I just got a jsp project with struts, spring, hibernate, mysql 5, running on tomcat 6, using eclipse ide. Although this is a web project, it was build with a java project on eclipse and then copy the jsp, xml, class files to tomcat webapps.

In tomcat -> webapps -> webproject -> web-inf -> web.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
When I open localhost:8080/webproject

Q.1 Why it does not direct to localhost:8080/webproject/index.do?
I saw the web.xml, there is no <welcome-file>index.do </welcome-file>, but it can be directed to index.do on another machine, does tomcat server’s server.xml or web.xml can configure it?

Q.2 When I open localhost:8080/webproject/index.do or localhost:8080/webproject/index.jsp or localhost:8080/webproject/

It shows “This is my JSP page.” It does not show the index page correctly.

I checked the dataSource in ApplicationContent.xml of spring framework does not throw exception with run the index.do page.

So, where or which file that I configured wrongly and made it just return to This is my JSP page.

Thanks for help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
show a value in javascipt in the jsp page hussainzim JavaServer Pages (JSP) and JSTL 0 05-20-2008 11:38 AM
how direct her/ him to the Sun´s download page? willemjav Java Applets 1 04-17-2008 06:03 PM
netbeans 6.0 not show commpunent or show blank page fahimaamir NetBeans 1 01-26-2008 08:20 AM
how to load a servlet on index.jsp page... sujithc34 Java Servlet 1 01-19-2008 02:28 AM
the web site "monitor test page" dubdubdub New To Java 0 11-28-2007 09:48 AM


All times are GMT +3. The time now is 05:25 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org