Push vs. Set

2007-05-30 Thread chengas123
I'd like to be able to access the first element of my people list as a person in a property tag later on in an included page as follows: I know that would work, but I unfortunately cannot do that because I may enter the page another way in which I set a person as a request attribute. Can I u

JasperReports and Struts 2 Problem

2007-05-30 Thread jgagarin
Hi All, I'm having problem with JasperReports and Struts 2 when I tried to output the report in HTML format. When I run the report, all the images doesn't display and only the data are displayed. I think I'm missing something in the action mapping part and specially in specifying the image s

Re: Multi lingual web site

2007-05-30 Thread Martin Gainty
encode as UTF-16 Good Luck, This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email

Re: Multi lingual web site

2007-05-30 Thread wang huan
We usually have several resource files, and output fields with tag . Instead of storing values, we store those keys in DB. for instance: -- 北半球的狗几月份掉毛?

[s2] maven-tomcat-plugin with struts2

2007-05-30 Thread robinbajaj
<> I just started using the maven 2 tomcat plugin from http://mojo.codehaus.org/tomcat-maven-plugin/introduction.html It works by default using tomcat 5.5 server. Is there a way to make mvn tomcat plugin to use tomcat v6 in this case, instead of tomcat 5.5. Since I would rather like to work in

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > How does one detect which language and country is selected? Since you are posting to the Struts mailing list, I would imagine that you are using Struts. Struts 1.x allows you to grab the user's Locale by using Action.getLocale(

Re: how to check if page has been displayed (rendered) by the browser

2007-05-30 Thread Torsten Römer
Couldn't you use the JavaScript "Load" event to know when the page has been completely rendered, and postpone your reload until then? Torsten Greg Stasica schrieb: > hi, > > My problem is that I've a big JSP page with a lot of scriptlets and a > JavaScript which basically reloads the whole page

little s2 live app :)

2007-05-30 Thread Ron Chan
http://www.nicolatsboutique.com/shop/home/ took 3000 orders in the first week, peaking at 830 for one day and 85 in one hour on peak day, 10Gb outgoing traffic, 5000 visits, 53500 page views and never went down :) S2 bits used :- guice plugin RestfulActionMapper codebehind and zeroconfig annota

RE: Multi lingual web site

2007-05-30 Thread Joe Yuen
Thanks Chris. How does one detect which language and country is selected? From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wed 5/30/2007 1:37 PM To: Struts Users Mailing List Subject: Re: Multi lingual web site -BEGIN PGP SIGNED MESSAGE- Hash

Re: Struts2 Dynamic Checkboxes

2007-05-30 Thread Torsten Römer
I think I found an OK solution but one thing does not work and I don't understand why. So what I am doing is creating single checkboxes in an iterator, disabling the automatically generated label through a modified "simple" theme and creating my custom labels:

Re: [s2]hot deploy java and struts.xml changes in tomcat

2007-05-30 Thread robinbajaj
thanks , that's a helpful link. I like the idea of using manager app do the reload for you.. for eg: http://localhost:8080/manager/reload?path=/examples Is there a way to make mvn tomcat plugin to use tomcat v6 in this case, instead of tomcat 5.5. Since I would rather like to work in tomcat 6

RE: Multi lingual web site

2007-05-30 Thread Jon Cruz
Hello, There are a few ways I've gotten around this: 1. Store the other languages in the same table that populates the "select" control. In the future, if you add more languages to your site, you just add to that table. (Which would be similar to adding another resource file for that new langua

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > I'm currently using a > resource file and that all work great except for some select boxes > the data comes from the database where the data is in English. I was > wondering how other people handle this situation? You'll need y

ValuesListHandler pattern a.k.a Pager

2007-05-30 Thread Giovanni Azua
Hi all, I would like to display a large result set using e.g. Top N query and was wondering whether Struts 2 out of the box includes such UI tag or special action/interceptor component implementing such requirement. The result type would not be so important assume JSP but I am open to use any.

Multi lingual web site

2007-05-30 Thread Joe Yuen
I am trying to build a mutilingual website. I'm currently using a resource file and that all work great except for some select boxes the data comes from the database where the data is in english. I was wondering how other people handle this situation? Should I have the same table also store the

Re: [s2]hot deploy java and struts.xml changes in tomcat

2007-05-30 Thread yitzle
Did you look at http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server ? Also view: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Reload%20An%20Existing%20Application

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread robinbajaj
thanks a lot yitzle. I got the ant script. but now that I am working with maven , i would like to explore it a little more to see if I can get the hot-deploy working with it. And most probably it looks like there's some setting on tomcat side (as u earlier mentioned) that will let me do the ho

[s2]hot deploy java and struts.xml changes in tomcat

2007-05-30 Thread robinbajaj
Hi there, I just setup tomcat 5.5 as my web-container for struts2 project. But I cann't seem to figure out how to force the hot deploy work with it. I noticed (following struts2 bootstrap tutorial) that jetty can hot-deploy my changes, ie whenever I change my .java / struts.xml , it picks up t

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread yitzle
I don't use the Tomcat manager. I'll email you the ANT script I use On 5/30/07, robinbajaj <[EMAIL PROTECTED]> wrote: ooops I looked at the error message again -- 18K downloaded [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/tutorial64 [INFO] --

Re: [OT] Serious memory leak

2007-05-30 Thread David Durham, Jr.
Maybe you're creating a new session with each request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread robinbajaj
ooops I looked at the error message again -- 18K downloaded [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/tutorial [INFO] [ERROR] BUILD ERROR [INFO]

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread robinbajaj
Thanks for your response Dave. I tried the tomcat-maven-plugin basically removed the jetty plugin and introduced tomcat-maven-plugin into my pom.xml as follows org.codehaus.mojo tomcat-maven-plugin

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Adam Gordon
Paul- Looks like it still exists in 1.3.8. Do you want me to file the bug against 1.3.8? Also, what type of sample code are you looking for? The whole package (struts/tiles config files, Action class, JSP page, etc...) or something smaller? Thanks. --adam Paul Benedict wrote: Adam, Wo

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread Dave Newton
--- yitzle <[EMAIL PROTECTED]> wrote: > The way I deploy is by shutting down Tomcat, using > an ANT script to copy to files into the > Tomcat/webapps and starting Tomcat. The OP, however, wanted to use Maven. http://mojo.codehaus.org/tomcat-maven-plugin/ d. ___

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread robinbajaj
Hi Yitzle, thanks for your response. Essentially I am looking for that ant script :-) that will let me do this build etc. And yes, I have already gotten that Struts 2 book and reading through it to catch up. I have a good Struts 1.x background but never had to deal with Ant build scripts befo

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread yitzle
I'm using Struts2 + Tomcat (for a whole 2 weeks!) and its all good. The way I deploy is by shutting down Tomcat, using an ANT script to copy to files into the Tomcat/webapps and starting Tomcat. I think you can deploy without closing Tomcat. You may want to check out Tomcat's manual... There's the

Re: [S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
Thank you. So MyAction-validation.xml will only work with the following (equivalent configs)? /result.jsp or /result.jsp - Original Message From: Musachy Barroso <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Wednesday, Ma

Re: [S2] How Validators of an Action are Found

2007-05-30 Thread Musachy Barroso
for: /result.jsp it would be MyAction-save-validation.xml. musachy On 5/30/07, Jon Wilmoth <[EMAIL PROTECTED]> wrote: http://struts.apache.org/2.x/docs/validation.html says: Validation rules can be specified: Per Action class: in a file named ActionName-validation.xml Per Action alias

[S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
http://struts.apache.org/2.x/docs/validation.html says: Validation rules can be specified: Per Action class: in a file named ActionName-validation.xml Per Action alias: in a file named ActionName-alias-validation.xml Inheritance hierarchy and interfaces implemented by Action class: XWork searche

struts 2 setup for tomcat 5.5/6

2007-05-30 Thread robinbajaj
Hi there, I am struts2 newbie. Just completed bootstrap tutorial (using Maven Starter archetype) that works with Jetty. I was wondering if I could make it work with my favorite web server - tomcat 5.5/6. Essentially I think I have to change the maven scripts to deploy to tomcat. Has anyone done

Re: [OT] Serious memory leak

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, I just realized that we're talking about approximately 1MB of char[] data... what's the big deal about that? ;) Balazs Michnay wrote: >> Can you expand the "+" next to Arrays.copyOfRange to see what the rest >> of the stack trace is? I'm sure

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: > So, we have a form in a JSP, and generally, the OS allows the user to > copy/paste a bullet list from MS Word, OOWriter, et. al. into a text > area in the form. Regardless of whether the browser is in UTF-8 > mode or ISO-88

Re: Regarding "How can we test applications?" in S2 doc online

2007-05-30 Thread Dave Newton
--- Ted Husted <[EMAIL PROTECTED]> wrote: > Dave Newton <[EMAIL PROTECTED]> wrote: > Web services are useful, but it's important to note > that they are not essential to a Service Orientated > Architecture. Business objects loaded via Spring, or > just popped into application scope, work just as

Re: Serious memory leak

2007-05-30 Thread Balazs Michnay
>I meant filters defined in web.xml, not scriptlets. It's /possible/ that >your tags are using a whole lot of memory, but probably not >(you'd have to be creating randomly-named session attributes over and >over, and never freeing them... I'm guessing you're not doing that). No, I'm not doing tha

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Adam Gordon
Paul- Of course. I'll email back when I have the results. Hopefully there won't be too many code changes due to the upgrade... --adam Paul Benedict wrote: Adam, Would you be kind enough to try this in 1.3.8? I'd be interested in fixing this, if you can help me diagnose the issue. After y

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Adam Gordon
Christopher- So, we have a form in a JSP, and generally, the OS allows the user to copy/paste a bullet list from MS Word, OOWriter, et. al. into a text area in the form. Regardless of whether the browser is in UTF-8 mode or ISO-8859-1 mode, the bullets show up as bullets. We submit the form,

RE: [s2] If Test Conditions

2007-05-30 Thread Hoying, Ken
I will give that a try. I am sure it will work. Thank you so much for your clear and detailed response. I now not only know what to do, but more importantly why it needs to be done that way. Thank you! -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Regarding "How can we test applications?" in S2 doc online

2007-05-30 Thread Ted Husted
On 5/30/07, Dave Newton <[EMAIL PROTECTED]> wrote: The nice part is that with a good set of service ("util") classes the web app, the web services, the unit tests, etc. all use the same underlying code (functionality). As would a desktop Swing client or utilities, etc. Yes, we're in the midst o

Re: [s2] If Test Conditions

2007-05-30 Thread Dave Newton
--- Jeromy Evans wrote: > The problem is that displaytag places the current > row in the pageContext but none of your expressions > are addressing it. Or it could be that ;) Dave "Shouldn't answer questions about taglibs he doesn't know" Newton

Re: [s2] If Test Conditions

2007-05-30 Thread Dave Newton
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote: > "${idContract.status}=='NEW'" > '${idContract.status}=="NEW"' > "%{idContract.status}=='NEW'" These close the OGNL expression too early. > "${idContract.status=='NEW'}" > "%{idContract.status=='NEW'}" > "idContract.status=='NEW'" > "#idContract.statu

Re: [s2] If Test Conditions

2007-05-30 Thread Jeromy Evans
The problem is that displaytag places the current row in the pageContext but none of your expressions are addressing it. I tend to just use JSTL within displaytag tables as its much easier to access the current row. I also tend to add getters to my bean to simplify the expressions instead of h

Re: [ANN] "Starting with Struts2" Book

2007-05-30 Thread Ian Roughley
Yep. Still in Boston. I'll have to ping them about that. /Ian Ted Husted wrote: On 5/29/07, Ian Roughley <[EMAIL PROTECTED]> wrote: Ah - thanks for the link Ted. And for all the kind words on the list. Don't forget the blog :) * http://husted.com/ted/blog/ Hey, isn't the New England JUG

Re: Multiple upload using Struts 1.0

2007-05-30 Thread Lance
You should be right if you implement the 4 indexed bean methods on your form. @see http://java.sun.com/j2se/1.4.2/docs/api/java/beans/IndexedPropertyDescriptor.html#IndexedPropertyDescriptor(java.lang.String, java.lang.Class) Here is an example if your property holding the files is called "fil

[s2] If Test Conditions

2007-05-30 Thread Hoying, Ken
I am having a devil of a time getting a simple if test condition to work properly. Here is the jist of what I am trying to do:  ${idContract.status} 

Re: No result defined for action ..... problems - HELP

2007-05-30 Thread Dave Newton
--- Luiz Henrique Rossetti wrote: > Why this happens? > > ERROR - Could not find action or result > No result defined for action > br.com.cpm.gepro.action.CadastroProjetoActionand > result input - action Probably because you have not defined an "input" result for the action in question. If you w

Help required for error html:form not closed

2007-05-30 Thread Kalpak Luniya
Hi all, We have got an Application wherein we are having many layouts. But we can easily group some layouts of some pages. We also can say that some part is common to all pages in a group. Hence we thought of segregating those contents into common files and including these as shown below. <%@ inc

No result defined for action ..... problems - HELP

2007-05-30 Thread Luiz Henrique Rossetti
Why this happens? 2007-05-30 09:51:49,986 ERROR (org.apache.struts2.dispatcher.Dispatcher:515) - Could not find action or result No result defined for action br.com.cpm.gepro.action.CadastroProjetoActionand result input - action - file:/C:/apache- tomcat-6.0.13/webapps/gepro/WEB-INF/classes/strut

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: > We're using the html:form element and we have the acceptCharset > attribute set to "UTF-8" and when we enter a unicode character in a > textarea in this form element, the UTF-8 character (in this case \u2022, > the bullet sy

Re: Regarding "How can we test applications?" in S2 doc online

2007-05-30 Thread Dave Newton
--- Skip Hollowell wrote: > I already have my DAO for the actual data layer > retrieval via our webservices and that has worked out > great, as per the CRUD demos and Mailreader. The nice part is that with a good set of service ("util") classes the web app, the web services, the unit tests, etc. a

Wierd behaviour with redirect, result, and store interceptor

2007-05-30 Thread Al Sutton
I have the following; Action A --- forwards to ---> A.jsp --- submits to ---> Action B --- redirects to ---> Action A The B to A redirect uses the store interceptor to pass action messages and action errors to Action A. When I add an ActionError in Action B (using addActionError from ActionSu

Re: Regarding "How can we test applications?" in S2 doc online

2007-05-30 Thread Skip Hollowell
Dave and Laurie: So I am complicating things, as usual, by over thinking them. Say I have an AccountAction. Then it's as simple as having an AccountUtil class (or several classes depending on need) that will contain most of the logic that will need to be performed by the Account Action. The

[S2] Problems with client side validation

2007-05-30 Thread Olivier THIERRY
Hi, I try the client side validation with Struts 2. The validation is well done, but I have many problems : - For each datetimepicker field in my form, I have the following Javascript error, which displays in a pop up : "TypeError: row.cells has no properties" - Another problem with datetimepicke

Re: [S2] Field is not changed

2007-05-30 Thread Michał Letyński
I have found this: Chaining interceptor: The Interceptor will copy the original parameters from the request, and the ValueStack is passed in to the target Action. The source Action is remembered by the ValueStack, allowing the target Action to access the properties of the preceding Action(s) us

RE : Go back -> BeanUtils.populate

2007-05-30 Thread Jean-Marie Pitre
Hi, No, I am not using FormFile. I set debug trace on and this is my output log : [DEBUG] 26:51 (ActionCommandBase.java:execute:46) Executing org.apache.struts.chain.commands.servlet.PopulateActionForm [DEBUG] 26:51 (BeanUtilsBean.java:populate:795) BeanUtils.populate([EMAIL PROTECTED], {co.bi