Re: Disabling Browser AutoComplete in Struts tags

2008-04-22 Thread Chris Pratt
So, I'm hearing the answer is "you can't"? At least not without extending the system myself? Thanks, I'll work around the system again. (*Chris*) On Tue, Apr 22, 2008 at 11:30 PM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > You could probably create your own theme and/or template for the tag

Re: Disabling Browser AutoComplete in Struts tags

2008-04-22 Thread Toni Lyytikäinen
You could probably create your own theme and/or template for the tag where you set the attribute in the template. But why not just use standard xhtml tags for this - I mean just type it like this in the page: < input type="text" name="userid" autocomplete="off" ... /> (extra space there to not ma

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: It produces the following HTML: When the form is submitted the "ids" List is populated with one String "[22030, 6496, 6457, 6448]" instead of 4 Strings "22030", "6496", "6457",

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

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 addErrors

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 is

Disabling Browser AutoComplete in Struts tags

2008-04-22 Thread Chris Pratt
Is it possible to supply the autocomplete="off" parameter using the , , or 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 possible using the Stuts Tags?

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 PROTEC

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 imple

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 collec

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

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: -- freemarker.cor

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

Re: Why do parameters get applied to all hyperlinks generated by & 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 > > ... > > ... > > > in your conf

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

2008-04-22 Thread Steve Akins
You need to code includeParams="none" in the s:url tags or ... ... 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 Rosa <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following

Why do parameters get applied to all hyperlinks generated by & even after the request is processes?

2008-04-22 Thread Eduardo Dela Rosa
Hi, I have the following code in my JSP: * View Customer Details* Assuming that the value of the email is [EMAIL PROTECTED] After clicking the link generated by the ** & **, all hyperlinks in next page will have the [EMAIL PROTECTED] encoded in the URL, i.e.: *http://host:8080/mydomain/[EM

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] http://repo1.maven.org/maven2/org/apache/str

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 New

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

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

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

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

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

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 a

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): ...page content Home.jps (which includes Navigation.jsp): <[EMAIL PROTECTED] file="Navigation.jsp"%> .page content Two immediately obvious issues with

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

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 ht

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

Re: insert multiple objects in same form

2008-04-22 Thread Laurie Harper
zakaria ghandour wrote: Hi, in my struts form i have 2 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 to dont have conflict name, and how can i recover the values of these inputs in "struts

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 to

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 action

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

refering bean created with

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... later in jsp rendering process, in a different page fragment i like to add several key value pairs to this map but dont know how to do. I allready read documentation but withou

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 pol

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.

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" Sent: T

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

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): ..page content Home.jps (which includes Navigation.jsp): <[EMAIL PROTECTED] file="Navigation.jsp"%> page content Paranoid_Fabio wrote: > > Hello. I've a problem with i

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 framewo