You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Phillip Qin <pq...@shareowner.com> on 2003/06/12 21:13:31 UTC

rc2 issues [WAS]nested:hidden setValue deprecated in rc2?

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:kris@dotech.com] 
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 <pq...@shareowner.com>:

> 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 <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

Re: rc2 issues [WAS]nested:hidden setValue deprecated in rc2?

Posted by Kris Schneider <kr...@dotech.com>.
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 <pq...@shareowner.com>:

> 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:kris@dotech.com] 
> 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 <pq...@shareowner.com>:
> 
> > 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 <ma...@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org