Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-11 Thread Alexis Pigeon
Hi Mark, On 10/04/07, Mark Menard [EMAIL PROTECTED] wrote: There's a cleaner Struts 2 way of doing this. Take a look at the org.apache.struts2.interceptor.SessionAware interface. This will make your action independent of the servlet spec and more easily testable. Thanks for the tip! This

Re: S2 life cycle

2007-04-11 Thread tom tom
Works but the values get reset all the time, doesnt stay in the session scope, if I update form in the one action class and if I try to retrieve from the other action class the values has been lost. Should I have to do any extra things --- Dave Newton [EMAIL PROTECTED] wrote: --- tom tom

Array of Bean and optionsCollection (up)

2007-04-11 Thread Marcello Savino
Please excuse me but i try again ... (hope will never die) Hi all, i've the following problem using the tag html:optionsCollection, the jsp give the following error: org.apache.jasper.JasperException: No bean specified Let's say this is my code (actionForm, jsp, bean class) public class MyForm

Re: Array of Bean and optionsCollection (up)

2007-04-11 Thread Romu
At first sight, u miss the name of the collection in html:optionsCollection property=aBean value=code label=descr/ second u forgot the dot in myBeanCode , it's myBean.code , Struts will do myBean.getCode(). third : your form property aBean is an array u use a select ( which a single

Re: Struts module switch

2007-04-11 Thread Suman Maity
Well, could u then let me know how to modularize my struts config in case it grows large. How do I modularize my struts web app without having separate struts modules. I am working on a web project where there are three types of users:Admin, Web User and Call Center User. Under each of these

R: Array of Bean and optionsCollection (up)

2007-04-11 Thread Marcello Savino
At first sight, u miss the name of the collection in html:optionsCollection property=aBean value=code label=descr/ Do you mean i have to specify the attribute name=aBeaninstead of property=aBean ? second u forgot the dot in myBeanCode , it's myBean.code , Struts will do myBean.getCode().

[S2] Dispaly data in FreeMarker

2007-04-11 Thread wolverine my
I'm using Struts 2 and FreeMarker and I'm ready to move on from the HelloWorld example... I would like to create a page to display a list of accounts. Hence, the following is the action class, public class Search extends ActionSupport implements SessionAware { private Map session;

Re: struts.action.extension question

2007-04-11 Thread meeboo
No takers on this? meeboo wrote: Hey all I have a mapping pattern which looks like this action name=movie/* class=com.bubbleclip.web.struts.action.PlayMovie param name=movieTitle{1}/param result/movie.jsp/result /action The wildcard is for backwards

Re: struts.action.extension question

2007-04-11 Thread joey
keep struts.action.extension default.and create a filter to make sure it's before the struts filter.like this: filter-mapping filter-nameyourfilter/filter-name url-patternmovie/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name

[OT] how to change the look and feel of checkbox

2007-04-11 Thread Pankaj Gupta
Hi, I am using html:checkbox option to display a check box in disabled mode. This causes the checkbox to be greyed out. Can somebody please tell me how can I show it in bold font and disabled at the same time. regards, Pankaj

Re: [S2] Dispaly data in FreeMarker

2007-04-11 Thread wolverine my
Answer to one of the questions: Can the FreeMarker template access the request parameters directly without us adding the parameters into the session? It is described in http://struts.apache.org/2.0.6/docs/freemarker.html, ${Parameters.myParameter} /Struts newbie

tags within tags in struts..

2007-04-11 Thread mi
hi i want to make the value of my url tag to come from the value of my property tag.. like this.. s:url id=module value=s:property value=ModuleAction/ but i am getting an error,. what is the correct way to do it? thanks in advance. - Don't get

Re: struts.action.extension question

2007-04-11 Thread meeboo
The problem is that I have a lot of URL:s which look like /user/username, movie/movieTitle or account/create - and I don't want to forward or redirect for each URL since this will slow down my application. Is there a way to exclude .css extensions maybe? joey-30 wrote: keep

Re: tags within tags in struts..

2007-04-11 Thread MK Tan
try this s:set name=moduleAction value=ModuleAction/ s:url id=module value=%{moduleAction}/ On 4/11/07, mi [EMAIL PROTECTED] wrote: hi i want to make the value of my url tag to come from the value of my property tag.. like this.. s:url id=module value=s:property value=ModuleAction/ but i

Re: [OT] how to change the look and feel of checkbox

2007-04-11 Thread James Mitchell
html:checkbox disabled=disabled ...bBolded text/b Or, did you mean to style the actual checkbox? -- James Mitchell On Apr 11, 2007, at 4:37 AM, Pankaj Gupta wrote: Hi, I am using html:checkbox option to display a check box in disabled mode. This causes the checkbox to be greyed out. Can

unsubsribe

2007-04-11 Thread Satya Narayan
unsubsribe Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now at http://in.messenger.yahoo.com/

Re: Struts module switch

2007-04-11 Thread Niall Pemberton
On 4/11/07, Suman Maity [EMAIL PROTECTED] wrote: Well, could u then let me know how to modularize my struts config in case it grows large. How do I modularize my struts web app without having separate struts modules. I am working on a web project where there are three types of users:Admin, Web

unsubsribe

2007-04-11 Thread Nasrin . N
unsubsribe Whilst this email has been checked for all known viruses, recipients should undertake their own virus checking as Xansa will not accept any liability whatsoever. This email and any files transmitted with it are confidential and protected by client privilege. It is solely for the

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
Trying again, due to bad formatting on Nabble... I saw cilquirms reply, but I don't think I phrased my problems correctly. I understand that the tag libraries are very accomodating, but I am at a loss as to how to insert this code. This little calendar image and the associated href for

How to use datetimepicker localization

2007-04-11 Thread Ibrahim Sayed
Hi, I use struts 2 blank war to use the struts tags tag library , and I use it but the calendar of datetimepicker shown in English language , I want to use another local ar , I try to extract the struts2-core-2.0.6.jar file and see the dojo files

Wrong Content Type text/plain

2007-04-11 Thread Torsten Römer
I added Tiles to the struts2-blank-2.0.6 example webapp and started to work on my application. All works just fine on my Linux/Tomcat 5.5 development box but when I deploy the app to the provider's Linux/Tomcat 5.5 webspace the content type is suddenly text/plain instead of text/html and all I see

s:checkbox returns an String[] when is checked!

2007-04-11 Thread Felipe Rodrigues
Hi guys, I'm using ActionContext.getContext().getParameters().get(checkboxName); to get a value from a checkbox in my jsp. The problem here is, when its value is false, works fine, I got an String. But when my checkbox is checked and I call this same method, I got a String[] and as you know, if

Re: Type-Conversion error - NPE

2007-04-11 Thread Felipe Rodrigues
Did you really think I made it because I want to? Tim Williams wrote: On 4/9/07, Felipe Rodrigues [EMAIL PROTECTED] wrote: Hi Guys, I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE. Here is my MyAction-conversion.properties file: KeyProperty_insertList=id

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
The more I look at and play with this scenario, the more I am starting to thing that using the default XHTML theme is not the way to go. I would be much better served, I think to use the simple theme, giving me much more control over layout and additional tags around my form fields. Is that

RE: what version of struts is better?

2007-04-11 Thread Frank Russo
I can't speak to Struts2, as I haven't worked with it. I was just suggesting that you should look at JSF as well. I've worked with Struts 1 for about 5 years. My last project, I got to work with JSF and Facelets and was very impressed. The main reason I liked it was that it was component based.

RE: what version of struts is better?

2007-04-11 Thread Frank Russo
Actually, I disagree. JSF is a framework. I used MyFaces and their component library exclusively, without using Shale, Seam or anything else... -Original Message- From: Piero Sartini [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 5:21 PM To: Struts Users Mailing List Subject:

Struts Submission

2007-04-11 Thread Chetan Pandey
Hi All: I have a list of Checkboxes with UserIDs. User checks a few number of Check-boxes and then clicks 'SUBMIT'. All Checked Items received are then added to a DB - which happens in a fraction of a Second. However, all of the UserIds are also sent an Email which takes a very

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Dave Newton
--- Skip Hollowell [EMAIL PROTECTED] wrote: The more I look at and play with this scenario, the more I am starting to thing that using the default XHTML theme is not the way to go. I would be much better served, I think to use the simple theme, giving me much more control over layout and

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
Skip, There is a pretty good tutorial out there to create a component using the struts tags - this is what I did for exactly what you are doing. Granted it is not as pretty as s:text ...stuff here/s:text but it does the job and now that I have it written I can use it in all the places I

How to use datetimepicker localization

2007-04-11 Thread Ibrahim Sayed
Hi, I use struts 2 blank war to use the struts tags tag library , and I use it but the calendar of datetimepicker shown in English language , I want to use another local ar , I try to extract the struts2-core-2.0.6.jar file and see the dojo files

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
Dave Newton-4 wrote: So far I've found the xhtml theme to work for me almost everything with the occasional dip in to simple land, but my projects have fairly basic input needs (except for one horribly difficult page :/ d. I too am starting to see this. Yes, simple will be the way to go when

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
Fogleson, Allen wrote: Skip, There is a pretty good tutorial out there to create a component using the struts tags - this is what I did for exactly what you are doing. Granted it is not as pretty as s:text ...stuff here/s:text but it does the job and now that I have it written I can use

s:action S2 Tiles

2007-04-11 Thread Hartrich, James CTR USTRANSCOM J6
Does anyone know of any existing issues with result type of stream using s:action within tiles? I'm getting an illegal state exception when using s:action executeresult = true The struts.xml result type = stream and the stream is actually html to render on the client/browser. If I skip the

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
Not my site, but I had the exact same problem as you and that's where I went. It does have pretty solid, and concise examples. Al From: Skip Hollowell [mailto:[EMAIL PROTECTED] Sent: Wed 4/11/2007 10:05 AM To: user@struts.apache.org Subject: Re: [S2] Adding

S2: Simple way to pass data

2007-04-11 Thread Scott Nesbitt
In my app I have need menu items at the top of every page that are links do other pages. I also need a common date and dropdown selection on most pages. My challenge is how to componentize the date/dropdown selection so it can be re-used on each page, and then get the data passed to the action

[S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
Folks: It is clear that I MUST be doing something wrong, but I have tried all the options with the s:text to format a number. Here is what I have tried: lis:text name=currencys:param name=money value=%{#session.Account.balance}//s:text/li lis:text name=format.moneys:param name=money

Re: S2 life cycle

2007-04-11 Thread Harring Figueiredo
tom: I have not experience with the ModelDrivenInterface. What is that you are trying to do? (It it is to keep a bean around to share between action invocations, have you tried this? class FirstAction extends ActionSupport{ public String execute(){ Bean bean = new Bean();

RE: Can we *please* havea seperate Struts *2* - User list?

2007-04-11 Thread Bruno Melloni
I have to agree. Having a separate Struts 2 list would be nice, but let's face it... - Struts 1 owned the web presentation space, making the move from 1.x to 1.y brainless. - But since Struts 2 is a complete rewrite and JSF is competing strongly for the same space (with much help from the

Re: what version of struts is better?

2007-04-11 Thread Piero Sartini
On Wednesday 11 April 2007 15:19:27 Frank Russo wrote: Actually, I disagree. JSF is a framework. I used MyFaces and their component library exclusively, without using Shale, Seam or anything else... I used JSP and Servlets exclusively to build web apps years ago. JSP is no framework for most

Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-11 Thread cilquirm
Just FYI, Nabble does provide RSS feeds on a per-list/forum level. I Live-bookmark http://www.nabble.com/Struts---User-f206.html Frank W. Zammetti wrote: I think the thought behind not splitting the lists to this point is that Apache experience has been that it tends to divide a

Tiles 2 woes

2007-04-11 Thread stanlick
I'm trying to migrate a S1 web app to S2. Most things are working with the exception of Tiles. Here is the list of things I did in case someone might detect a glitch; 1. Had to download commons-digester-1.8.jar because it was not included in \struts-2.0.6\lib 2. Added the three struts

Re: [s2] Can we *please* havea seperate Struts *2* - User list?

2007-04-11 Thread James Mitchell
If you are really interested in bringing clarity to the discussions, the people who are interested in having separate lists should be prefixing your questions and answers with [s1] or [s2] instead of trying to force people to have to subscribe to separate lists. If someone posts a new

Re: struts.action.extension question

2007-04-11 Thread cilquirm
I don't believe this can be cleanly handled with just the web 2.4 spec and struts2. Some container, like Resin, allow for url-patterns to be regexes, which would help in this scenario. meeboo wrote: The problem is that I have a lot of URL:s which look like /user/username, movie/movieTitle

Show error in parent page

2007-04-11 Thread Francisco Exposito Aguilera
Hi all, I have a jsp with a download button. When I click on that button, a new web page using javascript is opened: html:submit property=accion styleClass=boton

Re: Tiles 2 woes

2007-04-11 Thread Torsten Römer
I was recently doing the same and what gave me a headache was that even though my IDE complains about it, it has to be definition name=errorTiles extends=homeTiles put name=body value=/test/error.jsp/ /definition rather than definition name=errorTiles

Re: Tiles 2 woes

2007-04-11 Thread Antonio Petrelli
2007/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: After reviewing http://struts.apache.org/2.x/docs/tiles-plugin.html it appears the tiles tag names have been changed so I updated them accordingly. Any clues before I jump? Tiles 2 is a complete rewrite of Struts-Tiles, we tried to clean up API,

RE: Tiles 2 woes

2007-04-11 Thread Hartrich, James CTR USTRANSCOM J6
Layout.jsp %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles; % tiles:insertAttribute name=bar/ Tiles.xml definition name=foo template=/Layout.jsp put name=bar value=/bar.jsp/ /definition Hope this helps. -Original

Re: s:checkbox returns an String[] when is checked!

2007-04-11 Thread cilquirm
Try declaring a boolean setter in your Action with the checkbox name. i.e. setCheckboxName( boolean val ) { this.checkboxName = val ; } and using that instead. I'm not sure why you're trying to get the value from the ActionContext.getParameters(). That will return the raw, globbed values

autocompleter not working on Firefox 1.5 on Linux

2007-04-11 Thread Rohit Dewan
I have a working autocompleter on Firefox 2.0 on MacOS. The same code does not work on Firefox 1.5 on Linux. Any suggestions? Thanks, Rohit

Re: autocompleter not working on Firefox 1.5 on Linux

2007-04-11 Thread Musachy Barroso
Can you give more details on the problem? Any Javascript error? If you set debug=true on the head tag, does Dojo report any error? I use FF 2 on Linux and the showcase examples work for me. regards musachy On 4/11/07, Rohit Dewan [EMAIL PROTECTED] wrote: I have a working autocompleter on

Issue in compiling application in websphere

2007-04-11 Thread Ashish Kulkarni
Hi I am getting the following jsp compilation error in websphere 5.1 org.apache.jasper.compiler.ParseException: /pages/purchasing/contract.jsp(128,61) Attribute system has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue( JspReader.java:599) This jsp compiles fine in

Re: Tiles 2 woes

2007-04-11 Thread stanlick
I'm starting to realize this! I had a nice S1 Tiles application just die under S2 tiles. Should the taglib be: http://struts.apache.org/tags-tiles or http://tiles.apache.org/tags-tiles Also what supersedes the controllerClass tag? Scott

Tiles 2 Lifecycycle

2007-04-11 Thread stanlick
I am discovering slightly different behavior between my application with Tiles and without. Consider the following snippet of configuration: action name=course_* method={1} class=course result name=input type=tilescourse.page/result result

[S2] datetimepicker fields can't be referenced/updated by ID?

2007-04-11 Thread Jon Wilmoth
I'm using Struts 2.0.7 AjaxTags 1.2-beta3 and I've come to the painful realization that AjaxTags no longer is able to update Struts2 datetimepicker fields. The new S2 date fields use a div (example html below) instead of an html form input tag. The issue is that the handler:

Re: Tiles 2 Lifecycycle

2007-04-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: result type=tilescourse.page/result Shouldn't returning SUCCESS from my action result in a new Action class instance and it's dependencies being injected? No; it's not a redirect. It's just like you put a JSP value in for the result. d.

Re: Tiles 2 woes

2007-04-11 Thread Torsten Römer
This one works for me: http://tiles.apache.org/tags-tiles Torsten [EMAIL PROTECTED] schrieb: I'm starting to realize this! I had a nice S1 Tiles application just die under S2 tiles. Should the taglib be: http://struts.apache.org/tags-tiles or http://tiles.apache.org/tags-tiles Also

Re: S2: Simple way to pass data

2007-04-11 Thread stanlick
Scott -- The most elegant solution would be to incorporate Tiles and use a controller (preparer) for this region of the web page. Tiles allows you to build comprehensive web pages from reusable parts. Scott On 4/11/07, Scott Nesbitt [EMAIL PROTECTED] wrote: In my app I have need menu

[S2] Iterator and Index

2007-04-11 Thread Minerva CC
Hi, I want to generate indexed html elements via iterator. In Struts 1, I would do it as follows: logic:iterate name=namesForm property=names id=name html:text name=name property=firstname indexed=true size=30/ html:text name=name property=lastname indexed=true size=30/ /logic:iterate

Re: struts.action.extension question

2007-04-11 Thread meeboo
Unfortunately I'm running Tomcat. I did come up with a pretty clean solution though, what I do is that I link to the CSS /JS/Image files via an absolute URL, so instead of public/css/design.css I use http://mydomain.com/public/css/design.css; - good enough for me at the moment. cilquirm wrote:

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread cilquirm
it is possible, if you extend and modify whatever theme you're using. Then you can put that code wherever you want it to show up right inside the freemarker template that renders it. http://struts.apache.org/2.x/docs/extending-themes.html hth, -a Skip Hollowell wrote: Trying again, due to

Re: struts.action.extension question

2007-04-11 Thread cilquirm
I believe I didn't follow the original issue, then. I thought that struts2 was swallowing the requests for the css files because they fit the pattern specified by the filter. I can't see how making them absolute urls would be any different for the filter, because when the request is made by the

Re: [S2] How to pass a Javascript variable to Struts parameter?

2007-04-11 Thread Minerva CC
Hi musachy, Thanks for pointing it out. I forgot what environment I am in now. My last project was .NET desktop application. Anyhow, what I am trying to do is to pick up a id from a table. Then, pass this id to an Ajax link as parameter. I used an onClick function to setup a javascript

Re: [S2] How to pass a Javascript variable to Struts parameter?

2007-04-11 Thread Musachy Barroso
Using the ajax tags you can submit a form on the request, using the formId attribute (http://struts.apache.org/2.0.6/docs/ajax-tags.html), like: form id=data //fields here // if you need to submit an id, use input type=hidden value=superId / /form s:a theme=ajax formId=data href=%{#url}

Re: Tiles 2 woes

2007-04-11 Thread stanlick
Thanks Torsten -- This is what I finally got to work after snooping around in the jars. Too bad the online documentation shows the wrong URI! That was my problem. Scott On 4/11/07, Torsten Römer [EMAIL PROTECTED] wrote: This one works for me: http://tiles.apache.org/tags-tiles Torsten

Re: Tiles 2 Lifecycycle

2007-04-11 Thread stanlick
So is there a way to redirect to a tile definition? On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: result type=tilescourse.page/result Shouldn't returning SUCCESS from my action result in a new Action class instance and it's dependencies being injected?

Can labelValueBean be used in S2 select

2007-04-11 Thread McKinley, Kevin
I am converting a Struts1 page to Struts2. Can I reuse the labelValueBeans used in the optionsCollection tag in the S2 select tag or must I convert my list to a map? I tried using the labelValueBean in S2 but got the error: The requested list key 'countryInfoList' could not be resolved as a

Eclipse WTP / Struts 2 - Not working!!

2007-04-11 Thread Manickam-Periaswamy . Vignesh
Hi all This problem has been driving me crazy and I know that it should be a simple problem. I have already posted this in this mailing list, but a simply configuration issue is stopping my development work!! Please help. There is a reason why I post this in the struts mailing list because a

Re: Eclipse WTP / Struts 2 - Not working!!

2007-04-11 Thread Adam Ruggles
Did you publish your project before starting tomcat through eclipse? [EMAIL PROTECTED] wrote: Hi all This problem has been driving me crazy and I know that it should be a simple problem. I have already posted this in this mailing list, but a simply configuration issue is stopping my

Re: Eclipse WTP / Struts 2 - Not working!!

2007-04-11 Thread Manickam-Periaswamy . Vignesh
Sorry, I do not understand what you mean by publishing project. Vignesh Manickam Periaswamy Web Application Developer Intern, Information Management Section WPTD, EPA Region 5 312-886-0887 email: [EMAIL PROTECTED] Adam Ruggles [EMAIL PROTECTED] 04/11/2007 04:35 PM Please respond

[OT] Re: Eclipse WTP / Struts 2 - Not working!!

2007-04-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Sorry, I do not understand what you mean by publishing project. Did you add a project deployment for the Struts app and deploy it? In other words, did you configur things such that Eclipse/WTP knows things about your app, where you're deploying it to etc.? d.

Re: THEMES AND TEMPLATES

2007-04-11 Thread Laurie Harper
Juan Espinosa wrote: Hi is there any theme repository ??? I want to change my theme, like putting the field errors in red, in the right of the component (field) who cause the error... I'm not sure what you mean by a theme repository, but documentation on customizing Struts 2 themes and

Re: S2 Action Validation

2007-04-11 Thread Laurie Harper
I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them

Re: S2 Action Validation

2007-04-11 Thread Dave Newton
--- Laurie Harper [EMAIL PROTECTED] wrote: I think labelPosition will only affect the field label, not the error message placement. D'oh, yeah, that's right; my bad. d. Bored stiff? Loosen up...

RE: struts.action.extension question

2007-04-11 Thread Fogleson, Allen
Are you fronting with Apache? What we normally do if we are fronting with apache is serve all the static content from there (of course) so it never gets to the app server to cause this kind of confusion there. A simple JkUnmount /movie/*.css workerName will do it for Apache-Tomcat (or

RE: struts.action.extension question

2007-04-11 Thread Fogleson, Allen
Hmm Yes... What is the problem then? I don't think I understand it now either. Al I believe I didn't follow the original issue, then. I thought that struts2 was swallowing the requests for the css files because they fit the pattern specified by the filter. I can't see how making them absolute

How to desing?

2007-04-11 Thread Mansour
Hello Every one: I have been working on a small application for few days. Just to learn by doing, how Struts 2 works, and how to design applications for struts 2. My little app is a small billing system to store invoices for accounts. Each Service (object) belongs to an Invoice which belongs

Re: R: Array of Bean and optionsCollection (up)

2007-04-11 Thread Laurie Harper
Marcello Savino wrote: At first sight, u miss the name of the collection in html:optionsCollection property=aBean value=code label=descr/ Do you mean i have to specify the attribute name=aBeaninstead of property=aBean ? You only need to specify the 'name' attribute if you want to specify a

Re: [OT] [JAVA] Iterate a collection and modify

2007-04-11 Thread Laurie Harper
First, this list is for Struts issues, not a general Java programming help. That said, here's a quick response: Modifying an Iterator while iterating it is not guaranteed to work. It depends on the specific Iterator implementation. This is clearly documented in the Javadoc for the Collections

Re: S2 s:text Currency Format

2007-04-11 Thread Laurie Harper
Dave's point was that what you're using didn't match the example, which he also provided. See my response to your other post for more explanation. L. Harring Figueiredo wrote: Dave: Thank you for the email. That was exactly what I wrote. s:text name=currency s:param name=amount

Re: I am getting an error : java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax(I)V

2007-04-11 Thread Laurie Harper
What version of Struts are you using? What version of Commons FileUpload? Did you try using the version of FileUpload that ships with your version of Struts? Upgrading libraries to the latest version is never guaranteed to work, since they may not be binary-compatible with the version Struts

Re: [S2] s:text help on formatting output

2007-04-11 Thread Laurie Harper
Harring Figueiredo wrote: Folks: It is clear that I MUST be doing something wrong, but I have tried all the options with the s:text to format a number. Here is what I have tried: lis:text name=currencys:param name=money value=%{#session.Account.balance}//s:text/li lis:text

Re: [S2] Iterator and Index

2007-04-11 Thread Laurie Harper
Minerva CC wrote: Hi, I want to generate indexed html elements via iterator. In Struts 1, I would do it as follows: logic:iterate name=namesForm property=names id=name html:text name=name property=firstname indexed=true size=30/ html:text name=name property=lastname indexed=true

Re: How to use datetimepicker localization

2007-04-11 Thread Laurie Harper
Ibrahim Sayed wrote: Hi, I use struts 2 blank war to use the struts tags tag library , and I use it but the calendar of datetimepicker shown in English language , I want to use another local ar , I try to extract the struts2-core-2.0.6.jar file and see the dojo files

Re: Struts Submission

2007-04-11 Thread Laurie Harper
Chetan Pandey wrote: Hi All: I have a list of Checkboxes with UserIDs. User checks a few number of Check-boxes and then clicks 'SUBMIT'. All Checked Items received are then added to a DB - which happens in a fraction of a Second. However, all of the UserIds are also sent an Email which takes

Re: How to desing?

2007-04-11 Thread Mansour
Mansour wrote: Hello Every one: I have been working on a small application for few days. Just to learn by doing, how Struts 2 works, and how to design applications for struts 2. My little app is a small billing system to store invoices for accounts. Each Service (object) belongs to an Invoice

Re: [S2] Iterator and Index

2007-04-11 Thread Minerva CC
Since there are no indexed and property attributes for the s:textfield tag. So, I tried this: s:iterator value=names id=name s:textfield id=name name=firstname label=First Name s:textfield id=name name=lastname label=Last Name/ /s:iterator Then, Struts 2 generated this: tr td

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
Hi Laurie, Thanks for the response. I tried what you suggested, and actually did not get a value back (empty). Where should I set the resource string? (I thought it was _smart_ enough to get from the Locale. Thank you. On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: Harring Figueiredo

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
Another thing is that your example, according to the example provided on the web site, is not correct either. s:text name=format.money s:param name=value value=%{#session.Account.balance}/ /s:text format.money should actually be one of the values { 0, number, currency

Re: Tiles 2 Lifecycycle

2007-04-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: So is there a way to redirect to a tile definition? Not that I know of; so far if I'm returning a result from an action that needs a redirect I've been redirecting to an action with a tile success or input result. d. On 4/11/07, Dave Newton [EMAIL PROTECTED]

Re: [S2] s:text help on formatting output

2007-04-11 Thread Dave Newton
--- Harring Figueiredo [EMAIL PROTECTED] wrote: [...] Dude, just type it in. In my properties file: format.money={0,number,currency} On my JSP: s:text name=format.money s:param name=value value=123 / /s:text Rendered output: $123.00 Switch locale to Chinese (zh_CN, it's the only other

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
DAVE! THANK YOU SO MUCH FOR THIS LITTLE DETAIL. It would be nice if the documentation was as CLEAR as your email. (i.e. where to the format.money, rather then where: format.money={0,number,currency}. To me, coming from Unix world, means a set in which the possible values are inside the

Re: [S2] s:text help on formatting output

2007-04-11 Thread Dave Newton
--- Harring Figueiredo [EMAIL PROTECTED] wrote: It would be nice if the documentation was as CLEAR as your email. (i.e. where to the format.money, rather then where: format.money={0,number,currency}. I update the s:text.../ docs to (hopefully!) better reflect this. Really, the

Re: How to use datetimepicker localization

2007-04-11 Thread Musachy Barroso
Dojo has some support for i18, although I haven't use it myself I know you can put your resource file under their i18 folder: http://dojo.jot.com/WikiHome/Internationalization?revision=18 If you post to the Dojo mailing list you will probably get more help . musachy On 4/11/07, Laurie Harper

[S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Harring Figueiredo
Folks, How do I call the isEmpty() method (or any other non-bean conforming method) inside a s:if tag? I can test for null as: s:if test={collection == null } But, I also need to test for empty collection. Thank you in advance. hf

Re: [S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Dave Newton
--- Harring Figueiredo [EMAIL PROTECTED] wrote: s:if test={collection == null } s:if test=%{collection.isEmpty} d. Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta.

Re: [S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Harring Figueiredo
Dave, Thank for the reply. I thought that this would call getIsEmpty(), from other examples I have seen. Let me try it again. hf On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote: --- Harring Figueiredo [EMAIL PROTECTED] wrote: s:if test={collection == null } s:if

Re: [S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Dave Newton
--- Harring Figueiredo [EMAIL PROTECTED] wrote: I thought that this would call getIsEmpty(), from other examples I have seen. It's a fake property because Java collections (and arrays... and... etc. :) are broken :/ d.

Re: Issue in compiling application in websphere

2007-04-11 Thread Ashish Kulkarni
Hi I got the issue, it is the double quote , i change the jsp from html:hidden value=%= sppu0016.getSTEREGFLG() % property=siteregflg / to html:hidden value='%= sppu0016.getSTEREGFLG() %' property=siteregflg / and it worked, i dont understand by websphere was not able to compile with double

Re: S2 life cycle

2007-04-11 Thread tom tom
Yes I know we can do this, but the argument is the previous struts ActionForm sharing across many action classes is achieved by ScopedModelDrivenT in Struts 2. Having session scoped beans as members in action classes doesnt sound as a good MVC pattern to me. If there is a infrastructure in

Re: S2 life cycle

2007-04-11 Thread tom tom
should I have the following in my jsp s:hidden name=S2_CONVERSATION_ID value=%{conversationId} / Let me know? Thanks, Lalitha --- tom tom [EMAIL PROTECTED] wrote: Yes I know we can do this, but the argument is the previous struts ActionForm sharing across many action classes is achieved

  1   2   >