RE: [Tiles]

2005-06-10 Thread Pilgrim, Peter
See intermixed -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] ==== I read the paper http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp which explains how to add attributes into a tile of a definition then it invokes the page. Unfortunatly

Re: Struts 1.2.6 - 1.2.7 validation

2005-06-10 Thread Niall Pemberton
You need to deploy the new validator-rules.xml as well. Most of the shipped validations method signatures have changed and without the new validator-rules.xml you are probably getting a whole load of exceptions in your logs, as well as the validators not working. As the release notes for 1.2.7

Adding parameter to local forwards

2005-06-10 Thread Yuniar Setiawan
Hi all, I have a configuration like this one below: action path=/SubmitDrawingUpload type=SubmitDrawingUploadAction name=DrawingUploadForm forward name=showParentForm path=/DrawingUpdate.do/ /action now inside the SubmitDrawingUploadAction class usually i just need the following statement to

[Shale] How to code simple container-managed login form

2005-06-10 Thread Duong BaTien
Hello Craig: Using Shale, could you show how to code simple container-managed login form with j_username, j_password, and j_security_check and shed some light on the following attempt. Specifically, i am attempting to use simple tomcat 5.5.9 SingleSignOn to dynamically switching between SSL

Re: Struts 1.2.6 - 1.2.7 validation

2005-06-10 Thread Norris Shelton
Ah, ha. I see now. I checked the upgrade page, but it did not say anything about an upgrade from 1.2.6 to 1.2.7. We had been running 1.2.6 for several months. --- Niall Pemberton [EMAIL PROTECTED] wrote: You need to deploy the new validator-rules.xml as well. Most of the shipped

RE: [ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8p m

2005-06-10 Thread Pilgrim, Peter
I think I already said Yes to this one. -- Peter Pilgrim Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 -Original Message- From: Don Brown [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 17:44 To: Struts

Can't get html:errors/ working

2005-06-10 Thread Vincent
Hello, I'm trying to get working html:errors/ tag but I fail in this task... The webapp has the following files: - LoginAction.java (extend Action) - LoginForm.java (extend ActionForm) - Login.jsp Here an extract of the struts-config.xml: form-beans form-bean name=loginForm

Re: enabling server-side validation

2005-06-10 Thread croffman
In your code in action classes, call the form.validate(mapping, request) method Hope this helps. - Original Message - From: EROL TEZCAN [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, June 10, 2005 9:30 AM Subject: enabling server-side validation Hi, How can I enable

Re: Adding parameter to local forwards

2005-06-10 Thread Michael Jouravlev
Something like this: ActionForward af = mapping.findForward(showParentForm); return new ActionForward( actionForward.getName(), actionForward.getPath() + ?drawing_id=24, actionForward.getRedirect() ); You must create a new instance of ActionForward, you cannot change existing one, since it

[OT] using JSTL c:out / with escapeXML=false for preview HTML

2005-06-10 Thread Lixin Chu
Hi, I am trying to preview a piece of html content. but the c:out with escapeXML=false can not handle space char correctly. is there an easy way to replace the ' ' with html special space char ? thanks lixin - To unsubscribe,

Re: [Fwd: Re: [fileUpload] Question about file name]

2005-06-10 Thread Frank W. Zammetti
What does the term normalize mean in this context? I thought the issue being discussed was parsing an uploaded filename to get just the filename sans path, as IE sends... where uploads from Windows to a Unix server means that if you use the File.pathSeparatorChar to parse the name, you would

Re: [ANN] JavaOne Social Gathering in San Francisco on 6/26 at 8p m

2005-06-10 Thread Van
I appreciate people responding to let me know who can make it. I'm sure it generates more interest when people find out that Craig and other Struts Committers (e.g., Don Brown) are planning to attend. Which is good. For the majority of the folks on this list that won't be attending the gathering,

RE: [Tiles]

2005-06-10 Thread Pilgrim, Peter
See intermixed -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] ==== I read the paper http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp which explains how to add attributes into a tile of a definition then it invokes the page. Unfortunatly

RE: [Tiles]

2005-06-10 Thread Ray Madigan
Thanks for the information, I have a demo to give on Monday so I took the easy road and hacked a solution. It turns out tiles:insert supports beanName, beanProperty, beanScope so I added a property to an already existing bean that is in request scope that returns the right string after a couple

Re: [Shale] How to code simple container-managed login form

2005-06-10 Thread Craig McClanahan
On 6/10/05, Duong BaTien [EMAIL PROTECTED] wrote: Hello Craig: Using Shale, could you show how to code simple container-managed login form with j_username, j_password, and j_security_check and shed some light on the following attempt. The JSF standard form and input components don't

RE: Test whether an application resource is empty

2005-06-10 Thread Chris Loschen
Thanks Laurie, I tried to set it up this way, but wasn't able to make it work. My struts-config file defines the message-resources parameter like so: message-resources parameter=ApplicationResources null=false/ So I tried putting that in, and also tried some variants like

RE: Problem with html:select id -- Help me OUT

2005-06-10 Thread Kade Jeevan Kumar
Hi Madigan ! Thnx for ur solution. It is working now with styleId -Jeevan - Discover Yahoo! Get on-the-go sports scores, stock quotes, news more. Check it out!

Does struts1.1 support multiple validation files and multiple resources

2005-06-10 Thread Venkat Reddy Valluri
Hi, Does struts1.1 support multiple validation files and multiple resources ThksRgds --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Can't get html:errors/ working

2005-06-10 Thread Leandro_Dorileo/ABACO
The html:errors/ will always look for an ActionMessages (in any context) identified by the key property configured in the exception element in your struts-cfg, if no such object is found then nothing is done. Have you configured your application init-param in your web.xml? Perhaps you might

Re: Test whether an application resource is empty

2005-06-10 Thread Laurie Harper
You want to use the name of the attribute the resource bundle is stored under, not the name of the properties file. You're not specifying it in your Struts config so you want the following: logic:present name=org.apache.struts.action.MESSAGE property=%=directionToUserKey.toString()%

Re: Adding parameter to local forwards

2005-06-10 Thread Laurie Harper
If a redirect rather than a forward is acceptable, you can also look at ActionRedirect (new in 1.2.7). ActionForward fwd = mapping.findForward(...); ActionRedirect ar = new ActionRedirect(fwd); ar.addParameter(name, f.getString(name)); return ar; L. Michael

[HELP]onchange in the html:select tag

2005-06-10 Thread Leandro_Dorileo/ABACO
Hi all! I have a html:select tag and in the onchange I need pass a little javascript, till here no problem, but, I need put in the middle of this javascript a string from my formbean. I thought some thing like this: html:select property=myProperty name=myFormBean

Re: [HELP]onchange in the html:select tag

2005-06-10 Thread Martin Gainty
Leandro Read this article about accessing a bean via JavaScript via home interface JNDI name http://docs.jcu.edu.au/pm/manual/bg/ejbscrip.htm#35920 HTH, Martin- - Original Message - From: Leandro_Dorileo/[EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, June 10, 2005 2:55 PM

Re: [OT] using JSTL c:out / with escapeXML=false for preview HTML

2005-06-10 Thread Laurie Harper
What's an 'html special space char'? Lixin Chu wrote: Hi, I am trying to preview a piece of html content. but the c:out with escapeXML=false can not handle space char correctly. is there an easy way to replace the ' ' with html special space char ? thanks lixin

Re: [Shale] How to code simple container-managed login form

2005-06-10 Thread Craig McClanahan
On 6/10/05, Duong BaTien [EMAIL PROTECTED] wrote: Hello Craig: Using Shale, could you show how to code simple container-managed login form with j_username, j_password, and j_security_check and shed some light on the following attempt. Specifically, i am attempting to use simple tomcat

Re: [HELP]onchange in the html:select tag

2005-06-10 Thread Laurie Harper
Leandro_Dorileo/[EMAIL PROTECTED] wrote: html:select property=myProperty name=myFormBean onchange=javascript:form.action='c:out value=myFormBean.myProperty/';form.submit(); You can't nest JSP custom tags like that. If you can use JSTL, this will work: html:select property=myProperty

Any option to pass bundle attribute to ActionError class

2005-06-10 Thread Venkat Reddy Valluri
Hi, I would like to use alternate resources file for errors Any option available to pass bundle attribute to ActionError class or ActionMessage object ThksRgds --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [HELP]onchange in the html:select tag

2005-06-10 Thread Woodchuck
hihi Leandro, if you are using Tomcat 5 you should be able to use EL (Laurie's first suggestion)... make sure your web.xml is declared with version 2.4 dtd to have EL on by default. if you don't have EL, you can use the Struts-EL tags which give you the EL support! (these are available in the

RE: Test whether an application resource is empty

2005-06-10 Thread Chris Loschen
Thanks again, Laurie, but for some reason it still returns false every time, even if there is something under that key. I'm pretty sure I followed your directions exactly: tiles:useAttribute id=directionToUserKey name=directionToUserKey scope=request classname=java.lang.String

[OT] displayTag needs session scoped objects for sort/export ?

2005-06-10 Thread Lixin Chu
Hi, would like to clarify with those who use displayTag: is it a must to put list of objects into session to be able sue sort and export function ? thanks lixin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [Shale] How to code simple container-managed login form

2005-06-10 Thread Frank W. Zammetti
Duong BaTien wrote: First, thanks for an extra help. No problem... I hope I can help further :) The whole idea is to use SSL for confidential pages such as logon, change username / password, edit profile with confidential data. Other time some resources may just be protected by roles. The