Repopulate form in execute() method - Struts 1

2007-10-12 Thread debussy007
Hello, When the user submits my form, I retrieve it as a DynaActionForm, do some checks in execute() method, and if the form submitted is not valid, I want to forward to the form again and repopulate the form with the inserted values. How can I achieve this ? [...] if( ! valid ) { //

Re: How to set object to value stack from jsp?

2007-10-12 Thread Dave Newton
If you just need to access a value from the session on a JSP page you can use OGNL's session access[1]. At least with S1 the common practice was to disallow direct access to JSP pages and instead route everything through actions. d. [1] http://struts.apache.org/2.x/docs/ognl.html --- Igor

Re: Repopulate form in execute() method - Struts 1

2007-10-12 Thread Dave Newton
If the forward isn't a redirect you shouldn't need to repopulate the form. This use-case, btw, is what mapping.getInputForward() is for (along with the input attribute of the action configuration element). d. --- debussy007 [EMAIL PROTECTED] wrote: Hello, When the user submits my form, I

Re: Repopulate form in execute() method - Struts 1

2007-10-12 Thread debussy007
Thank you d. :-) newton.dave wrote: If the forward isn't a redirect you shouldn't need to repopulate the form. This use-case, btw, is what mapping.getInputForward() is for (along with the input attribute of the action configuration element). d. --- debussy007 [EMAIL PROTECTED]

Re: How can i get Exception message and StackTrace ?

2007-10-12 Thread Richard Sayre
Hi, You can use s:property value=%{exception}/ s:property value=%{exceptionStack }/ to get that information. Rich On 10/11/07, jignesh(india) [EMAIL PROTECTED] wrote: Hello, Thanks in advanced.! Do anyone help me,how can i get exception message,StackTrace into my user

Re: Exception Handling and Logging

2007-10-12 Thread Richard Sayre
Hi Paul, I know its been a while but I am now trying to log my exceptions. Previously I was redirecting to a JSP and outputting the error. A requirement has come up where the client does not want the user seeing any stack traces etc. So I want to log the exception in the action and then

RE: Client side validation for radio button

2007-10-12 Thread Mitch Claborn
In this case it is the xhtml theme. (Isn't specified in the s:head tag but using the default specified in struts.properties.) _ Mitch Claborn [EMAIL PROTECTED] -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2000 5:52 PM To:

Re: Download link

2007-10-12 Thread Wes Wannemacher
If the file is sitting in a web-accessible directory, just use s:url value=/path/to/file /. To me it doesn't seem much different than the references to imgs and other static resources. Do you have any business/processing logic that goes along with the link to the file(s)? I mean, is there any

Re: Struts 2 Plugin

2007-10-12 Thread Don Brown
Ok, yeah, that makes sense that it would only apply for that package. I'm leaning towards Dave's answer and that is to create your own stack and encourage users to use it. Don On 10/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Alright, the plug-n-play ain't working! The plug-in

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Is there any documentation anywhere, where I can see how to correctly return errors in the validate method? Cheers. -Original Message- From: Julien Leonard [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:17 To: 'Struts Users Mailing List' Subject: RE: Validation errors in Action

RE: Validation errors in Action

2007-10-12 Thread Julien Leonard
Hello, Why don't you use the validate() method ? Julien -Message d'origine- De : Dean Pullen [mailto:[EMAIL PROTECTED] Envoyé : vendredi 12 octobre 2007 17:13 À : Struts Users Mailing List Objet : Validation errors in Action Hi all, How do you get hold of the validation errors in an

Validation errors in Action

2007-10-12 Thread Dean Pullen
Hi all, How do you get hold of the validation errors in an Action? Basically due to some complexity, we need to manually add an error within the prepare() method if something isn't correct. Thanks, Dean. - To unsubscribe,

RE: [Friday] RE: Download link

2007-10-12 Thread Al Sutton
Enough to give your minds a headache? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 15:27 To: Struts Users Mailing List Subject: Re: [Friday] RE: Download link --- Al Sutton [EMAIL PROTECTED] wrote: Coo... Can we expect double replies if the

RE: property from S2 in S1

2007-10-12 Thread Jake Robb
I think you're looking for bean:write. -Jake -Original Message- From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 1:25 PM To: Struts Users Mailing List Subject: s:property from S2 in S1 Hi I have a question. So in S2 you have s:property which just takes

Re: Global exception handling

2007-10-12 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Once this servlet is loaded, it effects struts global exception handling. Defined global exceptions are not caught by struts. If I would disable load of the servlet, global exceptions are handled normally. Does anyone know what could cause this behavior? If you

Global exception handling

2007-10-12 Thread dmitry . rubenchik
Hi, I see some strange behavior in handling global exceptions in RAD 7.0. I load my InitSrvlet through WEB.xml (load-on-startup-1/load-on-startup) to perform an app initialization from property files. Once this servlet is loaded, it effects struts global exception handling. Defined global

s:property from S2 in S1

2007-10-12 Thread Pavel Sapozhnikov
Hi I have a question. So in S2 you have s:property which just takes from a form and simply displays it on the page. How do you do exactly that in S1. Thanks. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Just stumbled on that as you replied. Thanks again. (But not for the pun ;) ) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:27 To: Struts Users Mailing List Subject: RE: Validation errors in Action --- Dean Pullen [EMAIL PROTECTED] wrote: Is

RE: Validation errors in Action

2007-10-12 Thread Dave Newton
--- Dean Pullen [EMAIL PROTECTED] wrote: Is there any documentation anywhere, where I can see how to correctly return errors in the validate method? This is a WW article but should still be valid. Ha ha, valid, get it? http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html d.

Re: [Friday] RE: Download link

2007-10-12 Thread Dave Newton
--- Al Sutton [EMAIL PROTECTED] wrote: Coo... Can we expect double replies if the parts of the hive get separated? Yes, with the caveat that each message will contain every Nth letter where N is the number of minds disconnected. It's all quite complicated. d.

Re: [Friday] RE: Download link

2007-10-12 Thread stanlick
I figured this might turn into a sticky thread! The hive is buz'n now. On 10/12/07, Al Sutton [EMAIL PROTECTED] wrote: Coo... Can we expect double replies if the parts of the hive get separated? --- [EMAIL PROTECTED] wrote: P.S. Does d. ever sleep? Is he a coffee

Re: Download link

2007-10-12 Thread stanlick
Thanks Wes! I sure thought the result type stream looked like overkill for this deal! No offense to my boy d.! Just wanted to see if S2 had a neutralizer result to handle headers and such for any browser quirks that might be lurking. I finished the breadCrumb plugin at about 3:30 this morning

[Friday] RE: Download link

2007-10-12 Thread Al Sutton
Coo... Can we expect double replies if the parts of the hive get separated? --- [EMAIL PROTECTED] wrote: P.S. Does d. ever sleep? Is he a coffee drinker? I am actually a hive-mind distributed across several continents. d. [1] http://struts.apache.org/2.x/docs/stream-result.html

Problem with ForwardAction after update from Struts 1.2.9 to 1.3.8

2007-10-12 Thread Samuel Fleischle
Hello, I updated from Struts 1.2.9 to Struts 1.3.8. Now I have the following problem in my ForwardActions. Here is an example of what I want to do: I have the following code in my admin module: action path=/index type=org.apache.struts.actions.ForwardAction

Re: Download link

2007-10-12 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: I looked for a special result type but came up empty handed! Is StreamResult [1] not what you're looking for? P.S. Does d. ever sleep? Is he a coffee drinker? I am actually a hive-mind distributed across several continents. d. [1]

Download link

2007-10-12 Thread stanlick
What is the preferred technique for adding a file download link to an S2 web page? I looked for a special result type but came up empty handed! I could defer back to the bogus MIME type approach, but would rather do this according to the framework. I searched the Webwork in Action book but got

Re: static access to request / response / page context objects?

2007-10-12 Thread Zarar Siddiqi
Looks like you need a dose of ServletActionContext: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html Zarar On 10/11/07, Adam Hardy [EMAIL PROTECTED] wrote: I'm writing a few static methods to use as taglib functions in my JSPs, in particular

Re: [Friday] RE: Download link

2007-10-12 Thread Dave Newton
Maybe where *you* are. For me it's Thursday, Saturday, and Sunday. --- Musachy Barroso [EMAIL PROTECTED] wrote: Oh is it Friday already? musachy On 10/12/07, Al Sutton [EMAIL PROTECTED] wrote: Enough to give your minds a headache? -Original Message- From: Dave Newton

SV: Trouble with using struts tags in freemarker files

2007-10-12 Thread anine.louise.medhus-dale
When I try without the reference to struts-tags I get this error-message: [ WARN] 15:12:36 Can't generate HTML subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression s is undefined on line 1, column 12 in mail-html.ftl. [] at

Re: Download link

2007-10-12 Thread stanlick
Looks promising honeycomb. However, is there a simpler way than to write an action class with an inputstream for a file that is already sitting in a web server folder? On 10/12/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: I looked for a special result type but came

Re: [Friday] RE: Download link

2007-10-12 Thread Musachy Barroso
Oh is it Friday already? musachy On 10/12/07, Al Sutton [EMAIL PROTECTED] wrote: Enough to give your minds a headache? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 15:27 To: Struts Users Mailing List Subject: Re: [Friday] RE: Download link

Re: [S2] Configure Message Store Interceptor via Annotations

2007-10-12 Thread Adam Hardy
Hi Gunnar I wanted it to work without needing to tell it when to do its stuff. I based my changes on the requirement for displaying success messages after a redirect. The messages / errors only need to survive until the next request. So anything in the request I put into the session (in the

Re: [s2] select tag not setting parameter

2007-10-12 Thread Kevin Wade
Bump. Any one have any ideas at all? I'm sure I'm just doing something incorrect w/ the select tag but just can't see it. Kevin On Oct 8, 2007, at 4:59 PM, Kevin Wade wrote: I'm having difficulty with a struts 2 form (jsp) that includes the use of a select tag. In short, I can't seem to

Re: [s2] select tag not setting parameter

2007-10-12 Thread Dave Newton
What's being sent on the wire? (Like, is there a search.county param being sent, etc.) d. --- Kevin Wade [EMAIL PROTECTED] wrote: Bump. Any one have any ideas at all? I'm sure I'm just doing something incorrect w/ the select tag but just can't see it. Kevin On Oct 8, 2007, at 4:59

Re: [s2] select tag not setting parameter

2007-10-12 Thread Kevin Wade
According to my sniffer, what's sent on the wire looks like this: lastName=smithfirstName=johncounty= which makes sense since the logging output of struts 2 says this: com.opensymphony.xwork2.interceptor.ParametersInterceptor - Setting params county = [ ] firstName = [ john ] lastName = [

Looping problem

2007-10-12 Thread stanlick
I seem to to experiencing a new phenomenon! At times my sever console begins emitting this series of log statements in a never ending loop! I have to kill the pid and restart to recover. Has anyone seen this one? SEVERE: Exception invoking periodic operation: java.lang.NoClassDefFoundError:

notifyTopics, with parameters?

2007-10-12 Thread Marcos Hernandez
Hi everyone. I think that the whole 'notifyTopics' idea is great, but is there a way to pass a parameter with the topics? Because in javascript, when I use dojo.event.topic.publish('/topicName', param1, param2,...); I can pass to the subscribed function anything I need, but I don't see a way

Re: [s2] select tag not setting parameter

2007-10-12 Thread Marcos Hernandez
Just as a debug thought: what happens when you fill the list parameter with a couple of counties/value pairs by hand? On the other hand, does the generated HTML have a full list of values aside of the counties name list you are looking in the drop-down box? On 10/12/07, Kevin Wade [EMAIL

problem displaying images

2007-10-12 Thread Niniva Ray
Hello! I have 3 images to display and to do that in my jsp page I have the following code table class=examples tr td html:img src=/filemanagement/getbarchart.do/ /td td html:img src=/filemanagement/getpiechart.do?type=Size/ /td td html:img

Re: [s2] select tag not setting parameter

2007-10-12 Thread Laurie Harper
What does the generated HTML look like? Perhaps the county objects don't have a value for 'id'? L. Kevin Wade wrote: According to my sniffer, what's sent on the wire looks like this: lastName=smithfirstName=johncounty= which makes sense since the logging output of struts 2 says this:

Strange scenario

2007-10-12 Thread stanlick
I have a S2 application deployed to an ISP and once in a while I receive this exception and the server has to be restarted to recover. I have tested the stuffing out of the application and cannot get it to fail on the desktop. It appears to be rooted in OGNL. Scott DEBUG TP-Processor3

Re: Strange scenario

2007-10-12 Thread stanlick
I can add another bit of info. This action employs the execAndWait interceptor. On 10/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a S2 application deployed to an ISP and once in a while I receive this exception and the server has to be restarted to recover. I have tested the

Another change in the wiki-docs:

2007-10-12 Thread Marcos Hernandez
This is mainly to Musachy Barroso or anyone interested: Hi. Where in the wiki is the introduction that used to be in the Ajax Tagsin the 2.0.9 docs? I've added a comment on the http://cwiki.apache.org/confluence/display/WW/Ajax+Tags But I see that the 'common attributes' section is not there