Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
Jsp is not getting displayed in struts2 using eclipse.
sneha ulhe
Ranch Hand
Posts: 52
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In struts2 application simple
jsp
is not getting displayed in browser.it displaying
HTTP status 404-The requested resource (/IBIS_struts/Home.jsp) is not available.
what could be the problem?
Sneha
[OCJP 6]
rohit chavan
Ranch Hand
Posts: 133
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Check your WEB-INF/web.xml file and struts-confing.xml files.
You can post them here so that we can help.
Rohit
sneha ulhe
Ranch Hand
Posts: 52
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
These are the web.xml and struts.xml files.
web.xml
:-
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>IBIS_struts</display-name> <welcome-file-list> <welcome-file>/Home.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>
struts.xml:-
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="helloworld" extends="struts-default"> <action name="enquiry" class="actions.Enq_action"> <result name="success">/Enquiry.jsp</result> <result name="error">/Home.jsp</result> </action> </package> </struts>
Sneha
[OCJP 6]
rohit chavan
Ranch Hand
Posts: 133
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try changing "/Home.jsp" to "Home.jsp" in web.xml
<welcome-file-list> <welcome-file>/Home.jsp</welcome-file> </welcome-file-list>
Nothing up my sleeve ... and ... presto! A tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
STRUTS2
Struts2 Validation problem
Problem of <frameset> tag with struts2
Iterating a Array in Struts2
Struts2
More...