[s2] s:url escaping '&' between params

2007-04-11 Thread Manu Mahajan
Hi I'm facing a very annoying problem with s:url. For some reason it is encoding the '&' between the params to & Here's my code The above code outputs the url with parameters and '&' encoded What could be the reason?

ajax and struts 2

2007-04-11 Thread David Harland
I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer t

Re: upload fail occasionally [also Re: File upload fails first time, then works after page reload]

2007-04-11 Thread Eric Rank
I ran into the same problem with inconsistent behavior when uploading files. Sometimes i get a RequestFacade, and sometimes I get the right MultiPartRequestWrapper. I dug into the struts source code a little and I think I found the culprit. in org.apache.struts2.dispatcher.FilterDispatche

[Struts2[ Need help - Anyone in Houston, TX?

2007-04-11 Thread Neil Aggarwal
Hello: We are having trouble ramping up with struts 2. Is there anyone in Houston TX that can help us get struts 2 up and running for a project we are working on? This would be paid work. Please contact me off-list if you can help. Thanks, Neil -- Neil Aggarwal, (214)986-3533, www.JA

Re: S2 life cycle

2007-04-11 Thread tom tom
should I have the following in my jsp 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 by > ScopedModelDriven in Struts 2. > > Having sess

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 ScopedModelDriven 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 plac

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 to and it worked, i dont understand by websphere was not able to compile with double quotes Ashish On 4/11/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: Hi I am getting the following jsp compilation error in websphere 5.

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: [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: > d. ___

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

2007-04-11 Thread Dave Newton
--- Harring Figueiredo <[EMAIL PROTECTED]> wrote: > d. Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html

[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 tag? I can test for null as: But, I also need to test for empty collection. Thank you in advance. hf

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 <

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 docs to (hopefully!) better reflect this. Really, the documentation

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 bra

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: Rendered output: $123.00 Switch locale to Chinese (zh_CN, it's the only other language I know, sorry), rendered output: ¥123.00 I simply

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 P

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. format.money should actually be one of the values { 0, number, currency }, at least that is what it says on the documentation page. I wish someone from the Struts team w

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] Iterator and Index

2007-04-11 Thread Minerva CC
Since there are no "indexed" and "property" attributes for the tag. So, I tried this: Then, Struts 2 generated this: First Name: Last Name: Thanks, Willa - Original Message From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org

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: 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 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 org\apache\struts2\stati

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: Then Struts 1 will generate the output like this: Now, how can I do the same with Struts 2? I tried and . But, they don't have have equivale

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 to format a number. Here is what I have tried: .1 .1 And Here is the Corresponding output on the page: currency format.money cur

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 w

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. It the value does no appear at all. If there any

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: 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 " " Do you mean i have to specify the attribute name="aBean"instead of property="aBean" ? You only need to specify the 'name' attribute if you want to specify a bean other than the form bean. Assuming the data you wan

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 to

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 abso

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 Apache-jbo

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: 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 all

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 templat

[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: 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

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 developme

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 n

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 colle

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: > course.page > > 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 redi

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: [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: //fields here // if you need to submit an id, use wrote: Hi musachy, Thanks for pointing it out. I forgot what environment I am in now. My l

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 variabl

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] 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 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 wrot

[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: Then Struts 1 will generate the output like this: ... Now, how can I do the same with Struts 2? I tried and . But, they don't have have equivalent attributes. Is ther

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 ite

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 > > A

Re: Tiles 2 Lifecycycle

2007-04-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > course.page > > 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.

[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: function(reques

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: course.page course.page Shouldn't returning SUCCESS from my action result in a new Action class instance and it's de

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

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 tomcat

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 F

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: 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

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.xml Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 10:12 AM To: Str

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 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 rather than which gave me a 11-Apr-2007 17:42:15 org.apache.tiles.impl.BasicTilesContainer render SEVERE:

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: onclick="window.open('http://server:8080/FileServer/Menus/Search/selectDownloadType.jsp','blank','width=400,height=300,scrollbars=no')">key="button.download"/> In the ne

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/movieTit

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 quest

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 ti

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 comm

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 mos

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 t

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(); bean.setW

[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 to format a number. Here is what I have tried: .1 .1 And Here is the Corresponding output on the page: currency format.money currency format.money currency c

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 c

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 Cal

S2 & Tiles

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

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 stuff here but it does the job and now that I have it written I can use it in all the p

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 w

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 org\apache\struts2\static\dojo\src\i18n\calenda

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 stuff here but it does the job and now that I have it written I can use it in all the places I need to. Check out

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 layou

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 long

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: Re

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: [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 a

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_ins

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

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

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 org\apache\struts2\static\dojo\src\i18n\calendar

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 clicka

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: 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 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: [OT] how to change the look and feel of checkbox

2007-04-11 Thread James Mitchell
Bolded text 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 somebody please tell me how can I s

Re: tags within tags in struts..

2007-04-11 Thread MK Tan
try this 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.. > but i am getting an error,. what is the correct way to do it? thanks in advance. - Don't get soaked.

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 struts.action.ex

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.. > but i am getting an error,. what is the correct way to do it? thanks in advance. - Don't get soaked. Take a quick peak at the forecast with theYaho

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 ---

[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: 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: yourfilter movie/* struts2 /* u can foward or redirect to the url movie.action?movieTitle=* or something else in your filter. regards joey On

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 > > > {1} > /movie.jsp > > > The wildcard is for backwards compability since our original JSP/Servlet > web-layer mapped movie titles like > http:localhost:8080/movie/mo

[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; public

R: Array of Bean and optionsCollection (up)

2007-04-11 Thread Marcello Savino
>At first sight, u miss the name of the collection in " >label="descr"/>" Do you mean i have to specify the attribute name="aBean"instead of property="aBean" ? >second u forgot the dot in myBeanCode , it's myBean.code , Struts will do myBean.getCode(). myBeanCode is only a name for the current be

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 there

  1   2   >