Hello All, Is there any sort of a util class that is used for pagination already provided by struts or jakarta? Thanks! Steven
The only features provided in struts are in the <logic:iterate> tag using a combination of the "length" and "offset" attributes. So for example if you were showing "pages of ten" and wanted to show the "second page".. <logic:iterate length="10" offset = "10"> Niall ----- Original Message ----- From: "Steven Leija" <St...@valtech.com> To: "Struts Users Mailing List" <us...@struts.apache.org> Sent: Tuesday, April 20, 2004 7:43 PM Subject: Pagination > Hello All, > > Is there any sort of a util class that is used for pagination already provided by struts or jakarta? > > Thanks! > > Steven > > ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org
Henrique, thank you! it works! --- Henrique VIECILI <vi...@softplan.com.br> wrote: > use the same name you assigned to the form in > struts-config.xml form-bean > > in struts-config.xml > <form-bean name="form.myForm" > type="your.package.Form" /> > > in the jsp file > <bean:write name="form.myForm" property="field" /> > > note the form.myForm must be assigned to the action > in the <html:form > action="/myAction.do"> > > Henrique Viecili > > ----- Original Message ----- > From: "Julia Weaver" <dr...@yahoo.com> > To: "Struts Users Mailing List" > <us...@struts.apache.org>; <pa...@nyu.edu> > Sent: Friday, April 23, 2004 1:20 PM > Subject: how to do "<bean:write" without "name" > attribute? > > > > Hi, > > > > I get this error massage: > > Cannot find bean form in any scope' > > > > in my jsp file: > > > > <html:form action="/LinkOperations" > > > > > <bean:write name="form" property="pType" /> > > > > What attribute should for name? > > > > How I can do "<bean:write" without "name" > attribute? > > > > Thanks! > > > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Photos: High-quality 4x6 digital prints for > 25� > > http://photos.yahoo.com/ph/print_splash > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > > For additional commands, e-mail: > user-help@struts.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > For additional commands, e-mail: > user-help@struts.apache.org > __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org
use the same name you assigned to the form in struts-config.xml form-bean in struts-config.xml <form-bean name="form.myForm" type="your.package.Form" /> in the jsp file <bean:write name="form.myForm" property="field" /> note the form.myForm must be assigned to the action in the <html:form action="/myAction.do"> Henrique Viecili ----- Original Message ----- From: "Julia Weaver" <dr...@yahoo.com> To: "Struts Users Mailing List" <us...@struts.apache.org>; <pa...@nyu.edu> Sent: Friday, April 23, 2004 1:20 PM Subject: how to do "<bean:write" without "name" attribute? > Hi, > > I get this error massage: > Cannot find bean form in any scope' > > in my jsp file: > > <html:form action="/LinkOperations" > > > <bean:write name="form" property="pType" /> > > What attribute should for name? > > How I can do "<bean:write" without "name" attribute? > > Thanks! > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25¢ > http://photos.yahoo.com/ph/print_splash > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org
Hi, I get this error massage: Cannot find bean form in any scope' in my jsp file: <html:form action="/LinkOperations" > <bean:write name="form" property="pType" /> What attribute should for name? How I can do "<bean:write" without "name" attribute? Thanks! __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org
No, but check out displaytag at http://www.displaytag.org Steven Leija wrote: > Hello All, > > Is there any sort of a util class that is used for pagination already provided by struts or jakarta? > > Thanks! > > Steven > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org