Re: How to create an action-mapping to another contaxtPath?

2007-03-05 Thread Aram Mkhitaryan
If your ears are on the same server, there is a way to share web modules. There is a way, but you should manually configure. See here for more details: http://forum.java.sun.com/thread.jspa?forumID=33&threadID=259394 And you can seek in your web server's documentation (I recommend this). Best,

RE: Struts 2 with jetty

2007-03-05 Thread alex xander
sorry it just my error i make a wrong war file when i changed it, it work thx alot Wesslan <[EMAIL PROTECTED]> wrote: I use Jetty as web container to deploy my Struts2 projects (Struts 2.0.3) and I also use the Maven-Jetty-plugin without any problems. I don't recall any special configuration to g

Re: NoSuchMethodException: $Proxy18.find()

2007-03-05 Thread Adam Ruggles
I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicat

Re: [S2] ParametersInterceptor Error

2007-03-05 Thread sfali
First of sorry for multiple submission of my post (I submit the post far too many times). Basically there are two fields, one is string and other is int, and both are legal values. I will try to use custom data convertor. Regards, Syed Dariusz Wojtas wrote: > > What is the type of 'field1'?

Re: Struts-Faces: Tomahawk tree

2007-03-05 Thread Rodrigo Pereira
Sorry, I thought I had pasted the error stack trace in here. Using myfaces-extensions-1.0.9.jar from the example that ships with struts 1.3.5 I got the following error: org.apache.jasper.JasperException: /menu.jsp(12,3) Unable to load tag handler class "org.apache.myfaces.taglib.html.ext.HtmlPane

Re: [s1] Cancel request parameters and attributes

2007-03-05 Thread Niall Pemberton
Chris, You pretty much have it - the point at which the value submtted by the tag is converted to Globals.CANCEL_KEY is in the RequestProcessor's processPopulate() method. Having said that, Struts 1.3.5 uses the new ComposableRequestProcessor which replaces all that RequestProcessor functionalit

Lack of Validator Messages SOLVED!!! ( was Re: ApplicationResource.properties file not be read?)

2007-03-05 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 OK... I figured it out. In all the text I was reading on the topic as I was going along I totally missed the fact that there is a catalog of messages that is **required** for the validator to work: To wit: errors.required={0} is required. errors.mi

Re: Fileupload in JBOSS AS

2007-03-05 Thread torben
I have found the problem. I forgot to install commons-fileupload and commons-io. Torben torben wrote: I have problem to upload a file using strut2 in an jboss server, version 4.0.5 In the jsp page I have: enctype="multipart/form-data"> accept="application/vnd.ms-powerp

Re: Non standard url parameter -- when jsessionid appended [SOLVED]

2007-03-05 Thread Eric Rank
Thanks Chris, You're right! I did run into that exact same problem. I can add a third solution to the ones you offer. The struts 2 url tag has an "encode" attribute. When you do: The jsessionid is omitted from the generated path. However, this should be used with care, because it remov

Re: ApplicationResource.properties file not be read?

2007-03-05 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just a quick follow up to clarify what I'm "seeing." When I invoke this form, hit submit without filling anything in (in my eyes a worst case scenario) a popup window comes up with an exclamation point with no messages in it. - -- :::

Re: ApplicationResource.properties file not be read?

2007-03-05 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Laurie Harper wrote: > > If that's the case, you probably just have an error in your validation > configuration. Post the relevant parts of that for review. > > OK.. here goes: I'll use the simplest of the forms and work from there. The JSP for a

Re: Non standard url parameter -- when jsessionid appended [SOLVED]

2007-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric Rank wrote: > Solved this problem. > > By setting the DefaultType directive to "text/html" in Apache's > httpd.conf, the pages with urls containing the appended ";jsessionid" > display as html, not plain text. > > I should have thought of

@ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

2007-03-05 Thread Alex Wibowo
Gday... I am using the @ExpressionValidator annotation. So far it is working alright, apart from this exception I was getting: WARNING: Caught OgnlException while setting property 'methodName' on type ' com.opensymphony.xwork2.validator.validators.ExpressionValidator'. ognl.NoSuchPropertyExcept

Re: Actions & Validation

2007-03-05 Thread Dave Newton
--- Scott <[EMAIL PROTECTED]> wrote: > I keep reading about how Actions can be POJOs with an > execute method, yet I don't see any examples of this. That's because most Actions need to do more than just be a POJO; they need to be validated, have access to the session, etc. > I need to know if th

Re: Actions & Validation

2007-03-05 Thread Scott
The only examples I can find that deal with validations use ActionSupport! What's strange, I keep reading about how Actions can be POJOs with an execute method, yet I don't see any examples of this. Do you know how S2, XW, or whatever you want to call it, behaves when you would like to leverag

Re: ParametersInterceptor Error

2007-03-05 Thread Dariusz Wojtas
What is the type of 'field1'? Is it's String representation passed from the form compatible with what the data type converter expects? I have seen problems like this for properties of type java.util.Date and locale on the server machine different that EN. SImilar problems with Double/Float and no

ParametersInterceptor Error

2007-03-05 Thread sfali
Hi All, I have following scenario: In my Action I set my pojo bean with some values and sets this bean into session. On the next page I displays these values in a form by , when I am submitting the form I am geting following error: E

ParametersInterceptor Error

2007-03-05 Thread sfali
Hi All, I have following scenario: In my Action I set my pojo bean with some values and sets this bean into session. On the next page I displays these values in a form by , when I am submitting the form I am geting following error: E

Re: Non standard url parameter -- when jsessionid appended [SOLVED]

2007-03-05 Thread Eric Rank
Solved this problem. By setting the DefaultType directive to "text/html" in Apache's httpd.conf, the pages with urls containing the appended ";jsessionid" display as html, not plain text. I should have thought of that before :-) Thanks Eric. On Mar 5, 2007, at 2:32 PM, Eric Rank wrote:

ParametersInterceptor Error

2007-03-05 Thread sfali
Hi All, I have following scenario: In my Action I set my pojo bean with some values and sets this bean into session. On the next page I displays these values in a form by , when I am submitting the form I am geting following error: E

Re: Non standard url parameter -- when jsessionid appended

2007-03-05 Thread Eric Rank
Thanks Michael, I was just reading up on the servlet spec and you're right, the jsessionid is not a regular query parameter. Everything that's happening is as according to spec. The redirection to the same page when the session cookie is set would work, but only for those who have session

Re: Non standard url parameter -- when jsessionid appended

2007-03-05 Thread Michael Jouravlev
From servlet engine point of view, jsessionid is not a query parameter, you can verify that by calling getParameter or getParameterMap on request object, jsessionid is not there. To my mind, the simplest thing one can do is to get rid of jsessionid parameter. To do this you need to have cookies

Re: Actions & Validation

2007-03-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > My app works fine when I extend ActionSupport, but I > do not want to tie my Actions to S2. Then implement the "real logic" via pluggable interface impls, but (even) I think decoupling can be taken past the point of diminishing returns. Also, it's not coupled to S2

Re: Actions & Validation

2007-03-05 Thread stanlick
Hi Laurie -- I understand how validation works when extending ActionSupport - but my classes extend a POJO I created. Do you understand how validation works when registering simple POJO's as actions? I have XML files in the same folder that follow the naming standard "MyAction-validation.xml" a

Re: how to set role for JAASRealm

2007-03-05 Thread abpicol
The configuration of jaas realm needs two things: 1) Have the environment variable java.security.auth.login.config defined to a file that contains some definitions... 2) Have the so called file in a place accessible to tomcat, with the jaas configuration. The solution I've used in my tom

Non standard url parameter -- when jsessionid appended

2007-03-05 Thread Eric Rank
Happy Monday everyone. I have a question for you. Hopefully it doesn't go too far off track. When I'm using the struts url tag (struts 2) to generate a link, I get a non standard url parameter, ";jsessionid" appended on the first visit with a new browser session. It seems that this occurs w

Re: how to set role for JAASRealm

2007-03-05 Thread Vinny
Seems like this question should go to tomcat-users On 3/5/07, shahab <[EMAIL PROTECTED]> wrote: Hi: I am trying to implement authentication and authorization using JAASRealm. (I am following the instruction provided at - http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html). I have the fo

how to set role for JAASReal

2007-03-05 Thread shahab
Hi: I am trying to implement authentication and authorization using JAASRealm. (I am following the instruction provided at - http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html). I have the following issue - I have created a class extending Principal for the role. I am setting the right name

[s1] Cancel request parameters and attributes

2007-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, [Reposted, as I didn't get a response for 2 months :(] I have two actions in my code that I want to be able to cancel out-of, but neither of them is exciting enough to warrant a form bean and a trip through the validator. I have found that Actio

Re: [S2] Mailreader tour source link plz.

2007-03-05 Thread Ted Husted
The MailReader application and source code is in the distribution. The online repository is here: * http://svn.apache.org/viewvc/struts/struts2/trunk/apps/mailreader/ -Ted. On 3/5/07, Paul Saumets <[EMAIL PROTECTED]> wrote: Hey all, Does anyone have the link to the Mailreader tour source rep

Re: How to create an action-mapping to another contaxtPath?

2007-03-05 Thread Joe Germuska
No, the SwitchAction depends on having access to the same ApplicationContext for the destination as that in which it executes. For your purposes, two EARs deployed separately on the same server are no "closer" to each other than if they were on different continents. Joe On 3/5/07, Edson Alves

[S2] Mailreader tour source link plz.

2007-03-05 Thread Paul Saumets
Hey all, Does anyone have the link to the Mailreader tour source repository for the Struts 2 version? There's something I really need to take a look at. planetstruts.org seems to be down or inaccessible from my office here all day so far so a direct link would be very useful! Regards, Paul

Re: How to create an action-mapping to another contaxtPath?

2007-03-05 Thread Edson Alves Pereira
Those server are real separate applications, they are two EAR deployed in the same J2EE server. Can i use SwitchAction to manage that? On 3/5/07, Joe Germuska <[EMAIL PROTECTED]> wrote: If you actually ran these as two separate modules in a single Struts app, then you could use the module swit

RE: Re: Actions & Validation

2007-03-05 Thread Smyth, Colm
You can switch validate=false in the struts config and call the validate method of the form from within your action. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 05 March 2007 11:24 To: user@struts.apache.org Subject: Re: Actions & Validation [E

Re: How to create an action-mapping to another contaxtPath?

2007-03-05 Thread Joe Germuska
If you actually ran these as two separate modules in a single Struts app, then you could use the module switching facilities. See http://struts.apache.org/1.x/userGuide/configuration.html#module_config-switching If they are two separate web applications, then there is no built-in way to help on

How to create an action-mapping to another contaxtPath?

2007-03-05 Thread Edson Alves Pereira
Hello folks, i must use from my application an action from another struts application, both servers are in the same machine, for example: /server1/initProccess.do send a forward to /server2/fillStatements.do Regards, Edson

Re: Using the html:img tag inside html:submit

2007-03-05 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: >> http://struts.apache.org/1.2.9/userGuide/struts-html.html#image > I'm not sure that helps. I thought he wanted a graphical button. d. TV

Re: [s2] ww-1747

2007-03-05 Thread Ted Husted
Thanks for volunteering, Laurie. :) On 2/27/07, Laurie Harper <[EMAIL PROTECTED]> wrote: 2.0.7 will be the next release after 2.0.6. Struts doesn't offer 'minor patch' releases like 2.0.6.1. So, the fix will be included in the next release, which is 2.0.7. HTH, L. ---

Re: restful actions

2007-03-05 Thread Aram Mkhitaryan
yes, please, send the code since released classes can't be used I'm trying to write something to handle requests like actionName/*/sometext/*/*/sometext/sometext/** http://context/actionName/paramXValue/sometext/paramYValue/paramZVAlue/sometext/sometext/p/v/p2/v2/p3/v3/ do you know how we can r

Re: restful actions

2007-03-05 Thread Philip Lorenz
> Thanks for response, > > I have already tried empty extension. That works. > > But actually, the real problem was not there. > There is a problem with Restful*ActionMappers, they don't work properly. > > Thank you in advance, > Aram I am currently running a slightly hacked version of the Rest

Re: ApplicationResource.properties file not be read?

2007-03-05 Thread Laurie Harper
Peter L. Berghold wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niall Pemberton wrote: It should work - is this exactly how you have things configured - because theres a slight difference in names below - one has an "s" on the end. eh... yeah.. the lack of "s" was the typo. They are

Re: restful actions

2007-03-05 Thread Aram Mkhitaryan
Thanks for response, I have already tried empty extension. That works. But actually, the real problem was not there. There is a problem with Restful*ActionMappers, they don't work properly. Thank you in advance, Aram

Re: Actions & Validation

2007-03-05 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I want to leverage the validation support via XML file and my actions are POJOs that do not extend ActionSupport. How do I determine from within my action if the validation failed? My POJO actions have specific method names that are being requested via wildcard mapping

Re: restful actions

2007-03-05 Thread Philip Lorenz
> If you do not want to add the .example extension to your URLs you will have to set this to an empty string. > According to docs following path "http://contextroot/do/this is an > example" > should invoke view method, but i get 404 code. > Even struts filter does not handle this request. >

Re: Using the html:img tag inside html:submit

2007-03-05 Thread Laurie Harper
Dave Newton wrote: --- Asad Habib <[EMAIL PROTECTED]> wrote: Is their a way to do this? http://struts.apache.org/1.2.9/userGuide/struts-html.html#image I'm not sure that helps. The issue is not how to use the tag, but how to use it in this context -- which I don't think you can, see below:

Re: Struts-Faces: Tomahawk tree

2007-03-05 Thread Laurie Harper
What are you trying to download? Where was it referenced? What error(s) did you get when you tried the download(s)? As Dave's post suggests, we need more details to be able to help you. L. Rodrigo Pereira wrote: Hi, I am trying to user tree or tree2 component. I saw there are those reference