Struts 2 load problems?

2007-04-09 Thread Jeff C
This is an update to a queston I asked last week..with a little more info this time. We noticed last week the s:text calls would sometimes fail in our jsp files (we are running on tomcat 5.5 and using struts 2.0.6). Today, we finally tracked it down to a load issue. When there is light traffic

S2: error result - what is it?

2007-04-09 Thread Paul Benedict
What does the error result mean? How is it used by the framework, and what causes it to be selected? Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Modeling Struts with UML

2007-04-09 Thread Asaf Paris Mandoki
What kind of UML diagrams are necessary to fully model a complete struts application? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Somewhat OT: Forward to JSP in JAR file

2007-04-09 Thread Frank W. Zammetti
Quick question... can anyone tell me if it's possible to forward to a JSP that is stored in a JAR file (i.e., in a JAR located in WEB-INF/lib), and if so, how? I couldn't find a quick answer on the first few pages of Googling, figured someone here would probably know off the top of their heads

an odd application...but doable?

2007-04-09 Thread Chris Pat
Hello I need to talk to a server and parse the response. I will be running TC on a specified port. I would like to use an Action to format and process the request parameters and then forward to the full web url of the server. I believer I can do this with a simple forward in the Struts framewor

Re: How to change "targets" attribute for submit button from java script?

2007-04-09 Thread Musachy Barroso
The widget for the submit button will have a "targets" string field, but you want to change the "targetsArray" field, given: you can do this: var widget = dojo.widget.byId("mybutton"); widget.targetsArray = ["id1", "id2"]; regards musachy On 4/9/07, Shekhar Yadav <[EMAIL PROTECTED]> wrote:

Re: S2 Action Validation

2007-04-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Beyond this, how do I get an S2 action class to > display a message on the web page? See http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String) It takes a String, I18N provided by ActionSupp

Re: Simple Login demo issue

2007-04-09 Thread Jae K
Hello Vignesh, You should configure log4j, and look at both the tomcat's catalina.out log file and log4j log file. The output of the log file should tell you what went wrong. Let me know if you have trouble setting any of these up. - Jae On 4/9/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:

Re: S2 Action Validation

2007-04-09 Thread Harring Figueiredo
Hi Scott: All you have to do is: YouAction{ public String your_execute_method() { If(some error){ / * Chose what is appropriate for you - Field errors display the message on top of the field on HTML page*/ this.addActionError(); this.addActionMessage() this.addFieldError(); retu

Simple Login demo issue

2007-04-09 Thread Manickam-Periaswamy . Vignesh
Hi all I am trying to run the Simple Login demo for Struts 2. http://struts.apache.org/2.x/docs/simplelogin-with-session.html I am using struts 2.0.6 with tomcat 5.5.23. "r5sis" is "context root" and "WebContent" is "Content Directory". I copied the struts jars to the "WebContent/WEB-INF/lib"

S2 Action Validation

2007-04-09 Thread stanlick
I have a situation where an attempt could be made to enter a description for an item that already exists in the database. I am using Hibernate and suspect the easiest way to prevent this is to use HQL prior to my save. Beyond this, how do I get an S2 action class to display a message on the web p

Re: Type-Conversion error - NPE

2007-04-09 Thread Tim Williams
On 4/9/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the

Re: [OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-09 Thread robinbajaj
Awesome, worked like a charm. Thanks a ton ! Tim Williams wrote: > > Just put requestURI="/mypage.do" (where mypage.do==the page that > displays the table). > > --tim > > On 4/8/07, robinbajaj <[EMAIL PROTECTED]> wrote: >> >> thanks for the tip. >> can you please provide more specific exampl

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Re: resume after login feature

2007-04-09 Thread Dave Newton
--- Jae K <[EMAIL PROTECTED]> wrote: > I don't want to turn this into flamebait, but do you > really think that the links you provided are > sufficient? All I can say is that they were for me (the Wiki links, not the API links). As I said previously I agree that there could be improvement (I hav

Re: S2 Request Lifecycle

2007-04-09 Thread Ted Husted
If validation fails, then the original input values are pushed onto the stack, so that the tags can present the input values. If the Action or Model properties were different, then the original input properties would still be presented by the tags, because the original input properties were the la

Re: resume after login feature

2007-04-09 Thread Jae K
There are several factors that are multiplicitave in the final utility of a software package, such as performance, correctness, etc and one of them is ease of use / documentation. I love javadocs for development, but the javadoc API is usually never a proper form of overall documentation. I don't

Re: S2 Request Lifecycle

2007-04-09 Thread stanlick
Then is something reloading the properties back into the bean if the action method returns INPUT? On 4/9/07, Ted Husted <[EMAIL PROTECTED]> wrote: It shouldn't. The interceptor only autowires become the action invocation. http://svn.opensymphony.com/fisheye/browse/xwork/trunk/src/java/com/ope

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Re: S2 Request Lifecycle

2007-04-09 Thread Ted Husted
It shouldn't. The interceptor only autowires become the action invocation. http://svn.opensymphony.com/fisheye/browse/xwork/trunk/src/java/com/opensymphony/xwork2/spring/interceptor/ActionAutowiringInterceptor.java?r=1063 -T. On 4/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Sorry Ted!

Type-Conversion error - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Type-Conversion at Struts2 - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Type-Conversion at Struts2 - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Type-Conversion at Struts2 - NPE

2007-04-09 Thread Felipe Rodrigues
Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id Element_insertList=my.package.MyBean CreateIfNull_insertList=true MyAction has the attribute List insertList as well as its setters and get

Re: S2 Request Lifecycle

2007-04-09 Thread stanlick
Sorry Ted! I should have been more clear with my question. Does S2 leverage Spring in such a way as so fetch a new Action bean when the Action method returns SUCCESS? It appears a new bean is being injected into my Action when a method returns SUCCESS. Scott On 4/9/07, Ted Husted <[EMAIL PROT

How to change "targets" attribute for submit button from java script?

2007-04-09 Thread Shekhar Yadav
I have been trying to do this: function submitNext() { var tabId = $("nextPage").value; submit_next = document.getElementById(tabId); var cells = submit_next.getElementsByTagName("input"); for (var i = 0; i < cells.length; i++) { id = cells[i].id; if ( id == "s

Re: resume after login feature

2007-04-09 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > [links to API docs] > I would disagree that "it's not documented". I think my links were easier to find ;) d. Never miss an email again! Yahoo! Toolbar alerts y

Re: resume after login feature

2007-04-09 Thread Dale Newfield
Jae K wrote: Last but not least, it is not obvious that the OGNL expressions need to be enclosed in ${} when used in the struts config file. (Is this even true? I don't know since it's not documented! It certainly isn't documented so in the OGNL documentation). http://struts.apache.org/2.0.6/st

Re: S2 Request Lifecycle

2007-04-09 Thread Ted Husted
By default, "input" is one of the magic methods that bypass validation. In the case of a request for the input method, validation is not applied, and input is returned. In the case of request for the default execute/success method, input would be returned if validation fails, and success returned

S2 Request Lifecycle

2007-04-09 Thread stanlick
I have an interesting situation occurring but let me first ask how the request lifecycle differs between returning INPUT or SUCCESS from an action method. Consider this action mapping: /pages/course.jsp /pages/course.jsp -- Scott [EMAIL PROTECTED]

Re: Creating custom struts 2 tags

2007-04-09 Thread Musachy Barroso
Tabletags uses Struts Tags to generate the tld, you can use them also. musachy On 4/9/07, Telmo Costa <[EMAIL PROTECTED]> wrote: Correct... well thought! Struts-core jar includes the struts-tags.tld that it generated. I created a new tld for my tags, and it worked fine! Tks a lot! -Origi

RE: Creating custom struts 2 tags

2007-04-09 Thread Telmo Costa
Correct... well thought! Struts-core jar includes the struts-tags.tld that it generated. I created a new tld for my tags, and it worked fine! Tks a lot! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 9 de Abril de 2007 17:35 To: Struts Users Mailing L

RE: Creating custom struts 2 tags

2007-04-09 Thread Dave Newton
--- Telmo Costa <[EMAIL PROTECTED]> wrote: > I also changed the annotation to > @StrutsTag(name="date2", tldTagClass="my.Date2Tag" > ...). It compiled fine, but when I try to use it in > a jsp, it throws "javax.servlet.ServletException: > /pages/example/Format.jsp(42,2) No tag "date2" > defined i

RE: Creating custom struts 2 tags

2007-04-09 Thread Telmo Costa
Hi, That was exactly my first approach: I copied Date and DateTag to my own package, and renamed them to Date2 and Date2Tag just for testing. I also changed the annotation to @StrutsTag(name="date2", tldTagClass="my.Date2Tag" ...). It compiled fine, but when I try to use it in a jsp, it throws "j

Re: [S2] Validation setup

2007-04-09 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > minLength and maxLength (case is important and I am > an idiot) ;) I'd bet we'd turn the game over if we all kept score on stuff like that! d. Never miss an em

Re: [S2] Validation setup

2007-04-09 Thread Skip Hollowell
minLength and maxLength (case is important and I am an idiot) Done and done. Thanks Dave for helping where you could. Much appreciated. Skip. Skip Hollowell wrote: Now, if I could only figure out why I am getting errors on the minlength and maxlength of my stringlength validator:

struts.action.extension question

2007-04-09 Thread meeboo
-- View this message in context: http://www.nabble.com/struts.action.extension-question-tf3548145.html#a9905001 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Creating custom struts 2 tags

2007-04-09 Thread Musachy Barroso
You can check tabletags as an example of creating a plugin with tags: http://code.google.com/p/tabletags/ regards musachy On 4/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Telmo Costa wrote: > I've been searching for documentation on how to > create a custom tag for struts2, but I haven't

Re: [S2] Validation setup

2007-04-09 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Now, if I could only figure out why I am getting > errors on the minlength and maxlength of my > stringlength validator: > 4 > 4 Try minLength/maxLength. > WARNING: Caught OgnlException while setting property > 'minlength' on ty

Re: Creating custom struts 2 tags

2007-04-09 Thread Dave Newton
--- Telmo Costa wrote: > I've been searching for documentation on how to > create a custom tag for struts2, but I haven't > succeed. Can you tell me where to find a tutorial or > give me some guidelines on that subject? They're just like any other custom tags. Are you referring specifically abou

Re: [S2] Validation setup

2007-04-09 Thread Skip Hollowell
The file name for the validation file is: {ActionName}-{AliasName}-validation.xml In my case: AccountAction-Payment_retrieveFee-validation.xml Now, if I could only figure out why I am getting errors on the minlength and maxlength of my stringlength validator:

Creating custom struts 2 tags

2007-04-09 Thread Telmo Costa
Hi, I've been searching for documentation on how to create a custom tag for struts2, but I haven't succeed. Can you tell me where to find a tutorial or give me some guidelines on that subject? I need to create a tag for immediate amount values formatting, as exists for date values. Tks a lot

Exception starting filter struts2

2007-04-09 Thread McKinley, Kevin
I am attempting to add a struts2 page to an existing struts1 application. I get an exception starting filter on deploy (see stack trace below). Anyone have idea on how to resolve. My struts2 entry in web.xml is: struts2 org.apache.struts2.dispatcher.FilterD

Re: AJAX div loads local URL but not remote one

2007-04-09 Thread Eduardo Kortright
Thanks. Does that mean that the ajax tags allow only clients in the same domain as the server to communicate with the server? Or does it mean that clients (in any domain) can communicate only with the server that served out the pages containing the ajax call? -- Eduardo On 4/7/07, Musachy Bar

S2 XSLT Result Content-Type

2007-04-09 Thread Erik Costlow
I have a Struts2 action that uses an XSLT result to generate a final XHTML document that gets sent to the client. This action is sending the content-type of "text/xml" so IE6 is displaying the information as an XML tree, instead of showing a rendered html document. /xsl/defaults.xsl ^/result/

Re: AJAX div loads local URL but not remote one

2007-04-09 Thread Musachy Barroso
This is not specific to the Struts ajax tags, HXR (ajax) calls can only be done to the domain from where the page was loaded from. Dojo and other frameworks use some neat tricks to get around this, but the Struts ajax tags do not expose this Dojo functionality yet. regards musachy On 4/9/07, Edu

Re: WildCards and Results

2007-04-09 Thread Ted Husted
On 4/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ###struts.enable.DynamicMethodInvocation = false That was it! I updated the value last week with false but it was commented out! Too much time passed between then and now! I guess the default is true? I would hope you would not get this

Re: WildCards and Results

2007-04-09 Thread stanlick
This seems to me like putting another bullet in the gun! I agree you should pick a strategy and go with it. Having said that, do you agree the default for WCM should be false? Scott On 4/9/07, Ted Husted <[EMAIL PROTECTED]> wrote: We consider Wildcard Methods and DMI to be distinct strategie

Re: WildCards and Results

2007-04-09 Thread Ted Husted
On 4/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: Does turning off dynamic method invocation not disable the "!" functionality? As Ted said, the "!" is part of XWork but there's a config param to disable it. When DMI is disabled, then the ! is an ordinary character again. Wildcards will always

Re: WildCards and Results

2007-04-09 Thread Ted Husted
We consider Wildcard Methods and DMI to be distinct strategies, and I would suggest that an application use one or the other. But, Wildcards and DMI can co-exist if the Wildcard URIs don't use the ! character. HTH, Ted On 4/9/07, [EMAIL PROTECTED] <[EMAIL PROTEC

Re: Trying to update bean?

2007-04-09 Thread stanlick
label.save is only a key in the resource bundle. On 4/9/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Is label.save an attribute of your action? Could you post your action code here, pls? Thanks, Felipe stanlick wrote: > > I have a form that contains this submit button. When I submit th

Re: WildCards and Results

2007-04-09 Thread stanlick
###struts.enable.DynamicMethodInvocation = false That was it! I updated the value last week with false but it was commented out! Too much time passed between then and now! I guess the default is true? I would hope you would not get this behavior unless you specify the need yourself??? On 4/9

Re: Trying to update bean?

2007-04-09 Thread Felipe Rodrigues
Is label.save an attribute of your action? Could you post your action code here, pls? Thanks, Felipe stanlick wrote: > > I have a form that contains this submit button. When I submit the form, I > get the following error: > > 09:31:38,360 ERROR ParametersInterceptor:198 - ParametersIntercep

Re: WildCards and Results

2007-04-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I am discovering that both > http://localhost:8080/dsms/course_create.action AND > http://localhost:8080/dsms/course!create.action work > the same way. Is this a feature? This is the sort of > voodoo that should probably be cast out! Does turning off dynamic metho

Re: Architecture of Struts from a server application's point of view

2007-04-09 Thread Ian Roughley
I don't see why a restful URI or ajax call wouldn't be accessible via a VPN (if these are the APIs you are talking about). I think it is more dependant on the VPN configuration than anything else. /Ian Session Mwamufiya wrote: Hello, I'm new to Struts 2 and have to design an architectu

Re: WildCards and Results

2007-04-09 Thread stanlick
Ted -- After refactoring my app to use the S2 Dynamic Method Invocation as follows: /pages/course.jsp /pages/course.jsp I am discovering that both http://localhost:8080/dsms/course_create.action AND http://localhost:8080/dsms/course!create.action work the s

Trying to update bean?

2007-04-09 Thread stanlick
I have a form that contains this submit button. When I submit the form, I get the following error: 09:31:38,360 ERROR ParametersInterceptor:198 - ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression ' label.save' with value '[Ljava.lang.String;@1a3fb76'

Re: Architecture of Struts from a server application's point of view

2007-04-09 Thread Jae K
Hello Session, Just curious, why do you need an interface other than a web HTTP interface? I don't see why VPN would preclude HTTP. - Jae On 4/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote: Hello, I'm new to Struts 2 and have to design an architecture in which my server applications wo

Architecture of Struts from a server application's point of view

2007-04-09 Thread Session Mwamufiya
Hello, I'm new to Struts 2 and have to design an architecture in which my server applications would be included in Struts, which would be responsible for providing a web interface for the apps. However, I also need to communicate with these server apps via a client that will use VPN access int

Re: Struts 2 and Validation Testing

2007-04-09 Thread Thomas Ferris Nicolaisen
I made a test that ran successfully when extending StrutsTestCase. Attached the test to the Jira issue. As a result of extending StrutsTestCase, I encountered a new bug in the spring-plugin, but that's another story. I still would like some dev to comment on whether there is an actual requirement

Re: problem extending the ComposableRequestProcessor process chain

2007-04-09 Thread Joe Germuska
On 4/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... ... Is there a way that I can terminate the "process-action" chain early but still have it execute the "process-view" chain after? I will greatly appreciate any help or suggestions that you can offer. Yes. LookupCommand has a prope

Re: Validation Annotations

2007-04-09 Thread Antony Stubbs
I have the same issue. atm I send everything to !input which is by default excluded from validation. But try looking at something like this in your struts.xml: edit,create I haven't tried it yet, not quite sure how it works. You can see here that by default, input, back and ca

Re: resume after login feature

2007-04-09 Thread Dave Newton
--- Jae K <[EMAIL PROTECTED]> wrote: > [...] it doesn't require sessions for guest users I can't get all worked up about a single string in session for guests who will only use it if they hit a page where they need to log in, and if they're logging in, they're not guests anymore! > For example, t