Re: Managing code between Action Class and JSP.

2010-09-11 Thread Chris Mawata
l keep your JSP pages clean and much easier to read. HTH, Chris -Original Message- From: Anjib [mailto:anji...@hotmail.com] Sent: Thursday, September 09, 2010 6:27 PM To: Struts Users Mailing List Subject: Managing code between Action Class and JSP. Yes I am using Stru

Re: Managing code between Action Class and JSP.

2010-09-10 Thread Dave Newton
e data to the JSP in my >>>> opinion. >>>> >>>> In Struts1, you would still do as you had in your original >>>> post: >>>> >>>> request.setAttribute("resultObjects", resultList); >>>> >>>> But instea

Managing code between Action Class and JSP.

2010-09-10 Thread Anjib Mulepati
JSP pages clean and much easier to read. HTH, Chris -Original Message- From: Anjib [mailto:anji...@hotmail.com] Sent: Thursday, September 09, 2010 6:27 PM To: Struts Users Mailing List Subject: Managing code between Action Class and JSP. Yes I am using Stru

Re: Managing code between Action Class and JSP.

2010-09-10 Thread Paweł Wielgus
> But instead of using the<% ... %>  JSP tags, you would much rather >> using the JSTL, Bean, Logic, Html tag libraries accordingly.  They >> will keep your JSP pages clean and much easier to read. >> >> HTH, >> Chris >> >> >>> &g

Managing code between Action Class and JSP.

2010-09-10 Thread Anjib Mulepati
. HTH, Chris -Original Message- From: Anjib [mailto:anji...@hotmail.com] Sent: Thursday, September 09, 2010 6:27 PM To: Struts Users Mailing List Subject: Managing code between Action Class and JSP. Yes I am using Struts1.

RE: Managing code between Action Class and JSP.

2010-09-10 Thread CRANFORD, CHRIS
ssage- > From: Anjib [mailto:anji...@hotmail.com] > Sent: Thursday, September 09, 2010 6:27 PM > To: Struts Users Mailing List > Subject: Managing code between Action Class and JSP. > > > Yes I am using Struts1.

Managing code between Action Class and JSP.

2010-09-09 Thread Anjib
Yes I am using Struts1. On 9/9/2010 5:10 PM, Greg Lindholm wrote: I "assumed" from his example that he was using Strut1. Maybe he could tell us so we don't have to guess and give wrong info. On Thu, Sep 9, 2010 at 4:53 PM, Dale Newfield wrote: On 9/9/10 4:12 PM, anjibman wrote: What I am

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Greg Lindholm
I "assumed" from his example that he was using Strut1. Maybe he could tell us so we don't have to guess and give wrong info. On Thu, Sep 9, 2010 at 4:53 PM, Dale Newfield wrote: > On 9/9/10 4:12 PM, anjibman wrote: >> >> What I am really struggling in is I have processing result in the form of

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dale Newfield
On 9/9/10 4:12 PM, anjibman wrote: What I am really struggling in is I have processing result in the form of List of objects. What would be the best practice to send such list to JSP ready to grab. Best practice is to store it inside the action, and add a getter to your action that returns

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dave Newton
On Thu, Sep 9, 2010 at 4:12 PM, anjibman wrote: > I will try to put in simple way but this may not be complete picture. > > What I am really struggling in is I have processing result in the form of > List of objects. Now if I send this list of objects through request object > to the JSP I have to

Re: Managing code between Action Class and JSP.

2010-09-09 Thread anjibman
t; >> resultList = delegateObject.getResult(); >> request.setAttribute("result",resultList); >> >> JSP >> <% >>   result = request.getAttribute("result"); >>   for(loop){ >>     //Loop to result and display using h

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dave Newton
  //e.g. <%= someField %> >   } > %> > > Thanks in advance > -- > View this message in context: > http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29648167.html > Sent from the Struts - User mailing list archive at Nabble.com. > &g

Managing code between Action Class and JSP.

2010-09-09 Thread anjibman
tAttribute("result"); for(loop){ //Loop to result and display using html tags. //e.g. <%= someField %> } %> Thanks in advance -- View this message in context: http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648186p29648186.html Sent from t

Managing code between Action Class and JSP.

2010-09-09 Thread anjibman
tAttribute("result"); for(loop){ //Loop to result and display using html tags. //e.g. <%= someField %> } %> Thanks in advance -- View this message in context: http://old.nabble.com/Managing-code-between-Action-Class-and-JSP.-tp29648167p29648167.html Sent from t