You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Iris <ir...@enix.org> on 2003/02/07 10:15:27 UTC
with or without property ?
Hi,
I'm newbie with nested tags and I try to understand how works the
<nested:submit>.
In the API it's written that is similar to <html:submit> but if I write
this:
<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html>
<head>
<title>NeXt:Recursion-Tutorial</title>
</head>
<body bgcolor="#FFFFFF">
<nested:form action="/recurser-action.do">
<nested:write property="beanName" />
<hr>
<nested:nest property="monkeyTree">
<jsp:include page="treenode.jsp"/>
</nested:nest>
<br>
<nested:submit>OK</nested:submit>
</nested:form>
</body>
</html>
It results by a null pointer exception:
10:00:12,872 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service()
for servlet jsp threw exception
java.lang.NullPointerException
at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(NestedPropertyHelper.java:173)
at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(NestedPropertyHelper.java:195)
at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(NestedPropertyHelper.java:242)
at
org.apache.struts.taglib.nested.html.NestedSubmitTag.doStartTag(NestedSubmitTag.java:91)
at org.apache.jsp.MonkeyTree$jsp._jspService(MonkeyTree$jsp.java:135)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.....
I saw it was because it's search for a property so I tried:
<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html>
<head>
<title>NeXt:Recursion-Tutorial</title>
</head>
<body bgcolor="#FFFFFF">
<nested:form action="/recurser-action.do">
<nested:write property="beanName" />
<hr>
<nested:nest property="monkeyTree">
<jsp:include page="treenode.jsp"/>
</nested:nest>
<br>
<nested:submit property="root">OK</nested:submit>
</nested:form>
</body>
</html>
It works ! :-)
But I didn't understand why, can someone explain me ?
thanks
Iris
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: basebeans News Server
Posted by Davor Cengija <da...@mail.inet.hr>.
Dmitri Ilyin wrote:
> Hi,
>
> does know someone if the Basebeans news server will be turn on again???
>
Basebeans is mail-to-news gateway? If so, you might try www.gmane.org.
Regards,
Davor
--
davor.cengija@mail.inet.hr
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: basebeans News Server
Posted by Vic Cekvenich <vc...@basebeans.com>.
news.basebeans.com is up
I shut it down when it double posted, and now I am adding it back up slowly.
It will ofer only a choice few usefull news lists (pgSQL, Axis, JDBC,
etc.) and most likely filter OT: posts.
I will post when news.basebeans.com is fully operatonal.
.V
Dmitri Ilyin wrote:
> Hi,
>
> does know someone if the Basebeans news server will be turn on again???
>
> regards
>
> Dmitri
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
basebeans News Server
Posted by Dmitri Ilyin <dm...@dynamic.de>.
Hi,
does know someone if the Basebeans news server will be turn on again???
regards
Dmitri
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org