struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30095] New: - html:form html response error in multi-module
Date Wed, 14 Jul 2004 07:25:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30095>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30095

html:form html response error in multi-module 

           Summary: html:form html response error in multi-module
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: dev@struts.apache.org
        ReportedBy: forummail4@oksteel.com


web.xml:
...
   <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>
   <init-param>
     <param-name>config/admin</param-name>
     <param-value>/WEB-INF/admin-config.xml</param-value>
   </init-param>
...

admin-config.xml:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts 
Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-
config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="loginform" 
type="org.apache.struts.validator.DynaValidatorform">
<form-property name="loginName" size="50" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
</form-bean>
</form-beans>
<global-forwards>
<forward   name="login"path="/login.jsp"/>
</global-forwards>
<action-mappings>
<action input="/login.jsp" name="loginform" path="/loginAction" scope="request" 
type="com.struts.admin.LoginAction" validate="true">
<forward contextRelative="false" name="success" path="/loginok.jsp" 
redirect="false" />
</action>
</action-mappings>
<plug-in className="org.apache.struts.tiles.TilesPlugin">
   <set-property property="definitions-config" value="/WEB-INF/admin-tiles-
defs.xml" />
   </plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/admin-validator-
rules.xml,/WEB-INF/admin-validation.xml" />
</plug-in>
</struts-config>

jsp file admin/login.jsp is:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page contentType="text/html; charset=GBK" %>

<html:html>
<head>
<title>login</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<html:form action="/loginAction">
 </html:form>

</body>

</html:html>


if access http://localhost:8080/admin/loginAction.do return html data:
...
<form name="loginForm" method="post" action="/admin/loginAction.do" >
...


but if access http://localhost:8080/admin/login.jsp return incorrect html data:
<form name="loginForm" method="post" action="/loginAction.do" >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message