Re: struts 1.3.8 / el tag install/configure?

2007-09-17 Thread Antonio Petrelli
2007/9/14, john lee [EMAIL PROTECTED]: if i want to use el tag for struts 1.3.8, need to do extra configuration or is default already? It depends. If you are in a container supporting JSP 2.0, you don't need to use -el tags, simply because it is already built-in in the container. If it is not

Re: struts2 bug when deploying ? please help

2007-09-17 Thread Leonidas Papadakis
Sorry for the alert , i got it. There was a problem with the appBase and Context path parameter on the host declaration of tomcat Best Regards, Leon Leonidas Papadakis wrote: Greetings to all, i have a problem that is really driving me crazy so i would REALLY appreciate your help .

Struts i8n problem in 2.0.9

2007-09-17 Thread Dean Pullen
Has anyone seen any internationalization problems in the 2.0.9 release? I had a dozen or so languages working fine, then recently noticed it's been broken since I've upgrade from 2.0.8. - Everything seems to be defaulting to French... Dean.

RE: Struts i8n problem in 2.0.9

2007-09-17 Thread Dean Pullen
Mon Dieu. Found that in struts.properties I had this: struts.custom.i18n.resources=struts-messages,struts-messages_en,struts-m essages_fr Which was forcing struts to use the last properties file loaded. Obviously it should just be: struts.custom.i18n.resources=struts-messages And struts will

struts 2.0.9 with the dynamic tree

2007-09-17 Thread Session A Mwamufiya
Hi, I recently upgraded to struts 2.0.9, and now my tree viewer doesn't respond to node selections any more. Here's my jsp script: script function treeNodeSelected(nodeId) { dojo.io.bind({ url: s:url value='/tags/ui/ajax/dynamicTreeSelectAction.action' /?nodeId=+nodeId, load:

[S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread MLENEVEUT
Hi all, We have an Action redirecting to several JSP, depending on the customer. But the forms of these JSP are different : some fields are added/removed in some JSP. So the automatic validation fails for those fields not existing in some JSP. We bypass the problem by copying the Action

Re: Struts 2 Unit test for Session.

2007-09-17 Thread Antonio Petrelli
I think you have to ask the Spring forums. Antonio 2007/9/17, isharatbabu [EMAIL PROTECTED]: Hello all, I have created a java bean called person. i am accessing that java bean from applicationcontext.xml where bean scope is set as session. applicationcontext.xml beans

Re: [FRIDAY] JPA War Stories?

2007-09-17 Thread Piero Sartini
We do use TopLink Essentials. Beside the somewhat confusing error messages already mentioned by musachy we are very happy with this choice. JPA is just great :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Source in maven respositories

2007-09-17 Thread Max Pimm
It would be a really nice touch if whoever maintains the maven project for struts2 could include the source jars in the maven repositories. max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Source in maven respositories

2007-09-17 Thread James Holmes
It's a known issue: https://issues.apache.org/struts/browse/WW-2028 Hopefully we'll have this resolved soon... On Mon Sep 17 9:34 , Max Pimm [EMAIL PROTECTED] sent: It would be a really nice touch if whoever maintains the maven project for struts2 could include the source jars in the maven

Re: Extended conversation/Wizards

2007-09-17 Thread Ian Roughley
The two options are (1) Spring WebFlow plugin as you mentioned, and (2) Session interceptor, that will move attributes from the action in and out of session scope for the duration of the wizard. /Ian Martin Gilday wrote: Hi, I am currently maintaining a WebWork 2 based web application. A

Re: Tags mapping between Struts 1 and Struts 2

2007-09-17 Thread Paul Benedict
Xibin, * 2.0 does not have an equivalent to the image tag. 2.1 will though. * Use JSTL rather than logic. * The equivalent of bean is simply s:bean Go to the struts 2 home page and view the tutorials. They have the tag library explanations. Paul On 9/17/07, Xibin Liu [EMAIL PROTECTED] wrote:

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Geoffrey Gallaway
Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By default you see only text for photos except the ones you own.. then the field becomes editable if you click on it. Thanks, Geoffeg On Sep 16, 2007, at 11:23 PM,

Relative paths in my webapp

2007-09-17 Thread Diego Ezquerro
Hi to everyone. I'm developing a webapp and need to store some files and use some images stored in my project dir but, I have a problem with the relative paths on my app. If I write a file in using: File f = new File(someFileName); f.createNewFile();

Tags mapping between Struts 1 and Struts 2

2007-09-17 Thread Xibin Liu
Good morning Everyone, I am trying to find out the tags in struts 2 that are equivalent to html, bean and logic in struts 1. And seems there is no clue. No document either. It would be appreciated if someone who knows the mapping can share with us on this. Ex: Struts 1: html:img bundle=messages

Re: Whats the harm in creating a Servlet Dispatcher?

2007-09-17 Thread j alex
Can you please explain a bit more on this issue ? - i'm also using WAS 6.1and fear i might run into this down the line. We'll need to use jsp:forward/include etc. a lot in our app. -Joseph On 9/17/07, Paul Benedict [EMAIL PROTECTED] wrote: Shepherd, As you know, you can configure a filter

Re: [S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread cilquirm
somewhat hackish, but you can accomplish this by using expressions : #params['attrib'] != null ? attrib in ('a','list','of','values') (this is just an example stating that you can check for the existence of the variable in the parameter and then execute an expression like you normally would )

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Paul Benedict
I haven't used the feature yet. But does a readOnly form print the text for text fields? I'd like to know. On 9/17/07, Geoffrey Gallaway [EMAIL PROTECTED] wrote: Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By

Re: Whats the harm in creating a Servlet Dispatcher?

2007-09-17 Thread cilquirm
I'm pretty sure that making FilterDispatcher a Filter was a design decision so converting it to a servletdispatcher may not be as easy or as straightforward as one might think. If memory serves ( and these days, that's not guaranteed ), it actually used to be a filter/servlet combination before

Re: Relative paths in my webapp

2007-09-17 Thread andrea
hi, Diego you have to put the images under the webRoot/images folder... Andrea - Original Message - From: Diego Ezquerro [EMAIL PROTECTED] To: struts user@struts.apache.org Sent: Monday, September 17, 2007 4:33 PM Subject: Relative paths in my webapp Hi to everyone. I'm

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Dave Newton
--- Geoffrey Gallaway [EMAIL PROTECTED] wrote: Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By default you see only text for photos except the ones you own.. then the field becomes editable if you click on it.

Re: JAAS struts 2 Tutorial?

2007-09-17 Thread Muhammad Momin Rashid
Hello Tom, Thanks for your continued input. The application isn't simple, it is a J2EE application which will serve a large number of users (users will be using Web Browser or Mobile Device to access the application). Based on the help I got on this list, I have been successful in setting

Re: [S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread MLENEVEUT
Sorry I did'nt understand your answer. I was talking about some input/ fileds in my JSP (present in some JPS, not in others), and how to write my XML validator file, like : validators field name=myInputFieldName field-validator type=requiredstring param

Re: Struts 2 Unit test for Session.

2007-09-17 Thread Session A Mwamufiya
I believe you can write a mock implementation of the Person bean and have a copy of applicationcontext.xml for your unit test that points to that mock implementation. What you'd need to do is provide an application context variable to the constructor of your action; in your production code,

Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-17 Thread Arne Brutschy
Hello, I'm experiencing a strange problem after upgrading from struts 1.1 to 1.3.8. Perhaps the problem is known or expected, I haven't found a solution yet. Basic structure: setupUser.dofills in the form for a user profile user.jspdisplays the user profile form editUser.do

Re: [S2] Conditional Validation (test if field is present in JSP)

2007-09-17 Thread cilquirm
You can manage conditionals by using expressions and fieldexpressions , so your validation below would become : field name=myInputFieldName field-validator type=fieldexpression (#params['myInputFieldName'] neq null) ( myInputFieldName neq null

Re: struts 2.0.9 with the dynamic tree

2007-09-17 Thread Session A Mwamufiya
Please, has anyone figured out how to make the tree selection work with struts 2.0.9? The showcase example, the way it stands doesn't work for 2.0.9 (it didn't work for 2.0.6 either, but I found a hack that involved changing the struts-core jar file). I thought it was supposed to be fixed in

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Geoffrey Gallaway
On Sep 17, 2007, at 9:57 AM, Dave Newton wrote: That's not what most people think you mean when you say a read-only field. What you need to do is render either a tag or simple text depending on J. Random Criteria (although you might be able to get away with a read-only field and a borderless

Re: JAAS struts 2 Tutorial?

2007-09-17 Thread Eugen Stoianovici
I would like a tutorial on integrating jaas in struts2 too. Or rather than a tutorial, i would like to see some working code. I've done a lot of reading (i'm new to java web applications, it's been only a month since i've started) and i have some understanding on how this should work but i

Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul

RE: Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
Hi Paul, Thats a requirement.The error has to be shown with the original wrongly filled fields. The reset is ok if there is no error.Then the same ActionForm is used for new entries. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Benedict

RE: Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
I found a non elegant way of doing it. Was wondering if it was possible to do it through config. But this will do for now, Thanks.. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:00 PM To: Struts Users Mailing List Subject: RE: Dont

Re: Dont want fields to be reset in the case of error

2007-09-17 Thread Paul Benedict
Asthana, There is nothing wrong with the technical requirement, but not invoking reset() smells to me. The use of reset() is to reset the form before population. Afterwards, the values of the request are populated. Why doesn't this work for you? If there are wrong values, they will be there after

Re: Dont want fields to be reset in the case of error

2007-09-17 Thread Paul Benedict
Why don't you want the reset? On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul

escapeAmp ,url parameter, is missing from tld !

2007-09-17 Thread Leonidas Papadakis
Greetings to all, i just came across that escapeAmp url parameter is missing from the tld of struts 2.0.9 and thus it can not be used. Is it done intentionally so that we will not use it ? Thank you very much Leon - To

Struts2 + Profiling

2007-09-17 Thread rakeshxp
Hello Everyone, I am using Struts 2.0.9. I want to disable profiling for my application and have the following properties configured to set so In Struts.xml constant name=struts.devMode value=false / The interceptors in my stack are interceptor-ref

setting a file filter in file upload

2007-09-17 Thread Session A Mwamufiya
Hi, I create my own files with extension .smt and would like to have the s:file tag filter the selection and only allow those files. I tried to set the accept attribute to the following: - *.smt - text/smt but neither worked. Any ideas? Thanks, Session

[S2] Wicket integration

2007-09-17 Thread Chris Pratt
I'm wondering if anyone has been able to replace the Struts 2 view using Wicket. It seems like a marriage made in heaven, since the whole philosophy behind Wicket is to stick to what they do well (the view) and delegate the rest to other projects that do other things well (Hibernate, Struts???)

Re: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-17 Thread Arne Brutschy
Hi, A I'm not sure if the reason for this is some change in the tags (my A tags are simply wrappers around the standard struts tags, ie. A XylonTextTag extends TextTag) or the changes in the request wrapper A system. I tried to set A controller A

execute and wait fails on browser refresh

2007-09-17 Thread Leonidas Papadakis
Greetings to all, i have implemented the execute and wait capability of struts2. The first time is ran everything is smooth. The browser (firefox) url contains instead of , amp; generated by the s:url/ tag. If i try to refresh the browser everything gets mixed up, resulting in getting weird

RE: struts 1.3.8 / el tag install/configure?

2007-09-17 Thread Karr, David
-Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 12:00 AM To: Struts Users Mailing List Subject: Re: struts 1.3.8 / el tag install/configure? 2007/9/14, john lee [EMAIL PROTECTED]: if i want to use el tag for struts 1.3.8, need

s:url/

2007-09-17 Thread stanlick
I am discovering this tag does not render the same way between my desktop and ISP. My ISP is 2.4/2.0 Tomcat-5.5.23 My desktop 2.5/2.1 Tomcat-6.0.14 Everything works fine on my desktop but when I upload the war to my ISP, the url

Re: struts 2.0.9 with the dynamic tree

2007-09-17 Thread Vo Van Thuong
Hi, I also had the same problem, and have found the solution: + create a new folder named ajax under folder template (template has same level as WEB-INF and put the attached file tree.ftl in that folder (template\ajax\tree.ftl) + try this new function, in which parameter nodeId is

Re: struts2 is moving mainly to jsp ?

2007-09-17 Thread Balaji J
Hi Leonidas, You can include shtml or freemarker files using #include tag like this #include header.ftl / you can also consider templateDir or theme in the include path. here are few examples #include /${parameters.templateDir}/header.ftl / #include

Re: s:url/

2007-09-17 Thread Balaji J
Hi Scott, I verified s:url/ and even @s.url in both environments. I was not able to see the difference. In my desktop, i was using tomcat 5.5 and my server has tomcat 6.0 If you can explain me the difference, i can visualize where it went wrong or I am looking at something else. Thanks, Balaji

Re: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-17 Thread Paul Benedict
It is part of the HTML spec that disabled fields are not submitted in the request. This is not a Struts thing but HTML. You should make sure the HTML is being rendered the same, because that's probably what is causing your problem. Paul On 9/17/07, Arne Brutschy [EMAIL PROTECTED] wrote: Hi,