Re: img tag?

2007-09-24 Thread Boon Leng
Yes, you need to use pure HTML. You can use jsp tag file to create something similar to html:img (this is what i did). Adam Hardy-3 wrote: Is there a struts2 non-OGNL equivalent to the old html:img taglib? Or do I have to use c:url with pure HTML? c:url var=folder_shut

Re: Add style such as bgcolor, height, width to s:optiontransferselect, s:form Tags

2007-09-24 Thread Boon Leng
You can set the attribute cssClass, cssStyle, doubleCssClass, doubleCssStyle which is equivalent to html class and style attributes to control the style. Example: style .mystyle { background-color: #00F; } /style s:form cssStyle=border: 1px solid #F00 cssClass=mystyle Emi Lu-2 wrote:

[S2] Excluding path with namespace in Sitemesh

2007-09-20 Thread Boon Leng
I tried to exclude some pages from sitemesh decorator, but it seem that sitemesh not able to recognise action path which has namespace. I have no problem with pages stored in the folder or pages without namespace. Any idea how to use namespace inside sitemesh decorator? Thanks. The following is

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
doubleListValue=name/ SampleAction-coversion.properties --- Element_user.roles=sample.model.Role KeyProperty_user.roles=id CreateIfNull_user.roles=true Regards, Boon Leng -- View this message in context: http://www.nabble.com/-S2--Type-Coversion-in-nested-bean.-tf4347142.html

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
Hi, I'm trying to use type conversion for nested bean. I have no problem populating the bean if the List is not nested inside another bean. Does struts 2 able to perform type conversion for nested bean? Any help would be appreciated. Thanks. JSP ---

Reload combo option if validation fail.

2007-08-20 Thread Boon Leng
In my form, I have a select box which get the option value populated from database. But when validation fail and return to input page (jsp page), I get the error where the option value cannot be found. I know this is because the method (e.g search) is not called to retrieve data from database.

Re: Reload combo option if validation fail.

2007-08-20 Thread Boon Leng
Hi, I have tried using Preparable and putting all the collections loading in prepare(), but because my action contains multiple methods and each load different kind of collections, end up every method call will retrieve all the collections even though it's not using it. Is there anyway I able

Re: Reload combo option if validation fail.

2007-08-20 Thread Boon Leng
Hi Zarar, I managed to solve the problem by using PreResultListener and find the action info in ActionProxy. Now I can load the collections base on method and result type :) Thanks for your help. Regards, Boon Leng Zarar Siddiqi wrote: You could implement Preparable and load countryOptions

Re: Migrate Struts 1 EventDispatchAction to Struts 2

2007-07-14 Thread Boon Leng
? or I need to handle the event dispatch inside the action class? Thanks. Regards, Boon Leng nuwan chandrasoma-2 wrote: Hi, you can have a action mapping like this. action name=sample_{*} method={1} ... and in your action class have 2 method according to you example public String

Migrate Struts 1 EventDispatchAction to Struts 2

2007-07-13 Thread Boon Leng
=cancel path=/welcome.do redirect=true/ /action How do I convert it to Struts 2 mapping? Any help would be appreciated. Thanks. Regards, Boon Leng -- View this message in context: http://www.nabble.com/Migrate-Struts-1-EventDispatchAction-to-Struts-2-tf4074633.html#a11580060 Sent from

Re: Migrate Struts 1 EventDispatchAction to Struts 2

2007-07-13 Thread Boon Leng
(); } else { return showForm(); } } or slip the mapping into 2 actions: action name=sample_add1 method=showForm ... ... action name=sample_add2 method=insert ... Regards, Boon Leng Laurie Harper wrote: What do you specifically need help with? Struts2