Hi vani,

Just some comments...

1- I would add the ".tld" extension to the 3rd line. Also make sure
it's pointing to the correct path.

2- In the action attribute of the form tag, the ".action" is not necessary

3- Your h1 tag is outside the html tag. Not that it could raise an
NPE, but still, for readability's sake ;)

HTH,
alexis

On 12/07/07, vani patange <[EMAIL PROTECTED]> wrote:

Hi
Iam newbie to Struts2.Whenever i used struts-tags lib to build user
interfaces iam getting NullPointerException coming at TagUtils.java

my simple jsp page is looks like this

<[EMAIL PROTECTED] contentType="text/html"%>
<[EMAIL PROTECTED] pageEncoding="UTF-8"%>
<[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>

<h1>Input page</h1>
<html>
<s:form action="HelloWorld.action" >
   <s:submit/>
</s:form>
</html>

and iam getting following NullPointerException


Error 500--Internal Server Error

java.lang.NullPointerException
        at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
        at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52)
        at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
        at jsp_servlet.__index._jsp__tag0(__index.java:127)
        at jsp_servlet.__index._jspService(__index.java:98)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3367)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown
Source)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)


--
View this message in context: 
http://www.nabble.com/java.lang.NullPointerException-please-help-tf4067452.html#a11557832
Sent from the Struts - User mailing list archive at Nabble.com.


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



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

Reply via email to