>>>>> "Richard" == Richard Raquepo <[EMAIL PROTECTED]> writes:

    Richard> i cannot acces any jsp or action:help! can someoe show me what am i doing 
wrong?javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans
    Richard> collection
    Richard>    at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:712)
    Richard>    at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:500)
    Richard>    at _input__jsp._jspService(/input.jsp:9)
    Richard>    at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
    Richard>    at com.caucho.jsp.Page.subservice(Page.java:497)
    Richard>    at 
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
    Richard>    at com.caucho.server.http.Invocation.service(Invocation.java:312)
    Richard>    at 
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
    Richard>    at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
    Richard>    at 
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
    Richard>    at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
    Richard>    at java.lang.Thread.run(Thread.java:534)
    Richard> my jsp looks like this:<%@ taglib uri="/struts-html" prefix="html" 
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>   <head>      
<title>Test</title>   </head>   <body> <html:form action="/test.do" name="testForm" 
type="com.myform.TestForm">    <table>            <tr>               <td>First 
Name:</td>               <td><html:text property='username'/></td>            </tr>    
        <tr>               <td>Last Name:</td>               <td><html:text 
property='password'/></td>            </tr>         <p><html:submit/>      
</html:form>       </body></html>my struts-config.xml looks like this:  <form-beans 
type="org.apache.struts.action.ActionFormBean">   <form-bean name="paramForm" 
type="org.apache.struts.action.DynaActionForm">    <form-property name="name" 
type="java.lang.String" />    <form-property name="lastName" type="java.lang.String" 
/>    <form-property name="languages" type="java.lang.String" />   </form-bean>   
<form-bean name="testForm"     type="com.myform.TestForm"/>  </form-beans>  
<action-mappings type="org.apache.struts.action.ActionMappings">   <action     
input="main.jsp"    name="testForm"     path="/param"         
type="org.apache.struts.action.Action">   </action>   <action     path="/test"         
type="com.myaction.TestAction"    name="testForm">    <forward name="nextaction" 
path="output.jsp"/>       </action>  </action-mappings>

Please try to present your files in readable fashion (more than one line).
It's a little easier on us.

It would be useful to see your "web.xml" file.

What version of Struts are you using?

Is what you've shown of your "struts-config.xml" file the entire file, or just
an excerpt?

Note that you don't need to override the "type" value in "form-beans" or
"action-mappings" if you're using the default value (which those are).

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to