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 (http://struts.apache.org/2.x/docs

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: how to find out the NULL value?

2008-10-20 Thread Al Sutton
I use username neq null or usename eq null Al. Mead Lai wrote: Hi All, Show something here Show something here which is right Tag above? I heared, It can't use like that expression after 2.0.11version, really? Any feedback is appreciated. -- Al Sutton W: www.alsutton.

Re: Struts2 static content

2008-10-03 Thread Al Sutton
d 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 commands, e-mail: [EMAIL PROTECTED]

Re: Performance and High CPU utilization

2008-09-18 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 with

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 or

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 wrot

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 non-exclusiv

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Al Sutton
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] For additional commands, e

Re: REST Showcase 2.1.2

2008-09-01 Thread Al Sutton
Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----- To unsubscribe, e-mail

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 g

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 sur

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 PROTECTED]

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 m

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 lov

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

2008-08-28 Thread Al Sutton
ditional 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] 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" Date: Tuesday, August 26, 2008, 6:25 AM Advice : Find an appropriate mailing list to send this to. Can someone b

Re: Help Jobs Search Engine Script

2008-08-25 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: [OT] Re: Add yourself to mobchannel.com

2008-08-21 Thread Al Sutton
i, Aug 22, 2008 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 wr

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

2008-08-21 Thread Al Sutton
home page when I click the "Blogs" menu 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-m

[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 PR

Re: Validate associate Map

2008-08-17 Thread Al Sutton
y can never get 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: ---

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: 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 http://www.host.com/MyApplicati

Re: Struts2 Application Structure

2008-08-16 Thread Al Sutton
gards - 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: 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 usin

Re: Server Side caching of .action(s)

2008-08-07 Thread Al Sutton
ons I 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 comman

Re: struts 2 login issue

2008-08-05 Thread Al Sutton
terrupted while 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.co

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
which load is for which class when defining a link ? -- Regards, Milan Al Sutton wrote: More like; ... ... ... ... ... You can also use singletons, utility classes, and good old-fashioned inheritance to reduce code duplication (remember, Actions

Re: [S2] Refactoring Action classes

2008-08-05 Thread Al Sutton
attributes). -- Regards, Milan Al Sutton wrote: You don't need to have all your actions for a namespace in a single class, you can use multiple classes. I usually group methods acting on a common object into a single class which usually leaves me with the 5 public methods in a clas

Re: [S2] Refactoring Action classes

2008-08-04 Thread Al Sutton
, as standard action (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 ?

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
ou 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 ha

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

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
things up 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... fortu

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
this thread. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: t

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 inclu

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
put in a bigger fuse. It makes 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.co

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]> wr

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

2008-08-01 Thread Al Sutton
rit, AFAICT, from the information you've provided. Hurricane 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
to me 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

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

2008-08-01 Thread Al Sutton
subscribe, 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 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
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 y

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

2008-08-01 Thread Al Sutton
s no variable 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

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

2008-08-01 Thread Al Sutton
ur problem if you don't provide what's necessary? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W:

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 a

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

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.

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: 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-22 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.1

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-07 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 endle

Re: Anyone want to show me up...

2008-07-03 Thread Al Sutton
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 PROTECTED]> wrote: I can't

Re: Anyone want to show me up...

2008-07-03 Thread Al Sutton
etting 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. doesn't seem to work, anyone want to point out

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. doesn't seem to work, anyone want to point out where I've dumbed out? Al. - To unsubscribe, e-mail: [EMAIL P

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, Oren

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

2008-06-27 Thread Al Sutton
sion with the neccessary 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 a

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 si

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

2008-06-26 Thread Al Sutton
ll probably use 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" Date: Thursday, June 2

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

2008-06-26 Thread Al Sutton
AES I can 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

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

2008-06-26 Thread Al Sutton
re 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

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 a

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

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

Re: [OT] Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Al Sutton
At least they made it to the tournament :( Dave Newton wrote: --- On Thu, 6/26/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Eh? I know I am supposed to laugh, but since I am Italian could you explain it a little ;-) Or cry; Spain whupped ya' 4-2. Dave ---

[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: 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 cho

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 solution

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: (!) Simple for-next loops using , was: Re: [S2] using 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: F

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 applic

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 m

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
x27;d say it is fundamentally flawed. I'm happy to help 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 Strut

Re: REST plugin URL syntax

2008-06-16 Thread Al Sutton
ng in the cited reference 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 a

Re: REST plugin URL syntax

2008-06-15 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 t

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
and the plugins. 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/ mus

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 m

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: 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, as

Re: What can you do with S2?

2008-06-14 Thread Al Sutton
t 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.life

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 p

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 relea

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

2008-06-13 Thread Al Sutton
rite) your 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

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

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 through

[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, 6

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 bug

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 Jett

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
ry 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 Ha

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 Mes

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 to.

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 to

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" Sent: T

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" Sent: Monday, April 21, 2008 12:26 PM Subject: Re: Best practise for populating a select from d

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" Sent: Friday, April 18, 2008 2:2

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" Sent: Friday, April 18, 2008 2:12 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to

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

2008-04-13 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: 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; struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp sitemesh com.opensymphony.module.sitemesh.filter.PageFilter struts org.apache.struts2.dispatcher.FilterDi

  1   2   3   >