Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2009-12-04 Thread VipKumar
Hi All, I got the issue resolved using the Model partialEvent true

Re: Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread Dan Vargas
It told me it wasn't sent to the mailing list, I wasn't aware. My apologies. On Fri, Dec 4, 2009 at 3:30 PM, Brian Thompson wrote: > Why the triple-post? > > On Fri, Dec 4, 2009 at 2:07 PM, davargas123 wrote: > > > > > When I change the standard HTML tags of my .jsp page into the Struts > tags,

Re: Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread Brian Thompson
Why the triple-post? On Fri, Dec 4, 2009 at 2:07 PM, davargas123 wrote: > > When I change the standard HTML tags of my .jsp page into the Struts tags, > the page loads up completely blank, aside from what is loaded by the > tiles-def. What could be causing this? I'm thinking that's why my page >

Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread davargas123
When I change the standard HTML tags of my .jsp page into the Struts tags, the page loads up completely blank, aside from what is loaded by the tiles-def. What could be causing this? I'm thinking that's why my page doesn't submit data to the actionform, but I don't see why it wouldn't be rendering

Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread davargas123
When I change the standard HTML tags of my .jsp page into the Struts tags, the page loads up completely blank, aside from what is loaded by the tiles-def. What could be causing this? I'm thinking that's why my page doesn't submit data to the actionform, but I don't see why it wouldn't be rendering

Re: Re: Help with S:Select

2009-12-04 Thread aruna . hcu
the below code works to make the select option required. If nothing is selected displays the provided message. In validation.xml !(user.department).equals("1") Please select a department. -- This message was sent on behalf of aruna

RE: checkbox : unchecked elements not in list

2009-12-04 Thread Colin NG
The use "accounts" in s:iterator is wrong. It probably works if you can create something like "new int [7]". > Date: Fri, 4 Dec 2009 12:50:36 -0600 > Subject: Re: checkbox : unchecked elements not in list > From: elephant...@gmail.com > To: user@struts.apache.org > > Unchecked checkboxes in ht

RE: checkbox : unchecked elements not in list

2009-12-04 Thread Neil Aggarwal
> Ideally I would want the accountStatus list to contains a > list of "true" or > "false" strings, however accountStatus list only seems to > contains only the > checked > elements... It looks like you are processing the submitted params yourself. If that is the case, the browser only gives yo

Re: checkbox : unchecked elements not in list

2009-12-04 Thread Brian Thompson
Unchecked checkboxes in html forms don't submit a value. If you want true vs. false submitted back to the Java action, you'll need to use radio buttons. -Brian On Fri, Dec 4, 2009 at 12:31 PM, akoo wrote: > > I have following form > > > > > > > . > > > > > > > In my action class I ha

checkbox : unchecked elements not in list

2009-12-04 Thread akoo
I have following form . In my action class I have following public UpdateAccount account { List accountStatus;//list to hold all the checkbox values List accounts; //list to hold all the accounts values // getter setters public String execute()

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Frans Thamura
i am succesfully also using DOJO, but never succes using JavaME and Swing may be u can share with us we use swing with http client instead JSONRPC On Sat, Dec 5, 2009 at 1:02 AM, Prasenjit Bhadra wrote: > Hi guys, > > Thanks.This works fine now. I passed the single object instead of an > el

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
Hi guys, Thanks.This works fine now. I passed the single object instead of an element of the list. Have to Wrap the params as a List (i.e; "Params": ["obj1","obj2" ,.]) This would help us to extend JSON framework with almost any platform as long as we have a serializing - de-serializing comp

Re: Absolute URL from s:a tag

2009-12-04 Thread Chris Pratt
forceAddSchemeHostAndPort="true" (*Chris*) On Fri, Dec 4, 2009 at 9:54 AM, wkbutler wrote: > > I know this is kind of a silly question. Does anyone know if there is a way > to get the Struts2 'a' tag to emit an absolute URL? Silly or not, I can't > think of any reason for it not to support th

Absolute URL from s:a tag

2009-12-04 Thread wkbutler
I know this is kind of a silly question. Does anyone know if there is a way to get the Struts2 'a' tag to emit an absolute URL? Silly or not, I can't think of any reason for it not to support that, and maybe it's there already. Thanks - -- View this message in context: http://old.nabble.com/

Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread davargas123
When I change the standard HTML tags of my .jsp page into the Struts tags, the page loads up completely blank, aside from what is loaded by the tiles-def. What could be causing this? I'm thinking that's why my page doesn't submit data to the actionform, but I don't see why it wouldn't be rendering

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Frans Thamura
i am glad if we can have a .war with JSON, like show case make it independent example, we can extend with another tech, such as swing, jquery, or may be php F

Re: Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Musachy Barroso
see my previous reply. On Thu, Dec 3, 2009 at 4:10 PM, Prasenjit Bhadra wrote: > I have developed a native client interface which calls struts2 JSON RPC > using post method. I have set content type, content length as suggested in > the spec. The request body looks like as follows : {"method": > "

Re: Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread Mark Shifman
Come on, at least tell us the strut version. I happen to be using struts 1.3.10 and if you look in /META-INF/tld/struts-html.tld of the struts-taglib-1.3.10 jar you will find http://struts.apache.org/tags-html so i use <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%> mas dav

Re: S2 Type conversion error and validation problem

2009-12-04 Thread Marsman
Wes Wannemacher wrote: > > > I would start here - > > http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling > > Thn*ks for this link. But I've read it before and I'm not should understanding clearly how to proceed: "...To keep conversion errors f

Struts HTML taglib vs. Standard HTML tags

2009-12-04 Thread davargas123
When I change the standard HTML tags of my .jsp page into the Struts tags, the page loads up completely blank, aside from what is loaded by the tiles-def. What could be causing this? I'm thinking that's why my page doesn't submit data to the actionform, but I don't see why it wouldn't be rendering

Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
> I have developed a native client interface which calls struts2 JSON RPC > using post method. I have set content type, content length as suggested in > the spec. The request body looks like as follows : {"method": > "uploadTxpAssignment","id": "txpUploadRequest", > "params":{"addressByDestAddrId":

Re: RequiredFieldValidator and error message from property file via key

2009-12-04 Thread Greg Lindholm
You may have a different problem then you think; The @RequiredFieldValidator does not make any sense on a int (primitive) field as an int cannot be null. The validation interceptor checks the values on the fields after params interceptor sets the fields. The RequiredFieldValidator checks if the fi

Re: Check out our CMS please

2009-12-04 Thread Saeed Iqbal
:) On Friday, December 4, 2009, Brian Thompson wrote: > Well, sure you could -- you just said you have $500! > > Buying food?  Paying rent?  Nah, these trivialities are much less important > than sending money to strangers on the Internet :P > > -Brian > > > > On Fri, Dec 4, 2009 at 6:39 AM, Saee

Re: Check out our CMS please

2009-12-04 Thread Brian Thompson
Well, sure you could -- you just said you have $500! Buying food? Paying rent? Nah, these trivialities are much less important than sending money to strangers on the Internet :P -Brian On Fri, Dec 4, 2009 at 6:39 AM, Saeed Iqbal wrote: > I did this work and my fellow mates to contribute to

Problem with Struts2 JSON RPC using simple HTTP Post

2009-12-04 Thread Prasenjit Bhadra
I have developed a native client interface which calls struts2 JSON RPC using post method. I have set content type, content length as suggested in the spec. The request body looks like as follows : {"method": "uploadTxpAssignment","id": "txpUploadRequest", "params":{"addressByDestAddrId":{"addrLine

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Haroon Rafique
On Today at 11:58am, JC=>James Cook wrote: JC> EJB's can only be injected into other EJB's or Servlets, a struts 2 JC> action is essentially a pojo not a servlet. So you would either have to JC> do a lookup in the context, or if you are using Spring look at using a JC> jndi lookup and inject that

Re: Check out our CMS please

2009-12-04 Thread Saeed Iqbal
I did this work and my fellow mates to contribute to Open Source world. I am poor less than $500 in bank. I cannot offer you any money :( On Fri, Dec 4, 2009 at 5:27 PM, Martin Gainty wrote: > > how much money will you provide for this enormous task? > > Martin Gainty > _

RE: Check out our CMS please

2009-12-04 Thread Martin Gainty
how much money will you provide for this enormous task? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoef

Re: S2 Type conversion error and validation problem

2009-12-04 Thread Marsman
Wes Wannemacher wrote: > > > I would start here - > > http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling > > Thanks for this link. But I've read it before and I'm not should understanding clearly how to proceed: "...To keep conversion errors f

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread James Cook
EJB's can only be injected into other EJB's or Servlets, a struts 2 action is essentially a pojo not a servlet. So you would either have to do a lookup in the context, or if you are using Spring look at using a jndi lookup and inject that reference into your class. Cookie -Original Message---

[Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Fernandes Celinio
Hi, I know that it is not possible to inject EJB in Struts 2 actions. The following annotation would not work : @EJB MyBeanLocal mybean; But how come ? Since a Struts action is a servlet and injection works in a servlet, injection should work. Thanks for enlightening me.

[REST] PackageLocator find nothing if in a EAR

2009-12-04 Thread David Canos
Hi folks are anyone using Struts2 + Rest plugin in a EAR environment? We are confused, It works in a independent project but after you put it in a EAR project, the packagelocator doesnt find any Controller action. any idea? thank u Struts 2.1.8.1 Glassfish 2.1 -- David Canós www.david-canos.n

Re: What may cause ognl.InappropriateExpressionException warning ?

2009-12-04 Thread bjornw
Hi, I have the very same problem. But I don't want to exclude these params from the request. I fetch them "manually" in my action class, not using OGNL, and this works perfectly. But I don't want my log cluttered with OGNL warning. Is there a way of supressing only the OGNL warnings and not all wa

RequiredFieldValidator and error message from property file via key

2009-12-04 Thread Per Johansson
Hi, I'm trying to get error messages from a resource bundle. This is the code for my action class: @RequiredFieldValidator(type=ValidatorType.FIELD, key="myFieldErrorMsg", message="Error") public void setMyField(int myField) { this.myField = myField; } @Override public void validate() {

Re: Check out our CMS please

2009-12-04 Thread Saeed Iqbal
http://code.google.com/p/ic-cms/ It has i8nl built in so you can easily convert to Japanese. On Fri, Dec 4, 2009 at 1:53 PM, Nguyen Xuan Son wrote: > couldnt find your project > im in japan now, using both of japanese google code and us google code > > 2009/12/4 Frans Thamura > > > cool > > >

Re: Check out our CMS please

2009-12-04 Thread Nguyen Xuan Son
couldnt find your project im in japan now, using both of japanese google code and us google code 2009/12/4 Frans Thamura > cool > > will work on it :0 > > F > > > On Fri, Dec 4, 2009 at 3:07 PM, Saeed Iqbal wrote: > > > Hi Folks, > > > > Would it be OK if I ask you guys to kindly test the Conte

Re: Check out our CMS please

2009-12-04 Thread Frans Thamura
cool will work on it :0 F On Fri, Dec 4, 2009 at 3:07 PM, Saeed Iqbal wrote: > Hi Folks, > > Would it be OK if I ask you guys to kindly test the Content Management > System > > that I and my fellow mates have written in Struts-Spring-Hibernate please. > It > > is an Open Source Software. Just

Check out our CMS please

2009-12-04 Thread Saeed Iqbal
Hi Folks, Would it be OK if I ask you guys to kindly test the Content Management System that I and my fellow mates have written in Struts-Spring-Hibernate please. It is an Open Source Software. Just search for ic-cms on Google Code. Thanks, -saeed