Re: output device support

2005-05-26 Thread Rahul Akolkar
On 5/25/05, Wiebe de Jong [EMAIL PROTECTED] wrote: How would I go about supporting multiple output devices, such as browsers, Blackberries, phones and various PDA devices? Are there any Struts extensions out there for this? Or should I investigate Sitemesh or Cocoon? So, the application(s) may

How to run an action automatically like thread ?

2005-05-26 Thread minhnguyet
Hi all , I have an action in struts that I want it will read database and process some another actions base on that database every 10 minutes . But I don't how to make it automatically run like thread in application ! Any recomments ? Thanks in advance for help .

RE: Security in Struts

2005-05-26 Thread tarek.nabil
Thanks everyone. Filters are Action superclasses are both good ideas. Actually, I think a filter fits more, but it's a general solution that I would go for, even if I weren't using Struts. And both solutions involve building the whole security infrastrutcture myself. I was thinking maybe the

Popup

2005-05-26 Thread Rafael Taboada
Hi folks... I want two jsps, each one with its actionform. One jsp is a popup and it fill in a field of the main jsp. When the popup closes, it fill in a field with the data selected. Can u help me how to do that?. It's like Struts layout popup but I'd like to know another alternative. Thanks

RE: Security in Struts

2005-05-26 Thread tarek.nabil
Thanks David. But it seems that this framework only works with Spring, and we're not using Spring. -Original Message- From: Durham David R Jr Ctr 805 CSPTS/SCE [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:45 PM To: Struts Users Mailing List Subject: RE: Security in Struts

[OT] MessageFormat and curly brackets

2005-05-26 Thread Riyaz Mansoor
not strictly struts ... but lots of smart guys here :) String str = arg name=\minlength\ key=\${var:minlength}\ ; MessageFormat mf = new MessageFormat(str); throws error saying can't parse argument number var:minlength how place literal curly brackets in String such that MessageFormat

Re: [OT] MessageFormat and curly brackets

2005-05-26 Thread Jason Lea
From the java docs for MessageFormat: Within a String, '' represents a single quote. A QuotedString can contain arbitrary characters except single quotes; the surrounding single quotes are removed. An UnquotedString can contain arbitrary characters except single quotes and left curly

RE: How to run an action automatically like thread ?

2005-05-26 Thread Paul McCulloch
Quartz (http://www.opensymphony.com/quartz/) is a job scheduling system which sounds like it could help you out. I'd reconsider whether your code should really be in a Struts action. What are you gaining by using Struts for a non-web bit of processing? Paul -Original Message- From:

RE: How to run an action automatically like thread ?

2005-05-26 Thread Nitin Mandolkar
If you are working on Linux platform use crontab i.e. Linux scheduler. Nitin. -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 26 May 2005 09:53 To: 'Struts Users Mailing List' Subject: RE: How to run an action automatically like thread ? Quartz

RE: How to run an action automatically like thread ?

2005-05-26 Thread Nitish Kumar
Cant you put an auto refresh of 10 min on a jsp which calls the action class.. Thanks and Regards, Nitish Kumar Tavant Technologies Ltd Bangalore -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:23 PM To: 'Struts Users Mailing List'

RE: How to run an action automatically like thread ?

2005-05-26 Thread Marco Mistroni
Hello, I agree with this comment. Quartz (http://www.opensymphony.com/quartz/) is a job scheduling system which sounds like it could help you out. Data is udated every 10 min, and when you access your jsp you will have The most recent data.. But I can't say more since I don't know what

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
Martin Gainty wrote: Bob- assuming you set userLocale to english north america table bgcolor=#d0d0d0 cellspacing=0 cellpadding=5 border=0 width=100% tr td center h2 fmt:setLocale value=%=userLocale%/ fmt:bundle basename=com.abcbank.example.ApplicationResources fmt:message

RE: RE: How to run an action automatically like thread ?

2005-05-26 Thread minhnguyet
Thanks for help .I am trying using Quartz . My web actionisto check data in database and send email (using JavaMail)to user that satisfyany condition , every 10 minutes . ---Original Message--- From: Marco Mistroni Date: 05/26/05 17:07:00 To: 'Struts Users Mailing List' Subject:

Re: Popup

2005-05-26 Thread ahmet hassan
Hi, you may do some scripting for this.Try: body onUnload=window.opener.form.field.value=myValue --- Rafael Taboada [EMAIL PROTECTED] wrote: Hi folks... I want two jsps, each one with its actionform. One jsp is a popup and it fill in a field of the main jsp. When the popup closes, it

Validating multipage forms in validate() method

2005-05-26 Thread Rodolfo García Esteban/CYII
Hi all, I,m using struts 1.2.4, and stardard multipage actionForms that are validate in validate() method. For do the multipage I have added a field in the form called page. In validate method I ask for the page and do only the field validations for that page. Well but when I have errors the

How to convert line breaks to br/ using bean:write

2005-05-26 Thread Nils Liebelt
Hi all, is that possible? GreetZ Nils

How to convert line breaks to br/ using bean:write

2005-05-26 Thread Nils Liebelt
Hi all, is that possible? GreetZ Nils

Re: html:img question

2005-05-26 Thread Aladin Alaily
Dakota Jack wrote: Just out of curiosity, when you don't seem to have internationalized the image, why would you want to do that with the alt? The application that I'm building is multilingual. As such, the alt property of my images should be converted to the client's locale. Having said

Re: How to convert line breaks to br/ using bean:write

2005-05-26 Thread Aladin Alaily
Hi Nils, I don't know if this is what you mean (or why you would want to do this instead of just writing br/)... but you could have something like this: bean:write message=line.break / and in your properties file, you have the following: line.break=br/ Good Luck! Aladin

Blank page returned from ActionForm

2005-05-26 Thread Andy
Hi All, I'm unable to output any errors using html:errors/ tag, in Tomcat 5.5.7 with Struts 1.2.4. I've tried *numerous* configurations and have now ran out of patience entirely. As I haven't been using Struts for more than three days I hope somebody more experienced can point help me out. When

Re: html:img question

2005-05-26 Thread Dakota Jack
I use buttons for images, imgs, etc. that are internationalized. That's all. My images do contain text. On 5/26/05, Aladin Alaily [EMAIL PROTECTED] wrote: Dakota Jack wrote: Just out of curiosity, when you don't seem to have internationalized the image, why would you want to do that with

Re: How to convert line breaks to br/ using bean:write

2005-05-26 Thread JM Tinghir
Hi Nils, Try this : bean:write name=res filter=false/ It worked for me. Jean-Marie Tinghir 2005/5/26, Aladin Alaily [EMAIL PROTECTED]: Hi Nils, I don't know if this is what you mean (or why you would want to do this instead of just writing br/)... but you could have something like this:

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
/** * Double check the property 'Property' inside the Errors tag, it could be name, I just don't *have my code infront of me to double check. */ html:errors property=login / errors.add(login, new ActionMessage(logon.form.password.invalid)); I've never been able to return an error using

RE: [Shale] Re: Javascript validator

2005-05-26 Thread Mariano Petrakovsky
It's Work :D many thanxs! :) -- Mariano G. Petrakovsky Programmer · Software Factory AXG Tecnonexo - www.tecnonexo.com Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires · Argentina. Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065. Headquarters: 1604 Spring Hill Road,

Re: JSTL fmt:message with modules

2005-05-26 Thread Martin Gainty
BobThis tutorial from Nick Heudecker may helpAssuming you place ApplicationResources.properties,FrenchApplicationResources.properties in WEB-INF/classesmessage-resources key=EnglishResources parameter=ApplicationResources/ message-resources key=FrenchApplicationResources

Re: form-bean question - help

2005-05-26 Thread croffman
Correct. Is the compress filter help anyway, to reduce problems? Croff - Original Message - From: Larry Meadors [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, May 25, 2005 10:59 PM Subject: Re: form-bean question - help So, you have a form

RE: JSTL fmt:message with modules

2005-05-26 Thread Benedict, Paul C
I think Bob asks a good question. 1) Is setting the default bundle in JSTL for the entire web app? I think it is. It seems the bundle must be explicitly set. 2) Perhaps Struts 1.3 could contain a chain plug-in that will set the appropriate resource bundle for JSTL per module? What do you

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
Martin Gainty wrote: BobThis tutorial from Nick Heudecker may helpAssuming you place ApplicationResources.properties,FrenchApplicationResources.properties in WEB-INF/classesmessage-resources key=EnglishResources parameter=ApplicationResources/ message-resources key=FrenchApplicationResources

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andy wrote: In LogonForm.java (I have getters/setters for HTML fields, and a reset method, not shown) - public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { log.debug(validate); ActionErrors errors = new ActionErrors(); if

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
I could be wrong, but I thought saveErrors was only needed in the Action Class, not the ActionForm class? Andrew T Probably because you didn't read all the docs ;) I don't see where you're saving the errors: saveErrors(request, errors); This is important. Dave

Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
Hey all I recently added the following to my JSP pages to force them not to be cached: % response.setHeader(Pragma,no-cache);% % response.setHeader(Cache-Control,no-store);% % response.setDateHeader(Expires,-1);% the result is that if the user hits back then reload they get an error 500.

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
Web.xml error-page error-code 500 /error-code location /where/you/want/to/go /location /error-page you can do redirections inside your location page, or however you want to set it up, point it at an action or whatever. Andrew T On 5/26/05, David Johnson [EMAIL PROTECTED] wrote: Hey all

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Jeff Beal
It looks like they've made it easier than it had been in the past: From the main menu, click Mailing Lists (under the Community subheading) Scroll down for links to multiple list archives and subscription information. On 5/25/05, Durham David R Jr Ctr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: I

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
Perhaps the community can answer that question for you. I use the error-page 500 as a catch all for undefined / unexpected errors. I'm sure there's a way to do it, I just haven't done it before and can't tell you off the top of my head. You can probably point the Error at an action which can point

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso That error is tell you that you placed the error-page tag in the wrong section. The error tells you the correct order you need to put all the tags in. Andrew - To

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Jay Burgess
Jeff, I've probably already exceeded my allotment of emails on this issue, but the point I was trying to make is that the link you're talking about is not available on the Struts main home page (http://struts.apache.org/index.html). I'm not aware of too many projects where you've got to hunt to

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Martin Gainty
Inside the StrutsServlet's doGet method RequestDispatcher dispatcher = null; request.getRequestDispatcher(/err/SQL.jsp); try { // operation which causes 500 } catch (Exception se) { //forwards to a login.jsp dispatcher.forward(request, response); } check out

RE: Security in Struts

2005-05-26 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Thanks David. But it seems that this framework only works with Spring, and we're not using Spring. It works with Struts MVC, but yes, you'll likely need Spring to configure the filters, and to do some proxying for the button level access. - Dave

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
Where does one find this to modify the doGet method? I've yet to deal with actually modifiying the actual servlet... Andrew On 5/26/05, Martin Gainty [EMAIL PROTECTED] wrote: Inside the StrutsServlet's doGet method RequestDispatcher dispatcher = null;

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
I'd like to avoid modifying the struts code if I can On 5/26/05, Andrew Thorell [EMAIL PROTECTED] wrote: Where does one find this to modify the doGet method? I've yet to deal with actually modifiying the actual servlet... Andrew On 5/26/05, Martin Gainty [EMAIL PROTECTED] wrote:

RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
Andrew - Thanks but I tried adding the property attribute, and changed the string parameter in errors.add to be the same value, but still no luck. Dave - I tried adding validate, but still no luck. Thanks for the tip on the saveErrors method, I can the struts mailreader example does this,

Redisplaying Information

2005-05-26 Thread Andrew Thorell
I know html:password has a redisplay option. Is there any way to put this functionality on html:text tags as well? html:password redisplay=false/ Any thoughts? Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andy wrote: errors.add(ActionErrors.GLOBAL_MESSAGE,new ActionMessage(logon.form.password.invalid)); Is this the key that errors are retrieved by in html:errors? Isn't the key for errors GLOBAL_ERRORS? Dave

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
The only other thing I can think of is in the application.properties file: errors.header=UL errors.prefix=LIfont color=red errors.suffix=/font/LI errors.footer=/UL logon.form.password.invalid=Invalid Password. all should be set to something. I've included mine as an example html:errors

Re: Blank page returned from ActionForm

2005-05-26 Thread Michael Jouravlev
It seems to me that Struts cannot find logon.jsp. Hmm... are you sure you spelled it correctly? The case, the location? What if you removed the leading slash? I usually get blank pages when I do not have a proper forward defined, but in your case it is input and it looks ok. Not much help from

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just use the Super class constant. Andrew On 5/26/05, Dave Newton [EMAIL PROTECTED] wrote: Andy wrote: errors.add(ActionErrors.GLOBAL_MESSAGE,new ActionMessage(logon.form.password.invalid)); Is this the key

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Wendy Smoak
From: Jay Burgess [EMAIL PROTECTED] I've probably already exceeded my allotment of emails on this issue, but the point I was trying to make is that the link you're talking about is not available on the Struts main home page (http://struts.apache.org/index.html). Look again. :) On the home

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Jay Burgess
Damn browser cache... :) Thanks to whoever made the change. Jay | Jay Burgess [Vertical Technology Group] | Essential Technology Links via RSS | http://www.vtgroup.com/ -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 11:10 AM To: Struts

Validator, JavaScript, Quotation Mark

2005-05-26 Thread Rod Morris
Hello to all you gurus out there. I'm attempting to use the validator to prevent users from entering a quotation mark into a form field with the following mask: ^[^]*$ The problem I'm running into is this...it works great on the server-side but it's breakng my client-side JavaScript validation

Performance profiling

2005-05-26 Thread Ulrich Elsner
Hi, a recent load test showed that my Struts-based application has some problems achieving the desired performance. On a small Solaris machine it starts to slow down when reaching about 140 requests/min, while I'd like it to handle about 200. Using more hardware solves the problem (on a

RE: Performance profiling

2005-05-26 Thread Paul McCulloch
I've used Borland's OptimizeIt fairly successfully. I'm not sure of the cost (there may be a free trial available) - it may well be cheaper to just buy another processor! Paul -Original Message- From: Ulrich Elsner [mailto:[EMAIL PROTECTED] Sent: 2005/26/05 17:17 To:

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Andrew Thorell wrote: GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just use the Super class constant. Yes, but doesn't the errors tag just look for errors, not messages? I don't recall which release you were using; sorry if I'm just spouting. What happens if you check

Re: Validator, JavaScript, Quotation Mark

2005-05-26 Thread Niall Pemberton
Bug 33238 covered this and was fixed in Struts 1.2.7 http://struts.apache.org/userGuide/release-notes.html http://issues.apache.org/bugzilla/show_bug.cgi?id=33238 http://svn.apache.org/dist/struts/v1.2.7/ Niall - Original Message - From: Rod Morris [EMAIL PROTECTED] Sent: Thursday, May

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
I remember trying the messagesPresent tags in my jsps but found the extra code to be not worth the extra effort. It's just a whole lot of extra code for a quick fix by naming the error property by name. In the example: html:errors property=login/ errors.add(login, new

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Niall Pemberton
Ted Husted made the change, I refreshed the site and Jack provided the FUD :-) Niall - Original Message - From: Jay Burgess [EMAIL PROTECTED] Sent: Thursday, May 26, 2005 5:12 PM Damn browser cache... :) Thanks to whoever made the change. Jay -Original Message- From:

Re: Blank page returned from ActionForm

2005-05-26 Thread Dave Newton
Michael Jouravlev wrote: I usually get blank pages when I do not have a proper forward defined, but in your case it is input and it looks ok. On 5/26/05, Andy [EMAIL PROTECTED] wrote: When I select Submit, entering data into my form fields so the form is parsed as valid, the forward works

RE: Could someone on the dev team add link to mailing list on Str uts site

2005-05-26 Thread Marsh-Bourdon, Christopher
How many developers does it take to change a Wiki? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 26 May 2005 17:40 To: Struts Users Mailing List Subject: Re: Could someone on the dev team add link to mailing list on Struts site Ted Husted made the change, I

Re: Popup

2005-05-26 Thread Wendy Smoak
From: Rafael Taboada [EMAIL PROTECTED] But is it possible to comunicate two actionforms? Because i have a actionform for each jsp. So, I'd like one actionform pass the value to the main jsp's actionform. how can do this? Read up on client-side scripting-- JavaScript. The entire page,

RE: Performance profiling

2005-05-26 Thread meyawn
i used jprofiler to profile my tomcat application...is very easy to use and does detailed CPU and mem profiling..also is not resource hungry -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 7:22 PM To: 'Struts Users Mailing List' Subject: RE:

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Dave Newton
Niall Pemberton wrote: Ted Husted made the change, I refreshed the site and Jack provided the FUD See? A true team effort! Dave I provided nothing Newton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Michael Jouravlev
How about mailing list rules besides ask smart question remark? For example, I did not know that Announcement is not a proper form, and that one has to use [ANNOUNCEMENT] instead. Could not find any specific rules generic to Apache web site either. Shale guys have their [SHALE] prefix. Any other

RE: Redisplaying Information

2005-05-26 Thread Benedict, Paul C
Andrew, What do you mean by redisplay? If you're concerned with a failed login and the form persisting the data, all you have to do is set the value to blank. This will always force the password to be blank on a redisplay: html:password property=password value=/ -Original Message- From:

RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
I see my problem seems to be confounding all comers ! Well I went back first principles as it were and started with the struts mailreader example, and checked what I had done differently. And do you know what the answer is? Take a look at this again - !-- Process a user logon --

RE: Blank page returned from ActionForm

2005-05-26 Thread Andy
I should qualify my last e-mail. I did change the execute method, to include amongst other things the saveError call (thanks Dave), as shown in the Struts example. Andy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

error-page not catching errors...

2005-05-26 Thread David Johnson
Hi all I've added the following to my web.xml (thanks for the help) error-page error-code500/error-code location/error.jsp/location /error-page error-page error-code404/error-code location/error.jsp/location /error-page error-page error-codejava.lang.Exception/error-code

RE: error-page not catching errors...

2005-05-26 Thread Benedict, Paul C
David, I think Tomcat 4.x has a bug in which 500 errors are not captured. I ran into this before. Could be? Thanks, Paul -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:34 PM To: Struts Users Mailing List Subject: error-page not catching

Re: Redisplaying Information

2005-05-26 Thread David Johnson
I believe you can do this by setting the scope of the form bean associated with the form containing your field to session, which also means you need to reset() it when you're done. like this: action path=/SICAction name=sicForm scope=session input=page.portfolio

Re: error-page not catching errors...

2005-05-26 Thread Andrew Thorell
See if you can pitch a 404 error. If that works, then it's not your program's problem. Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
Wow It's insane to me that this cant be done with Tomcat 4.1.31 the Struts documents tell you to do exactly what I'm trying. http://jakarta.apache.org/tomcat/faq/misc.html#error BAH!!! On 5/26/05, Benedict, Paul C [EMAIL PROTECTED] wrote: Sorry. Just life then. Upgrade to 5 or use the

Using Jsf, Struts, Tiles... and Frames?

2005-05-26 Thread Mariano Petrakovsky
I'm using Jsf with Struts and Tiles... displaying a header, a tree (at left) and content. The tree is big to reaload some time a request begin. Frame is the my first idea... but... reading I'm found this link http://www.jroller.com/page/rkischuk/20040601#struts_tiles_and_frames_don I

Fwd: error-page not catching errors...

2005-05-26 Thread David Johnson
I'm forwarding this to the Tomcat List as well, I'll forward any helpful responses for archival purposes. Thanks all! On 5/26/05, David Johnson [EMAIL PROTECTED] wrote: Wow It's insane to me that this cant be done with Tomcat 4.1.31 the Struts documents tell you to do exactly what I'm

Re: Could someone on the dev team add link to mailing list on Struts site

2005-05-26 Thread Adam Hardy
I don't think [...] email title prefixes are official. Most used and understood is [OT] and [FRIDAY]. I think a few people want to use such prefixes in order to filter their incoming mail, but I don't, and I think it's unnecessary to make such voluntary rules. I read email with

Re: Could someone on the dev team add link to mailing list on Str uts site

2005-05-26 Thread Adam Hardy
Two. One to change the wiki, and one to er how does this joke go? On 26/05/05 17:39nbsp;Marsh-Bourdon, Christopher wrote: How many developers does it take to change a Wiki? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 26 May 2005 17:40 To:

RE: error-page not catching errors...

2005-05-26 Thread Tait, Allen
For the record, we are using Tomcat 4.1 and it handles the 500 errors correctly. However, we have seen issues when request are passed through Apache. Be sure to test against Tomcat directly. -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
HHm interesting. I'm only using Tomcat. Can you check up at the top of the thread and see if there's anything I'm doing differently from you? On 5/26/05, Tait, Allen [EMAIL PROTECTED] wrote: For the record, we are using Tomcat 4.1 and it handles the 500 errors correctly. However, we

Re: error-page not catching errors...

2005-05-26 Thread Wendy Smoak
From: David Johnson [EMAIL PROTECTED] It's insane to me that this cant be done with Tomcat 4.1.31 the Struts documents tell you to do exactly what I'm trying. http://jakarta.apache.org/tomcat/faq/misc.html#error I think what you might be running into is that when you catch an error 500 by

Re: Security in Struts

2005-05-26 Thread Van
On 5/26/05, Durham David R Jr Ctr 805 CSPTS/SCE [EMAIL PROTECTED] wrote: Thanks David. But it seems that this framework only works with Spring, and we're not using Spring. It works with Struts MVC, but yes, you'll likely need Spring to configure the filters, and to do some proxying for the

RE: error-page not catching errors...

2005-05-26 Thread Benedict, Paul C
Wendy, You raise an excellent point. I am going to retract my previous advice; it is obviously wrong. A 500 error is a response code. If a response has not been committed to the stream, the application container can translate an exception into a 500 status code. However, if the response stream

RE: error-page not catching errors...

2005-05-26 Thread Tait, Allen
You haven't said what you are getting when errors are encountered. The only other advice I can provide is to be sure your /error.jsp (or other) is writing something into the response. In my experience IE will display the default 500 page if the response is empty or maybe even when it is below

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
Alright, I think I'm thick. how would I do that? would I override doGet() and doPost()? help! On 5/26/05, Martin Gainty [EMAIL PROTECTED] wrote: Andrew- can intercept your ActionServlet's doGet or doPost method before process method is invoked If you want simple follow the instructions

Re: Creating a standard page to handle Error 500

2005-05-26 Thread David Johnson
also... I have a BaseAction all my actions are inherited from might I do whatever you recommend I do... there? :D On 5/26/05, David Johnson [EMAIL PROTECTED] wrote: Alright, I think I'm thick. how would I do that? would I override doGet() and doPost()? help! On 5/26/05, Martin

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
Doesnt work. I just get the standard IE error page. bah! It's my program (the shock is almost too much) On 5/26/05, Andrew Thorell [EMAIL PROTECTED] wrote: See if you can pitch a 404 error. If that works, then it's not your program's problem. Andrew

Re: sTRUTS 1.3 - chain flow / complex app

2005-05-26 Thread Craig McClanahan
On 5/23/05, Joe Germuska [EMAIL PROTECTED] wrote: Marco wrote: Does Shale use chain? Could you integrate chain in Shale? Shale does use chain, but to be honest, I don't know much more about it than that. Shale uses Commons Chain to configure it's application level processing (i.e. the

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
Oh, one more thing. what I'm really trying to avoid is the user using the back button, so I've added the following to my pages % response.setHeader(Pragma,no-cache);% % response.setHeader(Cache-Control,no-store);% % response.setDateHeader(Expires,-1);% Now, when I use the back button, I get

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
Alright ONE more thing I see in your WIKI -- http://wiki.wendysmoak.com/cgi-bin/wiki.pl?TomcatErrorPage that I cant put a tiles-def in the location field, but what if I forward to a normal JSP that has the following (only) in it logic:forward name=error/ Then in my struts-config I have

Re: error-page not catching errors...

2005-05-26 Thread Jason Lea
Have you tried testing in Firefox to see if you get the same result. Internet Explorer may be confusing the issue: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807 Several frequently-seen status codes have friendly error messages that Internet Explorer 5./x/ displays and that

Re: error-page not catching errors...

2005-05-26 Thread Wendy Smoak
From: David Johnson [EMAIL PROTECTED] Now, when I use the back button, I get the expided page... page. When I reload, I get the error 500 Have you changed the page that you're using for error 500, or is it still using Tiles? That, IMO, is the problem. Tomcat has no idea what you mean by

Re: error-page not catching errors...

2005-05-26 Thread Wendy Smoak
From: David Johnson [EMAIL PROTECTED] I really want to use a tiles def here somehow or my **only** page that is all hardcoded will be error.jsp. thoughts? What is the root cause of the error 500? Take the error-page out and look at the stack trace. Ignoring any ServletExceptions, what's the

[ANNOUNCE] Struts 1.2.7 (General Availabilty)

2005-05-26 Thread Niall Pemberton
The Struts team is pleased to announce the release of Struts 1.2.7 for General Availability. This release includes new functionality, as well as numerous fixes for bugs which were reported against the previous release, and supersedes the earlier 1.2.4 version as the latest official release of

Re: error-page not catching errors...

2005-05-26 Thread Michael Jouravlev
Ahem, this signature You can lead a horse to water but you cannot make it float on its back get a lots of sense now ;-) I believe that it is a bad application design, when clicking browser Back button breaks the application. Or an innocent page refresh resubmits a form. Instead of displaying

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Martin Gainty
David However you inherit from ActionServlet If your new class BaseServlet inherits from ActionServlet I would put the code into BaseServlet HTH, Martin- US 001-617-852-7822 - Original Message - From: David Johnson [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org;

Re: error-page not catching errors...

2005-05-26 Thread David Johnson
Wendy, Removing tiles from the equation has done the trick. I will emphasize that they should be using the supplied navigation scheme during training Thanks John On 5/26/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: David Johnson [EMAIL PROTECTED] I really want to use a tiles def

ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
Hi all I notice that ActionError is deprecated in this version.. is there some document describing what we should now be doing? [javac] C:\Builds\riskGrid\src\com\company\struts\form\QueryResultsForm.java:101: warning: org.apache.struts.action.ActionError in org.apache.struts.actionhas been

Re: ActionError in Struts 1.2.7

2005-05-26 Thread Niall Pemberton
It was deprecated in Struts 1.2.4 - theres info about this in the wiki: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 http://wiki.apache.org/struts/StrutsDeprecatedActionErrors Niall - Original Message - From: David Johnson [EMAIL PROTECTED] Sent: Friday, May 27, 2005 2:48 AM

Re: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
tyvm : On 5/26/05, Niall Pemberton [EMAIL PROTECTED] wrote: It was deprecated in Struts 1.2.4 - theres info about this in the wiki: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 http://wiki.apache.org/struts/StrutsDeprecatedActionErrors Niall - Original Message -

Re: Shale Forum?

2005-05-26 Thread Craig McClanahan
On 5/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think you have the right place. I believe that they have suggested that the subject be prefixed with [Shale]. Yep. Because Shale is a Struts subproject, we all share a developer mailing list and (this) user mailing list. As Gary

Re: ActionError in Struts 1.2.7

2005-05-26 Thread David Johnson
Niall Related to this, I found your article http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html VERY helpful ant informative. I've refactored my application (yes it's midnight in NY) to REMOVE all ActionError references (leavinf the ActionErrors in the validate() as you

Re: DynaActionForm and the 'pull' model

2005-05-26 Thread Craig McClanahan
On 5/24/05, Laurie Harper [EMAIL PROTECTED] wrote: Nope, Dave nailed it. Re-read the requirement I described. The point is to avoid using actions to load the data and pass it to the view. If you re-read my description of what I mean by 'push' vs. 'pull' rather than simply saying the terms mean