Re: Scrollbar problem with tabbed panel in Struts2

2007-12-05 Thread Jeromy Evans
quinquin2209 wrote: Thanks for reply Yes. The content of the tab remains, just the scrollbar appears/disappears. I have tried an experiment in the tabbed panel example in struts2-showcase as follow: 1. Open file example2.jsp located at struts2-showcase-2.0.11\ajax\tabbedpanel 2. Edit the

R: R: R: my execute method of action class is getting executed twice

2007-12-05 Thread Gigliotti, Andrea
function actionConfirm() { if(newConfirm('Confirmation Request','Are you sure to delete item ?',1,1,0)) { // return document.forms[0].submit(); return true; } else return false; } I changed the row return

[S2] Ognl in s:if

2007-12-05 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Hello all, I have two Set of objects. The set1 is the reference set (with all objects) and set2 some on list1 elements. All elements are the same class and I have redefined hashCode and equals method. I want to do this : s:iterator value=set1 s:if test=%{#top in

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Ray
The return value is a String array! It's really supprised me. May this experience is meaningful for freshman to Struts2 like me. Thx everyone. -- Ray Chen Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com - To

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
Hi Jeromy, Jeromy Evans wrote: 2nd, the parameters interceptor is called and sets properties of your action. It cannot set primitives to null, so it does not write to these properties. 3rd, the validation interceptors are executed. They cals the getters of your action instance and observe

Re: Excel, Struts and Downloading

2007-12-05 Thread Indresh Chadha
I need to download a file from the server using AJAX Struts. Is this possible? Frank W. Zammetti wrote: No, you don't need to implement StrutsFileDownload... What your doing should work fine... Can you throw together a quick, simple application that is nothing but a single Action that

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Johnson nickel
Hi Jeromy Evans, Thanks for your reply. I would like to insert the images into my Databases. For that, i'm using byte[] array. In Struts 1.3, I used FormFile class. From this class i got the method getFileData(); In my db,

RE: [S2] Ognl in s:if

2007-12-05 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Yes, It was my first try And it doesn't work too. -Message d'origine- De : GF [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 décembre 2007 12:30 À : Struts Users Mailing List Objet : Re: [S2] Ognl in s:if Have you tried: aContainerObject.set2.contains(#top) On Dec 5, 2007 11:27

Re: localization issue for Italian language (package_it.properties)

2007-12-05 Thread GF
it's the N-th time you post the same stuff. On Dec 4, 2007 6:03 PM, Gigliotti, Andrea [EMAIL PROTECTED] wrote: If you have struts 2.0.11 or 2.0.9 you can deploy the struts2-blank-2.0.11.war file located into the apps folder (ex. C:\struts-2.0.11\apps). Before deploying the web app you have

Re: [S2] Ognl in s:if

2007-12-05 Thread GF
Have you tried: aContainerObject.set2.contains(#top) On Dec 5, 2007 11:27 AM, LEONARD Julien (Consulting for ACCOR Hotels) [EMAIL PROTECTED] wrote: Hello all, I have two Set of objects. The set1 is the reference set (with all objects) and set2 some on list1 elements. All elements are the

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Jeromy Evans
Johnson nickel wrote: Hi Jeromy Evans, Thanks for your reply. I would like to insert the images into my Databases. For that, i'm using byte[] array. In Struts 1.3, I used FormFile class. From this class i got the method getFileData();

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Nuwan Chandrasoma
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap() Ray wrote: The return value is a String array! It's really supprised me. May this experience is meaningful for freshman to Struts2 like me. Thx everyone.

RE: [S2] Ognl in s:if

2007-12-05 Thread LEONARD Julien (Consulting for ACCOR Hotels)
In fact, I've just tried aContainerObject.set2.contains(top) And it works... Is there a documentation on the use of # to acces to a variable? -Message d'origine- De : LEONARD Julien (Consulting for ACCOR Hotels) [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 décembre 2007 12:34 À :

Re: startup action in struts2

2007-12-05 Thread GF
I suggest you to consider Spring Framework and Quartz. On Dec 4, 2007 4:52 AM, Christopher Cheng [EMAIL PROTECTED] wrote: In struts1, I have a few plugin to preconfigure some services such as QuartzPlugIn during startup public void init(ActionServlet actionServlet,

S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Giovanni Azua
hi, I provided declarative XML validation for a form where the action would expose primitive type properties. The problem is that a primitive type property left blank in the form would never be caught as not provided by the required validation. The property would instead be set with the

Re: Excel, Struts and Downloading

2007-12-05 Thread Frank W. Zammetti
Indresh Chadha wrote: I need to download a file from the server using AJAX Struts. Is this possible? No, it's not... well, assuming if by AJAX you mean using XMLHttpRequest, but since AJAX is a technique, arguably using things like hidden frames is still AJAX, and with that you could

R: localization issue for Italian language (package_it.properties)

2007-12-05 Thread Gigliotti, Andrea
I posted the issue more time on the forum because it's has been closed (WW-2345 ) by someone saying It is not a bug. Reading carefully my message you should understand the issue is a bug! So I'm expecting this bug to be fix quickly. -Messaggio originale- Da: GF [mailto:[EMAIL PROTECTED]

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Martin Gainty
getparameters gets the map http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionContext html use the get mwthod to obtain the value to which this map maps the specified key http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html M- - Original Message - From: Ray [EMAIL

Re: I18N problem

2007-12-05 Thread Angel Gruev
Yes I actually breakpoint the getText method in the ActionSupport. It is called. 2007/12/5, Dave Newton [EMAIL PROTECTED]: Does the action extend ActionSupport? d. --- Angel Gruev [EMAIL PROTECTED] wrote: Hello I have read the guide for internationalization but still I cannot get it

Re: [S2] Ognl in s:if

2007-12-05 Thread Martin Gainty
take a look at references to other than [root] object access at http://struts.apache.org/2.0.6/docs/ognl.html M-- - Original Message - From: GF [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, December 05, 2007 6:42 AM Subject: Re: [S2] Ognl in s:if

Re: I18N problem

2007-12-05 Thread Dave Newton
Does the action extend ActionSupport? d. --- Angel Gruev [EMAIL PROTECTED] wrote: Hello I have read the guide for internationalization but still I cannot get it running. 1. I have a property file with internationalization data called ApplicationResources.properties (used for the old

Re: S2: HashMap - from jsp to action

2007-12-05 Thread Wes Wannemacher
My guess is that UEL is enabled in your app server. The quick fix would be to escape the # character - list=\#{'foo':'foovalue','bar':'barvalue'} The problem is that UEL and OGNL both use #{, but OGNL isn't evaluated until after UEL attempts to evaluate it. It's a known issue, but there is

Re: I18N problem

2007-12-05 Thread Ian Roughley
You should probably try using the key rather than the label attribute, I'm not even sure whether it will accept OGNL: s:textfield key=blabla/ -- Ian Roughley From Down Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL

Re: S2: HashMap - from jsp to action

2007-12-05 Thread Wes Wannemacher
Sure Martin, this link provides a good starting point - http://java.sun.com/products/jsp/reference/techart/unifiedEL.html -Wes On 12/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Wes Is there a link which describes UEL for our own edification? Thanks/ M- -- Wesley Wannemacher

Re: S2: HashMap - from jsp to action

2007-12-05 Thread Wes Wannemacher
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html That is the description of the UEL, https://issues.apache.org/struts/browse/WW-2213 That is where I discovered the symbol clash. What tipped me off is that you mentioned using the full @java.util.Hashmap@ notation and it worked.

Re: S2: HashMap - from jsp to action

2007-12-05 Thread Dave Newton
http://www.google.com/search?q=unified+expression+language --- JM [EMAIL PROTECTED] wrote: Thanks for the reply. Very informative. I have not heard of UEL yet, can you send me some references. I know about about EL. I tried the escape as you suggested. But this fails with no errors and no

[S2] Splitting a Struts 2 Application

2007-12-05 Thread Skip Hollowell
This may be a bit off target, but I was hoping some folks here have some suggestions. I have been working on a Struts2 app here for the last6-8 months, and it is now pretty stable. So stable in fact that we want to use it as a model for more apps with similar functionality. So my question

Re: S2: HashMap - from jsp to action

2007-12-05 Thread JM
Thanks for the reply. Very informative. I have not heard of UEL yet, can you send me some references. I know about about EL. I tried the escape as you suggested. But this fails with no errors and no output. any suggestions? Wes Wannemacher wrote: My guess is that UEL is enabled in your app

DisplayTag - show image by condition

2007-12-05 Thread quinquin2209
Hi All, I am trying with the displayTag and I would like to see if it is possible to display an image at the first column depending on some conditions. For example, a vip.gif should be shown if the person is a VIP and no image should be shown if the person is normal member. How can I achieve it?

Re: S2: HashMap - from jsp to action

2007-12-05 Thread mgainty
Hi Wes Is there a link which describes UEL for our own edification? Thanks/ M- - Original Message - Wrom: FGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWW To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, December 05, 2007 9:55 AM Subject: Re: S2: HashMap - from jsp to action

Re: R: localization issue for Italian language (package_it.properties)

2007-12-05 Thread Antonio Petrelli
2007/12/5, Gigliotti, Andrea [EMAIL PROTECTED]: I posted the issue more time on the forum because it's has been closed (WW-2345 ) by someone saying It is not a bug. That someone is me :-) If I understood you well, you say that, if the browser is Italian and you use it to call a webapp, you

How to get the size of uploadded file before it is transferred from client to server with html:file tag of struts 1.2?

2007-12-05 Thread William King
We can use the validate method of actionform class to check whether the size of uploadded file has exceeded the max size.but,do we really have to upload that file completely before check? if i upload a very large file,maybe several g bytes,then it taks a very long time to transfer that file from

Re: How to restrict direct accessing .jsp and .do in struts webapp

2007-12-05 Thread Gary Affonso
SmokeTheSun wrote: Hi, Iam working in Struts1.2 application development. In that i want to restrict direct access(through URL) for jsp pages or by calling .do action. Specifically unauthenticated user must not access any pages. ACEGI is the current gold-standard for implementing

Re: How to restrict direct accessing .jsp and .do in struts webapp

2007-12-05 Thread Martin Gainty
start here http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ping me offline if you want to to look at portal management implementations anyone? M- - Original Message - From: SmokeTheSun [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, December 05, 2007 11:21 AM

Re: S2 action mapping: How to return to previous action?

2007-12-05 Thread Gary Affonso
Joachim Ansorg wrote: Hi all, I have two actions (action1 and action2) which both call a third action. How can I do the mapping of the third action so that the calling action is called again (i.e. action1 or action2)? Before action1 or action2 finishes, store its name in one of the scopes

Re: DisplayTag - show image by condition

2007-12-05 Thread Richard Sayre
You have to make your own decorator: I assume your table is populated with a 'Member' list or something similar. In your table decorator create a method that returns the image based on the condition: public class MemberListDecorator extends TableDecorator { public String getType() {

Re: Problem developing a tag using Struts 2 Arch for Tags

2007-12-05 Thread Dave Newton
--- victor sosa [EMAIL PROTECTED] wrote: Well, It doesn't iterate (end method), what means When there aren't any objects left to iterate over it does some cleanup and goes away. ??? See this code in end()? if (iterator!=null iterator.hasNext()) { Object currentValue =

Re: Problem developing a tag using Struts 2 Arch for Tags

2007-12-05 Thread victor sosa
newton.dave wrote: I'm not sure what you mean by using the return value... of the start() and end() methods. End() does the same thing; this is where (AFAICT) the bulk of the iteration is done. When there aren't any objects left to iterate over it does some cleanup and goes away.

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-05 Thread quinquin2209
Thanks. It's ok for your suggested method. Jeromy Evans - Blue Sky Minds wrote: quinquin2209 wrote: Thanks for reply Yes. The content of the tab remains, just the scrollbar appears/disappears. I have tried an experiment in the tabbed panel example in struts2-showcase as follow:

Required validator dosen't work

2007-12-05 Thread xniit2003
Hi all, I am trying to use required validator in struts2. But it seems this one dosen't work at all. Have anybody successfully used required validator. Thanks -- View this message in context: http://www.nabble.com/Required-validator-dosen%27t-work-tf4952011.html#a14179533 Sent from the Struts

Re: Configuring Struts to use UTF-8 character encoding

2007-12-05 Thread Adam Gordon
So, for posterity, we finally got this working. After several days of playing around with a sandbox Struts application that worked, but our webapp that didn't, we finally realized that the ORDER of the filters matters (duh...). We put the character encoding filter first in our chain and it

Re: Required validator dosen't work

2007-12-05 Thread Dave Newton
--- xniit2003 [EMAIL PROTECTED] wrote: I am trying to use required validator in struts2. But it seems this one dosen't work at all. Have anybody successfully used required validator. What data type are you attempting to validate? d.

Re: Required validator dosen't work

2007-12-05 Thread Gary Affonso
xniit2003 wrote: Have anybody successfully used required validator. Yes. One thing to note about validation is that it *won't* automatically short-circuit if you're not using the workflow interceptor. Without that interceptor validation can fail and your action's execute method will still

I18N problem

2007-12-05 Thread Angel Gruev
Hello I have read the guide for internationalization but still I cannot get it running. 1. I have a property file with internationalization data called ApplicationResources.properties (used for the old struts 1 applicaiton) There is a line blabla = test 2. In the struts.properties file I

Re: [S2] Ognl in s:if

2007-12-05 Thread GF
I have some problems to understand it too :-) I often just do many tries until it works :-) On Dec 5, 2007 12:38 PM, LEONARD Julien (Consulting for ACCOR Hotels) [EMAIL PROTECTED] wrote: In fact, I've just tried aContainerObject.set2.contains(top) And it works... Is there a documentation

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
Giovanni Azua wrote: hi, I provided declarative XML validation for a form where the action would expose primitive type properties. The problem is that a primitive type property left blank in the form would never be caught as not provided by the required validation. The property would

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
Giovanni Azua wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I always make the getter return false if the value is null.. This

How to check whether the uploaded file exists when using html:file tag of struts 1.2?

2007-12-05 Thread ang jin
when i upload file with html:file tag of struts 1.2,how can i judge whether the inputted file path is a valid one? the development enviroment is tomcat+struts+eclipse. i once want to check it in the validate method of corresponding actionform.but in debug mode,after i input a invalid file path

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Jeromy Evans
Johnson nickel wrote: Hi everyone, I am using Struts 2 and using s:file tag to upload a file. But I get that file as a 'File' object in my action class and using getFileName() on that File object returns me some arbitrary value (something like upload__5b41f107_1127b4befe0__8000_.tmp). I

Re: S2: HashMap - from jsp to action

2007-12-05 Thread JM
Can anyone explain to me why the following select tag statement fails: s:select label=label name=name list=#{'foo':'foovalue', 'bar':'barvalue'} / I get the following massive trace: (note that using the advanced version as stated on the opensymphony link below - with list=[EMAIL

Re: [S2] Splitting a Struts 2 Application

2007-12-05 Thread Jeromy Evans
Skip Hollowell wrote: This may be a bit off target, but I was hoping some folks here have some suggestions. I have been working on a Struts2 app here for the last6-8 months, and it is now pretty stable. So stable in fact that we want to use it as a model for more apps with similar

Re: css_xhtml theme - br

2007-12-05 Thread Dave Newton
That certainly works, but I think removing the br/ altogether is a cleaner solution since it shouldn't be in there in the first place. d. --- Zarar Siddiqi [EMAIL PROTECTED] wrote: A much easier way to do this would be to apply a CSS style like this: div.wwgrp br { display: none; }

Re: css_xhtml theme - br

2007-12-05 Thread Angel Gruev
Thank you both for the quick response. It worked! 2007/11/28, Eric Martin [EMAIL PROTECTED]: Agreed...the br / is irritating ;) Just to expand on what Dave said... 1) extract the template/simple/inputtransferselect.ftl file from the struts jar. 2) put the file in your classpath, we have

Re: css_xhtml theme - br

2007-12-05 Thread Zarar Siddiqi
A much easier way to do this would be to apply a CSS style like this: div.wwgrp br { display: none; } See this old blog post: http://arsenalist.com/2007/04/11/struts-2-form-control-templates/ On Dec 5, 2007 9:14 AM, Angel Gruev [EMAIL PROTECTED] wrote: Thank you both for the quick

Struts 2 File upload to store the filedata

2007-12-05 Thread Johnson nickel
Hi everyone, I am using Struts 2 and using s:file tag to upload a file. But I get that file as a 'File' object in my action class and using getFileName() on that File object returns me some arbitrary value (something like upload__5b41f107_1127b4befe0__8000_.tmp). I want to retrieve

S2 action mapping: How to return to previous action?

2007-12-05 Thread Joachim Ansorg
Hi all, I have two actions (action1 and action2) which both call a third action. How can I do the mapping of the third action so that the calling action is called again (i.e. action1 or action2)? Thanks, Joachim - To

Re: How to solve the limitation of s:optiontransferselect tag

2007-12-05 Thread DJR
What I'm doing now to solve the problem is to modify the source code of the tag. But it's a bit troublesome, I think. Are there any more elegant solutions?:thinking: DJR wrote: As is know to all, s:optiontransferselect tag has a buttonCssStyle attribute, which will make all buttons look in a

Re: How to solve the limitation of s:optiontransferselect tag

2007-12-05 Thread Jeromy Evans
DJR wrote: What I'm doing now to solve the problem is to modify the source code of the tag. But it's a bit troublesome, I think. Are there any more elegant solutions?:thinking: DJR wrote: As is know to all, s:optiontransferselect tag has a buttonCssStyle attribute, which will make all

Re: [struts] How to solve the limitation of s:optiontransferselect tag

2007-12-05 Thread Dale Newfield
Jeromy Evans wrote: DJR wrote: What I'm doing now to solve the problem is to modify the source code of the tag. But it's a bit troublesome, I think. Are there any more elegant solutions?:thinking: DJR wrote: As is know to all, s:optiontransferselect tag has a buttonCssStyle attribute,