Re: How to make a preview

2005-11-18 Thread Jesper Preuss
My homepage is loaded with struts, tiles. Because I use the url parameter preview (http://localhost/page/Page1.do?preview=true), this is inserted in all the links and forms actions (links). I use the request.getParameter(preview) in the JSP page to test if it should load the special preview stuff.

How to find length of a string in a bean

2005-11-18 Thread rahul
Hi All, I have got a bean in my session scope. I want to find the length of a string which is a member variable of that bean. I tried bean:size but this works only with collection. Any help? --RahulJoshi

RE: How to find length of a string in a bean

2005-11-18 Thread Vishal Dalal
try int lenth = beanId.StringName.length(); -Original Message- From: rahul [mailto:[EMAIL PROTECTED] Sent: Friday, November 18, 2005 2:19 PM To: user@struts.apache.org Subject: How to find length of a string in a bean Hi All, I have got a bean in my session scope. I want to find the

Re: How would you solve this problem?

2005-11-18 Thread R Raghavan
hi, you can try some technique similar to AJAX. Open the popup and do the necessary search either directly doing a http request..with submit or using HttpXMLRequest if your server support such request. And then use javascript window.open.href etc to point to the form in the page and do the

Re: Using Dates in a ActionForm

2005-11-18 Thread Zoran Avtarovski
I'm not sure if this is what you're looking for, but I just have a setStrDate(String strDate) method and do the conversion yourself. Set your form property to strDate. First test for nullness (if such a thing exists) and set the date to something your validation rules will pickup. Z. Thanks

Re: How to make a preview

2005-11-18 Thread Nick Sophinos
Given that we are talking about an MVC framework, that kind of controlling input should be processed in the controller. In other words, it would be best to request.getParameter(preview) in the action class. - Nick On 11/18/05, Jesper Preuss [EMAIL PROTECTED] wrote: My homepage is loaded with

Re: How to make a preview

2005-11-18 Thread Nicolas De Loof
Yo may use a customized requestProcessor that check for this preview attribute (or any other thing) and put a flag in request scope. Any other controller/view element can then check this flag to change it's behaviour. Nico. Nick Sophinos a écrit : Given that we are talking about an MVC

making a real full 1.3 ... help on ajax pick?

2005-11-18 Thread netsql
(I used to make on sf.net many years ago a zip of a compleate Struts, jstl, w/ tomcat, etc.) It be nice to make a zip of a Struts 1.3 start.zip that includes a super simple master/detail(displaytag) and standard development enviroment. It would include things that we normaly and regulary use

Re: [ANN] Struts Dialogs 1.24 is released

2005-11-18 Thread Danny Lee
Hi Michael! I've just installed the new version and tryed out the new features! Stuff works fine and having EVENT-DIALOG-SOMETHING in struts-config.xml seems to be much more logical then having getKeyMethodMap() inside of Action.class! The migration took something like 10 minutes, so go on

Struts and ATG Dynamo?

2005-11-18 Thread Levitt, David, Bookspan
We're looking at a major redesign of an application currently implemented in ATG Dynamo 5 and their JHTML / FormHandler technology. The decision makers here have settled on Dynamo 7, hosted inside WebSphere. Dynamo has discontinued support for JHTML, replacing it with a set of JSP tags - but

Re: making a real full 1.3 ... help on ajax pick?

2005-11-18 Thread Wendy Smoak
On 11/18/05, netsql [EMAIL PROTECTED] wrote: (I used to make on sf.net many years ago a zip of a compleate Struts, jstl, w/ tomcat, etc.) It be nice to make a zip of a Struts 1.3 start.zip that includes a super simple master/detail(displaytag) and standard development enviroment. ... So the

struts javascript question

2005-11-18 Thread fea jabi
In my JSP have a checkbox. When it is checked by user have to make sure 2 of the entries are enteried. i.e chkBox1 -- checkbox --- checked txtfield1 --- Should have entered value. txtfield2 Should have entered value. Also, have a 2 radio buttons. When

Re: struts javascript question

2005-11-18 Thread Srinivas Jadcharla
Use Validate method in the Action Form or write your own Validator. On 11/18/05, fea jabi [EMAIL PROTECTED] wrote: In my JSP have a checkbox. When it is checked by user have to make sure 2 of the entries are enteried. i.e chkBox1 -- checkbox --- checked txtfield1 ---

Re: struts javascript question

2005-11-18 Thread fea jabi
write your own Validator do you mean in Validator.xml right? can I right a javascript in there that does this? where can I find an example that does such stuff? Thanks. From: Srinivas Jadcharla [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users

Re: struts javascript question

2005-11-18 Thread Srinivas Jadcharla
Look for examples in the net or you can use validate method in the form it is easier. On 11/18/05, fea jabi [EMAIL PROTECTED] wrote: write your own Validator do you mean in Validator.xml right? can I right a javascript in there that does this? where can I find an example that does such

Re: struts javascript question

2005-11-18 Thread fea jabi
using dynaactionforms. would prefer using the the validator xml for this. thanks for your response. From: Srinivas Jadcharla [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: struts javascript

Re: making a real full 1.3 ... help on ajax pick?

2005-11-18 Thread netsql
I re-read it. This looks great: http://dojotoolkit.org/archive/dojo-2005-11-07/demos/widget/ .V Wendy Smoak wrote: This thread might help: http://www.nabble.com/OT%3A-Best-AJAX-framework-t511421.html -- Wendy - To

Re: struts javascript question

2005-11-18 Thread Srinivas Jadcharla
Iam sorry i have no idea abt DynaAction forms. On 11/18/05, fea jabi [EMAIL PROTECTED] wrote: using dynaactionforms. would prefer using the the validator xml for this. thanks for your response. From: Srinivas Jadcharla [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Re: Using Dates in a ActionForm

2005-11-18 Thread Michael Jouravlev
On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote: Thanks ... I sort of worked around it by using java.sql.Date instead, since the built-in converts in commons-beanutils does not really have a java.util.Date converter, only a java.sql.Date converter. However, I still have one problem

Form Bean Array / Check box how to

2005-11-18 Thread Troy Bull
I have a form with multiple rows on it say it has columns a b c chk hid I have javascript to set hid to Y or N based on someone clicking chk Then in my form bean I have String[] a; String[] b; String[] c; String[] hid; My question is how can I make my check box set the correct hid (if I

Re: How to make a preview

2005-11-18 Thread Martin Gainty
Jesper With the 2.3 servet API, there is a new method: request.setCharacterEncoding(String encoding) one must call before calling request.getParameter(Watever) HTH Martin- - Original Message - From: Jesper Preuss [EMAIL PROTECTED] To: Struts Users Mailing List

Re: How would you solve this problem?

2005-11-18 Thread Preston CRAWFORD
What part of this would AJAX solve? Not questioning because I know to be smart, but honestly asking. Right now what we're doing is having the popup submit itself to a traditional action, then refreshing to another JSP that handles that the updating of the parent page. I'd love it if AJAX were the

Re: Validator framework hijacks requests! :(

2005-11-18 Thread Raghu Kanchustambham
Thanks Laurie for the detailed explanation. I am still not able to get the validation working .. after spending almost a frustrating one week on it. Can you help me by telling me what I am doing wrong here... everything seems to be right.. just that it isnt working... :( Bean definition and

Action - redirect to same page with GET method

2005-11-18 Thread Jakub Królikowski
Hello! I'm new in Struts. I don't know how to write such code using Struts (version in html): html head titleSimple Forward/title /head body You can rename the source html file and it allways will works!!! br form name=test method=get onsubmit=javascript: this.action=document.location

Is there an easy way to print error messages

2005-11-18 Thread Aladin Alaily
Hello, I am using struts 1.2.7 and am having trouble outputing error messages for specific fields. If I have the following (in a form): html:input property=name / and in my action I do something like: messages.add(name, new ActionMessage(error.name.required));

Re: Is there an easy way to print error messages

2005-11-18 Thread Aladin Alaily
Problem solved... must be Friday. Aladin Hello, I am using struts 1.2.7 and am having trouble outputing error messages for specific fields. If I have the following (in a form): html:input property=name / and in my action I do something like: messages.add(name, new

Re: Is there an easy way to print error messages

2005-11-18 Thread Hubert Rabago
Yes it's Friday indeed (TG). For the benefit of you out there searching the archives, you can accomplish this by using html:errors property=name / . You can get more information here: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Hubert On 11/18/05, Aladin Alaily [EMAIL

struts validator

2005-11-18 Thread fea jabi
Have a jsp with a checkbox. If this is checked have to make sure 2 other textfields are not empty. validator name=confirm classname=org.apache.struts.validator.FieldChecks method=validateConfirm methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

RE: Is there an easy way to print error messages

2005-11-18 Thread bsimonin
Yeah, I do it this way: In the ApplicationResources.properties: errors.email=font color=redstronginvalid e-mail address./strong/font And in the jsp: tr td width=200 align=rightbean:message key=label.screen3.emailAddress/:/td tdhtml:text property=emailAddress//tdtdhtml:errors

i18n Issue for Chinese Locale.

2005-11-18 Thread Balasubramaniam, Sezhiyan
Hi, Jason suggested some fix and I tried. Still some where it is going wrong. Any other suggestions please, Thanks in advance, Bala I attached the output html: HTML lang=zhHEAD META http-equiv=Content-Type content=text/html; charset=UTF-8 META content=MSHTML 6.00.2800.1522 name=GENERATOR/HEAD

Moving from struts-layout to struts-tiles

2005-11-18 Thread Garner, Shawn
My application was using struts-layout and I wanted to upgrade to 1.2.8. I thought the tiles tags would translate 1 to 1 but they don't seem to. When I change template:get name='header' %@ include file=header.jsp%/template:get to tiles it says it can not have content in a body. I would like to

Re: Moving from struts-layout to struts-tiles

2005-11-18 Thread Greg Reddin
On Nov 18, 2005, at 3:03 PM, Garner, Shawn wrote: When I change template:get name='header' %@ include file=header.jsp%/template:get to tiles it says it can not have content in a body. I would like to default the header to this if they don't supply a header. You probably need to include

Re: Help required with struts for dynamic row addition in jsp

2005-11-18 Thread Rahul Akolkar
OTOne does wish that every UI technology had the XForms concept of repeat [1]/OT -Rahul [1] http://www.w3.org/TR/xforms/slice9.html#id2632123 On 11/16/05, Michael Jouravlev [EMAIL PROTECTED] wrote: This is an older simpler version: http://superinterface.com/rdapp/viewList.do And source code

Ich bin im Urlaub

2005-11-18 Thread bednarz
Sehr geehrte Damen und Herren, in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 93 62 28 22 Mit freundlichen Grüßen Andreas Bednarz

Re: Custom tags referencing struts tags

2005-11-18 Thread Rahul Akolkar
On 11/17/05, Laurie Harper [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 11/17/05, David Whipple [EMAIL PROTECTED] wrote: I would like to be able to create a custom tag which is able to use the struts html:text, html:dropdown or html:hidden fields. I am not able to find a way to

Re: How to find length of a string in a bean

2005-11-18 Thread Rahul Akolkar
On 11/18/05, rahul [EMAIL PROTECTED] wrote: Hi All, I have got a bean in my session scope. I want to find the length of a string which is a member variable of that bean. snip/ Try JSTL fn:length(). -Rahul I tried bean:size but this works only with collection. Any help?

Re: Has anybody experienced this weirdness with taglibs?

2005-11-18 Thread Aladin Alaily
Hi Alex, I've finally discovered why the jsessionid appended to the html:rewrites, links, and images was breaking my app. As it turns out, the apache-tomcat connectors were configured to handle anything going to /WEB-INF, *.do, *.jsp. Unfortunately, jsessionid is handled properly only via

RE: i18n Issue for Chinese Locale.

2005-11-18 Thread Balasubramaniam, Sezhiyan
I fixed the Chinese locale issue and the mistake was forgetting the encoding option in native2ascii. Used native2ascii dummy.properties ApplicationResources_zh.properties instead native2ascii -encoding UTF-8 dummy.properties ApplicationResources_zh.properties Thanks for all. Have a good

Re: Is there an easy way to print error messages

2005-11-18 Thread Martin Gainty
*Assuming* ApplicationResources.properties contains In the ApplicationResources.properties: errors.email=font color=redstronginvalid e-mail address./strong/font If your key value isnt pointing to errors.email then it should be pointing to a bundle specification for your ApplicationResources

Re: ArrayList, Arrays and logic:iterate/

2005-11-18 Thread Jon Wynacht
Thanks! I went with my original setup and things are working well. A bit more coding than I wanted but that's OK ;-) On Nov 17, 2005, at 5:36 PM, Michael Jouravlev wrote: On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote: Hi, I have a question that might have already been answered but I

Re: How would you solve this problem?

2005-11-18 Thread Preston CRAWFORD
Yeah, no easy solution for this. The more I think about it the more it occurs to me that what we're attempting to do is setup a common code base for updating any N number of forms using Javascript. The plumbing for this is easy and obvious (I listed it earlier). But making it a single code base

Re: struts validator

2005-11-18 Thread Laurie Harper
fea jabi wrote: Have a jsp with a checkbox. If this is checked have to make sure 2 other textfields are not empty. validator name=confirm classname=org.apache.struts.validator.FieldChecks method=validateConfirm methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

Re: Validator framework hijacks requests! :(

2005-11-18 Thread Laurie Harper
One thing jumps out right off: your form bean is a DynaActionForm. It needs to be an instance of ValidatorActionForm for validation to occur; either DynaValidatorActionForm form or, probably, DynaValidatorForm. If that doesn't work, I'd suggest adding a simple String-type property to the form

Re: Help required with struts for dynamic row addition in jsp

2005-11-18 Thread Laurie Harper
Yes. Starting with browsers :-( Rahul Akolkar wrote: OTOne does wish that every UI technology had the XForms concept of repeat [1]/OT -Rahul [1] http://www.w3.org/TR/xforms/slice9.html#id2632123 On 11/16/05, Michael Jouravlev [EMAIL PROTECTED] wrote: This is an older simpler version:

Re: Custom tags referencing struts tags

2005-11-18 Thread Laurie Harper
Rahul Akolkar wrote: On 11/17/05, Laurie Harper [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 11/17/05, David Whipple [EMAIL PROTECTED] wrote: I would like to be able to create a custom tag which is able to use the struts html:text, html:dropdown or html:hidden fields. I am not able

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-18 Thread Mon Cab
Thanks Atta. It is reloading the pages now. PS. Is this default behaviour for STRUTS? And if so, do you know why? It seems to me that the default should should be not to cache pages with dynamic content. Is there a way to configure this in Tomcat or in the struts config? --- atta-ur

Re: How would you solve this problem?

2005-11-18 Thread Laurie Harper
Where would AJAX help? A few ways, but principly by cleaning up the flow when you submit/close the popup; instead of the browser submitting the form, sending a request, reading the response, pulling the required data from it, and firing the Javascript to update the opening window, you'd make

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-18 Thread Mon Cab
Thanks Laurie. --- Laurie Harper [EMAIL PROTECTED] wrote: As far as I know, Tomcat only supports fully reloading the whole app. You might want to ask on the Tomcat list to be sure, though. L. Mon Cab wrote: Thanks Laurie. That helps a lot. I read about the context.xml

Re: Action - redirect to same page with GET method

2005-11-18 Thread Laurie Harper
Jakub Królikowski wrote: Hello! I'm new in Struts. I don't know how to write such code using Struts (version in html): html head titleSimple Forward/title /head body You can rename the source html file and it allways will works!!! br form name=test method=get onsubmit=javascript:

Re: html:rewrite with params

2005-11-18 Thread Frank W. Zammetti
Sorry, my bad... I wasn't aware of the LocaleAction. Apparently my suggestion was a good one, just late :) Frank Frank W. Zammetti wrote: I just wanted to point out the 3rd question on this page: http://husted.com/struts/FAQ/view-i18n.htm Laurie, your a committer now... this seems to me

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-18 Thread Michael Jouravlev
On 11/18/05, Mon Cab [EMAIL PROTECTED] wrote: Thanks Atta. It is reloading the pages now. PS. Is this default behaviour for STRUTS? And if so, do you know why? It seems to me that the default should should be not to cache pages with dynamic content. Is there a way to configure this in

obsfucating struts web application

2005-11-18 Thread su mo
Hi, I have STRUTS 1.2.7 based web application which I want to protect the decompilation of class files. I would like to obsfucate the code using JShrink or other obsfucating tools. I am wondering if anyone done this before to make the Struts 1.2.7 based web application work with obsfucated class