Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 17th, 2006, 09:16 AM
Authorized User
Join Date: Apr 2005
Location: Arequipa, Arequipa, Peru.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem wit struts and spring

Hello guys

the spring forum section , is almost empty, so here is better :p

i am in hell trying to run a simple test with Spring and struts
i have already readed an important chapter from abook and this
web page http://www-128.ibm.com/developerwork...ary/j-sr2.html,
both have almost the same content

here is my web.xml,located in tomcat5.5.8/webapps/projectname/WEB-INF/

"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"







here my struts-config.xml located in tomcat5.5.9/webapps/projectname/WEB-INF/

check please that only applicationContext-servlet.xml is in the WEB-INF and the
others context's are in the "xml folder"

<?xml version="1.0"?>

<!DOCTYPE struts-config PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"

          <form-bean name="loginForm" 
                    type="com.actionforms.LoginForm" />                      

        <forward name="inicio" path="inicio.page" />

        <action path="/inicio" 
                parameter="inicio.page" />    
        <action path="/loginAction"
            <exception     key="error.exception.MiLoginException"
            <exception key="error.exception.MiGlobalException"
                           path="/jsp/login.jsp" />            
            <forward name="loginAction" path="inicio.page"/>
    <message-resources parameter="ApplicationResources"/>

    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames"

   <plug-in className="org.apache.struts.tiles.TilesPlugin">
        <set-property property="definitions-config" value="/WEB-INF/xml/tiles-defs.xml"/>
        <set-property property="moduleAware" value="true" />
        <set-property property="definitions-parser-validate" value="true" />
        <set-property property="definitions-debug" value="2" />

   <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
        <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext-servlet.xml"/>
and to end the mentionated applicationContext-servlet.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

    <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer">
        <property name="definitions">
    <bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
        <property name="basename">
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basename">
    <bean name="/loginAction" class="com.jordan.actions.LoginAction">
        <property name="defaultLoginManager">
                <ref bean="idLoginManager"/>
i only want to work with struts, if i comment viewResolver and messageSource i have the same results above

i dont have any error of compilation (using eclipse compiler for tomcat) or ant, the ubications of the files with the path
is all correct!

well this is the error , when i write this in my browser http://localhost:8080/springtest/
should load jsp/login.jsp or if even i write http://localhost:8080/springtest/jsp/login.jsp
show this error (note ,not appear nohing in the console window for the tomcat report and neither in the log file of the tomcat)

(i translated to english)


type Inform of state


description: the required resource () is not available

Apache Tomcat/5.5.9
yes "()" ???? whats mean????
this is my login.jsp

but before inclusive if i write http://localhost:8080/springtest/jsp/ i can see and select some files included the login.jsp
,so if i choice the jsp file i recieve the same message error

<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/jsp/utilerias/css/micss.css" />

        <html:form action="/loginAction" focus="usr">
                    <bean:message key="label.login.usr"/>
                    <html:text property="usr"/>
                    <bean:message key="label.login.pwdusr"/>
                    <html:password property="pwdusr"/>        
so, what could be wrong???? , i dont have any idea

thanks so much for advanced

Reply With Quote

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is advantageous of spring over struts jomet Spring 2 April 29th, 2010 10:27 AM
There is already an open datareader associated wit yasinirshad ADO.NET 1 August 12th, 2007 03:37 AM
There is already an open DataReader associated wit jayanp ADO.NET 1 July 2nd, 2006 01:10 PM
Spring Integration with Struts Demeter Struts 0 May 31st, 2006 05:31 PM
There is already an open DataReader associated wit flyin ADO.NET 14 February 20th, 2004 07:41 AM

All times are GMT -4. The time now is 03:27 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.