Re: Problems with forms field

2008-05-19 Thread Laurie Harper
Looks like you're missing a getter for dadosPessoais in your action class... L. Felipe Lorenz wrote: Ok.. i did it... its all right.. but i dont know... i will print my code: JSP: <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> htt

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Ian Meikle
I have had the same problem. I assume you are not using an US locale in your client browser. We use Norwegian and German and it does not work. Regards Ian CSC Solutions Norge AS Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway Registered in Norway No: 958 958 455

RE: html:select javascript onchange passing parameter problem

2008-05-19 Thread Sindhu C R
I cld nt still fix it.. Let me no if u cld proceed. Regards, Sindhu C.R  Please don't print this Email unless you really need to - this will preserve trees on planet earth. === -Original Message-

Re: html:select javascript onchange passing parameter problem

2008-05-19 Thread Mahawilai
I have the same problem, Please tell me how to fix it if you know how. thank you very much Mahawilai Benz wrote: > > this is my part of jsp: > > > > > ... > > ... > > ... > > I get the html result: > ... > > ... > > The '<%=idx%>' text in jsp should be rendered as the

Re: Struts 2 with Axis WS NOPS.

2008-05-19 Thread Felipe Lorenz
UPDATE: i've did try with Tomcat 5.5 and 6, but still not working. On Mon, May 19, 2008 at 8:25 PM, Felipe Lorenz <[EMAIL PROTECTED]> wrote: > Hi dudes. > > I have a problem. > > Ive try to acess a Web Service, created with Axis 1.4, with my struts > aplication. But it throw a java.net.ConnectEx

Struts 2 with Axis WS NOPS.

2008-05-19 Thread Felipe Lorenz
Hi dudes. I have a problem. Ive try to acess a Web Service, created with Axis 1.4, with my struts aplication. But it throw a java.net.ConnectException: Connection timed out: connect. but, when i execute my class to test the acess of WS without tomcat, etc..., its works. What can be? My librari

Re: Struts 2 with RAD 6

2008-05-19 Thread achandra
Hello Cheng, I am trying to make Struts 2 work with RAD 7.0. It is not working I mean the very first page is fine but after that when it tries to look for the action, it is giving error and in the url it is ending .action. It is not able to find the jsp page. I can send the directory structure

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
I tried everything with tag! It seems that Struts 2 in 2.0.11.1 version have a bug with type conversion from jsp tag (that is actually a String) to corresponding java.util.Date field in action class. Could someone confirm this ? -- Thx, Milan Milan Milanovic <[EMAIL PROTECTED]> wrote: By usi

Action Form values are null on submit

2008-05-19 Thread Shanna7463
I have a web application using struts and it works fine with IE 7, however in IE 6 I am getting null for all of the form values. Do I need to use a older version of struts or am I doing something in my JSP that is clearing the table? Here is my JSP: <%@ page contentType="text/html; charset=iso-

Jsp struts

2008-05-19 Thread Sapan
Hi , Hi, I got ???en_US.errors.required??en_US.errors.required??? this error on my entry form before submit any button andd I used at end of form i want to show my message on message or dialog box I donot know where it goes wrong my code is as follows struts-config.xml h

Re: Expressions and migration from 2.0.9

2008-05-19 Thread Musachy Barroso
You can define a taglib-location in web.xml, but I am not sure if that overwrites the one from the jar file. musachy On Mon, May 19, 2008 at 3:14 PM, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: >> >> Change the TLD? >> >> The combination of the two levels of EL is a security risk

Re: Expressions and migration from 2.0.9

2008-05-19 Thread Oleg Mikheev
Dave Newton wrote: Change the TLD? The combination of the two levels of EL is a security risk in some applications. If you're not worried about it or not affected by it then it's an easy, if annoying, workaround. Thanks Is repackaging struts jar the only way of doing that? --

Re: Expressions and migration from 2.0.9

2008-05-19 Thread Dave Newton
Change the TLD? The combination of the two levels of EL is a security risk in some applications. If you're not worried about it or not affected by it then it's an easy, if annoying, workaround. Dave --- Oleg Mikheev <[EMAIL PROTECTED]> wrote: > I was trying to upgrade from 2.0.9 to the latest S

Re: Problems with forms field

2008-05-19 Thread Felipe Lorenz
Ok.. i did it... its all right.. but i dont know... i will print my code: JSP: <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/TR/html4/loose.dtd";> JSP Page

Re: Problems with forms field

2008-05-19 Thread Milan Milanovic
Check the names of the fields, they must mach with attributes names in action class, and also check that you have correct get/set methods for them in your action class. -- Milan Jim Kiley <[EMAIL PROTECTED]> wrote: Felipe, It would be much easier for others to help you if you would include rel

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
To the best of my knowledge S2 uses OGNL extensively so not using it is probably not an option. Anyone please feel free to correct me if I¹m wrong about this. I have never used commons-el personally so I couldn¹t tell you, sometimes the commons stuff like that extends and enhances some framework or

Re: Upgrade from 2.06 to 2.011.1 Error

2008-05-19 Thread Oleg Mikheev
Hoying, Ken wrote: Editorial: I cannot help but wonder if these consecutive painful upgrades are going to have an adverse affect on Struts2 adoption, future user base and perception. I have been a big proponent of Struts2 up till now, but must admit that I am finding myself questioning if there

Re: Problems with forms field

2008-05-19 Thread Jim Kiley
Felipe, It would be much easier for others to help you if you would include relevant parts of your code, as well as let us know what version of Struts you are using. jk On Mon, May 19, 2008 at 2:15 PM, Felipe Lorenz <[EMAIL PROTECTED]> wrote: > Hi, > > i did work with struts, and im work with i

Expressions and migration from 2.0.9

2008-05-19 Thread Oleg Mikheev
I was trying to upgrade from 2.0.9 to the latest Struts 2 and encountered this issue: http://issues.apache.org/struts/browse/WW-2107 If I have a lot of code like this: fieldValue="${requestScope[tmpVar]}" value="${not empty renewaledId ? false : requestScope[tmpVar]}"

Re: [Struts2] Table pagination (paging)?

2008-05-19 Thread Oleg Mikheev
sol myr wrote: What's the Strut2 recommendation for Table Pagination (AKA Paging)? We're showing a large table (say, 500 records) and need to break it down to 25 pages (20 records per page). http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html -

Problems with forms field

2008-05-19 Thread Felipe Lorenz
Hi, i did work with struts, and im work with it. But, i dont how, the value of field are not send to Action class.. for example: My forms have 3 fields.. text.. normal.. simple.. so, when i submit this the form only the last filed are set. I put a System.out in my action class, and i see only t

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
By using this name="delivery.date" attribute it reads the date good, but it can't store it back! It generates this error below 'ParametersInterceptor' ? -- Thx, Milan Milan Milanovic <[EMAIL PROTECTED]> wrote: And when I add "value" attribute to this tag like this: format="#-#MM-#d

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Wes Gamble
I'm reading that OGNL is not only very slow, but also that development on it has basically halted.How can I ensure that I'm not using OGNL in my view?Is the Apache commons-el different than the EL that comes w/the standard J2EE stack?  If so, how can I use that?  Should I?Wes   -

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Dave Newton
The value stack should be available in a 'ed tag, and you should be able to reference your action's properties in any of the supported ways. Also note that S2 uses a request wrapper so that you may access value stack variables via JSP EL (e.g. ${anActionProperty}). Note that the normal scopes are

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
Yes, outside of Struts tags. No that is JSP EL (Expression Language), which is different from OGNL, however you can get values from the OGNL stack using EL like in my example. There are at least a couple of links in the documentation to OGNL. I would check that first, as to EL there are tons of lin

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Wes Gamble
Randy,Thanks!  So, in general, is this an alternative way to reference these properties?  Where can I find out more about the ${...} syntax?You said "EL" in your reply.  So, is this standard JSP EL or is it OGNL?  Are they different, or is "EL" in Struts actually OGNL?Thanks,Wes ---

Re: How to pass OGNL expressions to JSP includes

2008-05-19 Thread Randy Burgess
You can use EL outside of Struts tags. Try . Properties in an action will be at the top of the stack. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Wes Gamble <[EMAIL PROTECTED]> Reply-To: Struts Users Mailing List Date: Mon, 19 May 2008 16:25:26 + T

Action Framework Standard

2008-05-19 Thread Frans Thamura
hi all is it possible that S2 posted to JCP so we can have action framework standard? F

Re: Jsp struts

2008-05-19 Thread Laurie Harper
Sapan wrote: Hi, I got ???en_US.errors.required??en_US.errors.required??? this error on my entry form before submit any button andd I used at end of form i want to show my message on message or dialog box I donot know where it goes wrong Difficult to say, since you didn't include any o

How to pass OGNL expressions to JSP includes

2008-05-19 Thread Wes Gamble
All,It's been a while since I've done any Struts (JSP for that matter) development, and I'm trying to get started with Struts 2.Here's a very simple template that pulls in an include that provides the ... content for the page.<%@ taglib prefix="s" uri="/struts-tags" %>  " />  " />I have an act

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
And when I add "value" attribute to this tag like this: it generates and exception: 18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - Could not parse date java.text.ParseException: Unparseable date: "pregled.odPeriod" at java.text.DateFormat.parse(Unknown

Re: [Struts 2] Simple combobox behaviour

2008-05-19 Thread Laurie Harper
The name attribute can reference an object-typed property, but Struts needs to know how to convert a string (which is all that HTTP can transmit) into that type. That's where type conversion comes in: http://struts.apache.org/2.0.11.1/docs/type-conversion.html L. Milan Milanovic wrote: No on

Re: [Struts 2] Many-to-many form-interface

2008-05-19 Thread Laurie Harper
A multiple select seems to be the 'simplest thing that could possibly work' for this, but there are other options. For example, something like s:optiontransferselect [1] gives a slightly fancier way of providing the same thing. Another alternative would be to have an Ajax-y 'combo box' to selec

[Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
It seems that there is a bug with tag. I defined it as in documentation: I have delivery object in my action class with date field (of type java.util.Date) and all necessary get/set methods. But when I submit the form I get this error: 17:55:47,968 ERROR com.opensymphony.xwo

RE: Struts 2 and Sitemesh

2008-05-19 Thread Asleson, Ryan
OK, I now get content. I specified the wrong value in the tag's namespace attribute. -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:27 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh OK, doing that made the error go

Re: Spring autowiring null values

2008-05-19 Thread Dave Newton
--- Ian Meikle <[EMAIL PROTECTED]> wrote: > I have already read this page, the possible values are given as: > > name, type, auto or constructor. > > There is no NONE, or OFF value, and looking at the source code there > does not seem to be support for it either. > Hence why I am asking if there

Jsp struts

2008-05-19 Thread Sapan
Hi, I got ???en_US.errors.required??en_US.errors.required??? this error on my entry form before submit any button andd I used at end of form i want to show my message on message or dialog box I donot know where it goes wrong Please help me out. Waiting for warm and urgent reply Thankx

Re: [Struts 2] Simple combobox behaviour

2008-05-19 Thread Milan Milanovic
No one can help ?! It seems for me that wrote: I hope that someone can answer this simple question. If I have object Person buyer; in my Fruit class (with get/set methods), and I have fruit object in my action class, where I also have List allBuyers in my action class. How can I define c

Re: Spring autowiring null values

2008-05-19 Thread Ian Meikle
Hi Dave, I have already read this page, the possible values are given as: name, type, auto or constructor. There is no NONE, or OFF value, and looking at the source code there does not seem to be support for it either. Hence why I am asking if there is another way of turning this off. Regards

Re: Spring autowiring null values

2008-05-19 Thread Dave Newton
--- Ian Meikle <[EMAIL PROTECTED]> wrote: > We would like to turn off the autowiring completly. > I understand that this is not really anything to do with STRUTS2, but > > since it seems to be set via the STRUTS Spring plugin > I thought you guys would know. It can be set either in the Spring con

Re: Spring autowiring null values

2008-05-19 Thread Joachim Ansorg
AFAIK Struts2 tries to set a new value to an object if it's currently null. E.g. a new value for "person.address.street" should be set in a request. If "person" is created in the prepare() method and if the action uses an paramsPrepareParams stack then Struts2 tries to create the person object

Re: Spring autowiring null values

2008-05-19 Thread Ian Meikle
Hi, We would like to turn off the autowiring completly. I understand that this is not really anything to do with STRUTS2, but since it seems to be set via the STRUTS Spring plugin I thought you guys would know. Regards Ian CSC Solutions Norge AS Registered Office: Sandsliåsen 57, 5254 Sandsli,

Re: Spring autowiring null values

2008-05-19 Thread Dave Newton
Spring autowiring (is autowiring by name the default?) isn't related to XWork at all AFAIK. Can you be a bit more specific about what behavior you're seeing contrasted against what you'd prefer? I mean, you can set Spring's default wiring to something else or turn it off altogether. Dave --- Ia

Re: How to skip validation for a particular button

2008-05-19 Thread Jim Kiley
Is this an opportunity to write annotation-driven validation instead? On Mon, May 19, 2008 at 7:26 AM, Arpan Debroy <[EMAIL PROTECTED]> wrote: > As I have 4 buttons in each page, I dont want to write xml files for each > button. There will be so many xml files. > And all my requests come in one e

Re: How to skip validation for a particular button

2008-05-19 Thread Arpan Debroy
As I have 4 buttons in each page, I dont want to write xml files for each button. There will be so many xml files. And all my requests come in one execute method in Action class and from there depending on the request I m calling different methods.. On Mon, May 19, 2008 at 4:45 PM, Lukasz Lenart <

Re: How to skip validation for a particular button

2008-05-19 Thread Lukasz Lenart
> > I have 4 buttons in one page and I have written one validaton xml file like > this :- > > action_class - validation.xml > > But for one specific button I want to skip validation process. > > Is there anybody know how to do that. > Do you have different methods for each button? If so prepare se

How to skip validation for a particular button

2008-05-19 Thread Arpan Debroy
Hi All, I have 4 buttons in one page and I have written one validaton xml file like this :- action_class - validation.xml But for one specific button I want to skip validation process. Is there anybody know how to do that. Thanks Arpan

Spring autowiring null values

2008-05-19 Thread Ian Meikle
Hi, Is there a way of stopping Spring from autowiring values ? Especially null values ? We use Spring to set up our actions to ease the integration of hibernate, but we do not want Spring to set default values when property is null. Can this be turned off ? I have tried but this does not seem

RE: No JavaScript in s:div

2008-05-19 Thread Håken Stark
I'm able to reproduce the behavior you are describing, when executeScripts="false" and separateScripts="false" is set. By inspecting the html using Firebug, I can see that the javascripts are included, but unable to run. But when the attributes are set to executeScripts="true" and separateScrip

Re: [Struts 2] Many-to-many form-interface

2008-05-19 Thread David Canos
Sorry Laurie. I will try to make me clarify I just want to build a form field that * in a Author profile will let me select the books that a author have. * in a Book profile will let me select the authors of the book. It could be possible by a multiple select but I really dont like this solution

RE: [struts2]how to configure the web app - solved!

2008-05-19 Thread kindlerm
First of all, thanks to all who answered to my previous posting! I did not want one of this big "use another framework [Spring/AppFuse/Hibernate/...] in addition to Struts2" things. While this is surely the right way to go for a lot of heavy weight systems there are also smaller lightweight app