RE: Displaying mulitpage results

2005-02-19 Thread Néstor Boscán
Hi Antony

1) Expose two more variables to access first page and last page ( like
nextUrlVar). 

You can use the pages variable and get the first and last page elements to
get the first page and the last page. But It may be interesting to put two
aditional variables.

2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

With the pages variable you can use the data anyway you like. You can show
all of them or limit the number of pages shown to a specific number. 

Any new features that you can come up is always welcomed.

Regards,

Néstor Boscán

-Mensaje original-
De: Antony Joseph [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 02:37 p.m.
Para: Struts Users Mailing List
Asunto: RE: Displaying mulitpage results

Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  



- Original Message -
From: "Néstor Boscán" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

> 
> Hi Antony
> 
> You can't use JSP tags inside the columns. You could use HTML buttons 
> and input fields with JSTL expressions.
> 
> Regards,
> 
> Néstor Boscán
> 
> -Mensaje original-
> De: Peter Neu [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 19 de 
> Febrero de 2005 01:18 p.m.
> Para: Struts Users Mailing List
> Asunto: Re: Displaying mulitpage results
> 
> Hello Antony,
> 
> the datagrid-tags were exactly what I was looking for. The one 
> question which I have is how can I use Struts tags inside the columns? 
> I really need some buttons and input fields.
> 
> cheers,
> 
> Peter
> 
> 
> 
> Antony Joseph schrieb:
> > Check out the datagrid library at
> > http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.htm
> > l
> >
> > If all you are looking for is pagination, sorting and ordering from 
> > the
> database this is a good fit.  It does not have all the bells and 
> whistles displaytag has, but is a simple and clean implementation.
> >
> > The biggest issue I have with the stock displaytag is, you have to 
> > stick
> the whole query result somewhere (generally in the users session) to 
> do pagination. A very bad idea in my opinion.
> >
> > See https://workeffort.dev.java.net for an application usage example 
> > of datagrid library. Got tired of spamming you all with my company 
> > website, so I moved the application to java.net :-)
> >
> >
> > - Original Message -
> > From: "Peter Neu" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Subject: Displaying mulitpage results
> > Date: Sat, 19 Feb 2005 11:11:27 +0100
> >
> >
> >> Hello everybody,
> >>
> >> in my struts application I used to display a table of query results 
> >> on one page. Now the results are becoming way too much to display 
> >> them on one page. What is the best way to implement a mulitpage 
> >> result view?
> >> The problem is I have multi-step workflow and I don't want to 
> >> confuse the user too much.
> >>
> >> Best Regards,
> >>
> >> Peter
> >>
> >> ---
> >> -- To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > Antony Joseph
> > Available for consulting
> > http://www.logicden.com
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10


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




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



Re: Struts or SpringFramework

2005-02-19 Thread Dakota Jack
Yes!  ///;-)


On Sat, 19 Feb 2005 14:49:38 -0500, David G. Friedman
<[EMAIL PROTECTED]> wrote:
> Does it mean I'm going made if Jack starts making sense? :)
> 
> Regards,
> David
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Saturday, February 19, 2005 2:14 PM
> To: Struts Users Mailing List
> Subject: Re: Struts or SpringFramework
> 
> Thanks, Vic.  I would suggest that they are not competitors for the
> same job under normal circumstances.  IoC might be seen as for a
> plumbing strategy (architecture), e.g. Action, RequestProcessor,
> ActionForm, etc. as interfaces and CoR for implementation strategies
> (application).  I personally would not use CoR where IoC was needed or
> where AOP was needed.  I hope I am not being repetitive, but I think
> that having RequestProcessor as an interface and using CoR in a
> default implementation of that interface would be good.  Am I clear?
> Am I nuts?  ;-)
> 
> On Fri, 18 Feb 2005 18:01:32 -0600, Vic <[EMAIL PROTECTED]> wrote:
> > So the short answer is... I can't!
> > You use a QuickSort and a BubleSort in 2 diferent scenarios, one is good
> > for semi sorted data, the other for large sorts.
> >
> > I used IoC to organize and configure classes after the fact.
> > With CoR I can re-use comands in a diferent context and still be
> > able to configure them. Seemed to me like 2 was too much, one had to go.
> >
> > It's possible that IoC will be added in later versions of Struts, but I
> > likely will chose to use only to use CoR.
> > This is a begining of Vi vs Emacs that will last for years. Spring is
> > more complicated than Struts 1.3... hmmm.
> >
> > .V
> >
> > Shey Rab Pawo wrote:
> >
> > >  What I
> > >don't quite see is how they or CoR replace IoC.  IoC seems to me to
> > >address a completely different and consistent set of solutions to a
> > >completely different and consistent set of problems.  So, if you could
> > >explain this, I would appreciate it.
> > >
> > >
> > >
> >
> > --
> > Forums, Boards, Blogs and News in RiA 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its back."
> "Heaven has changed.  The Sky now goes all the way to our feet.
> 
> ~Dakota Jack~
> 
> "This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Anyway to auto-trim String properties in DynaForms?

2005-02-19 Thread K.C. Baltz
It would be really nice if I could programmatically indicate that 
certain fields in a DynaForm should be automatically trimmed of 
whitespace.  Is there a way to do this? 

Alternatively, is there a way to get the behavior of the "required" 
validation when using validwhen?  "required" doesn't accept values that 
are nothing but whitespace whereas there's no way to test for this when 
using validwhen.

K.C. Baltz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tiles scope headache assistance needed.

2005-02-19 Thread Jason Long
quote.list.item is defiened as follows:

  


  

".table.holder" is a layout.  I want to display my quote in this holder.
The format for the quote is defined in list.item.jsp.  Everything works
except I cannot make quote available to the tile.   

"quote" is defined as follows 

"quoteForm" is in session scope.

Thank you for your time, 

Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com 

-Original Message-
From: Brian Moseley [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 18, 2005 11:34 AM
To: Struts Users Mailing List
Subject: Re: Tiles scope headache assistance needed.

Jason Long wrote:

> 
> 
>
>   
> ${quote.offerPriceLightValue.sizeValue.size}
>   
> 
> 
> 
>   
> 
>   
> 
> I would like to define the following tile definition:
> 
> 
>   
>  

you must be leaving something out of your email, cos this 
tile is named .table.holder, but the jsp above is inserting 
a tile named ".quote.list.item".

> And have quote.jsp as follows:
> 
> 
>   
> ${quote.offerPriceLightValue.sizeValue.size}
>   
> 

you need to put the  in quote.jsp. 
that exposes the bean referenced by  in the 
calling jsp.

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




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



RE: Tiles scope headache assistance needed.

2005-02-19 Thread Jason Long
quote.list.item is defiened as follows:

  


  

".table.holder" is a layout.  I want to display my quote in this holder.
The format for the quote is defined in list.item.jsp.  Everything works
except I cannot make quote available to the tile.   

"quote" is defined as follows 

"quoteForm" is in session scope.

Thank you for your time, 

Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com 

-Original Message-
From: Brian Moseley [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 18, 2005 11:34 AM
To: Struts Users Mailing List
Subject: Re: Tiles scope headache assistance needed.

Jason Long wrote:

> 
> 
>
>   
> ${quote.offerPriceLightValue.sizeValue.size}
>   
> 
> 
> 
>   
> 
>   
> 
> I would like to define the following tile definition:
> 
> 
>   
>  

you must be leaving something out of your email, cos this 
tile is named .table.holder, but the jsp above is inserting 
a tile named ".quote.list.item".

> And have quote.jsp as follows:
> 
> 
>   
> ${quote.offerPriceLightValue.sizeValue.size}
>   
> 

you need to put the  in quote.jsp. 
that exposes the bean referenced by  in the 
calling jsp.

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




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



RE: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread David G. Friedman
Joe,

Your comment on testing CoR (Struts v1.3 or struts-chains) interests me.
How would that be done?  Do you suggest JUnit, TestNG, or something else? sI
looked a little at StrutsTestCase and something about it bothers me, but
what I can't exactly identify.

> public User getUser() {
>return (User) this.getSessionScope().get("user");
> }
>
> Is this a huge gain?  I don't know.  But it's possible.
> And it means that you could test your class without
> needing to have a mock HttpServletRequest.

Regards,
David


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



RE: Struts or SpringFramework

2005-02-19 Thread David G. Friedman
Er... "mad", not "made".  See, I got so excited about understanding someone
that I forgot to check my syntax (spellcheck missed it, how evil!).

Jokingly: Can StrutsTestCase be used to syntax my grammar before posting to
the list?

Regards,
David

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 2:50 PM
To: Struts Users Mailing List
Subject: RE: Struts or SpringFramework


Does it mean I'm going made if Jack starts making sense? :)

Regards,
David

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 2:14 PM
To: Struts Users Mailing List
Subject: Re: Struts or SpringFramework


Thanks, Vic.  I would suggest that they are not competitors for the
same job under normal circumstances.  IoC might be seen as for a
plumbing strategy (architecture), e.g. Action, RequestProcessor,
ActionForm, etc. as interfaces and CoR for implementation strategies
(application).  I personally would not use CoR where IoC was needed or
where AOP was needed.  I hope I am not being repetitive, but I think
that having RequestProcessor as an interface and using CoR in a
default implementation of that interface would be good.  Am I clear?
Am I nuts?  ;-)

On Fri, 18 Feb 2005 18:01:32 -0600, Vic <[EMAIL PROTECTED]> wrote:
> So the short answer is... I can't!
> You use a QuickSort and a BubleSort in 2 diferent scenarios, one is good
> for semi sorted data, the other for large sorts.
>
> I used IoC to organize and configure classes after the fact.
> With CoR I can re-use comands in a diferent context and still be
> able to configure them. Seemed to me like 2 was too much, one had to go.
>
> It's possible that IoC will be added in later versions of Struts, but I
> likely will chose to use only to use CoR.
> This is a begining of Vi vs Emacs that will last for years. Spring is
> more complicated than Struts 1.3... hmmm.
>
> .V
>
> Shey Rab Pawo wrote:
>
> >  What I
> >don't quite see is how they or CoR replace IoC.  IoC seems to me to
> >address a completely different and consistent set of solutions to a
> >completely different and consistent set of problems.  So, if you could
> >explain this, I would appreciate it.
> >
> >
> >
>
> --
> Forums, Boards, Blogs and News in RiA 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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


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


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



RE: Struts or SpringFramework

2005-02-19 Thread David G. Friedman
Does it mean I'm going made if Jack starts making sense? :)

Regards,
David

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 19, 2005 2:14 PM
To: Struts Users Mailing List
Subject: Re: Struts or SpringFramework


Thanks, Vic.  I would suggest that they are not competitors for the
same job under normal circumstances.  IoC might be seen as for a
plumbing strategy (architecture), e.g. Action, RequestProcessor,
ActionForm, etc. as interfaces and CoR for implementation strategies
(application).  I personally would not use CoR where IoC was needed or
where AOP was needed.  I hope I am not being repetitive, but I think
that having RequestProcessor as an interface and using CoR in a
default implementation of that interface would be good.  Am I clear? 
Am I nuts?  ;-)

On Fri, 18 Feb 2005 18:01:32 -0600, Vic <[EMAIL PROTECTED]> wrote:
> So the short answer is... I can't!
> You use a QuickSort and a BubleSort in 2 diferent scenarios, one is good
> for semi sorted data, the other for large sorts.
> 
> I used IoC to organize and configure classes after the fact.
> With CoR I can re-use comands in a diferent context and still be
> able to configure them. Seemed to me like 2 was too much, one had to go.
> 
> It's possible that IoC will be added in later versions of Struts, but I
> likely will chose to use only to use CoR.
> This is a begining of Vi vs Emacs that will last for years. Spring is
> more complicated than Struts 1.3... hmmm.
> 
> .V
> 
> Shey Rab Pawo wrote:
> 
> >  What I
> >don't quite see is how they or CoR replace IoC.  IoC seems to me to
> >address a completely different and consistent set of solutions to a
> >completely different and consistent set of problems.  So, if you could
> >explain this, I would appreciate it.
> >
> >
> >
> 
> --
> Forums, Boards, Blogs and News in RiA 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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


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



Re: Struts or SpringFramework

2005-02-19 Thread Dakota Jack
Thanks, Vic.  I would suggest that they are not competitors for the
same job under normal circumstances.  IoC might be seen as for a
plumbing strategy (architecture), e.g. Action, RequestProcessor,
ActionForm, etc. as interfaces and CoR for implementation strategies
(application).  I personally would not use CoR where IoC was needed or
where AOP was needed.  I hope I am not being repetitive, but I think
that having RequestProcessor as an interface and using CoR in a
default implementation of that interface would be good.  Am I clear? 
Am I nuts?  ;-)

On Fri, 18 Feb 2005 18:01:32 -0600, Vic <[EMAIL PROTECTED]> wrote:
> So the short answer is... I can't!
> You use a QuickSort and a BubleSort in 2 diferent scenarios, one is good
> for semi sorted data, the other for large sorts.
> 
> I used IoC to organize and configure classes after the fact.
> With CoR I can re-use comands in a diferent context and still be
> able to configure them. Seemed to me like 2 was too much, one had to go.
> 
> It's possible that IoC will be added in later versions of Struts, but I
> likely will chose to use only to use CoR.
> This is a begining of Vi vs Emacs that will last for years. Spring is
> more complicated than Struts 1.3... hmmm.
> 
> .V
> 
> Shey Rab Pawo wrote:
> 
> >  What I
> >don't quite see is how they or CoR replace IoC.  IoC seems to me to
> >address a completely different and consistent set of solutions to a
> >completely different and consistent set of problems.  So, if you could
> >explain this, I would appreciate it.
> >
> >
> >
> 
> --
> Forums, Boards, Blogs and News in RiA 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread Dakota Jack
I probably should have intimated more strongly that SomeInterface
could be Action.  Helper could be Command/Chain, etc.


On Sat, 19 Feb 2005 10:31:26 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> 
> On Fri, 18 Feb 2005 15:44:18 -0500, Rick Reumann
> > I'm wondering if you
> > could do something like this in a Command...
> >
> > public boolean execute(Context context) throws Exception{
> >
> > context.setAttribute("someList",someList);
> > ...
> > }
> >
> > and then from a JSP be able to somehow have reference to this context...
> >
> > c:forEach items="${handleToConntext.emloyees}"
> >
> > Can you do the above?
> 
> 
> I would encourage people to look for an architecture that maximizes a
> use of the Strategy Design Pattern:
> 
> public class DefaultSomeInterface implements SomeInterface {
> private Helper helper;
> 
> public void setHelper(Helper helper) {
> this.helper = helper;
> }
> 
> public void doStuff() {
>  //
>  String value = helper.addOrSomething(args);
>  //'
> }
> }
> 
> "You can lead a horse to water but you cannot make it float on its back."
> "Heaven has changed.  The Sky now goes all the way to our feet.
> 
> ~Dakota Jack~
> 
> "This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



RE: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add 
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like 
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For example 
if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  



- Original Message -
From: "Néstor Boscán" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

> 
> Hi Antony
> 
> You can't use JSP tags inside the columns. You could use HTML buttons and
> input fields with JSTL expressions.
> 
> Regards,
> 
> Néstor Boscán
> 
> -Mensaje original-
> De: Peter Neu [mailto:[EMAIL PROTECTED]
> Enviado el: Sábado, 19 de Febrero de 2005 01:18 p.m.
> Para: Struts Users Mailing List
> Asunto: Re: Displaying mulitpage results
> 
> Hello Antony,
> 
> the datagrid-tags were exactly what I was looking for. The one question
> which I have is how can I use Struts tags inside the columns? I really need
> some buttons and input fields.
> 
> cheers,
> 
> Peter
> 
> 
> 
> Antony Joseph schrieb:
> > Check out the datagrid library at 
> > http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
> >
> > If all you are looking for is pagination, sorting and ordering from the
> database this is a good fit.  It does not have all the bells and whistles
> displaytag has, but is a simple and clean implementation.
> >
> > The biggest issue I have with the stock displaytag is, you have to stick
> the whole query result somewhere (generally in the users session) to do
> pagination. A very bad idea in my opinion.
> >
> > See https://workeffort.dev.java.net for an application usage 
> > example of datagrid library. Got tired of spamming you all with 
> > my company website, so I moved the application to java.net :-)
> >
> >
> > - Original Message -
> > From: "Peter Neu" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Subject: Displaying mulitpage results
> > Date: Sat, 19 Feb 2005 11:11:27 +0100
> >
> >
> >> Hello everybody,
> >>
> >> in my struts application I used to display a table of query 
> >> results on one page. Now the results are becoming way too much 
> >> to display them on one page. What is the best way to implement a 
> >> mulitpage result view?
> >> The problem is I have multi-step workflow and I don't want to 
> >> confuse the user too much.
> >>
> >> Best Regards,
> >>
> >> Peter
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > Antony Joseph
> > Available for consulting
> > http://www.logicden.com
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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



Re: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread Dakota Jack

On Fri, 18 Feb 2005 15:44:18 -0500, Rick Reumann 
> I'm wondering if you
> could do something like this in a Command...
> 
> public boolean execute(Context context) throws Exception{
> 
> context.setAttribute("someList",someList);
> ...
> }
> 
> and then from a JSP be able to somehow have reference to this context...
> 
> c:forEach items="${handleToConntext.emloyees}"
> 
> Can you do the above?


I would encourage people to look for an architecture that maximizes a
use of the Strategy Design Pattern:

public class DefaultSomeInterface implements SomeInterface {
private Helper helper;

public void setHelper(Helper helper) {
this.helper = helper;
}

public void doStuff() {
 //
 String value = helper.addOrSomething(args);
 //'
}
}


"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread Joe Germuska
Obviously it's tough not to be too academic when you're not actually 
cutting code, but the general tack I like to take is to wrap those 
dependencies in classes of my own.  So, in this case:

someDispatchMethod(...) {
(User)request.getSession().getAttribute("user");
you could instead have arranged to use a trivial subclass of 
ComposableRequestProcessor which overrides the "contextInstance" 
method to produce  RicksOwnActionContext which implements the 
ActionContext interface, but which also has this method:

public User getUser() {
  return (User) this.getSessionScope().get("user");
}
Is this a huge gain?  I don't know.  But it's possible.  And it means 
that you could test your class without needing to have a mock 
HttpServletRequest.

if ( user.isSomething() ) {
//call this business method
//if you get something odd back...
//we need to add some flag into scope
reuqest.setAttribute("something",whatever);
else {
  //do the usual
  //call business method
  //look at return and realize we need to set up the next
  //page we go to with something unique bc X condition was met
  //if something
 //so call some other business method to get me this List and pop
 request.setAttribute("neededList", list )
  //else maybe return from business was fine no need to set up request
  //leave
}
For these, I am moving towards defining simple beans which represent 
a use case scope and which, like the example above, provide 
typesafety and encapsulation.  So, instead of sticking two different 
things into the request under different keys, you'd put only one 
(this UseCaseBean), and it would manage the references to any of the 
things your case is likely to need.  (If it's a significant use case, 
then perhaps you'd keep it in session scope instead.)  Then, rather 
than having to do a whole lot of coordination so that everyone knows 
the right names (and sometimes scopes) of attributes, you just ensure 
that the one bean is in the right place at the right time, and 
everything else operates purely on a "need-to-know" basis.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
I don't think so. That's just a guess because I have not tried it. I use 
datagrid for display purposes only. For multi row input fields/buttons I use 
struts iterator tag.

- Original Message -
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Re: Displaying mulitpage results
Date: Sat, 19 Feb 2005 18:17:45 +0100

> 
> Hello Antony,
> 
> the datagrid-tags were exactly what I was looking for. The one 
> question which I have is how can I use Struts tags inside the 
> columns? I really need some buttons and input fields.
> 
> cheers,
> 
> Peter
> 
> 
> 
> Antony Joseph schrieb:
> > Check out the datagrid library at 
> > http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
> >
> > If all you are looking for is pagination, sorting and ordering 
> > from the database this is a good fit.  It does not have all the 
> > bells and whistles displaytag has, but is a simple and clean 
> > implementation.
> >
> > The biggest issue I have with the stock displaytag is, you have 
> > to stick the whole query result somewhere (generally in the users 
> > session) to do pagination. A very bad idea in my opinion.
> >
> > See https://workeffort.dev.java.net for an application usage 
> > example of datagrid library. Got tired of spamming you all with 
> > my company website, so I moved the application to java.net :-)
> >
> >
> > - Original Message -
> > From: "Peter Neu" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Subject: Displaying mulitpage results
> > Date: Sat, 19 Feb 2005 11:11:27 +0100
> >
> >
> >> Hello everybody,
> >>
> >> in my struts application I used to display a table of query 
> >> results on one page. Now the results are becoming way too much 
> >> to display them on
> >> one page. What is the best way to implement a mulitpage result view?
> >> The problem is I have multi-step workflow and I don't want to confuse
> >> the user too much.
> >>
> >> Best Regards,
> >>
> >> Peter
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > Antony Joseph
> > Available for consulting
> > http://www.logicden.com
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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



RE: Displaying mulitpage results

2005-02-19 Thread Néstor Boscán
Hi Antony

You can't use JSP tags inside the columns. You could use HTML buttons and
input fields with JSTL expressions.

Regards,

Néstor Boscán 

-Mensaje original-
De: Peter Neu [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 01:18 p.m.
Para: Struts Users Mailing List
Asunto: Re: Displaying mulitpage results

Hello Antony,

the datagrid-tags were exactly what I was looking for. The one question
which I have is how can I use Struts tags inside the columns? I really need
some buttons and input fields.

cheers,

Peter



Antony Joseph schrieb:
> Check out the datagrid library at 
> http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
> 
> If all you are looking for is pagination, sorting and ordering from the
database this is a good fit.  It does not have all the bells and whistles
displaytag has, but is a simple and clean implementation.
> 
> The biggest issue I have with the stock displaytag is, you have to stick
the whole query result somewhere (generally in the users session) to do
pagination. A very bad idea in my opinion.
> 
> See https://workeffort.dev.java.net for an application usage example 
> of datagrid library. Got tired of spamming you all with my company 
> website, so I moved the application to java.net :-)
> 
> 
> - Original Message -
> From: "Peter Neu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Subject: Displaying mulitpage results
> Date: Sat, 19 Feb 2005 11:11:27 +0100
> 
> 
>>Hello everybody,
>>
>>in my struts application I used to display a table of query results on 
>>one page. Now the results are becoming way too much to display them on 
>>one page. What is the best way to implement a mulitpage result view?
>>The problem is I have multi-step workflow and I don't want to confuse 
>>the user too much.
>>
>>Best Regards,
>>
>>Peter
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> Antony Joseph
> Available for consulting
> http://www.logicden.com
> 

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




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



Re: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread Rick Reumann
Joe Germuska wrote the following on 2/19/2005 11:56 AM:
The biggest gain I would 
see out of it would be a further step towards reducing dependencies on 
the HTTP API, which, despite your skepticism ;-) I think is a worthy 
goal in itself.
Oh trust me, I'm all for it reducing dependency on the HTTP API and I 
really like the introduction for CoR, 100%. That's why I really like the 
backing-bean concept of JSF. Without Struts having that, yes, I am 
skeptical that you'll end up being that far removed from the HTTP API.

The biggest 'ugliness' in my opinion that I don't like looking at in 
even my own Struts apps is the application logic stuff that gets put in 
my Actions. Somewhere down the line, something comes up and you end up 
having to call different business class methods based on ActionForm 
parameters or session/request parameters.

For example
someDispatchMethod(...) {
(User)request.getSession().getAttribute("user");
if ( user.isSomething() ) {
//call this business method
//if you get something odd back...
//we need to add some flag into scope
reuqest.setAttribute("something",whatever);
else {
  //do the usual
  //call business method
  //look at return and realize we need to set up the next
  //page we go to with something unique bc X condition was met
  //if something
 //so call some other business method to get me this List and pop
 request.setAttribute("neededList", list )
  //else maybe return from business was fine no need to set up request
  //leave
}
We can say we don't like this stuff above and I agree, it's ugly. But it 
does come up. Sometimes I push this kind of stuff off to an intermediate 
class but since this class still is totally struts and HTTP dependent it 
doesn't help me that much. (Again I think using a regular backing bean 
like JSF does goes a long way to making this all much cleaner, but I'm 
not willing to start using JSF full time for anything yet, since Struts 
does the job for me.)

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


Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Hello Antony,
the datagrid-tags were exactly what I was looking for. The one question 
which I have is how can I use Struts tags inside the columns? I really 
need some buttons and input fields.

cheers,
Peter

Antony Joseph schrieb:
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.
The biggest issue I have with the stock displaytag is, you have to stick the 
whole query result somewhere (generally in the users session) to do pagination. 
A very bad idea in my opinion.
See https://workeffort.dev.java.net for an application usage example of 
datagrid library. Got tired of spamming you all with my company website, so I 
moved the application to java.net :-)
- Original Message -
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

Hello everybody,
in my struts application I used to display a table of query results 
on one page. Now the results are becoming way too much to display 
them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.

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


Antony Joseph
Available for consulting
http://www.logicden.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [HELP] Understanding clearly about function of Nested Tags

2005-02-19 Thread Rick Reumann
Vamsee Kanakala wrote the following on 2/19/2005 1:04 AM:
Now create a web page that has one form that will display all the 
companies (from a companies collection), and the departments 
underneath, and the employees in each department AND you can edit the 
name at any level... you can edit department names, employee names, 
company names, all from one form and submit and have you intial 
collection of companies all properly updated.

Sorry for jutting in, but won't that be a terribly ugly way of doing edits?

ummm yes probably in this case it would be. The point though was to 
exagerate the benefits of how the nested tag is used. At least with the 
nested tag you 'could' accomplish the above quite easily.

As a side note, there are plenty of times when users demand to be able 
to modify multiple items on a single page and hit submit. For example 
think of a fantasy football league where you modify who is starting each 
week. You do it all on one page and hit submit. Plenty of times some of 
the items you are modifying happen to be objects that are nested within 
other objects.

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


Re: reality? CoR was Re: Struts or SpringFramework

2005-02-19 Thread Joe Germuska
At 11:49 PM -0500 2/18/05, Rick Reumann wrote:
Joe Germuska wrote the following on 2/18/2005 5:37 PM:
Well, I think you're blurring things here.  When I talk about 
"http-free" components, I'm talking about your business logic, not 
your controllers (actions or commands).
But for most developers, the business logic usually is already self 
contained somewhere else (hopefully we don't still don't see people 
coding JDBC from within their actions:). So for example, in an 
Action method someone might do:
In so far as it is, then they've already achieved the "http-free" 
components.  I'm afraid I don't believe that's as widespread as you 
do, although I'm not saying that no one has figured it out.

What I seem to be seeing in the examples of CoR and Struts is the 
removal of the Action class and instead using a chain of Commands.
Hm.  I don't think many people are really pushing this as "the 
future" or "best practice," but just pointing out that it's 
available.   At least, that's how I feel about it.

This is fine and I like the idea because it does allow for the 
concept of coding pre and post processors without IoC, but I still 
each of them having a lot of ties to the Servlet model. For example, 
maybe before leaving all of the typical CRUD events you need to call 
a populate Command that will populate your Request with some needed 
Lists for drop downs. No longer do you have to remember to make sure 
to include the "populate(..)" method call in each of your dispatch 
methods since you could just add that to the end of the chain.
Well, if we postulate (as ActionContext does) that any 
request/response model will have a few maps for scopes 
(request/session/application) and another for request parameters, 
then you've already insulated yourself against the servlet API.  Now, 
in your test class, you can just make a Map with the parameters you 
want to handle, without having to mess around with MockServletThis 
and MockServletThat.


I'm just wondering if someone could provide some more examples of 
possible real world benefits of the CoR used to replace Actions. I 
can see the standard chain looking like...

-somePreCommand (probably does your initially logging)
-someActionCommand (replaces the meat of your Action dispatch method)
-somePostCommand (maybe ensures some things are put into Req scope)
I'd be curious on seeing some other examples of the possible 
Commands you would likely see in a typical web app? Thanks again for 
any additional light.
I'm afraid we will still have to wait and see.  What I would suggest 
first would be replacing the kind of chaining people currently do 
with requestDispatcher.forward("/to/another/StrutsAction.do") -- say 
to have one command for processing a submitted form and another for 
prepping the page -- but I'm actually thinking I'd prefer to be able 
to hang Commands off of ActionForwards -- the net result would be the 
same, but you'd have less tangled configuration if you simply said 
"always execute this command 'on the way' to this forward" rather 
than having to repeat that configuration for each action mapping that 
might need that page preparation behavior.

Again, I think using commons-chain Commands (or Chains) in place of 
an Action have yet to prove their superiority.  The biggest gain I 
would see out of it would be a further step towards reducing 
dependencies on the HTTP API, which, despite your skepticism ;-) I 
think is a worthy goal in itself.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Struts validator woes : maxLength minLength

2005-02-19 Thread Erik Weber
A little-publicized feature (ahem) of Struts 1.1 Validator is that arg1 
has to be paired with minlength and arg2 has to be paired with 
maxlength, as I understand it (last I remember this was true). I don't 
know if this has been changed in more recent versions. You are pairing 
maxlength with arg1 in the example posted. Also, I think the var-name 
needs to be "maxlength", not "maxLength".

Erik
Shah, Akshay wrote:
Hii All,
I am using Struts 1.1, DynaValidatorForm.
The required validation is working fine.
The minlength and maxlength validations are not working for me. ie, wutever
be the case they always throw the error.
and I am completely clueless as to why is this happening. Any thoughts
Any thoughts?
Regards,
Akshay
My Source 

validator-rules.xml
 
validation.xml
   
   
  
  
 
 
 
maxLength
6
 
  
  
   

struts-en_US.xml

   
  


   
|
|
|
  



 


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

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


Re: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html

If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.

The biggest issue I have with the stock displaytag is, you have to stick the 
whole query result somewhere (generally in the users session) to do pagination. 
A very bad idea in my opinion.

See https://workeffort.dev.java.net for an application usage example of 
datagrid library. Got tired of spamming you all with my company website, so I 
moved the application to java.net :-)


- Original Message -
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

> 
> Hello everybody,
> 
> in my struts application I used to display a table of query results 
> on one page. Now the results are becoming way too much to display 
> them on
> one page. What is the best way to implement a mulitpage result view?
> The problem is I have multi-step workflow and I don't want to confuse
> the user too much.
> 
> Best Regards,
> 
> Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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



Remote struts module interaction

2005-02-19 Thread Ryan julius
Hi,
Our struts team have decided to separate the main java
/Struts application (/APP1) into 3 independant
modules, each deployed on its own host as follows: 
1- (/webApp1, tomcat1, host1, port1) =>
http://host1:port1/webApp1  (Main entry point :
/webApp1/MainMenu.do)
2- (/webApp2, tomcat2, host2, port2) =>
http://host2:port2/webApp2 (entry point :
/webApp1/login.do)
3- (/webApp3, tomcat3, host3, port3) =>
http://host3:port3/webApp3 (entry point :
/webApp1/StartApp3.do)

We would like to open the login page of /webApp2 from
an action of /webApp1 (for example by clicking the
Menu item "openWebApp2" from /webApp1/MainMenu.do) 

How can we do that?
How can one deploy struts modules on different Tomcat
Containers (by still maintaining interactions between
these modules).

Thanks In advance,

Best regards






Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

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



Re: Struts validator woes : maxLength minLength

2005-02-19 Thread Niall Pemberton
Try changing your 's to all lower case

maxlength

Niall
- Original Message - 
From: "Shah, Akshay" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, February 19, 2005 12:07 PM
Subject: Struts validator woes : maxLength minLength


> Hii All,
>
> I am using Struts 1.1, DynaValidatorForm.
> The required validation is working fine.
> The minlength and maxlength validations are not working for me. ie,
wutever
> be the case they always throw the error.
> and I am completely clueless as to why is this happening. Any thoughts
>
> Any thoughts?
>
> Regards,
> Akshay
>
> My Source
>
>
> validator-rules.xml
>classname="org.apache.struts.validator.FieldChecks"
>method="validateMaxLength"
>  methodParams="java.lang.Object,
>org.apache.commons.validator.ValidatorAction,
>org.apache.commons.validator.Field,
>org.apache.struts.action.ActionErrors,
>javax.servlet.http.HttpServletRequest"
>   depends=""
>   msg="errors.maxlength"/>
>
>
> validation.xml
> 
>
> 
>
>
> 
>  key="${var:maxLength}" resource="false"/>
> 
> maxLength
> 6
> 
>
>
> 
>
>
>
> struts-en_US.xml
> 
>
> 
>name="parentForm"
> type="org.apache.struts.validator.DynaValidatorForm">
>  type="java.lang.String"/>
> 
> 
> |
> |
> |
>name="parentForm"
> validate="true"
> scope="session"
>
> type="com.kandoo.profile.action.registerAction"
> input="/profile/pages/register.jsp">
>  path="/en_US/home/pages/home.jsp" contextRelative="true"/>
>  path="/en_US/profile/pages/childProfile.jsp" contextRelative="true"/>
>  path="/en_US/profile/pages/register.jsp" contextRelative="true"/>
> 
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Struts validator woes : maxLength minLength

2005-02-19 Thread Shah, Akshay
Hii All,

I am using Struts 1.1, DynaValidatorForm.
The required validation is working fine.
The minlength and maxlength validations are not working for me. ie, wutever
be the case they always throw the error.
and I am completely clueless as to why is this happening. Any thoughts

Any thoughts?

Regards,
Akshay

My Source 


validator-rules.xml
  


validation.xml



   
   
 
 
 
maxLength
6
 
   
   




struts-en_US.xml



  



|
|
|
  



 





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



Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
OK, your are right this is too much work. I tried to use the display tag 
in my application. But there is an error thrown:

Failed to load or instantiate TagExtraInfo class: 
org.displaytag.tags.TableTagExtraInfo

I used Tomcat 5.27 and the 1.2 display-tag. Did you encounter this
problem as well?
Regards,
Peter
Bing Qiao schrieb:
As far as I know, you may do the paging using . But
then you need to build the traversing and sorting functions youself.
Regards
bq
On Sat, 19 Feb 2005 11:51:13 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:

Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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

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


Re: Displaying mulitpage results

2005-02-19 Thread Bing Qiao
As far as I know, you may do the paging using . But
then you need to build the traversing and sorting functions youself.

Regards

bq

On Sat, 19 Feb 2005 11:51:13 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
> Ok, I will check this out. This a non-struts-project right?
> Is there also an option only using struts?
> 
> Bing Qiao schrieb:
> > hi Peter,
> >
> > Have you tried displaytag before?
> >
> >
> > On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
> >
> >>Hello everybody,
> >>
> >>in my struts application I used to display a table of query results on
> >>one page. Now the results are becoming way too much to display them on
> >>one page. What is the best way to implement a mulitpage result view?
> >>The problem is I have multi-step workflow and I don't want to confuse
> >>the user too much.
> >>
> >>Best Regards,
> >>
> >>Peter
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: Displaying mulitpage results

2005-02-19 Thread Bing Qiao
hi Peter,

Have you tried displaytag before?


On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
> Hello everybody,
> 
> in my struts application I used to display a table of query results on
> one page. Now the results are becoming way too much to display them on
> one page. What is the best way to implement a mulitpage result view?
> The problem is I have multi-step workflow and I don't want to confuse
> the user too much.
> 
> Best Regards,
> 
> Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Displaying mulitpage results

2005-02-19 Thread Peter Neu
Hello everybody,
in my struts application I used to display a table of query results on 
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.

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