struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <p...@shareowner.com>
Subject rc2 issues [WAS]nested:hidden setValue deprecated in rc2?
Date Thu, 12 Jun 2003 19:13:31 GMT
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 <pqin@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 <mailto:kris@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message