Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not really sure if this will help you out, but my jsp pages use</p> <pre><code>&lt;%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%&gt; </code></pre> <p>instead of</p> <pre><code>&lt;%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %&gt; </code></pre> <p>I'm running on Tomcat 6 and don't have to configure my taglibs in web.xml if I place them in /META-INF/my.tld and refer to them in my jsps with</p> <pre><code>&lt;%@ taglib uri="/META-INF/my.tld" prefix="my"%&gt; </code></pre> <p>Hope this helps you...</p> <p>*<strong><em>edit</em>*</strong></p> <p>To solve the "java.lang.NullPointerException: Module 'null' not found." problem paste this snippet in your "action-mappings" section in struts-config.xml</p> <pre><code> &lt;action path="/login" type="my.app.web.LoginAction" validate="false" name="loginForm"&gt; &lt;forward name="SUCCESS" path="/login.jsp" /&gt; &lt;/action&gt; </code></pre> <p>and this one into your "form-beans" section:</p> <pre><code>&lt;form-bean name="loginForm" type="my.app.web.LoginForm" /&gt; </code></pre> <p>Then create a struts action like this one (LoginAction.java):</p> <pre><code>package my.app.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class LoginAction extends BaseAction { @Override protected ActionForward run(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LoginForm loginForm = (LoginForm) form; return mapping.findForward("SUCCESS"); } } </code></pre> <p>Furthermore you need your input form (LoginForm.java):</p> <pre><code>package my.app.web; import org.apache.struts.validator.ValidatorForm; public class LoginForm extends ValidatorForm { private Integer username; public Integer getUsername() { return username; } public void setUsername(Integer username) { this.username = username; } } </code></pre> <p>Open your login page in your browser by typing <a href="http://localhost:8080/myApp/login.do" rel="nofollow">http://localhost:8080/myApp/login.do</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload