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
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
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
> 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
.
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.
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.
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
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
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
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
t;
>> resultList = delegateObject.getResult();
>> request.setAttribute("result",resultList);
>>
>> JSP
>> <%
>> result = request.getAttribute("result");
>> for(loop){
>> //Loop to result and display using h
//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
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
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
14 matches
Mail list logo