I'm pretty sure your another.jsp should *not* include the "name" attribute on
the <nested:root> tag. So it would just look like:

<nested:root>
 ...
</nested:root>

This allows the nested tags to pick up the current bean from parent.jsp. The
http://www.keyboardmonkey.com/ site ought to have more details...

Quoting Phillip Qin <[EMAIL PROTECTED]>:

> I actually have two issues for rc2. One is this type. Another one is
> 
> parentjsp:
> <nested:root name="myparentbean">
>       <nested:notMatch property="testProp" value="testValue">
>               <jsp:include page="anotherjsp" flush="true"/>
>       </nested:notMatch>
> </nested:root>
> 
> anotherjsp:
> <nested:root name="myparentbean">
>       <%-- ...... --%>
> </nested:root>
> 
> I will get "no getter method for nestOne.testProp of myparent". To solve
> it,
> I have use logic in parentjsp.
> 
> -----Original Message-----
> From: Kris Schneider [mailto:[EMAIL PROTECTED] 
> Sent: June 12, 2003 2:49 PM
> To: Struts Users Mailing List
> Subject: Re: nested:hidden setValue deprecated in rc2?
> 
> Try:
> 
> <nested:define id="hdate"
>                property="nextTxnDate"
>                type="java.lang.String"/>
> 
> or:
> 
> <nested:hidden property="historicalNextTxnDate"
>                value="<%= String.valueOf(hdate) %>"/>
> 
> Quoting Phillip Qin <[EMAIL PROTECTED]>:
> 
> > page.jsp:
> > 
> > <nested:define id="hdate" property="nextTxnDate"/>
> > <nested:hidden property="historicalNextTxnDate" value="<%= hdate %>"/>
> > 
> > I got following error when this page is loading:
> > 
> > [ServletException in:/page.jsp] Unable to compile class for JSP An error
> > occurred at line: 63 in the jsp file: /page.jsp Generated servlet error:
> > [javac] Since fork is true, ignoring compiler setting. [javac] Compiling
> 1
> > source file [javac] Since fork is true, ignoring compiler setting.
> [javac]
> >
> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
> > ava:296: cannot resolve symbol [javac] symbol : method setValue
> > (java.lang.Object) [javac] location: class
> > org.apache.struts.taglib.nested.html.NestedHiddenTag [javac]
> > _jspx_th_nested_hidden_0.setValue( hamount ); [javac] ^ [javac] Note:
> >
> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
> > ava uses or overrides a deprecated API. [javac] Note: Recompile with
> > -deprecation for details. [javac] 1 error '
> > 
> > 
> > 
> > Regards,
> > 
> >  
> >  
> > PQ
> > 
> > "The difference between 'involvement' and 'commitment'
> > is like an eggs-and-ham breakfast: the chicken was
> > 'involved' - the pig was 'committed'."
> > 
> > 
> 
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to