Formatting numbers in text field

2006-12-05 Thread chamal desilva
Hi, Is there a way display numbers in a text field in a formatted way. For example I want to display 100 as 1,000 in a text field. My form field attribute type is Double. Thanking You, Chamal. Do you

RE: Map backed properties

2006-12-05 Thread Gundersen, Richard
Hi Thanks for replying. I have tried that actually and it didn't work. In fact that particular example wont work for me unfortunately because my property isn't part of a map inside a DynaActionForm - it's just a normal member variable of a class that extends ActionForm. I don't think the

RE: Formatting numbers in text field

2006-12-05 Thread Gundersen, Richard
If you are using an ActionForm, you could modify your getter to do the formatting. Or, have an additional getter method e.g. Double amount; Double getAmount() { // bog standard method } String getFormattedAmount() { // do some formatting } Then, in the form, do something like

Re: more than one parameter in a link

2006-12-05 Thread Mikolaj Rydzewski
Pierre Goupil wrote: http://localhost/myApp/myAction.do?type=2id=12 Of course, I could use a Map from my bean. But the problem is that, in my case, the bean have no way to know which value to give to the JSP : it's the JSP and it only who knows the values... jsp:useBean id=map

Query

2006-12-05 Thread Jagaran Das
Hi all, How to install a simple application in Struts? I am new to this field. Please let me know what is good way to start exploring STRUTS. Thanks in Advance Jagaran CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL

NEW t oStruts

2006-12-05 Thread Jagaran Bubai Das
Hi, Please let me know what is right point to start off with Struts. Please point me to a good tutorial to start off. Thanks in Advance Jagaran - Find out what India is talking about on - Yahoo! Answers India Send

more than one parameter in a link

2006-12-05 Thread Pierre Goupil
Hi again ! Yes, of course, but it seems that doign things this way, you loose all other parameters of the request like, in particular, the jsessionid. Am I right or wrong ? If right, is there a workaround ? Regards, Pierre eg: c:url=myAction.do var=myLink c:param name=type

Re: more than one parameter in a link

2006-12-05 Thread Mikolaj Rydzewski
Pierre Goupil wrote: Yes, of course, but it seems that doign things this way, you loose all other parameters of the request like, in particular, the jsessionid. Am I right or wrong ? Wrong. c:url rewrites url if necessary. Unfortunately it's not xhtml aware and will produce as param

Re: more than one parameter in a link

2006-12-05 Thread Nuwan Chandrasoma
Hi, This is something to do with url rewriteing and how the session is handleing happens on your server.., c:url tag will do the proper url re-writeing according to my understanding.. so i dont think there would be any issue in that, i am not sure plese try it and see.. Regards, Nuwan

RE: Query

2006-12-05 Thread Narayanaswamy, Mohan
First download the struts from http://struts.apache.org/downloads.html and play with the sample programs. -Original Message- From: Jagaran Das [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 5:04 PM To: user@struts.apache.org Subject: Query Hi all, How to install a

RE: NEW t oStruts

2006-12-05 Thread Narayanaswamy, Mohan
First download the struts from http://struts.apache.org/downloads.html and play with the sample programs. -Original Message- From: Jagaran Bubai Das [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 5:38 PM To: user@struts.apache.org Subject: NEW t oStruts Hi, Please let me

RE: Cannot create JDBC driver of class '' for connect URL 'null'

2006-12-05 Thread Krishna, Hari \(FTT-CInternet\)
Hi Chandra How are uu and how is ur life? May i know what Open Source Technologies u are using now? With Best Regards, I.Hari krishna. -- Franklin Templeton Investments(FTT-CInternet)

RE: Cannot create JDBC driver of class '' for connect URL 'null'

2006-12-05 Thread nagesh.kumar
org.apache.commons.dbcp.BasicDataSourceFactory we are using JNDI data source and it is configured in server.xml file in web.xml; we have configured as resource-ref descriptionOracle Datasource /description res-ref-namejdbc/ORA_IPRICE/res-ref-name

RE: Query

2006-12-05 Thread Jagaran Bubai Das
I hav done that... but how to install and run the sample application i am not clear.. it would be great if could get some simple steps and some simple application Narayanaswamy, Mohan [EMAIL PROTECTED] wrote: First download the struts from http://struts.apache.org/downloads.html and play

validation

2006-12-05 Thread Juan Espinosa
Hi i have a question about validators (struts2), i was using fileld validator, and when i have an error (filling some filed) the error appears on top of the input box, now i change to visitor validator and the erros all appear in the top of the page. Anyone knows why is happening this, only

Detailed TagDocs download ?

2006-12-05 Thread Sakari Isoniemi
Where detailed tag desc ( http://struts.apache.org/2.x/tagreference.html ) can be downloaded ? I didn't found this information from struts-2.0.1-docs.zip (2006-11-06) - To unsubscribe, e-mail: [EMAIL PROTECTED] For

working with radio buttons with html tags.

2006-12-05 Thread Anil Kumar T
Hi All, Am trying to display a radio button according to the value in the database. The way am trying is ... logic:equal property=realStatus value=%=TIMKeys.ACT_FLAG% html:radio property=realStatus value=A

[S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread Dave Newton
Howdy, Is it possible to split up tile definition files using the startup listener under S2? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Query

2006-12-05 Thread Ed Griebel
Start here, it doesn't get much clearer than this, and google for unfamiliar terms: http://www.learntechnology.net/struts-lesson-1.do On 12/5/06, Jagaran Bubai Das [EMAIL PROTECTED] wrote: I hav done that... but how to install and run the sample application i am not clear.. it would be

Re: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread David H. DeWolf
Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG takes a comma separated list of files/resources. Are you having issues with it or just couldn't find the documentation for it? Either way, enter a bug for it in jira so that we can get it resolved (even if it's a

[OT] Re: Tiles 2 - How to dispatch to tiles servlet????

2006-12-05 Thread Antonio Petrelli
David H. DeWolf ha scritto: Just to avoid confusion, I don't think Antonio meant to imply that the Container.render returns a ComponentContext. Err... right, my confusion was due to wrong cut'n'paste :-) And the confusion continues, since I posted the same email to Struts Developers list...

[Tiles] Defining insert points in derived definitions

2006-12-05 Thread Jean-Baptiste Lièvremont
Hi folks, I am using Tiles with Struts 1.2.9. I have a 'standard' JSP defining the global layout used by all pages, as in the snippets below: # * File: /WEB-INF/tiles-defs.xml tiles-definitions definition name=standard path=/WEB-INF/tiles/standard.jsp put name=jsphead

RV: validation

2006-12-05 Thread Juan Espinosa
Hi i have a question about validators (struts2), i was using fileld validator, and when i have an error (filling some filed) the error appears on top of the input box, now i change to visitor validator and the erros all appear in the top of the page. Anyone knows why is happening this, only

RE: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread Dave Newton
Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG takes a comma separated list of files/resources. Are you having issues with it or just couldn't find the documentation for it? Either way, enter a bug for it in jira so that we can get it resolved (even if it's a

more than one parameter in a link

2006-12-05 Thread Pierre Goupil
Hi all again, and thank you for the fast support ! ^ ^ jsp:useBean id=map class=java.util.HashMap / c:set target=${map} property=key1 value=value1/ c:set target=${map} property=key2 value=value2/ html:link action=/action name=maplink/html:link Ho yes ! Here's

Re: more than one parameter in a link

2006-12-05 Thread Mikolaj Rydzewski
Pierre Goupil wrote: Ho yes ! Here's a clean way to fill a map in a JSP ! By clean, I mean without a scriptlet that a Web developper wouldn't understand. Great ! I doubt whether web developer with no programming background would understand JSTL solution either... -- Mikolaj Rydzewski [EMAIL

Re: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread David H. DeWolf
Great to hear, thanks for the update! Docs definitely need to be flushed out. Once we get the TLP resolution finalized, we should have some more cycles to get this thing documented and out the door :) David Dave Newton wrote: Yes, the context init parameter

Using tiles and validator framework

2006-12-05 Thread Deep Blue
Hi, I'm using tiles component in my .jsp page (eg. main.jsp). It is a poll component, which user can submit the vote. Commons validator framework is used to validate the poll submission. When the validation failed on the tiles component, the tiles component's jsp (e.g. poll.jsp) is showed,

Filter problem

2006-12-05 Thread Hehl, Thomas
OK, I've collided with struts over an issue and would like to know if people have suggestions on how to solve. I am reading stuff from an XML file and building parts of my UI from for use in a JSP. I thought it would be good for some of them to have HTML markup in them, so I put lt;, etc in the

Re: 404 when enabling StrutsTilesListener in struts2

2006-12-05 Thread Jared Blitzstein
It's a NoClassDef. It's referencing a package I don't have. Am I supposed to have that there or is that supposed to be in the core libraries? 2006-12-05 10:08:05 StandardContext[/struts2]Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener

Re: Detailed TagDocs download ?

2006-12-05 Thread Wendy Smoak
On 12/5/06, Sakari Isoniemi [EMAIL PROTECTED] wrote: Where detailed tag desc ( http://struts.apache.org/2.x/tagreference.html ) can be downloaded ? I didn't found this information from struts-2.0.1-docs.zip (2006-11-06) That looks like it was generated by the Maven Taglib Plugin. It's

Re: [Tiles] Defining insert points in derived definitions

2006-12-05 Thread Antonio Petrelli
See inline comments... Jean-Baptiste Lièvremont ha scritto: * File: /WEB-INF/tiles-defs.xml tiles-definitions definition name=standard path=/WEB-INF/tiles/standard.jsp put name=jsphead content=/WEB-INF/tiles/standard/jsphead.jsp/ put name=htmlhead

Re: Tiles 2 - How to dispatch to tiles servlet????

2006-12-05 Thread David H. DeWolf
Moving to Struts Users list, please reply there. Antonio Petrelli wrote: First of all this is a typical question to be submitted in Struts Users mailing list. Anyway, since Tiles 2 is under development, I will answer anyway. Stone, Sam ha scritto: I can instantiate the DefinitionsFactory. I

RE: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread Dave Newton
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG takes a comma separated list of files/resources. context-param param-nameorg.apache.tiles.DEFINITION_CONFIG/param-name

Re: Filter problem

2006-12-05 Thread Martin Gainty
Hi Thomas- Perhaps an implementation where you register your own pre-result listener (example located at) http://struts.apache.org/2.x/docs/can-we-access-an-actions-result.html Anyone else? M- This e-mail communication and any attachments may contain confidential and privileged information for

Re: [Tiles] Defining insert points in derived definitions [SOLVED]

2006-12-05 Thread Jean-Baptiste Lièvremont
Well, I got it working defining the 'pgList' attribute at top level (in the 'standard' definition) and using 'importAttribute' in the standard layout page to put it into the request scope, for the 'multiPane' content page to use it. IMHO, it is a bit annoying to have do define it for all pages

How to align form fields in struts 2

2006-12-05 Thread walidito
Hi, I have a problem with aligning my form's fields to the right using struts 2. Here is my code : s:textfield label=%{getText('username')} name=username/ s:password label=%{getText('password')} name=password / I have tried requiredposition=right and the size attritbute, but it doesn't work

problem with using dispatchaction

2006-12-05 Thread Joe Yuen
I am currently using dispatchaction with good success however I recently encountered a situation that I hope someone has a suggestion for. I am implementing dependent drop down lists in one of my pages. I would like to use the onchange attribute with the html:select tag. My question is

debug in eclipse using tomcat plug-in

2006-12-05 Thread Lim Hock-Chai
When I try to debug my application by starting tomcat using tomcat eclipse plug-in, eclipse keeps telling me that it can not find the source. I'm not sure if there is a setting problem in eclipse, tomcat or struts. Can somebody give me some pointer? thanks.

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jorge Martín Cuervo
Try to use wtp from eclipse. Remember to start tomcat in debug mode. http://www.eclipse.org/webtools/ El mar, 05 de 12 de 2006 a las 18:05, Lim Hock-Chai escribió: When I try to debug my application by starting tomcat using tomcat eclipse plug-in, eclipse keeps telling me that it can not find

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jared Blitzstein
What version of everything are you using? On Dec 5, 2006, at 12:05 PM, Lim Hock-Chai wrote: When I try to debug my application by starting tomcat using tomcat eclipse plug-in, eclipse keeps telling me that it can not find the source. I'm not sure if there is a setting problem in eclipse,

[s2] Making LazyDynaBean work with ModelDriven interface

2006-12-05 Thread Mark Shifman
Some folks may be as pig-headed as me or may need to use LazyDynaBeans as they are translating from struts1 to struts2. After fooling around, I figured it out but it is pretty clear to me this is not the way to go. Below is a simple example. public final class MyAction extends ActionSupport

RE: Filter problem

2006-12-05 Thread Hehl, Thomas
Nope. This is a struts 2 thing and I'm on 1.2.x. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 11:21 AM To: Struts Users Mailing List Subject: Re: Filter problem Hi Thomas- Perhaps an implementation where you register your own

RE: debug in eclipse using tomcat plug-in

2006-12-05 Thread Lim Hock-Chai
I'm able to access my computer at home to know the version yet. Sees like there might be a problem with Eclipse. See link below: http://www.eclipseplugincentral.com/PNphpBB2-printview-t-1244-start-0.ht ml -Original Message- From: Jared Blitzstein [mailto:[EMAIL PROTECTED] Sent:

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jared Blitzstein
I honestly didn't even know the sysdeo plugin still worked, I thought it died out a while ago. Like Jorge said, look into moving to WPT, it has it built in already. http://www.eclipse.org/webtools/ On Dec 5, 2006, at 12:52 PM, Lim Hock-Chai wrote: I'm able to access my computer at home to

Validate length of array

2006-12-05 Thread O'Shea, Sean
Hi all, I'm using struts 1.2.7 with commons-validator 1.1.4 I've this DynaValidatorActionForm which has the following properties: form-bean name=TOAForm dynamic=true type=org.apache.struts.validator.DynaValidatorActionForm form-property name=fundsTransfer

Re: debug in eclipse using tomcat plug-in

2006-12-05 Thread Jorge Martín Cuervo
i've use sysdeo plugin in debug mode time ago, but IMHO wtp has better integration with eclipse. I don't remember if sysdeo can debug jsps, but wtp does. Checkout a new eclipse with WTP and tell us. El mar, 05 de 12 de 2006 a las 18:57, Jared Blitzstein escribió: I honestly didn't even know

Re: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread David H. DeWolf
Dave Newton wrote: From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. Yes, the context init parameter org.apache.tiles.DEFINITION_CONFIG takes a comma separated list of files/resources. context-param param-nameorg.apache.tiles.DEFINITION_CONFIG/param-name

Re: [s2] Making LazyDynaBean work with ModelDriven interface

2006-12-05 Thread Mark Menard
On 12/5/06 12:25 PM, Mark Shifman [EMAIL PROTECTED] wrote: 2. The textfield seems to get a String[] rather than a String and I don't have any idea how to do it differently. I don¹t know if you can do this because I've never really worked with Struts 1. Can you make the Map in your form a

Re: How to align form fields in struts 2

2006-12-05 Thread Mark Menard
On 12/5/06 11:29 AM, walidito [EMAIL PROTECTED] wrote: Hi, I have a problem with aligning my form's fields to the right using struts 2. Here is my code : s:textfield label=%{getText('username')} name=username/ s:password label=%{getText('password')} name=password / I have tried

very basic bean/iterator question

2006-12-05 Thread Rick Schumeyer
I'm slowly improving with struts, but have a basic question. I query a database using hibernate, which returns a List. On the other end, I have a jsp page that displays the result. I know that the jsp can access beans using tags like logic:iterate and bean:write. (Here is the dumb

RE: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread Dave Newton
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. What stack trace and/or specific error message do you get? No exception, just the startup message saying that it couldn't find the definition in the web.xml so it's looking for tiles.xml. I'll wait until the 2.0.2 drop; I

RE: very basic bean/iterator question

2006-12-05 Thread Dave Newton
From: Rick Schumeyer [mailto:[EMAIL PROTECTED] On the other end, I have a jsp page that displays the result. I know that the jsp can access beans using tags like logic:iterate and bean:write. I would just use JSTL c:forEach with the list in scope. In general I avoid the S1 tags except the

The first request

2006-12-05 Thread Thom Burnett
I need to set up my first page with a sequence of database interactions before the execute() method is called (I think). What's the recommended struts way of doing so. When a first request to my jsp page arrives, I need to read some key parameters of the request, contact my database, and then

RE: The first request

2006-12-05 Thread Wesley Wannemacher
Could it be done in a regular Custom Tag? -Original Message- From: Thom Burnett [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 2:59 PM To: Struts Users Mailing List Subject: The first request I need to set up my first page with a sequence of database interactions

RE: The first request

2006-12-05 Thread Asthana, Rahul
Actually org.apache.struts.tiles.Controller is called just before the tile is inserted, and that would be after the action forwards to the JSP.That may not satisfy your requirement. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 3:13

RE: Filter problem

2006-12-05 Thread George.Dinwiddie
How are you inserting your XML/HTML into the JSP? I don't think the filter method is causing your problem. I think you're not expressing that the output should not be filtered. If you're using c:out you might want to add 'escapeXml=false', for example. -Original Message- From: Hehl,

RE: The first request

2006-12-05 Thread Asthana, Rahul
Look at org.apache.struts.tiles.Controller I couldnt find a decent example though. Here is an article. http://www.theserverside.com/tt/articles/article.tss?l=Tiles101 That of course means that you will have to use Tiles. -Original Message- From: Thom Burnett [mailto:[EMAIL PROTECTED]

packages organisation in struts 2

2006-12-05 Thread walidito
Hi, I'm developping a new web app with struts 2 using eclipse and I would like to organize my code like I am used to do with struts 1. I mean putting Interfaces, beans, actions in separate folders/packages. It seems impossible to add a package/source floder under the main packages given with

Re: The first request

2006-12-05 Thread Wendy Smoak
On 12/5/06, Thom Burnett [EMAIL PROTECTED] wrote: I need to set up my first page with a sequence of database interactions before the execute() method is called (I think). What's the recommended struts way of doing so. All requests go through the controller, never straight to the JSP. Once

Re: packages organisation in struts 2

2006-12-05 Thread Wendy Smoak
I'm developping a new web app with struts 2 using eclipse and I would like to organize my code like I am used to do with struts 1. I mean putting Interfaces, beans, actions in separate folders/packages. It seems impossible to add a package/source floder under the main packages given with example

Displaying a JSP in a pop-up window

2006-12-05 Thread Pierre Goupil
Hello, Strusters ! My question is quite simple. As you should have guessed : is there a way, in Struts / Tomcat to display a JSP, not in the main browser window but rather in a pop-up window ? This would but great for confirm requests, errors displaying and such. Regards, Pierre -- L'une

Re: Map backed properties

2006-12-05 Thread Laurie Harper
Did you try adding a public Map getChecklistItemNoteIds() method to your form bean, and access it with the JSTL syntax Paul provided? L. Gundersen, Richard wrote: Hi Thanks for replying. I have tried that actually and it didn't work. In fact that particular example wont work for me

Re: Displaying a JSP in a pop-up window

2006-12-05 Thread Ed Griebel
The trick is to use the target=xx parameter in the generated a tag. Try something like this: In your jsp you will have html:link target=_blank action=SomeAction/. In your struts-config you will have action path=SomeAction forward=/mypage.jsp/action

Re: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?

2006-12-05 Thread David H. DeWolf
The snapshot you're using may still use the parameter name 'definitions-config' instead of org.apache.tiles.DEFINITION_CONFIG Grr. . .lesson learned, don't release with a snapshot! Dave Newton wrote: From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. What stack trace

Re: Pre-populated option values of a select not got on Submit

2006-12-05 Thread Laurie Harper
Please keep discussion on the mailing list, so others have the chance to respond and/or benefit. Comments in-line: On 5-Dec-06, at 8:51 AM, Sridhar Raman wrote: This is how the the getter and setter of the category property looks like: public void setCategory(String[] category) {

Updating a config(.ini) file in Action class

2006-12-05 Thread chuanjiang lo
Hi all, I have this web app that allows user to change the config (.ini) file via a form. When the user submits the form, it goes into the action class and the action class is supposed to update the ini file accordingly. The ini file is lumped together with my action class. FileInputStream in

Re: Updating a config(.ini) file in Action class

2006-12-05 Thread Venkata Phani Kumar
Hi, You can get any resource path wich is under context path using ServeletContext.getRealPath(). The usage of this method is here, String iniFilePath = request.getSession().getServletContext().getRealPath(test.ini); you can use the 'iniFilePath' to instatiate FileOutStream, and