Re: Using DOJO in Struts2

2008-04-22 Thread umesh awasthi
Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced

Re: Using DOJO in Struts2

2008-04-22 Thread Jeromy Evans
umesh awasthi wrote: Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications I should mention here that there are other server-side

Re: Two resource bundles in the same page?

2008-04-22 Thread Paranoid_Fabio
Thank you. The outline is: Navigation.jsp (the links bar that is included in the other pages): body s:i18n . ..page content /s:i18n /body Home.jps (which includes Navigation.jsp): body s:i18n .. [EMAIL PROTECTED] file=Navigation.jsp% page content /s:i18n /body

Re: Using DOJO in Struts2

2008-04-22 Thread umesh awasthi
thks Jeromy for valuable feedback hope it will solve our purpose.. -S On 4/22/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any

Re: Using DOJO in Struts2

2008-04-22 Thread Al Sutton
Just to add my vote to the YUI loving camp. I started to port the S2 dojo plugin to dojo 1.x, but after playing with YUI I've abandoned it because YUI was a better fit for my needs. - Original Message - From: umesh awasthi [EMAIL PROTECTED] To: Struts Users Mailing List

Annotation Validation: compare two fields

2008-04-22 Thread mteccles
Hi, I have a form which contains password and a password check field. These fields must contain the same password or else a validation error is shown. Is it possible and what is the syntax for validating this? As far as I can see there only exists the possibility to validate fields exclusively.

Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-22 Thread Filippov, Andrey
Hello everybody! I am trying to load file from DB. I use https. In Mozilla I get only one exception but everything finally works. Here is my code and stack trace: public String execute() throws Exception { super.execute(); byte[] file = null; PolicyFileVO

refering bean created with s:bean

2008-04-22 Thread Stefan Gebhardt
Hi struts users, i got little trouble with the following struts2 jsp snippet. Within a tagfile i create a map... s:bean name=java.util.HashMap id=mymap s:param name=peng value=pong/ /s:bean later in jsp rendering process, in a different page fragment i like to add several key value pairs to

Struts 1 Struts 2 file upload problem

2008-04-22 Thread Rubbinio
Hi, we have an old application written in Struts 1 and we started adding new features in Struts 2. In the old application we had a file upload form which was working fine. After adding Struts 2, the form does not work anymore because the file field is not populated in the form anymore and it is

Re: [S2] Result annotation - possibility to pass method as parameter?

2008-04-22 Thread wild_oscar
For those interested, the answer to this question is: @Result(name=name,type=ActionChainResult.class,value=actionName ,params= {method,methodName}) wild_oscar wrote: When using Result annotations to configure Actions, is it possible to pass the method as a parameter in the

Re: Locale Field in Struts URL's

2008-04-22 Thread Laurie Harper
yogi1313 wrote: Hi all , We are using struts to build a Global website which will be localized in over 30 languages. One of our requirement for SEO is to not have any locale field in the URL's .. In standard approach when we localize a site we have a locale field in the URL which is then used

Re: insert multiple objects in same form

2008-04-22 Thread Laurie Harper
zakaria ghandour wrote: Hi, in my struts form i have 2 html:text to insert date and time. i want to insert more than one object in my Struts action (using iteration to display inputs in form). how can i name my html:text to dont have conflict name, and how can i recover the values of these

Re: Re-use a form

2008-04-22 Thread Laurie Harper
Driv wrote: Hi... I have a problem: I have an action that retrieve some results from a DB, puts them in a form and forwards it to a jsp. The problem is that I have to do (from the jsp) another search in th DB using the same FORM. the scope of the action that generates the form is session,

Re: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-22 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Filippov, i think you'd better use the method public java.io.PrintWriter getWriter() throws IOException; than getOutputStream(). Regards Volker Filippov, Andrey schrieb: Hello everybody! I am trying to load file from DB. I use

Re: Is now a proper time for me to take use of Struts2.1?

2008-04-22 Thread Laurie Harper
Mingliang Liu wrote: Half of a year is a long time for Struts2.1 developing and I just wonder whether it's proper to use struts2.1-from svn? If you're considering using a non-release version of Struts, you'd be well advised to monitor the dev list so you are aware of current status and

Re: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-22 Thread Laurie Harper
Filippov, Andrey wrote: Hello everybody! I am trying to load file from DB. I use https. In Mozilla I get only one exception but everything finally works. Here is my code and stack trace: public String execute() throws Exception { super.execute(); byte[] file = null;

Re: Two resource bundles in the same page?

2008-04-22 Thread Laurie Harper
Paranoid_Fabio wrote: Thank you. The outline is: Navigation.jsp (the links bar that is included in the other pages): body s:i18n . ...page content /s:i18n /body Home.jps (which includes Navigation.jsp): body s:i18n .. [EMAIL PROTECTED] file=Navigation.jsp% .page content

Re: Struts 1 Struts 2 file upload problem

2008-04-22 Thread Laurie Harper
Rubbinio wrote: Hi, we have an old application written in Struts 1 and we started adding new features in Struts 2. In the old application we had a file upload form which was working fine. After adding Struts 2, the form does not work anymore because the file field is not populated in the form

quickstart and the date range validator

2008-04-22 Thread Peter Wages
I modified the quickstart demo application by adding person.dateOfBirth and person.age to do some tests with the validators. I added a an intrange validator on the age and a daterangevalidator and a regex validator on the date of birth plus additional required validators on the new

Re: Struts 1 Struts 2 file upload problem

2008-04-22 Thread Radu Solomon
Thank you. You were absolutely right. our struts 2 filter was using /* and the Struts 1 servlet mapping *.do. Once I changed the struts 2 to *.action it all went back to normal. Laurie Harper wrote: Rubbinio wrote: Hi, we have an old application written in Struts 1 and we started adding

checkfielderror.ftl does not highlight select tag errors in yellow

2008-04-22 Thread Peter Wages
checkfielderror.ftl of the simple theme will find field errors for a textfield and change the background to yellow. It will not do so for select tags. The error message for the select tags show up so the theme knows about the errors. It would seem that the fielderrors array/list

Exception like a missing JAR, but I think I have them all

2008-04-22 Thread Allen, Daniel
When I try to start up my Struts 2/Spring project, I get an exception about a missing class, which makes me think I have a missing JAR, but I can't find mention of anything that isn't already in my build. Could anyone take a look, perhaps? I have the following entries in my Maven POM. Am

Re: Exception like a missing JAR, but I think I have them all

2008-04-22 Thread Dave Newton
--- Allen, Daniel [EMAIL PROTECTED] wrote: When I try to start up my Struts 2/Spring project, I get an exception about a missing class, which makes me think I have a missing JAR, but I can't find mention of anything that isn't already in my build. Could anyone take a look, perhaps? I have

RE: Exception like a missing JAR, but I think I have them all

2008-04-22 Thread Allen, Daniel
Yeah, that would be key, wouldn't it? It works now. If the POM's writer is around, though, is there a reason that the Spring core is not listed as a dependency of the struts-spring plugin? That's what I originally assumed would happen. Thanks, Dave. ~Dan -Original Message- From: Dave

Re: Exception like a missing JAR, but I think I have them all

2008-04-22 Thread Laurie Harper
Spring Core *is* listed as a dependency of the Struts Spring Plugin (along with various other Spring modules), at least according to the POM in the default Maven repository [1]. I don't know why your build would have failed to pick them up. L. [1]

Why do parameters get applied to all hyperlinks generated by s:url s:a even after the request is processes?

2008-04-22 Thread Eduardo Dela Rosa
Hi, I have the following code in my JSP: *s:url id=url7 namespace=/secure action=viewCustomerDetails s:param name=emailc:out value=${customer.email}//s:param /s:url s:a href=%{url7}View Customer Details/s:a* Assuming that the value of the email is [EMAIL PROTECTED] After clicking the link

Re: Why do parameters get applied to all hyperlinks generated by s:url s:a even after the request is processes?

2008-04-22 Thread Steve Akins
You need to code includeParams=none in the s:url tags or struts ... constant name=struts.url.includeParams value=none / ... /struts in your configuration. Have a look here: http://struts.apache.org/2.x/docs/url.html I'm pretty certain that will sort you out. On 4/23/08, Eduardo Dela

Re: Why do parameters get applied to all hyperlinks generated by s:url s:a even after the request is processes?

2008-04-22 Thread Eduardo Dela Rosa
Excellent! That solved it. I should have paid attention to that part of document. Thanks very much Steve. Eduardo On Wed, Apr 23, 2008 at 9:44 AM, Steve Akins [EMAIL PROTECTED] wrote: You need to code includeParams=none in the s:url tags or struts ... constant

Ajax examples in the Struts2.0.11 download

2008-04-22 Thread tom tom
Hi, Is portlet Ajax examples are demonstrated in struts2-portlet-2.0.11.1.war in the distribution. I can see some pages but can't see the functionality in the main index Thanks Be a better friend,

freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
FreeMarker template error! Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl. The problematic instruction: -- == ${error} [on line 35, column 2 in template/simple/actionerror.ftl] -- Java backtrace for programmers: --

Re: freemarker error - Any ideas?

2008-04-22 Thread Márcio Gurgel
Hi Akash, Could you send your jsp code? Maybe this is a syntax error. []'s Márcio Gurgel 2008/4/23, akash agrawal [EMAIL PROTECTED]: FreeMarker template error! Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl. The problematic instruction: --

Re: freemarker error - Any ideas?

2008-04-22 Thread Jeromy Evans
akash agrawal wrote: FreeMarker template error! Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl. The problematic instruction: -- == ${error} [on line 35, column 2 in template/simple/actionerror.ftl] -- Somehow the ActionErrors

Re: Ajax examples in the Struts2.0.11 download

2008-04-22 Thread Nils-Helge Garli Hegvik
Hi! I'm not quite sure what you're asking, but the Ajax examples in the portlet sample was removed in an earlier version due to a number of problems. You can find a related issue here: https://issues.apache.org/struts/browse/WW-2556 For now, if you need Ajax support in portlets, you need to

Re: freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
Yes, I am adding an action error in my action. Somewhere in my action a NullPointerException gets thrown and I add that exception to my actionerror . I guess thats not incorrect to do that, is it? --- On Tue, 4/22/08, Jeromy Evans [EMAIL PROTECTED] wrote: From: Jeromy Evans [EMAIL

Disabling Browser AutoComplete in Struts tags

2008-04-22 Thread Chris Pratt
Is it possible to supply the autocomplete=off parameter using the s:form, s:textfield, or s:password tags? Whether or not this is truly effective, my management wants our userid and password fields to supply this parameter to bring piece, harmony and security to the world wide web. Is this

Re: Intenationalization questions

2008-04-22 Thread Pranav
Ok then following your expert advice I think I want to use the second approach now where I define my own TextProvider instance. Q.1) The ActionSupport class uses TextProviderSupport class which internally calls the LocalizedTextUtil class. Is that right understanding? Q.2) What I have to do

Re: freemarker error - Any ideas?

2008-04-22 Thread Jeromy Evans
akash agrawal wrote: Yes, I am adding an action error in my action. Somewhere in my action a NullPointerException gets thrown and I add that exception to my actionerror . I guess thats not incorrect to do that, is it? Ensure you're not adding the null object to the collection of

Re: Intenationalization questions

2008-04-22 Thread Jeromy Evans
Pranav wrote: Ok then following your expert advice I think I want to use the second approach now where I define my own TextProvider instance. Q.1) The ActionSupport class uses TextProviderSupport class which internally calls the LocalizedTextUtil class. Is that right understanding? Q.2) What I

Passing a List through a hidden field

2008-04-22 Thread Steve Akins
I have a List called ids which contains 4 Strings 22030, 6496, 6457, 6448 When the following tag is used: s:hidden name=resend.ids / It produces the following HTML: input type=hidden name=resend.ids value=[22030, 6496, 6457, 6448] id=/test/resend_resend_ids/ When the form is submitted the ids