Re: call javascript from an action class

2008-12-18 Thread Al Sutton
Actions do not control the users browser and therefore can't create popups. JSP Pages are sent to the browser which can contain Javascript which can do what you want. Follow Nils-H's links to see how to do create a pop-up in a page, and the Struts2 tutorials

Re: IRC channel

2008-12-17 Thread Al Sutton
It's called trying to get you focused on the job ;). Al. Dave Newton wrote: --- On Wed, 12/17/08, Musachy Barroso wrote: a few of us hang in freenode #struts Today I discovered that my current gig (done Friday) blocks IRC. They block a lot of things. I don't like that. Dave

Re: s:if test= how to find out the NULL value?

2008-10-20 Thread Al Sutton
is appreciated. -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 static content

2008-10-03 Thread Al Sutton
on the end of the url's, so I set struts.action.extension='' (empty string) -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Performance and High CPU utilization

2008-09-19 Thread Al Sutton
% 59.57% 33 301953 java.lang.Object.hashCode Al Sutton wrote: Do the ideas listed at http://java.sun.com/developer/technicalArticles/Programming/HPROF.html shed any light on it? sajanv007 wrote: I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2

Re: Performance and High CPU utilization

2008-09-18 Thread Al Sutton
Replace your freemarker lib with 2.3.13 or later. Prior releases had a concurrency performance issue. Al. sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue . Jim Kiley

Re: Performance and High CPU utilization

2008-09-18 Thread Al Sutton
Do the ideas listed at http://java.sun.com/developer/technicalArticles/Programming/HPROF.html shed any light on it? sajanv007 wrote: I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2 with Javaassist . Al Sutton wrote: Replace your freemarker lib with 2.3.13

Re: on the chrome bandwagon

2008-09-03 Thread Al Sutton
The only problem I have had is with the EULA that lets Google use your usernames and passwords to gain access to websites they otherwise couldn't index. Quote; By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and

Re: REST Showcase 2.1.2

2008-09-02 Thread Al Sutton
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Struts 2 Hibernate Examples?

2008-08-30 Thread Al Sutton
There's an article in the wiki at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html Al. Andrew Myers wrote: Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
Define expesive... Do you mean expensive?, if so expensive in what terms; memory, speed, required goat sacrifices? Al. Milan Milanovic wrote: toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: --- On Thu, 8/28/08, Al Sutton wrote: C... I love a puzzle

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If been using toArray recently so it's been kind of a necessity. Have you found a non-goat sacrificing optimisation? Jim Kiley wrote: Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton [EMAIL PROTECTED] wrote: Define expesive... Do you mean expensive?, if so

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
And everything always has a price, even if you don't what it costs it may still be the only way to get what you want. georz1 wrote: Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic [EMAIL

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If I had a solution I would give it to you faster than that :). Maybe you need to approach the problem from a different angle (i.e. display the data differently), or do some reworking in the action to put the data in a more friendly format. Milan Milanovic wrote: If you had solution, I'm

Re: Help Jobs Search Engine Script

2008-08-26 Thread Al Sutton
Mattews -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help Jobs Search Engine Script

2008-08-26 Thread Al Sutton
, 8/26/08, Al Sutton [EMAIL PROTECTED] wrote: From: Al Sutton [EMAIL PROTECTED] Subject: Re: Help Jobs Search Engine Script To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, August 26, 2008, 6:25 AM Advice : Find an appropriate mailing list to send this to. Can someone block

Re: [OT] Re: Add yourself to mobchannel.com

2008-08-21 Thread Al Sutton
item if I click it before the front page has completed rendering.) Dave [1] http://technorati.com/about/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W

Re: [OT] Re: Add yourself to mobchannel.com

2008-08-21 Thread Al Sutton
at 12:41 AM, Al Sutton [EMAIL PROTECTED] wrote: Wonder if it tracks the Mobchannel are pants because they don't track anything blogs? Has someone booted this spammer from the list? Al. Dave Newton wrote: --- On Thu, 8/21/08, Arun wrote: I am running the site (mobchannel.com

[OT] Heads up for those using Tomcat in production.

2008-08-20 Thread Al Sutton
http://www.kb.cert.org/vuls/id/343355 Off topic I know, but I suspect that most of us on here have a tomcat server in production somewhere. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Validate associate Map

2008-08-17 Thread Al Sutton
to the end of a book! I would slam an aBook in my iPod for the commute. For a great example of what I mean by attention span disorder, check this http://www.coudal.com/regrets.php out. On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Al Sutton wrote

Re: Struts2 Application Structure

2008-08-16 Thread Al Sutton
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Struts2 Application Structure

2008-08-16 Thread Al Sutton
Roger wrote: Any link http://www.host.com/MyApplication passes directly to Struts 2. Only if you're using a strange configuration that says it should. Otherwise http://www.host.com/MyApplication/blah.jsp will be processed in the same way as any other jsp, and

Re: Validate associate Map

2008-08-16 Thread Al Sutton
lol... I've just had a mental image of Dave reading the XML examples. Some things just don't work in audio. Al. [EMAIL PROTECTED] wrote: Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton [EMAIL PROTECTED] wrote:

Re: Changing the way Context Root and Namespaces are rendered in URLS.

2008-08-12 Thread Al Sutton
What you're talking about is an application server issue. An easy solution would be to name your war files/contexts to be your app name and then use a namespace of . Al. Pandolf wrote: Hi everyone, I'm using Struts 2 to author Facebook applications and I have a bit of a problem. When using

Re: Server Side caching of .action(s)

2008-08-07 Thread Al Sutton
don't like. Can you suggest me some good open source alternatives to analyze? Thanks -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: struts 2 login issue

2008-08-06 Thread Al Sutton
negotiating a connection. Please try again. (button Try Again) The URL in my address bar says: http://localhost:8080/myapp/j_security_check Any ideas anyone? Cheers -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
, reading/saving its child objects, some links to other objects, and all of that must be placed during user input, like wizard, so it's hard to separate code in two classes, because I will have a lot of duplicate code (attributes). -- Regards, Milan Al Sutton wrote: You don't need to have all your

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
load is for which class when defining a link ? -- Regards, Milan Al Sutton wrote: More like; package name=somePackage namespace=/myNamespace extends=struts-default action name=load method=load class=FirstObjectManager.../action action name=save method=save class

Re: [S2] Refactoring Action classes

2008-08-04 Thread Al Sutton
(not redirect) and I now see my variables! I don't have any idea why it doesn't work with redirect action, but I'm SURE that there is some problem. I have one question regarding refactoring action classes, is it much to have 20 actions per one namespace/action class ? -- Regards, Milan -- -- Al Sutton

Re: OT: Asynchronous queue between two web applications

2008-08-01 Thread Al Sutton
Wow, a problem that doesn't mention struts anywhere and isn't even about web frameworks, there's OT and way-OT. I think you need to find a list more in tune with your problem. Al. Janesh Subrahmanyan wrote: Hi, We have two applications and need to periodically synchronize data from one to

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
what's necessary? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
in session any more! It's seems like that redirect action doesn't pass or set session to another action class. -- Regards, Milan Al Sutton wrote: Dave, Repeat after me; It's Friday. It's nearly the weekend. And if they don't give me what I want I'm going to take my toys away and stop

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
5000+k lines of code, should I send them here ? -- Milan Al Sutton wrote: Just making sure hurricane Dave doesn't blow through the list. If you ask for help, and someone offers, give them what they ask for. They can always ask for a translation of bits that may be critical, but unless you've

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
why it is removed after just one click. -- Regards, Milan Al Sutton wrote: Answer : No Only your code and your site design will affect the session variables you have set and whether they are accessible. Milan Milanovic wrote: Hi Piero, O.K. Basically I'm just asking one simple

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Don't worry, I've just written a rant about not relying on dirty reads and had to re-word it to include the footnote This discussion is about the SQL JDBC Drivers and is not about porn. Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Thhhaaa she blows

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Eclipse cry. It makes *me* cry. Kinda like this thread. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
So you'd choose JDBC driver source code over porn and you called me wierd :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Don't worry, I've just written a rant about not relying on dirty reads and had to re-word it to include the footnote This discussion

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
slighly, for which he got glowing praise by the management). Al. Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: It splits your code into more manageable chunks, [...] You're right, it does split *my* code. Unfortunately (well... fortunately, really) that code

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Tonight on the Struts 2 comedy channel; How your employer is ensuring you enjoy your day by only filtering out the boring websites to avoid you having to waste time checking them out :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton wrote: So you'd choose JDBC driver source code over

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
be positive that Struts 2.0.11.1 doesn't do anything with session, i.e., session remains intact and session is set for folowing action in case of redirect action ? -- Regards, Milan Al Sutton wrote: Milan, Please read up on how sessions work. They are NOT passed via URLs unless you have cookies

Re: sorting problem with display tag: please help

2008-07-25 Thread Al Sutton
What did the display tag people say when you posted on their lists at http://displaytag.sourceforge.net/11/mail-lists.html ? Varun Deep wrote: Hi I am using the display tag for displaying the employee names . I want to short the names of the employee. Following is the code that is in .jsp

Re: [Friday][OT] Re: sorting problem with display tag: please help

2008-07-25 Thread Al Sutton
You think he got the message?, or are you expecting another message tomorrow? Dave Newton wrote: --- On Fri, 7/25/08, Al Sutton [EMAIL PROTECTED] wrote: What did the display tag people say when you posted on their lists [...] I see what you did there. Dave

Re: similar comment

2008-07-25 Thread Al Sutton
So can you develop one using Struts in less than a week?.. Bet now! (and you don't have to use displaytag if you don't want to) Dave Newton wrote: --- On Fri, 7/25/08, Al Sutton [EMAIL PROTECTED] wrote: You think he got the message?, or are you expecting another message tomorrow

Re: sorting problem with display tag: please help

2008-07-24 Thread Al Sutton
As there are no struts tags you should post this to the displaytag list for a better response; http://displaytag.sourceforge.net/11/mail-lists.html Varun Deep wrote: Hi I am using the display tag for displaying the employee names . I want to short the names of the employee. Following is

Re: Struts 2 perfromance among the worst???

2008-07-23 Thread Al Sutton
I think page 24 says it all when it has The results may not be reflective of real world implementations? Beyond that; - There is no comparison of functionality provided by the frameworks. - Did the benchmarked follow the performance tuning guidelines? - Did they upgrade to freemarker 2.3.13

Re: struts menu problem

2008-07-16 Thread Al Sutton
Have you looked at using the zindex property in your stylesheet? (http://www.w3schools.com/Css/pr_pos_z-index.asp) nauke. wrote: Hi, Thanks for replying. It occurs in firefox too. the customer for this will predominantly use IE so will have to get it working for IE in the end anyway :( :( :(

Re: Struts1 and Struts2 mailing lists separation ?

2008-07-08 Thread Al Sutton
web forums are a nightmare for the dynamics shown by this list. There are a core few who respond to many of the questions asked, and there is a lot of traffic, which means with a web forum those few would need to either check for new posts every so often (which is a chore), or receive an

Re: Anyone want to show me up...

2008-07-04 Thread Al Sutton
[EMAIL PROTECTED]: #request is just a map with the request attributes. If you want the real request object: #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] there are probably other 300 ways of getting the same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL

Anyone want to show me up...

2008-07-03 Thread Al Sutton
I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? Al.

Re: Anyone want to show me up...

2008-07-03 Thread Al Sutton
the same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL PROTECTED] wrote: I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out

Re: Where are the @Result,@Results annotations in Struts 2.1.2

2008-06-30 Thread Al Sutton
http://struts.apache.org/2.1.2/docs/result-annotation.html Oren Livne wrote: Dear All, I am trying to use @Result and @Results with struts 2.1.2 (configured via maven dependencies). I can't find it anywhere. Has it been moved or deprecated? Is there a link with more info on that? Thanks,

Re: [s2] Whats the most strutsy way of doing....

2008-06-27 Thread Al Sutton
information, all of which will be serializable objects (Long, String, etc.) Thanks again, Al. Jeromy Evans wrote: Al Sutton wrote: Dave, I'm completely agree it's a great idea and useful thing to do, but the problem is what to put into the cookie and how to map it to the user. My

[s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
... a remember me tick box on a login page? If the user ticks the box they're don't have to log in again if they visit the site again, if they don't click it the login times out in the same manner as a normal session. Remember; I'm ideally looking for a method that stays within the framwork

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
Acegi is a bit of overkill for what I need. It's a simple app, so I'm looking for a simple struts based solution or failing that someone to say it can't be done :(. Al. Lukasz Lenart wrote: Hi 2008/6/26 Al Sutton [EMAIL PROTECTED]: ... a remember me tick box on a login page

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
... and, with dependancies, it comes to over 1MB in size, which for me is too much bloat just for one small feature. If needs be I'll do something with crypto a cookie which will fit into a few K, I just wondered if there was an easier method. Lukasz Lenart wrote: 2008/6/26 Al Sutton

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. That way it avoids trying to maintain sync between the user

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
of cookie stealing. musachy On Thu, Jun 26, 2008 at 10:32 AM, Al Sutton [EMAIL PROTECTED] wrote: I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
extract the user ID and a check that the password hasn't changed from the cookie itself by decrypting the cookie data. Al. Lukasz Lenart wrote: Hi, 2008/6/26 Al Sutton [EMAIL PROTECTED]: I was thinking more along the lines of encrypting the userId and password hash using AES, store the value

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
something like that for our new projects. Dave --- On Thu, 6/26/08, Al Sutton [EMAIL PROTECTED] wrote: From: Al Sutton [EMAIL PROTECTED] Subject: Re: [s2] Whats the most strutsy way of doing To: Struts Users Mailing List user@struts.apache.org Date: Thursday, June 26, 2008, 10:32 AM I

Re: [struts] Slow performance with Struts2

2008-06-26 Thread Al Sutton
If your benchmark uses multiple threads throw in a freemarker upgrade to 2.3.13 and have another spin :). One thing you might want to bear in mind is that if you're using a persistance framework there maybe some back end fetching taking place between a.b.c and a.b.c.d. Even though you write

Re: minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread Al Sutton
Scott, Most customers don't want to know about or get involved in installing an appserver. The app my company produces has been sold for over 4 years, is purely web based, and started live as a JSP/.Servlet combo, and I beleive that less than 20% of sales have gone to companies who know what

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Al Sutton
Just to add to this, S2 is compliant with J2EE specs, therefore if the container has problems clusting a S2 application, it's not S2 that's at fault, it's the clustering capability of the appserver. My guess is that youy need to look at the information replication strategy employed by your

Re: [OT] What slows you down?

2008-06-20 Thread Al Sutton
Web Design :). I can code it in a few days, but getting it to look pretty so that users don't complain, thats a b**ch. Seriously though, one of the things we could do is a something link Suns blueprints or a cookbook of code recepies where we have pages which show and explain the code

Re: Struts Welcome page

2008-06-19 Thread Al Sutton
Most of the work is being put into Struts 2 now. If you'd like to start fixing the bugs listed against 1.3.9 feel free. Al. ratm wrote: Struts 1.3.9 beta has been released on 01 Aug 2007 (almost one year !) When the Struts 1.3.9 GA release will be done ? Why in struts jar name there no beta

Re: REST plugin URL syntax

2008-06-17 Thread Al Sutton
rectify this but to say that this approach just isn't REST is simply not true. Can anybody suggest where I would start in an attempt to implement this hierarchical model? Or do I need to start looking for a replacement for the Struts2 REST plugin? Thanks for your time. Mike 2008/6/17 Al Sutton [EMAIL

Re: What can you do with S2?

2008-06-17 Thread Al Sutton
How about a Jacking Struts Day? Dave Newton wrote: --- On Mon, 6/16/08, dusty [EMAIL PROTECTED] wrote: For sure, but since we are Java developers with a captial J, then we can call it something other than hackfest which suits the script kitties well. ;-) No thanks; as a founding

Re: Struts 2 hibernate session-per-request

2008-06-17 Thread Al Sutton
I think he's trying to do whats at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html without using the great google first :). Al. Laurie Harper wrote: Márcio Gurgel wrote: Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my

Re: (!) Simple for-next loops using s:iterator..., was: Re: [S2] using s:iterator for a sequence of integers

2008-06-17 Thread Al Sutton
+100 for the for tag. It'll mean I don't end up using displaytag and including the jar just to show simple paged lists. Musachy Barroso wrote: Nice, and confusing :) //I think we should create a for tag musachy On Tue, Jun 17, 2008 at 9:38 AM, Dave Newton [EMAIL PROTECTED] wrote: From

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync with REST standards (see http://en.wikipedia.org/wiki/Representational_State_Transfer for a more details on REST). If you want to do something with multiple IDs my suggestion would be URLs along

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
that says such URLs are un-RESTful. And a Struts apps should certainly be able to support them, even if it requires writing a little more code (e.g. a custom action mapper?) L. Al Sutton wrote: Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
I think it's more a case of Tomcat doesn't pass the jsessionid down to the filters webapp, whereas jetty does. The jsessionid is still appended onto the URL in the browser, but with Tomcat the app works, with Jetty the error occurs. Al. Wendy Smoak wrote: On Sat, Jun 14, 2008 at 3:48 PM,

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
It's been pointed out to me that people couldn't see the full demo of lifefeed.info because registration was broken, but it's now fixed. Al. For those that are interested; OpenSuSE installs gnu-javamail when you install the tomcat55 package and symlinks to gnu-javamail from common-lib. This

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
. Al. Musachy Barroso wrote: I haven't looked into it yet, but I don't like how it uses a colon (;jsessionid=xwy), which might be valid, not sure. For the moment I am using glassfish, which starts really quick: https://maven-glassfish-plugin.dev.java.net/ musachy On 6/14/08, Al Sutton [EMAIL

Re: What can you do with S2?

2008-06-14 Thread Al Sutton
the same problem, I think the REST plugin doesn't handle that case very well. musachy On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton [EMAIL PROTECTED] wrote: OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al

Re: Looking for some more troubleshooting resources

2008-06-14 Thread Al Sutton
Can you post the HTML for your page. Ta, Al. Karr, David wrote: I'm starting to do some simple experiments with Struts2 (those who know me would wonder what took me so long :) ). I have one blocking problem, but I would more appreciate hints on how to diagnose particular kinds of problems,

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
If you're using a persistence framework (Hibernate, JPA, etc.) then No. During after the first request the EntityManager will be closed, so when you access it during the second request updates will not be propagated to the database. Al. Milan Milanovic wrote: But could I pass object

What can you do with S2?

2008-06-13 Thread Al Sutton
Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves

[OT] Re: [JPA more than Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
object from database, isn't it ? When I read for example Fruit (id=1) from database, change it and try to save it will know with new EntityManager instance to save it because of id number ? -- Thx, Milan Al Sutton wrote: If you're using a persistence framework (Hibernate, JPA, etc

Re: What can you do with S2?

2008-06-13 Thread Al Sutton
OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release

Re: What can you do with S2?

2008-06-13 Thread Al Sutton
OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al Sutton wrote: OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin

[OT]Re: Struts 2 s:select question

2008-06-12 Thread Al Sutton
How many people think him sending out of office emails to the list is enough of an emergency to call his cell phone as he's given us the number :)? Al. [EMAIL PROTECTED] wrote: I will be out of the office, and mostly without email access, until June 17. Please contact the One World office,

Re: [Struts 2] webapp on internet, clients behind a proxy -- session clash

2008-06-06 Thread Al Sutton
Not in your struts app. I've seen this in a production situation and it's usually a bug in the proxy. If you can try setting up a NAT environment without the proxy and then with the proxy, if the bug only occurs when the proxy is in place then you know where the problem is. Al. P.S. The

Re: welcome file on localhost

2008-06-03 Thread Al Sutton
It's a Jetty thing, not something related to localhost. See http://sourceforge.net/mailarchive/message.php?msg_name=B285FB88-985D-4DE1-A051-4F170C1D5238%40adjective.org for an idea of how to do it. Al. Stetze2008 wrote: hi, when opening http://localhost:8080/myApplication/ on my local

Re: struts + freemarker version

2008-05-23 Thread Al Sutton
I've used S2.0.11 and Freemarker 2.3.13 without any problems. The only reason it's not in the latest builds is that it was released after the latest S2 builds and FM2.3.13 hasn't been put into the neccessary place to support an automated build. Al. Kirti wrote: we are currently using struts

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Al Sutton
You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective of what you do in your webapp. If the file takes so long to generate is there any reason why your not pre-generating it, caching it and serving it as a static file? Al. - Original

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Al Sutton
on with their interaction with the webapp. Once the generation is complete the user is emailed a link where they can download the generated file. All this would, of course, need the necessary security put over the top to ensure users didn't download each others files. Al. Laurie Harper wrote: Al

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Al Sutton
One class with different action methods is fine, One class with a single execute method that's recalled is bad. I think Milan is saying the former, if he is saying the latter then it's not good due to the extra instructions needed to determine where you're going from and where you're going

Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml

2008-04-28 Thread Al Sutton
I'm pretty sure it's an Windows/Eclipse thing as I see the same thing with or without devMode set to true on Windows with JDK 1.5.0_14. Struts has very little control over how it is deployed into the webapp container (tomcat in your case), so you might want to check in with the eclipse guys

Re: Using DOJO in Struts2

2008-04-22 Thread Al Sutton
Just to add my vote to the YUI loving camp. I started to port the S2 dojo plugin to dojo 1.x, but after playing with YUI I've abandoned it because YUI was a better fit for my needs. - Original Message - From: umesh awasthi [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Best practise for populating a select from database so that it works for all result types

2008-04-21 Thread Al Sutton
Toni, Isn't your bug a duplicate of https://issues.apache.org/struts/browse/WW-1963? Al. - Original Message - From: Toni Lyytikäinen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 21, 2008 12:26 PM Subject: Re: Best practise for

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Try using redirectAction instead of redirect-action. Al. - Original Message - From: Don Brown [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 18, 2008 2:12 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Can you post your updated action config and the full stack trace here, there may be something simple we can spot before needing to log a bug. Al. - Original Message - From: Toni Lyytikäinen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday,

Re: Export Control Classification Number (ECCN) and Struts v1.3.x

2008-04-14 Thread Al Sutton
Export classification from which country? As you're from Sun I assume you might be talking about the US. In which case Struts doesn't contain any cryptographic algorithms so (as far as I'm aware) it doesn't need a classification. Al. - Original Message - From: Alan Treece [EMAIL

Re: retrotranslating struts 2.0.11 not working

2008-04-10 Thread Al Sutton
Paula, Quick question; Any reason you can't upgrade to Java 1.5 and use the primary distribution and not a retrotranslated one? Al. P.S. Your problem is that your projects classes are being compiled with a JDK = 1.5. - Original Message - From: Paula Estrella [EMAIL PROTECTED]

Re: Struts2, SiteMesh and Struts Menu

2008-04-10 Thread Al Sutton
I'm using the combination you mention without any problems. Check the order you're using the servlet filters in, mine is; filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class/filterfilter filter-namesitemesh/filter-name

Re: [OT] What do you code today?

2008-04-06 Thread Al Sutton
- From: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, April 06, 2008 4:54 AM Subject: Re: [OT] What do you code today? Al- Any pointers you can share on porting ? M- - Original Message - From: Al Sutton [EMAIL PROTECTED] To: Struts

  1   2   3   >