Re: Using struts-config to configure properties in action form

2004-03-22 Thread Kumar M
set-property sets the attributes on the FormBeanConfig object itself that is created for that particular form-bean tag. Since foo is not a property on FormBeanConfig you see this error. You can extend FormBeanConfig and include the attribute foo in there but I am not sure what you will gain

bean:message format ssn

2004-03-11 Thread Kumar M
Hi all, I am wondering if there is an easy way to format the ssnn. What I have is a String '123456789' but the users would like to see '123-45-6789'. Is there an easy way of doing this using bean:write or bean:message or any other tag? Thanks!!

Re: AW: bean:message format ssn

2004-03-11 Thread Kumar M
/] bean:write name=test7.value formatKey=format.pattern//td - /tr /snip The preceeding code came from http://www.mail-archive.com/[EMAIL PROTECTED]/msg20743.html Andreas -Ursprungliche Nachricht- Von: Kumar M [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. Marz 2004 16:45 An: Struts

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
a look at java.text.DecimalFormat for an explanation of formatting patterns for decimal numbers. /snip The above code came from http://www.junlu.com/msg/45833.html. I didn't even know that this was possible. Lets see if I need it some day! Andreas -Ursprungliche Nachricht- Von: Kumar M [mailto

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Tim, That is what I have right now...and is ofcourse very simple to do it in FormBeans :). But I have to do this at a number of places/form beans, so I was wondering if it could be done using bean:message as I mentioned in the subject of this e-mail (not necessarily bean:write). Thanks!

FileUpload and filePath

2003-10-03 Thread Kumar M
Hi all, I am uploading files using FormFile in my ActionForm. When the uploaded is completed I would like to show them the complete path of the files that they have uploaded. For example, C:\mydocs\doc1.txt instead of just doc1.txt. The FormFile.getFileName() retrieves the file name but I

Simple html:options question

2003-09-11 Thread Kumar M
Hi all, I have an ArraList of strings that I want to show in a drop-down box. The same thing is both the label as well as the value. Can anybody tell me how I can do this using html:options? The collection in html:options is expected to hold JSP beans, which is not the case in my situation.

Re: html:link/ URL Parameters

2003-09-11 Thread Kumar M
Out of curioistywhat abstraction does Struts provide to avoid the mapping that you are talking about. I thought it is pretty standard to use the *.do kinda mappings. From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List

html:form; action attribute problem

2003-09-10 Thread Kumar M
Hi all, I have a question re the action attribute of a html:form. The html:form is spread over a few tiles. Currently, its value is populated using a run time expression html:form action='%= (String)request.getAttribute(FORM_ACTION) %' method=POST But some times, the page that I need to

Re: Disattended by Tiles...1st time :(

2003-09-10 Thread Kumar M
If you need this search functionality to see where a particular tile definition is being used (or if it is being used or not), then here is a thought. How about directly using the name of the file definition in your struts config file instead of the JSP file name? For example, in your