Re: Difference between 1.x and 2.x

2010-12-23 Thread Maurizio Cucchiara
Have you already take a look at this? http://struts.apache.org/2.0.14/docs/comparing-struts-1-and-2.html Maurizio Cucchiara On Dec 24, 2010 6:31 AM, "ashish chawre" wrote: Hi All, Is there any specific documentation available which demonstrate this difference? Thanks! -- Ashish

Difference between 1.x and 2.x

2010-12-23 Thread ashish chawre
Hi All, Is there any specific documentation available which demonstrate this difference? Thanks! -- Ashish

Re: web application response time is too large.

2010-12-23 Thread Dale Newfield
On 12/23/10 1:13 AM, manu.francis.mat...@accenture.com wrote: Thank you very much for explaining so clearly. One suggestion I don't think anyone here offered is running your application in a profiler to see where it's spending its time. I've found the one in NetBeans to be pretty good, and I

S2: Populate with List

2010-12-23 Thread Oscar
Hi to all, right now i'm working with Struts 2 application and Hibernate JPA. Hibernate let developers to run native queries, but the results are returned in form of List. So, i'm getting one of these lists in my action and i want to use it to populate , but i don't know how it works when i use a

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Brian Thompson
On Thu, Dec 23, 2010 at 1:12 PM, Dave Newton wrote: > On Thu, Dec 23, 2010 at 12:29 PM, Brian Thompson wrote: > > > How could you tell he was using Struts 1? > > > > Because of these: > > > > > > > Besides the taglib prefix (which is a /strong/ hint, but not conclusive), > there's no tag in S2

Re: regex in if tag?

2010-12-23 Thread Dave Newton
Yep, the entire expression needs to be in the OGNL escape. Although I'd just use single and double quotes to avoid the escapes. Dave On Thu, Dec 23, 2010 at 12:53 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Try this: > > > 2010/12/23 Colin Freas : > > I'm trying to use a re

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
On Thu, Dec 23, 2010 at 12:29 PM, Brian Thompson wrote: > How could you tell he was using Struts 1? > Because of these: > > Besides the taglib prefix (which is a /strong/ hint, but not conclusive), there's no tag in S2. http://struts.apache.org/2.x/docs/tag-reference.html Furthermore, the

Re: regex in if tag?

2010-12-23 Thread Maurizio Cucchiara
Try this: 2010/12/23 Colin Freas : > I'm trying to use a regex in the test of an if tag.  The object in the test > is a String, so I'm trying this, and it isn't working: > > > Is this possible?  Is there another way to do this? > -- Maurizio Cucchiara ---

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Maurizio Cucchiara
As far as I know this behavior was fixed with the patch sent by Lukasz (see [1] and also [2]). I can't figure out what happened, as far I can see in subversion logs [3] the patch was submitted three months ago, though source code of last struts2 version contains the old version of ChainInterceptor.

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Brian Thompson
How could you tell he was using Struts 1? -Brian On Thu, Dec 23, 2010 at 8:20 AM, Dave Newton wrote: > No no, I was asking why you're learning Struts 1 when there are a number of > substantially better options available in today's modern era. > > Dave > > On Thu, Dec 23, 2010 at 8:51 AM, Amit

regex in if tag?

2010-12-23 Thread Colin Freas
I'm trying to use a regex in the test of an if tag. The object in the test is a String, so I'm trying this, and it isn't working: Is this possible? Is there another way to do this?

Re: [ANN] Struts 2.2.1.1 GA release available

2010-12-23 Thread Burton Rhodes
Looks like the "Release Notes" link for version 2.2.1.1 is broken on main page: http://struts.apache.org/download.cgi#struts2211 Currently: http://struts.apache.org/2.2.1.1/version-notes-2211.html Should be: http://struts.apache.org/2.2.1.1/docs/version-notes-2211.html On Wed, Dec 22, 2010 at 1:

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
No no, I was asking why you're learning Struts 1 when there are a number of substantially better options available in today's modern era. Dave On Thu, Dec 23, 2010 at 8:51 AM, Amit Oberoi wrote: > Dave, > > I have just started few days back and am still picking it up. The only > reference I have

prompting me to download the jsp file

2010-12-23 Thread Amit Oberoi
Hi, Probably I'll top the list for seeking dumb advices L I had my head scratched enough on this but couldn't get through. I am using the tag as shown below to navigate to a page called register.jsp; however when I click the link my browser prompts me to download the jsp page (surprisingly

RE: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Amit Oberoi
Dave, I have just started few days back and am still picking it up. The only reference I have is the tips and tricks available on different forums and that is where I got this information. Do you have a better suggestion; or at least you can point me to a link where I can go through few exampl

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Dave Newton
On Thu, Dec 23, 2010 at 7:30 AM, Pro1712 wrote: > I use this action: > ignoreContextParams="true"> > > > /> > > > ActionLinksAction has this method: > public void setActionLinks(final LinkedHashMap actionLinks) > { >actionLinks_ = actionLinks; > } > > This should

Re: which versions of struts 1.x are still being maintained?

2010-12-23 Thread Dave Newton
I haven't seen anything go into 1.1 or 1.2 for a pretty long time. Upgrading from 1.1 to 1.2 was usually a pretty good idea, and usually easy. I'm not sure how much effort we'd put into fixing something in 1.1. I'm a little skeptical we'd put a lot of effort into 1.2, either, but it'd depend on th

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
Is there a reason you're using such old, clunky technology to write a new app? Dave On Dec 23, 2010 5:35 AM, "Amit Oberoi" wrote: > Thanks Paul. > > I finally got to the tag and has added the getStreamNames() function o the Action Form. I am sure this should work and would try as soon as I'm don

Re: Invoking Javascript function from Struts 1.3

2010-12-23 Thread Dave Newton
Right, and I said don't use a struts link tag :) Dave On Dec 23, 2010 5:22 AM, "Dennis Atkinson" wrote: > Thanks to the repliers! > > Tom, your solution is perfect. Thank you! > > Dave, I might have been unclear as to what I was looking for. I wasn't specifically looking to get the tag working

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Pro1712
Hi! I'm updating from Struts 2.1.8.1 to 2.2.1.1. I use this action: ActionLinksAction has this method: public void setActionLinks(final LinkedHashMap actionLinks) { actionLinks_ = actionLinks; } This should be filled from the context. The page from which th

RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Amit Oberoi
Thanks Paul. I finally got to the tag and has added the getStreamNames() function o the Action Form. I am sure this should work and would try as soon as I'm done fixing the current issues with my code. Amit Oberoi -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Se

Re: Invoking Javascript function from Struts 1.3

2010-12-23 Thread Dennis Atkinson
Thanks to the repliers! Tom, your solution is perfect.  Thank you! Dave, I might have been unclear as to what I was looking for.  I wasn't specifically looking to get the tag working; I was just looking for a solution, with whatever would possibly help. Dennis

Re: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Paweł Wielgus
Hi Armit, put this logic into getStreamNames() method located in your Action that leads to your jsp. Best greetings, Paweł Wielgus. 2010/12/23 Amit Oberoi : > Greeting All, > > > > I am new to Struts and developing my first web application. I have stuck > into a decisive loop where-in I'm confus

which versions of struts 1.x are still being maintained?

2010-12-23 Thread chris snow
I am working on various legacy software projects that have various versions of struts 1.x. (mostly 1.1.x and 1.2.x) I need to ensure I am only using versions that are still maintained for security fixes. Which 1.x versions are still being maintained for security fixes? It's not possible to move