How to set object to value stack from jsp?

2007-10-11 Thread Igor Vlasov
I have an object in session nad want to use it in jsp struts tag as a top object. I do not want to create action for geting it from session and putting it to action property. How can i put a value from session to the top of value stack ? -- View this message in context: http://www.nabble.com

Re: [S2] Configure Message Store Interceptor via Annotations

2007-10-11 Thread Gunnar Hillert
Hi Adam, Thanks for your comments. Yes, I looked at the sources for the MessageStoreInterceptor and indeed it looks quite simple. I played around with it tonight and I made the inteceptor annotations-aware. I have added 2 method-level annotations: @StoreMessages and @RetrieveMessages This works

Re: [s1.35] Need help with Struts and Modules

2007-10-11 Thread Paul Benedict
Eric, You want to secure actions based on the URI. Perhaps you want all paths starting with /secure to be under HTTPS. Under that scenario, you would install a servlet filter which would check for this path and force authentication. Check out www.acegisecurity.org for a great security library. P

Value Stack and Interceptors

2007-10-11 Thread stanlick
Are the interceptors pushed on the stack as the request is being processed? In my web page, I do not seem to be getting the same love from the getAbc() method of an interceptor that I do from an Action. -- Scott [EMAIL PROTECTED]

Re: Client side validation for radio button

2007-10-11 Thread Martin Gainty
in your jsp head tag.. what value have you assigned to theme? M- - Original Message - From: "Mitch Claborn" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Thursday, October 11, 2007 5:38 PM Subject: Client side validation for radio button Using the xhtml theme, client-

Re: Struts 2 Plugin

2007-10-11 Thread stanlick
Alright, the plug-n-play ain't working! The plug-in functionality works fine if I coerce it into my application's struts.xml, but after many attempts at overriding the existing defaultStack, it appears *not* possible. According to the docs, Since a plugin can contain the struts-plugin.xml file,

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Dave Newton
--- Emi Lu <[EMAIL PROTECTED]> wrote: > For Struts2, action classes extend "ActionSupport". > > Would I have to extend DispatchAction in order to > use IBATIS? No. There's no direct connection between either version of Struts and iBatis (or any other DB layer, for the most part). The demo provid

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Emi Lu
http://learntechnology.net/content/main.jsp I would be more interested about the setup/configuration/tutorial for *Struts2 + ibatis2.3*, but not struts1 + ibatis. The point is that the example at the provided link uses Spring. S2 uses Spring. The differences in the iBatis/Spring configuratio

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Larry Meadors
Yeah, I converted the WW demo to S2 and it was trivial. Larry On 10/11/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Emi Lu <[EMAIL PROTECTED]> wrote: > > > http://learntechnology.net/content/main.jsp > > I would be more interested about the > > setup/configuration/tutorial for > > *Struts2 +

Re: Struts Showcase Links Broken?

2007-10-11 Thread Phil404
Of course, the source is available... Phil -- View this message in context: http://www.nabble.com/Struts-Showcase-Links-Broken--tf4610006.html#a13165773 Sent from the Struts - User mailing list archive at Nabble.com. - To uns

Re: Struts Showcase Links Broken?

2007-10-11 Thread Phil404
I get the same error with the distro Phil -- View this message in context: http://www.nabble.com/Struts-Showcase-Links-Broken--tf4610006.html#a13165656 Sent from the Struts - User mailing list archive at Nabble.com. - To unsu

Client side validation for radio button

2007-10-11 Thread Mitch Claborn
Using the xhtml theme, client-side validation for radio button is not working. I've tried both "required" and "requiredstring" but I suspect that none will work. The javascript code (from form-close-validation.ftl) does this: function validateForm_Question() { form = document.getEle

Re: Struts Showcase Links Broken?

2007-10-11 Thread Dave Newton
--- Phil404 <[EMAIL PROTECTED]> wrote: > http://www.planetstruts.org/struts2-showcase/filedownload/index.jsp FYI, showcase is also available in the distro. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Dave Newton
--- Emi Lu <[EMAIL PROTECTED]> wrote: > > http://learntechnology.net/content/main.jsp > I would be more interested about the > setup/configuration/tutorial for > *Struts2 + ibatis2.3*, but not struts1 + ibatis. The point is that the example at the provided link uses Spring. S2 uses Spring. The di

Struts Showcase Links Broken?

2007-10-11 Thread Phil404
Go to: http://www.planetstruts.org/struts2-showcase/filedownload/index.jsp Click "View Sources" and then click "Configuration". I get "Unknown Configuration". Also, If I click "Java Action", I get "Unknown or unavailable Action class". Is there someone who can fix this, please? Phil -- View

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Emi Lu
http://learntechnology.net/content/main.jsp I would be more interested about the setup/configuration/tutorial for *Struts2 + ibatis2.3*, but not struts1 + ibatis. On 10/11/07, Emi Lu <[EMAIL PROTECTED]> wrote: Greetings, Would someone know some good tutorials about "struts 2.0.9 + ibat

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Ron Chan
try the struts2-ibatis version of appfuse light appfuse-light-struts2-ibatis-1.8.zip from https://appfuse-light.dev.java.net/ Emi Lu-2 wrote: > > Greetings, > > Would someone know some good tutorials about "struts 2.0.9 + ibatis2.3.0 > + SQLmap" > > . setup > . examples > > Thanks a lot

Re: DispatchAction and execute Method

2007-10-11 Thread Niall Pemberton
On 10/11/07, Mariano Rico <[EMAIL PROTECTED]> wrote: > Hi, > > I have an action class extending the DispatchAction class to get > different methods executed. > > My question is if the execute() method of DispatchAction is being > executed before my own methods in my action class. Yes and its the D

Re: concurrency issue in v. 1.0.2

2007-10-11 Thread Niall Pemberton
On 10/11/07, Dmitry Beransky <[EMAIL PROTECTED]> wrote: > Hi, > > We are still using an old version of Struts (1.0.2) and at this point > upgrading to a newer version would require a really compelling reason, which > I might have found. While investigating reasons behind slowness of our > website

Re: [OT]Best practice: Transfer information from J2ee based app to ColdFusion based app

2007-10-11 Thread Martin Gainty
You probably want to consider a more secure architecture .. If you would be willing to retain the features in attributes and functions (accessors/mutators) in Java Beans.. Then CF can transmit as well as receive parameters from the previously configured back end Java beans directly without risking

RE: Validation not validating

2007-10-11 Thread Mitch Claborn
Ahh. The doc is a bit misleading. It reads: Validation rules can be specified: 1. Per Action class: in a file named ActionName-validation.xml Should probably be in a file named ActionClassName-validation.xml Thanks! _ Mitch Claborn [EMAIL PROTECTED] -Original Message-

[OT]Best practice: Transfer information from J2ee based app to ColdFusion based app

2007-10-11 Thread sriharsha . chevuru
Hi, This is not the right place, but I would be glad if I can get some help. I just wanted to know what is the best practice if i need to transfer control i.e. when I hit 'submit' button in a Struts based (or a JSP) based app using 'POST' method and the control now goes to ColdFusion (CF) base

RE: Validation not validating

2007-10-11 Thread Dave Newton
--- Mitch Claborn <[EMAIL PROTECTED]> wrote: > Oops. > > Question-validation.xml > public class ActionQuestion extends ActionSupport { If you're gunning for validation based on the action class name then this should be ActionQuestion-validation.xml. d. -

RE: Validation not validating

2007-10-11 Thread Mitch Claborn
Oops. Question-validation.xml http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> Username is required Please answer q1 Here are snippets from the action ActionQuestion.java public class ActionQuestion e

Re: Validation not validating

2007-10-11 Thread Dave Newton
--- Mitch Claborn <[EMAIL PROTECTED]> wrote: > Seems like the validation is not firing. > What am I missing? Without any validation files and / or action files it's kind of hard to say. If you post your validation file (the tutorial uses an XML config) that might be enough; posting your Action fi

Validation not validating

2007-10-11 Thread Mitch Claborn
Struts 2.0.9 + Tomcat 6 + Debian Linux I'm not seeing any validation messages when the fields I submit are empty. ?debug=xml does not show any error messages on the stack. Seems like the validation is not firing. What am I missing? I tried to copy everything from the Logon example in the tutori

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Larry Meadors
http://learntechnology.net/content/main.jsp Larry On 10/11/07, Emi Lu <[EMAIL PROTECTED]> wrote: > Greetings, > > Would someone know some good tutorials about "struts 2.0.9 + ibatis2.3.0 > + SQLmap" > > . setup > . examples > > Thanks a lot! > > --

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
> Right, that has sorted the problem with the form, thanks for the help. > > I'm wondering why that tag was put there in the first place, > what could have been the reasoning behind that? I'm hoping > that removing it won't have implication elsewhere in the process... Are you talking about the

Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Emi Lu
Greetings, Would someone know some good tutorials about "struts 2.0.9 + ibatis2.3.0 + SQLmap" . setup . examples Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

static access to request / response / page context objects?

2007-10-11 Thread Adam Hardy
I'm writing a few static methods to use as taglib functions in my JSPs, in particular right now I'm writing a method to return an internationalised string from the resource bundles for use such as this: Somewhere For this example I need access to the locale in use. I suspect that my optio

Re: [S2] Configure Message Store Interceptor via Annotations

2007-10-11 Thread Adam Hardy
Gunnar, the message store interceptor is quite lean. I have copied it and written my own version to give me the functionality I needed. Now with your comments, it seems like a prime target for further development by S2 to beef it up a bit to provide more options. Maybe we could put in a patc

RE: Error: dojo is not defined

2007-10-11 Thread Dean Pullen
It helps if you don't have apache loading all static content. It was taking the request for .js files and running off with 'em... ;) -Original Message- From: Dean Pullen [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:46 To: Struts Users Mailing List Subject: RE: Error: dojo is not d

RE: styleId attribute in html:form

2007-10-11 Thread whichit
Right, that has sorted the problem with the form, thanks for the help. I'm wondering why that tag was put there in the first place, what could have been the reasoning behind that? I'm hoping that removing it won't have implication elsewhere in the process... Slattery, Tim - BLS wrote: > >> We

RE: Error: dojo is not defined

2007-10-11 Thread Dean Pullen
Yes I have, but using Firefox web dev plugin, it shows the JS files as not loaded. Looking into further, thanks... -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:45 To: Struts Users Mailing List Subject: Re: Error: dojo is not defined did you

Re: Error: dojo is not defined

2007-10-11 Thread Musachy Barroso
did you set theme="ajax" on your head tag? Are the dojo js files loaded by the browser? musachy On 10/11/07, Dean Pullen <[EMAIL PROTECTED]> wrote: > Ok another one... > > > > I see the dojo is in the core jar, and the dojo head seems to get > defined correctly in the JSP. > > > > Anyone know the

Error: dojo is not defined

2007-10-11 Thread Dean Pullen
Ok another one... I see the dojo is in the core jar, and the dojo head seems to get defined correctly in the JSP. Anyone know the resolution to this issue?

RE: Localized text in a tooltip

2007-10-11 Thread Dean Pullen
Thanks Julien. -Original Message- From: Julien Leonard [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 14:38 To: 'Struts Users Mailing List' Subject: RE: Localized text in a tooltip Hello, I think that you can try : Julien -Message d'origine- De : Dean Pullen [mailto:[EMAIL

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
> We have a struts form, and we need to have a styleId element > (which translates into a standard HTML id element). When we > include it, the page breaks, with no errors logged, just a > blank page. If we leave it out completely, when the page > loads an id element has been included, with the

Re: [S2] Indexed properties

2007-10-11 Thread Gabriel Belingueres
You are not the only one that thinks so. There are some OGNL expression issues involved that are confusing too: in the s:param: won't work (the same expression as the textfield) But s:param evaluates the expression in a different way when placing it as a child: referidos[%{#stat

RE: [S2] Send a request AJAX in JS

2007-10-11 Thread Julien Leonard
Thanks. I will use topics, and I will wait for Struts 2.1 Julien -Message d'origine- De : Musachy Barroso [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 octobre 2007 16:10 À : Struts Users Mailing List Objet : Re: [S2] Send a request AJAX in JS Oh ok, let me just insert an Struts 2.1 comm

styleId attribute in html:form

2007-10-11 Thread whichit
Hello all. We have a struts form, and we need to have a styleId element (which translates into a standard HTML id element). When we include it, the page breaks, with no errors logged, just a blank page. If we leave it out completely, when the page loads an id element has been included, with the v

Re: [S2] Send a request AJAX in JS

2007-10-11 Thread Musachy Barroso
Oh ok, let me just insert an Struts 2.1 commercial here. On 2.1 there is a "bind" tag that can be bound to multiple events on multiple targets and will make XHRs when those events fire. http://struts.apache.org/2.x/docs/bind.html on 2.0, if where you want to put the returned html is a div, then j

RE: [S2] Send a request AJAX in JS

2007-10-11 Thread Julien Leonard
No, I want to send a the request in a onclick of a ^^ Julien -Message d'origine- De : Musachy Barroso [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 octobre 2007 15:54 À : Struts Users Mailing List Objet : Re: [S2] Send a request AJAX in JS But the tag does it for you. Do you mean that y

Re: [S2] Send a request AJAX in JS

2007-10-11 Thread Musachy Barroso
But the tag does it for you. Do you mean that you want to do it yourself (like, just for fun, it isn't any fun at all :) )? regards musachy On 10/11/07, Julien Leonard <[EMAIL PROTECTED]> wrote: > > If fact, I don't need anymore to do this. > But i'm curious ! > > In fact, I want to send an ajax

RE: Localized text in a tooltip

2007-10-11 Thread Julien Leonard
Hello, I think that you can try : Julien -Message d'origine- De : Dean Pullen [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 octobre 2007 15:32 À : Struts Users Mailing List Objet : Localized text in a tooltip What's the best way to get localized text in a tooltip? Cheers.

RE: [S2] Send a request AJAX in JS

2007-10-11 Thread Julien Leonard
If fact, I don't need anymore to do this. But i'm curious ! In fact, I want to send an ajax request with the same way of Ajax Struts tag, but in javascript. I want to put the result of this request in a div. Julien -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De

Re: Trouble with using struts tags in freemarker files

2007-10-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > My problem is that I don't know what's the correct > way to reference the struts taglib. > > My code: > > <#assign s=JspTaglibs["/META-INF/struts-tags.tld"]> I'm not sure if you need to define a reference to the struts-tags to use them; have you tried it without it

Localized text in a tooltip

2007-10-11 Thread Dean Pullen
What's the best way to get localized text in a tooltip? Cheers.

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Ted Husted
Binding two Action classes together that way sounds like a "slippery slope" to me. It seems like a better practice to rely on standard JavaBean semantics, and access the values that need to be brought forward through the usual get and set methods. One other thing to try, which you may have started

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Igor Vlasov
Thank you for the answer. I see that properties are copied. But the property must be in javaBean spec. otherwise subpropirties are not copied. I think that i can get previos Action and manualy get whole property as object. The copy process in ChainInterceptor rely on OGNL and look like "magik".

Trouble with using struts tags in freemarker files

2007-10-11 Thread anine.louise.medhus-dale
Hi, I hope someone can help me with this problem. I have a freemarker file where I need to use struts tags to create url. My problem is that I don't know what's the correct way to reference the struts taglib. My code: <#assign s=JspTaglibs["/META-INF/struts-tags.tld"]> ">Link her

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Ted Husted
The Action itself is not copied over, the PROPERTIES are copied. If the properties in common are copied forward, then there should be no need to address the prior Action class directly. Any methods that need to be called by more than one Action should be moved to a base support class that the Actio

Re: Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

2007-10-11 Thread Arup Francis
Hi Laurie, The visitor validator is I believe the same thing (or almost similar) as specifying validation rules against model classes. I was able to fix my problem of duplication using that. The BaseClass implementation will not work because I looked up the way the validation xml's associated

Re: Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

2007-10-11 Thread Arup Francis
Hi Ian, I had looked into visitor validator earlier and had misunderstood it and thought the top level model object had to be given for using visitor validator but guess not. I looked it up more deeply and yes I am able to remove the duplication of validation almost fully. An xml still need to

RE: Error: ParametersInterceptor - [setParameters]

2007-10-11 Thread judoguygr
Add the following line to your struts.xml file. d-.*-p Example:

Re: [S2] Simple loop 1..20 with with iterator tag?

2007-10-11 Thread Igor Vlasov
I must use struts iterator and use struts variables with iterator index variables. Like this from 1 to 20" > " selected="SELECTED"> nuwan chandrasoma-2 wrote: > > Hi, > > why dont you use JSTL > > > > > > Thanks, > Nuwan > > Igor Vlasov wrote: >> In documentation thre is an

Re: [S2] Simple loop 1..20 with with iterator tag?

2007-10-11 Thread Nuwan Chandrasoma
Hi, why dont you use JSTL Thanks, Nuwan Igor Vlasov wrote: In documentation thre is an example:

Re: how to make ActionForm in session scope in Struts2

2007-10-11 Thread Nuwan Chandrasoma
Hi, what you mean by ActionForm? in struts2 there is no such as ActionForm, you can access the session from your action class and add any object to the session as an attribute. http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can

[S2] Simple loop 1..20 with with iterator tag?

2007-10-11 Thread Igor Vlasov
In documentation thre is an example:

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Igor Vlasov
1. I have "actionOne" public class ActionOne extends ActionSupport implements ServletRequestAware{ protected HttpServletRequest request; private SearchParameter searchData=new SearchParameter();//My complex object public String execute() throws Exception{ //fill searchData with param

DispatchAction and execute Method

2007-10-11 Thread Mariano Rico
Hi, I have an action class extending the DispatchAction class to get different methods executed. My question is if the execute() method of DispatchAction is being executed before my own methods in my action class. Thanks -

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Laurie Harper
Igor Vlasov wrote: Copying of properties with ChainingInterceptor working GOOD. OK, good that something is working well. What's not clear is what *isn't* working... I have very complex object as a property to copy and i MUST make every part of it in javaBean specification. For me it is too