You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Leija <St...@valtech.com> on 2004/04/20 20:43:06 UTC

Pagination

Hello All,

Is there any sort of a util class that is used for pagination already provided by struts or jakarta?

Thanks!

Steven


Re: Pagination

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
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


Re: how to do " Posted by Julia Weaver <dr...@yahoo.com>.
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


Re: how to do " Posted by Henrique VIECILI <vi...@softplan.com.br>.
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


how to do " Posted by Julia Weaver <dr...@yahoo.com>.
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


Re: Pagination

Posted by Paul Barry <pa...@nyu.edu>.
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