Re: Managing code between Action Class and JSP.

2010-09-11 Thread Chris Mawata
On 9/10/2010 11:12 AM, Anjib Mulepati wrote: What about doing AJAX call and get result in progression? Isn't this will be efficient way? Having said that I am trying to find the way to work AJAX with Struts1 there is no clear way to do that even though AJAX is just a technology. Do anyone h

Re: Managing code between Action Class and JSP.

2010-09-10 Thread Dave Newton
Using Ajax with struts 1 is no different than with anything else. Dave On Sep 10, 2010 11:13 AM, "Anjib Mulepati" wrote: > What about doing AJAX call and get result in progression? Isn't this > will be efficient way? > > Having said that I am trying to find the way to work AJAX with Struts1 > th

Re: Managing code between Action Class and JSP.

2010-09-10 Thread Paweł Wielgus
Hi all, the question is if You want to show thousands of records on one page to the user, if yes, thent You need to put them into request or into form, if no then in action put as much as You need into request or form. Best greetings, Paweł Wielgus. 2010/9/10 Anjib Mulepati : > One more query

RE: Managing code between Action Class and JSP.

2010-09-10 Thread CRANFORD, CHRIS
As others indicated, it's a matter of using the Struts/JSTL tags. The biggest difference between Struts1 and what what is posted below for Struts2 is how you pass the data to the JSP in my opinion. In Struts1, you would still do as you had in your original post: reque

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
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 do all processing on JSP with scriptlets. What would be t

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dave Newton
The scriptlets should be replaced by JSTL/custom tags/etc. Anything that can't be trivially implemented using tags should probably happen on the server side. Other than that, I'm not sure what kind of information you're looking for--maybe you could be more specific if you need further help. HTH,