My struts.xml: <action name="StoreLawDraft" class="lol.action.admin.StoreLawAction"> <result name="success">/admin/processlaw.jsp</result> <result name="error">/admin/processlaw.jsp</result> </action> <action name="PrepareLawDraft" class="lol.action.admin.PrepareLawDraftAction"> <result name="success">/admin/processlaw2.jsp</result> <result name="error">/singleMessage.jsp</result> </action>
* This source code was highlighted with http://source.virtser.net Source Code Highlighter . my /admin/processlaw2.jsp: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/struts-tags" prefix="s" %> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Создание нового законопроекта</title> <link type="text/css" rel="stylesheet" media="screen" href="../css/pprf_admin.css" /> <link type="text/css" rel="stylesheet" media="screen" href="../css/admin.css" /> <!--[if IE]> <link type="text/css" rel="stylesheet" media="screen" href="../css/pprf_ie.css" /> <![endif]--> <script type="text/javascript" src="../js/adminui.js"></script> </head> <s:form action="StoreLawDraft" method="post"> <s:textfield name="testString" label="тестовая строка"/> <s:submit/> </s:form> <body> </body> </html> * This source code was highlighted with http://source.virtser.net Source Code Highlighter . my PrepareLawDraftAction: public class PrepareLawDraftAction extends ActionSupport{ private String testString = "This is test String"; private String result = ActionSupport.SUCCESS; public String execute(){ System.out.println("#PrepareLawDraftAction RESULT = " + result); return result; } public String getTestString() { return testString; } public void setTestString(String testString) { this.testString = testString; } * This source code was highlighted with http://source.virtser.net Source Code Highlighter . My action works fine. -- View this message in context: http://www.nabble.com/Can%27t-access-bean-from-jsp-tp18489742p18502686.html Sent from the Struts - User mailing list archive at Nabble.com.