How to change automatic type conversion error message

2008-05-15 Thread Arpan Debroy
In my application "id" attribute is int type of "Group" bean. In my JSP I have written like that :- Now if user puts a string into this text field, then error message come like that *invalid value for the field group.id But I want to show the error message with only "id" not "group.id". Is

RE: Struts validator framework

2008-05-15 Thread Givler, Eric
You define the field label using an argument, i.e. So the validator is using the field's label to fill in the message. The default message for errors.required is: errors.required={0} is required. So, it will replace {0} with the prompt.username entry that also appears as a resou

Struts validator framework

2008-05-15 Thread Zhang, Larry (L.)
Say if I have two text fields, one label is Please enter name:, and the other label is Please enter SSN:. In struts validator framework, if I need to validate these two fields using required validator, is there any way to relate the field label to the message? Or does struts validator support dis

Re: [Struts 2] Simple combobox behaviour

2008-05-15 Thread Milan Milanovic
I'm just not sure when I put listValue = "name" and listKey="id" I get and emtpy combo box with exactly 4 places (it have value option good) ? One more thing, if I have object Person buyer; in my Fruit class (with get/set methods), and I have Fruit fruit object in my action class, where I also h

Re: Struts 2 - Velocity Templates rendered twice

2008-05-15 Thread Eric Rank
I don't know if it would help you, but whenever I've had the phenomenon of repeating content on a page, it is almost always related to encountering an exception in one of the struts iteration tags. The first place I look are the log files to see if there's a stack trace. Hope that helps. E

Re: [Struts 2] Simple combobox behaviour

2008-05-15 Thread Milan Milanovic
When I removed listKey then it works good. But I now have the same problem with my datetimepicker field. I have "date" attrib (of type java.util.Date with get/set methods) in my Fruit class. I have defined it in jsp like this: ? -- Thx, Milan Felipe Lorenz <[EMAIL PROTECTED]> wrote: Ok.. if

Re: [Struts 2] Simple combobox behaviour

2008-05-15 Thread Felipe Lorenz
Ok.. if i get your idea... the list yout want to put in combobox is fruit.buyers, hu? Then, try it: if you have the object fruit, then: maybe the name is not correct. Try chage the attr name to person, for example. On Thu, May 15, 2008 at 6:05 PM, Milan Milanovic <[EMAIL PROTECTED]> wro

Re: [Struts 2] Simple combobox behaviour

2008-05-15 Thread Milan Milanovic
When I set listKey="fruit.buyers.id", I get a empty combo box, but with correct number of emtpy spaces (in my case 4) ? -- Thanks, Milan Felipe Lorenz <[EMAIL PROTECTED]> wrote: You need eht attribute "listKey" where you'll put the Person id!!! see: http://struts.apache.org/2.x/struts2-core/ap

Re: [Struts 2] Simple combobox behaviour

2008-05-15 Thread Felipe Lorenz
You need eht attribute "listKey" where you'll put the Person id!!! see: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/Select.html On Thu, May 15, 2008 at 5:19 PM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Hi, > > I have simple class Fruit, that have "id" (lon

[Struts 2] Simple combobox behaviour

2008-05-15 Thread Milan Milanovic
Hi, I have simple class Fruit, that have "id" (long), "name" (String), and "buyers" List of . In my action class I have Fruit fruit; object with get/set methods. In my jsp I have combo box defined like this: and when I sumbit form that contain this combo box, it generates following error:

Re: What is the functionality of struts 2 anchor tag?

2008-05-15 Thread Laurie Harper
this.href will give you the href value; I assume what Musachy posted will give you the OGNL evaluated value. Why can't you use that? L. akshi gupta wrote: I want to write my custom tag because my aim is to get the href value for the authorisation so that I can able to render the link according

Re: Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Frans Thamura
plz compare with json-plugins which send the POJO become JSON, without have to code this long lines F On Fri, May 16, 2008 at 12:15 AM, Rafael Antunes <[EMAIL PROTECTED]> wrote: > Example: > > <%@ page contentType="text/html; charset=UTF-8"%> > <%@ taglib prefix="s" uri="/struts-tags"%> > <%@ t

Re: Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Rafael Antunes
Example: <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json"%>

[Struts 2] Video Action

2008-05-15 Thread Yousri BENDI ABDALLAH
Hello , I have a problem with the integration of a video (wmv format) within a JSP page. To that end I use the tag html which allows me to integrate my video played with Windows Media Player, these videos are stored on an application server Weblogic 8.1. But I faced the following problem: my tag

Struts global-exception and web.xml's error-page

2008-05-15 Thread Zhang, Larry (L.)
Can anyone let me know the differences between (1) and (2): Thanks (1) In struts-config.xml (2) In web.xml Exception /MyError.jsp - To unsubscribe, e-mail: [EMAI

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Milan Milanovic
Yes, I'm talking about the same action class, but different action methods for both jsp's. -- Milan - Original Message From: Al Sutton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, May 15, 2008 4:44:52 PM Subject: Re: [Struts 2] Pass value between two action classes

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Al Sutton
One class with different action methods is fine, One class with a single execute method that's recalled is bad. I think Milan is saying the former, if he is saying the latter then it's not good due to the extra instructions needed to determine where you're going from and where you're going to.

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Milan Milanovic
Why not ? Different methods are calling different result jsp-s ? -- Milan - Original Message From: Ravichandra C <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, May 15, 2008 3:52:12 PM Subject: RE: [Struts 2] Pass value between two action classes as I see... no!

RE: [Struts 2] Pass value between two action classes

2008-05-15 Thread Ravichandra C
as I see... no! -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 7:20 PM To: Struts Users Mailing List Subject: Re: [Struts 2] Pass value between two action classes Is a better approach to use one action class with multiple jsp pages ? -- Th

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Milan Milanovic
Is a better approach to use one action class with multiple jsp pages ? -- Thx, Milan - Original Message From: Ravichandra C <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, May 15, 2008 3:44:10 PM Subject: RE: [Struts 2] Pass value between two action classes Here we ar

RE: [Struts 2] Pass value between two action classes

2008-05-15 Thread Ravichandra C
Here we are implementing one action class with multiple methods providing multiple pages. More like a wizard like functionality however I would suggest to break things into multiple actions to the extent possible. The main disadvantage we our approach was with the validation layer... all had on

Re: [Struts 2] Pass value between two action classes

2008-05-15 Thread Milan Milanovic
O.K. Thaks. But what is general good practice for big forms, two different forms and actions for one object like this, or maybe tabbedPanel or something third ? What is easier to implement and more efficient ? -- Thx in advance, Milan Milanovic - Original Message From: ravi_eze <[EMAIL

Re: Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Frans Thamura
On Thu, May 15, 2008 at 7:44 PM, Rafael Antunes <[EMAIL PROTECTED]> wrote: > You need json-lib-*.*.jar and json-taglib*.*.jar, the tag lib "transform" > the java object in json objects. > we use the JSON Plugins, i still dont know how to make the result output as JSON using json-lib i am know v

Re: Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Rafael Antunes
You need json-lib-*.*.jar and json-taglib*.*.jar, the tag lib "transform" the java object in json objects. 2008/5/15 Frans Thamura <[EMAIL PROTECTED]>: > On Thu, May 15, 2008 at 6:40 PM, Dhandapani Ponnurangam < > [EMAIL PROTECTED]> wrote: > > > Hi > > > > I am trying to integrate ExtJs into Stru

Re: Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Frans Thamura
On Thu, May 15, 2008 at 6:40 PM, Dhandapani Ponnurangam < [EMAIL PROTECTED]> wrote: > Hi > > I am trying to integrate ExtJs into Struts2 framework. > Couldnt see my .html files rendering with ExtJs stuff... > > Can somebody throw light on this? > How can i do about this? > we are working with it,

Struts2 Vs ExtJs - support and coexistence?

2008-05-15 Thread Dhandapani Ponnurangam
Hi I am trying to integrate ExtJs into Struts2 framework. Couldnt see my .html files rendering with ExtJs stuff... Can somebody throw light on this? How can i do about this? Thanks, Dhandapani

Struts 2 - Velocity Templates rendered twice

2008-05-15 Thread Canny Duck
Hi, I realized a Struts 2 process to create a new contract. As template results I tried JSP and Velocity. All JSP templates are rendered correct, but the velocity templates are rendered twice. So I see the same content twice on the page. Are there people with similar problems? Does somebody has

Re: Struts2 with Turbine

2008-05-15 Thread JKrishna
Thanks Laurie. It failed with Tomcat 6, but worked in Tomcat 5.5 without any issues. we were able to navigate between struts2 and turbine pages, access the session information. we are now trying to use struts2 to update the turbine velocity templates. Krishna Laurie Harper wrote: > > JKrishna