Author Login
Post Reply
user Digest 5 Feb 2008 13:19:30 -0000 Issue 7847
Topics (messages 182229 through 182258):
[S2] ParametersInterceptor: Error setting expression
182229 by: hezjing
182230 by: Jeromy Evans
182234 by: hezjing
182235 by: Jeromy Evans
182237 by: hezjing
182238 by: Jeromy Evans
182239 by: hezjing
182241 by: Nuwan Chandrasoma
182246 by: Jeromy Evans
Example that includes both struts1.1 and struts2
182231 by: nagendrabvvs
How to add prinr option ?
182232 by: Kavita Mehta
182233 by: bhaarat Sharma
182236 by: Kavita Mehta
182252 by: Oliver Thoms
Dynamic (variable) Form
182240 by: strutting
[s2] alternative path for the validation xml?
182242 by: GF
Struts 2.0.11 + DWR 2.0 + ajax validation
182243 by: Filipe David Manana
Editing an entity in Struts2
182244 by: GF
Best Tool to develop html pages
182245 by: mohammed hussain
182251 by: Manos Batsis
Struts 2 and Weblogic 9.2 -
java.net.ConnectException 182247 by: Vigneswar Nagarathinam
[OT] Re: Best Tool to develop html pages
182248 by: Dave Newton
182249 by: Lukasz Lenart
182250 by: Al Sutton
182253 by: Dave Newton
182254 by: Leon Rosenberg
182255 by: Marcello Savino
182256 by: Antonio Petrelli
182257 by: Antonio Petrelli
Custom OGNL PropertyAccessor
182258 by: Tommy Becker
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_182229.ezm (zipped)
Attachment:
user_182230.ezm (zipped)A param called "button.login" means the ParametersInterceptor has to
call getButton().setLogin(val).
If you don't have a getButton() method, or getButton() returns null, an
exception like this occurs while trying to set the parameter.
hezjing wrote:
> Hi
>
> I'm trying to create a login interceptor.
>
> When a login form is submitted, I got the following exception:
>
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'button.login' on 'class
>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> 'button.login' with value
> '[Ljava.lang.String;@(protected)'
>
>
> What does this exception means?
>
>
>
>

Attachment:
user_182234.ezm (zipped)The "button.login" is a key in i18n properties file, and it is suppose
to retrieve the label for a button.
I suspect this problem could be the interceptor statck I configured,
<interceptor-ref name="servlet-config" />
<interceptor-ref name="params" />
<interceptor-ref name="login" /> // my interceptor
<interceptor-ref name="prepare" />
<interceptor-ref name="chain" />
<interceptor-ref name="model-driven" />
<interceptor-ref name="fileUpload" />
<interceptor-ref name="static-params" />
<interceptor-ref name="params" />
<interceptor-ref name="conversionError" />
<interceptor-ref name="validation" />
<interceptor-ref name="workflow" />
Is it OK if my login interceptor is configured after the params interceptor?
On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>
> A param called "button.login" means the ParametersInterceptor has to
> call getButton().setLogin(val).
>
> If you don't have a getButton() method, or getButton() returns null, an
> exception like this occurs while trying to set the parameter.
>
> hezjing wrote:
> > Hi
> >
> > I'm trying to create a login interceptor.
> >
> > When a login form is submitted, I got the following exception:
> >
> >
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> > caught setting 'button.login' on 'class
> >
com.opensymphony.xwork2.ActionSupport: Error setting expression
> > 'button.login' with value
> > '[Ljava.lang.String;@(protected)'
> >
> >
> > What does this exception means?
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Hez

Attachment:
user_182235.ezm (zipped)It depends what your interceptor is trying to do...
At the moment, I still think params is trying to call
getButton().setLogin(val) on your ACTION (prior to execution of your
login interceptor).
I presume your interceptor is going to check the params or session and
redirect if not authenticated, which is fine, but with your stack the
params interceptor will attempt to write to the ACTION first.
I still suspect your JSP/html includes a field with NAME "button.login"
and params is throwing the exception due to getButton(). You can test
my theory by giving the field a different name (eg. key="button.login"
name="login") that won't cause an error.
hezjing wrote:
> The "button.login" is a key in i18n properties file, and it is suppose
> to retrieve the label for a button.
>
> I suspect this problem could be the interceptor statck I configured,
>
> <interceptor-ref name="servlet-config" />
> <interceptor-ref name="params" />
> <interceptor-ref name="login" /> // my interceptor
> <interceptor-ref name="prepare" />
> <interceptor-ref name="chain" />
> <interceptor-ref name="model-driven" />
> <interceptor-ref name="fileUpload" />
> <interceptor-ref name="static-params" />
> <interceptor-ref name="params" />
> <interceptor-ref name="conversionError" />
> <interceptor-ref name="validation" />
> <interceptor-ref name="workflow" />
>
>
> Is it OK if my login interceptor is configured after the params interceptor?
>
>
> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>
>> A param called "button.login" means the ParametersInterceptor has to
>> call getButton().setLogin(val).
>>
>> If you don't have a getButton() method, or getButton() returns null, an
>> exception like this occurs while trying to set the parameter.
>>
>> hezjing wrote:
>>
>>> Hi
>>>
>>> I'm trying to create a login interceptor.
>>>
>>> When a login form is submitted, I got the following exception:
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'button.login' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'button.login' with value
>>> '[Ljava.lang.String;@(protected)'
>>>
>>>
>>> What does this exception means?
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>

Attachment:
user_182237.ezm (zipped)Hmmm ... my login.jsp now looks like this,
<s:form action="index" method="post" validate="true">
<s:textfield name="username" key="user.username" />
<s:password name="password" key="user.password" />
<s:submit name="login" key="button.login" />
</s:form>
When the login button is pressed, the following exceptions are shown
in the console,
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'login' on 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'login' with value '[Ljava.lang.String;@(protected)'
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'password' on 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'password' with value '[Ljava.lang.String;@(protected)'
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'username' on 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'username' with value '[Ljava.lang.String;@(protected)'
On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
> It depends what your interceptor is trying to do...
> At the moment, I still think params is trying to call
> getButton().setLogin(val) on your ACTION (prior to execution of your
> login interceptor).
> I presume your interceptor is going to check the params or session and
> redirect if not authenticated, which is fine, but with your stack the
> params interceptor will attempt to write to the ACTION first.
>
> I still suspect your JSP/html includes a field with NAME "button.login"
> and params is throwing the exception due to getButton(). You can test
> my theory by giving the field a different name (eg. key="button.login"
> name="login") that won't cause an error.
>
> hezjing wrote:
> > The "button.login" is a key in i18n properties file, and it is suppose
> > to retrieve the label for a button.
> >
> > I suspect this problem could be the interceptor statck I configured,
> >
> > <interceptor-ref name="servlet-config" />
> > <interceptor-ref name="params" />
> > <interceptor-ref name="login" /> // my interceptor
> > <interceptor-ref name="prepare" />
> > <interceptor-ref name="chain" />
> > <interceptor-ref name="model-driven" />
> > <interceptor-ref name="fileUpload" />
> > <interceptor-ref name="static-params" />
> > <interceptor-ref name="params" />
> > <interceptor-ref name="conversionError" />
> > <interceptor-ref name="validation" />
> > <interceptor-ref name="workflow" />
> >
> >
> > Is it OK if my login interceptor is configured after the params interceptor?
> >
> >
> > On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
> >
> >> A param called "button.login" means the ParametersInterceptor has to
> >> call getButton().setLogin(val).
> >>
> >> If you don't have a getButton() method, or getButton() returns null, an
> >> exception like this occurs while trying to set the parameter.
> >>
> >> hezjing wrote:
> >>
> >>> Hi
> >>>
> >>> I'm trying to create a login interceptor.
> >>>
> >>> When a login form is submitted, I got the following exception:
> >>>
> >>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> >>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> >>> caught setting 'button.login' on 'class
> >>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> >>> 'button.login' with value
> >>> '[Ljava.lang.String;@(protected)'
> >>>
> >>>
> >>> What does this exception means?
> >>>
> >>>
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Hez

Attachment:
user_182238.ezm (zipped)That looks fine. Do you have an action called index in the default
namespace? It's calling ActionSupport which is the default/fallback
action under some circumstances.
You may need to go back to the default interceptor stack to isolate
what's wrong. Or post the package from struts.xml here.
PS. [Ljava.lang.String;@(protected).
hezjing wrote:
> Hmmm ... my login.jsp now looks like this,
>
> <s:form action="index" method="post" validate="true">
> <s:textfield name="username" key="user.username" />
> <s:password name="password" key="user.password" />
> <s:submit name="login" key="button.login" />
> </s:form>
>
>
> When the login button is pressed, the following exceptions are shown
> in the console,
>
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'login' on 'class
>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> 'login' with value '[Ljava.lang.String;@(protected)'
>
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'password' on 'class
>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> 'password' with value '[Ljava.lang.String;@(protected)'
>
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'username' on 'class
>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> 'username' with value '[Ljava.lang.String;@(protected)'
>
>
>
>
> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>
>> It depends what your interceptor is trying to do...
>> At the moment, I still think params is trying to call
>> getButton().setLogin(val) on your ACTION (prior to execution of your
>> login interceptor).
>> I presume your interceptor is going to check the params or session and
>> redirect if not authenticated, which is fine, but with your stack the
>> params interceptor will attempt to write to the ACTION first.
>>
>> I still suspect your JSP/html includes a field with NAME "button.login"
>> and params is throwing the exception due to getButton(). You can test
>> my theory by giving the field a different name (eg. key="button.login"
>> name="login") that won't cause an error.
>>
>> hezjing wrote:
>>
>>> The "button.login" is a key in i18n properties file, and it is suppose
>>> to retrieve the label for a button.
>>>
>>> I suspect this problem could be the interceptor statck I configured,
>>>
>>> <interceptor-ref name="servlet-config" />
>>> <interceptor-ref name="params" />
>>> <interceptor-ref name="login" /> // my interceptor
>>> <interceptor-ref name="prepare" />
>>> <interceptor-ref name="chain" />
>>> <interceptor-ref name="model-driven" />
>>> <interceptor-ref name="fileUpload" />
>>> <interceptor-ref name="static-params" />
>>> <interceptor-ref name="params" />
>>> <interceptor-ref name="conversionError" />
>>> <interceptor-ref name="validation" />
>>> <interceptor-ref name="workflow" />
>>>
>>>
>>> Is it OK if my login interceptor is configured after the params interceptor?
>>>
>>>
>>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>>>
>>>
>>>> A param called "button.login" means the ParametersInterceptor has to
>>>> call getButton().setLogin(val).
>>>>
>>>> If you don't have a getButton() method, or getButton() returns null, an
>>>> exception like this occurs while trying to set the parameter.
>>>>
>>>> hezjing wrote:
>>>>
>>>>
>>>>> Hi
>>>>>
>>>>> I'm trying to create a login interceptor.
>>>>>
>>>>> When a login form is submitted, I got the following exception:
>>>>>
>>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>>>> caught setting 'button.login' on 'class
>>>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>>>> 'button.login' with value
>>>>> '[Ljava.lang.String;@(protected)'
>>>>>
>>>>>
>>>>> What does this exception means?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>

Attachment:
user_182239.ezm (zipped)Actually, I'm following the tutorial described at
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
May I know which file that is showing the Struts2 default interceptor stack?
Thanks for your help!
On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
> That looks fine. Do you have an action called index in the default
> namespace? It's calling ActionSupport which is the default/fallback
> action under some circumstances.
>
> You may need to go back to the default interceptor stack to isolate
> what's wrong. Or post the package from struts.xml here.
>
> PS. [Ljava.lang.String;@(protected).
>
>
> hezjing wrote:
> > Hmmm ... my login.jsp now looks like this,
> >
> > <s:form action="index" method="post" validate="true">
> > <s:textfield name="username" key="user.username" />
> > <s:password name="password" key="user.password" />
> > <s:submit name="login" key="button.login" />
> > </s:form>
> >
> >
> > When the login button is pressed, the following exceptions are shown
> > in the console,
> >
> >
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> > caught setting 'login' on 'class
> >
com.opensymphony.xwork2.ActionSupport: Error setting expression
> > 'login' with value '[Ljava.lang.String;@(protected)'
> >
> >
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> > caught setting 'password' on 'class
> >
com.opensymphony.xwork2.ActionSupport: Error setting expression
> > 'password' with value '[Ljava.lang.String;@(protected)'
> >
> >
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> > caught setting 'username' on 'class
> >
com.opensymphony.xwork2.ActionSupport: Error setting expression
> > 'username' with value '[Ljava.lang.String;@(protected)'
> >
> >
> >
> >
> > On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
> >
> >> It depends what your interceptor is trying to do...
> >> At the moment, I still think params is trying to call
> >> getButton().setLogin(val) on your ACTION (prior to execution of your
> >> login interceptor).
> >> I presume your interceptor is going to check the params or session and
> >> redirect if not authenticated, which is fine, but with your stack the
> >> params interceptor will attempt to write to the ACTION first.
> >>
> >> I still suspect your JSP/html includes a field with NAME "button.login"
> >> and params is throwing the exception due to getButton(). You can test
> >> my theory by giving the field a different name (eg. key="button.login"
> >> name="login") that won't cause an error.
> >>
> >> hezjing wrote:
> >>
> >>> The "button.login" is a key in i18n properties file, and it is suppose
> >>> to retrieve the label for a button.
> >>>
> >>> I suspect this problem could be the interceptor statck I configured,
> >>>
> >>> <interceptor-ref name="servlet-config" />
> >>> <interceptor-ref name="params" />
> >>> <interceptor-ref name="login" /> // my interceptor
> >>> <interceptor-ref name="prepare" />
> >>> <interceptor-ref name="chain" />
> >>> <interceptor-ref name="model-driven" />
> >>> <interceptor-ref name="fileUpload" />
> >>> <interceptor-ref name="static-params" />
> >>> <interceptor-ref name="params" />
> >>> <interceptor-ref name="conversionError" />
> >>> <interceptor-ref name="validation" />
> >>> <interceptor-ref name="workflow" />
> >>>
> >>>
> >>> Is it OK if my login interceptor is configured after the params interceptor?
> >>>
> >>>
> >>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
> >>>
> >>>
> >>>> A param called "button.login" means the ParametersInterceptor has to
> >>>> call getButton().setLogin(val).
> >>>>
> >>>> If you don't have a getButton() method, or getButton() returns null, an
> >>>> exception like this occurs while trying to set the parameter.
> >>>>
> >>>> hezjing wrote:
> >>>>
> >>>>
> >>>>> Hi
> >>>>>
> >>>>> I'm trying to create a login interceptor.
> >>>>>
> >>>>> When a login form is submitted, I got the following exception:
> >>>>>
> >>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> >>>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> >>>>> caught setting 'button.login' on 'class
> >>>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
> >>>>> 'button.login' with value
> >>>>> '[Ljava.lang.String;@(protected)'
> >>>>>
> >>>>>
> >>>>> What does this exception means?
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >>>> For additional commands, e-mail: user-help@(protected)
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Hez

Attachment:
user_182241.ezm (zipped)Hi,
struts-default.xml
Thanks,
Nuwan
hezjing wrote:
> Actually, I'm following the tutorial described at
> http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
>
> May I know which file that is showing the Struts2 default interceptor stack?
>
> Thanks for your help!
>
>
> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>
>> That looks fine. Do you have an action called index in the default
>> namespace? It's calling ActionSupport which is the default/fallback
>> action under some circumstances.
>>
>> You may need to go back to the default interceptor stack to isolate
>> what's wrong. Or post the package from struts.xml here.
>>
>> PS. [Ljava.lang.String;@(protected).
>>
>>
>> hezjing wrote:
>>
>>> Hmmm ... my login.jsp now looks like this,
>>>
>>> <s:form action="index" method="post" validate="true">
>>> <s:textfield name="username" key="user.username" />
>>> <s:password name="password" key="user.password" />
>>> <s:submit name="login" key="button.login" />
>>> </s:form>
>>>
>>>
>>> When the login button is pressed, the following exceptions are shown
>>> in the console,
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'login' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'login' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'password' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'password' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'username' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'username' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
>>>
>>>
>>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>>>
>>>
>>>> It depends what your interceptor is trying to do...
>>>> At the moment, I still think params is trying to call
>>>> getButton().setLogin(val) on your ACTION (prior to execution of your
>>>> login interceptor).
>>>> I presume your interceptor is going to check the params or session and
>>>> redirect if not authenticated, which is fine, but with your stack the
>>>> params interceptor will attempt to write to the ACTION first.
>>>>
>>>> I still suspect your JSP/html includes a field with NAME "button.login"
>>>> and params is throwing the exception due to getButton(). You can test
>>>> my theory by giving the field a different name (eg. key="button.login"
>>>> name="login") that won't cause an error.
>>>>
>>>> hezjing wrote:
>>>>
>>>>
>>>>> The "button.login" is a key in i18n properties file, and it is suppose
>>>>> to retrieve the label for a button.
>>>>>
>>>>> I suspect this problem could be the interceptor statck I configured,
>>>>>
>>>>> <interceptor-ref name="servlet-config" />
>>>>> <interceptor-ref name="params" />
>>>>> <interceptor-ref name="login" /> // my interceptor
>>>>> <interceptor-ref name="prepare" />
>>>>> <interceptor-ref name="chain" />
>>>>> <interceptor-ref name="model-driven" />
>>>>> <interceptor-ref name="fileUpload" />
>>>>> <interceptor-ref name="static-params" />
>>>>> <interceptor-ref name="params" />
>>>>> <interceptor-ref name="conversionError" />
>>>>> <interceptor-ref name="validation" />
>>>>> <interceptor-ref name="workflow" />
>>>>>
>>>>>
>>>>> Is it OK if my login interceptor is configured after the params interceptor?
>>>>>
>>>>>
>>>>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>>>>>
>>>>>
>>>>>
>>>>>> A param called "button.login" means the ParametersInterceptor has to
>>>>>> call getButton().setLogin(val).
>>>>>>
>>>>>> If you don't have a getButton() method, or getButton() returns null, an
>>>>>> exception like this occurs while trying to set the parameter.
>>>>>>
>>>>>> hezjing wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I'm trying to create a login interceptor.
>>>>>>>
>>>>>>> When a login form is submitted, I got the following exception:
>>>>>>>
>>>>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>>>>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>>>>>> caught setting 'button.login' on 'class
>>>>>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>>>>>> 'button.login' with value
>>>>>>> '[Ljava.lang.String;@(protected)'
>>>>>>>
>>>>>>>
>>>>>>> What does this exception means?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>

Attachment:
user_182246.ezm (zipped)The referenced tutorial looks fine.
I'd remove the interceptor first and ensure everything works without
it. (confirm that you can post to the index action)
Then add the login and see if that causes the exception.
I'd probably insert the login interceptor before the param interceptor
myself as this particular example doesn't need to write to the action on
a failure.
struts-default.xml is available on this page:
http://struts.apache.org/2.x/docs/interceptors.html
hezjing wrote:
> Actually, I'm following the tutorial described at
> http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
>
> May I know which file that is showing the Struts2 default interceptor stack?
>
> Thanks for your help!
>
>
> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>
>> That looks fine. Do you have an action called index in the default
>> namespace? It's calling ActionSupport which is the default/fallback
>> action under some circumstances.
>>
>> You may need to go back to the default interceptor stack to isolate
>> what's wrong. Or post the package from struts.xml here.
>>
>> PS. [Ljava.lang.String;@(protected).
>>
>>
>> hezjing wrote:
>>
>>> Hmmm ... my login.jsp now looks like this,
>>>
>>> <s:form action="index" method="post" validate="true">
>>> <s:textfield name="username" key="user.username" />
>>> <s:password name="password" key="user.password" />
>>> <s:submit name="login" key="button.login" />
>>> </s:form>
>>>
>>>
>>> When the login button is pressed, the following exceptions are shown
>>> in the console,
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'login' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'login' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'password' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'password' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>> caught setting 'username' on 'class
>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>> 'username' with value '[Ljava.lang.String;@(protected)'
>>>
>>>
>>>
>>>
>>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>>>
>>>
>>>> It depends what your interceptor is trying to do...
>>>> At the moment, I still think params is trying to call
>>>> getButton().setLogin(val) on your ACTION (prior to execution of your
>>>> login interceptor).
>>>> I presume your interceptor is going to check the params or session and
>>>> redirect if not authenticated, which is fine, but with your stack the
>>>> params interceptor will attempt to write to the ACTION first.
>>>>
>>>> I still suspect your JSP/html includes a field with NAME "button.login"
>>>> and params is throwing the exception due to getButton(). You can test
>>>> my theory by giving the field a different name (eg. key="button.login"
>>>> name="login") that won't cause an error.
>>>>
>>>> hezjing wrote:
>>>>
>>>>
>>>>> The "button.login" is a key in i18n properties file, and it is suppose
>>>>> to retrieve the label for a button.
>>>>>
>>>>> I suspect this problem could be the interceptor statck I configured,
>>>>>
>>>>> <interceptor-ref name="servlet-config" />
>>>>> <interceptor-ref name="params" />
>>>>> <interceptor-ref name="login" /> // my interceptor
>>>>> <interceptor-ref name="prepare" />
>>>>> <interceptor-ref name="chain" />
>>>>> <interceptor-ref name="model-driven" />
>>>>> <interceptor-ref name="fileUpload" />
>>>>> <interceptor-ref name="static-params" />
>>>>> <interceptor-ref name="params" />
>>>>> <interceptor-ref name="conversionError" />
>>>>> <interceptor-ref name="validation" />
>>>>> <interceptor-ref name="workflow" />
>>>>>
>>>>>
>>>>> Is it OK if my login interceptor is configured after the params interceptor?
>>>>>
>>>>>
>>>>> On 2/5/08, Jeromy Evans <jeromy.evans@(protected):
>>>>>
>>>>>
>>>>>
>>>>>> A param called "button.login" means the ParametersInterceptor has to
>>>>>> call getButton().setLogin(val).
>>>>>>
>>>>>> If you don't have a getButton() method, or getButton() returns null, an
>>>>>> exception like this occurs while trying to set the parameter.
>>>>>>
>>>>>> hezjing wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I'm trying to create a login interceptor.
>>>>>>>
>>>>>>> When a login form is submitted, I got the following exception:
>>>>>>>
>>>>>>>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>>>>>>> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
>>>>>>> caught setting 'button.login' on 'class
>>>>>>>
com.opensymphony.xwork2.ActionSupport: Error setting expression
>>>>>>> 'button.login' with value
>>>>>>> '[Ljava.lang.String;@(protected)'
>>>>>>>
>>>>>>>
>>>>>>> What does this exception means?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>

Attachment:
user_182231.ezm (zipped)
Hi all,
Could i ask...? Any one please provide me any available website link where i
can get example-application develped with both struts1 and struts2 side by
side.
(As i required to migrate our existing project(with struts1.1) to struts2.).
I have read few of the migration tutorials, in that they have mentined that
we can use both struts1 and struts2 side by side in the same application.
But, i couldn't get completly how to do that.
It would be more helpful if i am provided sample application.
Thanks a lot in advance,
nagendrabvvs@(protected)
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_182232.ezm (zipped)Hi ,
I have a web page implemented using Struts and I want to add a Printer
button to it so that user can take print out of the same. Is there any
option supported by struts to do this ?
Thanks in advance ,
Kavita
*****************************************************DISCLAIMER*****************************************************
This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
please notify the sender immediately and delete the message.
********************************************************************************************************************

Attachment:
user_182233.ezm (zipped)CSS and JS are best for this
On Feb 5, 2008 12:21 AM, Kavita Mehta <Kavita.Mehta@(protected):
> Hi ,
> I have a web page implemented using Struts and I want to add a Printer
> button to it so that user can take print out of the same. Is there any
> option supported by struts to do this ?
>
>
> Thanks in advance ,
> Kavita
>
>
>
>
> *****************************************************DISCLAIMER*****************************************************
>
> This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
> Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
> addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
> print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
> please notify the sender immediately and delete the message.
>
> ********************************************************************************************************************
>
>

Attachment:
user_182236.ezm (zipped)how do u implement using js ..can u send me any link having more info ..
"bhaarat Sharma" <bhaarat.s@(protected)>
02/05/2008 11:02 AM
Please respond to
"Struts Users Mailing List" <user@(protected)>
To
"Struts Users Mailing List" <user@(protected)>
cc
Subject
Re: How to add prinr option ?
CSS and JS are best for this
On Feb 5, 2008 12:21 AM, Kavita Mehta <Kavita.Mehta@(protected):
> Hi ,
> I have a web page implemented using Struts and I want to add a Printer
> button to it so that user can take print out of the same. Is there any
> option supported by struts to do this ?
>
>
> Thanks in advance ,
> Kavita
>
>
>
>
>
*****************************************************DISCLAIMER*****************************************************
>
> This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers.
> Contents may be privileged or otherwise protected by law. The
information is solely intended for the entity it is
> addressed to. If you are not the intended recipient of this message, it
is strictly prohibited to read, forward,
> print, retain, copy or disseminate this message or any part of it. If
you have received this e-mail in error,
> please notify the sender immediately and delete the message.
>
>
********************************************************************************************************************
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
*****************************************************DISCLAIMER*****************************************************
This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
please notify the sender immediately and delete the message.
********************************************************************************************************************

Attachment:
user_182252.ezm (zipped)
Since printing would be platform depending there seems
to be no universal answer.
If you are programming for IE clients I would suggest
use window.print
or window.document.execCommand('Print', , );
Encapsule it in an own Javascript function (for how
just google "javascrpt print" or refer to a JS board)
perhaps with an id as param (so you can print just
specific named parts of your page)
And call your function in the onclick of a nice
button...
--- Kavita Mehta <Kavita.Mehta@(protected):
> how do u implement using js ..can u send me any link
> having more info ..
>
>
>
>
> "bhaarat Sharma" <bhaarat.s@(protected)>
> 02/05/2008 11:02 AM
> Please respond to
> "Struts Users Mailing List" <user@(protected)>
>
>
> To
> "Struts Users Mailing List" <user@(protected)>
> cc
>
> Subject
> Re: How to add prinr option ?
>
>
>
>
>
>
> CSS and JS are best for this
>
> On Feb 5, 2008 12:21 AM, Kavita Mehta
> <Kavita.Mehta@(protected):
> > Hi ,
> > I have a web page implemented using Struts and I
> want to add a Printer
> > button to it so that user can take print out of
> the same. Is there any
> > option supported by struts to do this ?
> >
> >
> > Thanks in advance ,
> > Kavita
> >
> >
> >
> >
> >
>
*****************************************************DISCLAIMER*****************************************************
> >
> > This message and/or attachment(s) contained here
> are confidential,
> proprietary to HUGHES SYSTIQUE and its customers.
> > Contents may be privileged or otherwise protected
> by law. The
> information is solely intended for the entity it is
> > addressed to. If you are not the intended
> recipient of this message, it
> is strictly prohibited to read, forward,
> > print, retain, copy or disseminate this message or
> any part of it. If
> you have received this e-mail in error,
> > please notify the sender immediately and delete
> the message.
> >
> >
>
********************************************************************************************************************
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)
>
>
>
>
>
>
>
*****************************************************DISCLAIMER*****************************************************
>
> This message and/or attachment(s) contained here are
> confidential, proprietary to HUGHES SYSTIQUE and its
> customers.
> Contents may be privileged or otherwise protected by
> law. The information is solely intended for the
> entity it is
> addressed to. If you are not the intended recipient
> of this message, it is strictly prohibited to read,
> forward,
> print, retain, copy or disseminate this message or
> any part of it. If you have received this e-mail in
> error,
> please notify the sender immediately and delete the
> message.
>
>
********************************************************************************************************************
>
>
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set

Attachment:
user_182240.ezm (zipped)
Hi All,
I have a problem when creating the action of a form: this form is generated
dynamically using ajax and javascript depending on how the user fill in the
form. In this form there are checkboxes, comboboxes and textfields (a
variable number). And I don't know how to pick the values of each element of
the form.
Here is some code of the form:
<%@(protected)" %>
<html>
<head>
<title>ARS - Is Available Form</title>
<s:head theme = "ajax"/>
<link href="<s:url value="/css/mainstyle.css"/>" rel="stylesheet"
type="text/css"/>
<link rel="STYLESHEET" type="text/css"
href="rich_calendar/rich_calendar.css">
<script language="JavaScript" type="text/javascript"
src="rich_calendar/rich_calendar.js"></script>
<script language="JavaScript" type="text/javascript"
src="rich_calendar/rc_lang_en.js"></script>
<script language="javascript" type="text/javascript">
// on click -> disable/enable the jobID textfield
function insertJobID()
{
if (document.formreservation.jid.disabled == true)
{
document.formreservation.jid.disabled = false
}
else
{
document.formreservation.jid.disabled = true
}
}
// onkeyup -> create a DIV for each service
function addDivsServices(event)
{
divservices = document.createElement('div');
divservices.id = 'divservices';
divservices.style.border = "solid #00bfff 3px";
divservices.style.padding = "5px";
(document.getElementById('formreservation')).appendChild(divservices);
for(i = 0; i < numS; i++)
{
//THE DIV OF THE SERVICE -> name: 'divservice' + i
divservice = document.createElement('div');
divservice.id = 'divservice' + i;
divservice.style.border = "solid #00cd00 3px";
divservice.style.padding = "5px";
divservice.appendChild(document.createElement('br'));
//SERVICE ID
txt = document.createTextNode('Service ID: ');
serviceid = document.createElement('input');
serviceid.name = 'serviceid' + i;
divservice.appendChild(txt);
divservice.appendChild(serviceid);
//SPACE
space = document.createTextNode("\u00a0");
divservice.appendChild(space);
//COMBOBOX TYPE OF RESERVATION
txt = document.createTextNode('Type of Reservation: ');
cbx = document.createElement('select');
cbx.name = 'tor' + i;
opt = document.createElement('option');
opt.value = '1';
opt.text = '1';
cbx.appendChild(opt);
opt = document.createElement('option');
opt.value = '2';
opt.text = '2';
cbx.appendChild(opt);
opt = document.createElement('option');
opt.value = '3';
opt.text = '3';
cbx.appendChild(opt);
cbx.onchange = addReservationConstraints;
divservice.appendChild(txt);
divservice.appendChild(cbx);
//NEW LINE
divservice.appendChild(document.createElement('br'));
divservice.appendChild(document.createElement('br'));
[...]
}
}
[...]
</script>
</head>
<body>
<h1> Is Available </h1>
<br>
<s:form name = "formreservation" id = "formreservation" action =
"isAvailable" method = "POST">
<s:checkbox label = "Is a PRE reservation? " name = "ispre" value =
"false" onclick = "insertJobID()"/><br>
<s:textfield name = "jid" label = "Job ID" disabled = "true"/><br>
<s:textfield name = "numservices" label = "Number of services" onkeyup =
"addDivsServices(event)"/><br>
<s:submit value = "Submit" align = "center"/>
</s:form>
</body>
</html>
Can somebody help me?
Than you!!!
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_182242.ezm (zipped)Is there anything alternative (apart annotation) to place validation
xml for the action method in the same package of the action classes?
I don't like to place .xml in the same directory of the .java
Any idea (apart annotation)
thanks.

Attachment:
user_182243.ezm (zipped)Hi,
Has anyone been able to put dwr 2.0 working with struts 2.0.11 ajax validation?
--
Filipe David Manana,
fdmanana@(protected)
Obvious facts are like secrets to those not trained to see them.

Attachment:
user_182244.ezm (zipped)I want to edit an entity, i.e. a Message
i would set the .jsp field this way
<s:textfield name="message.title" />
on the MessageAction i would have a "edit" method that takes the
messageID and then call the business service to load the Message
object, so in the .jsp the file the textfield are loaded with the
current value.
when I submit the form, Struts2 will try to call
getMessage.setTitle("...") and so on, and it try to instatiate a new
Message object.
My idea is to create the object (loading it from hibernate calls on
the business service) in the prepare method, in this way when struts
will call getMessage.setTitle, it will set the new values on the
object loaded from the DB.
My worry is that this idea rely on the fact that the prepare
interceptor is called before the parameters interceptor.
What you think?
any better idea?
thank you.

Attachment:
user_182245.ezm (zipped)Hi anybody knowing the best tools to develop to html page,pls let me know
thanx

Attachment:
user_182251.ezm (zipped)mohammed hussain wrote:
> Hi anybody knowing the best tools to develop to html page,pls let me know
There is no such thing. Do you need WYSIWYG? Are you looking for JSP
etc. awareness? Do you feel comfortable editing markup by hand? What are
your target DTDs?
Manos

Attachment:
user_182247.ezm (zipped)
Attachment:
user_182248.ezm (zipped)--- mohammed hussain <muzaffar.struts@(protected):
> Hi anybody knowing the best tools to develop to html page,pls let me know
Emacs, hands down.
Dave

Attachment:
user_182249.ezm (zipped)Maybe not the best, but very good -> MyEclipse
Regards
--
Lukasz

Attachment:
user_182250.ezm (zipped)My vote is for vi
Al.
----- Original Message -----
From: "Dave Newton" <newton.dave@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Tuesday, February 05, 2008 11:58 AM
Subject: [OT] Re: Best Tool to develop html pages
> --- mohammed hussain <muzaffar.struts@(protected):
>> Hi anybody knowing the best tools to develop to html page,pls let me know
>
> Emacs, hands down.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_182253.ezm (zipped)--- Al Sutton <al.sutton@(protected):
> My vote is for vi
I don't even know you, man.
d.
>
> Al.
>
> ----- Original Message -----
> From: "Dave Newton" <newton.dave@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Tuesday, February 05, 2008 11:58 AM
> Subject: [OT] Re: Best Tool to develop html pages
>
>
> > --- mohammed hussain <muzaffar.struts@(protected):
> >> Hi anybody knowing the best tools to develop to html page,pls let me
> know
> >
> > Emacs, hands down.
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_182254.ezm (zipped)The best tool to develop a html page is clearly a web designer paired
with a html producer.
Leon.
On Feb 5, 2008 1:39 PM, Dave Newton <newton.dave@(protected):
> --- Al Sutton <al.sutton@(protected):
> > My vote is for vi
>
> I don't even know you, man.
>
> d.
>
>
> >
> > Al.
> >
> > ----- Original Message -----
> > From: "Dave Newton" <newton.dave@(protected)>
> > To: "Struts Users Mailing List" <user@(protected)>
> > Sent: Tuesday, February 05, 2008 11:58 AM
> > Subject: [OT] Re: Best Tool to develop html pages
> >
> >
> > > --- mohammed hussain <muzaffar.struts@(protected):
> > >> Hi anybody knowing the best tools to develop to html page,pls let me
> > know
> > >
> > > Emacs, hands down.
> > >
> > > Dave
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_182255.ezm (zipped)Ah ah yes vi is probably the "best" ....
But if you need some more sophisticated like a WYSIWYG supporting more
than one DTD you can try AMAYA (www.W3C.org).
> -----Original Message-----
> From: Al Sutton [mailto:al.sutton@(protected)]
> Sent: Tuesday, February 05, 2008 1:25 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Re: Best Tool to develop html pages
>
> My vote is for vi
>
> Al.
>
> ----- Original Message -----
> From: "Dave Newton" <newton.dave@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Tuesday, February 05, 2008 11:58 AM
> Subject: [OT] Re: Best Tool to develop html pages
>
>
> > --- mohammed hussain <muzaffar.struts@(protected):
> >> Hi anybody knowing the best tools to develop to html
> page,pls let me know
> >
> > Emacs, hands down.
> >
> > Dave
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_182256.ezm (zipped)2008/2/5, Al Sutton <al.sutton@(protected)>:
> My vote is for vi
http://xkcd.com/378/
Antonio

Attachment:
user_182257.ezm (zipped)2008/2/5, mohammed hussain <muzaffar.struts@(protected)>:
> Hi anybody knowing the best tools to develop to html page,pls let me know
> thanx
Now seriously, Mohammed, your question is too generic.
Do you need a WYSIWYG editor? Do you need to use it in your
application (i.e. using a Javascript editor)?
Antonio

Attachment:
user_182258.ezm (zipped)I have a question about using OGNL PropertyAccessors. We have an object on the
value stack that we expose to JSP pages that does not have standard JavaBeans
getter/setter methods. From what I can tell, this leaves us 2 options. We can
either call the getter methods explicitly via OGNL method calls in the pages, or
we can wrap the object in a JavaBean-like object. The second option is
unworkable in all but the simplest of cases when you realize that the method
calls can themselves return another object that needs to be wrapped, or even a
collection of them. So we've been using method calls in the pages (yeah I know).
Reading through the OGNL docs, it seems that what we need is a PropertyAccessor
that knows how to operate on our object. So we implemented one, and attempted
to register it by placing this in our struts.xml:
<bean type="ognl.PropertyAccessor" name="class.we.need.access.to"
class="our.property.accessor.PropertyAccessor"/>
Unfortunately it doesn't work. Can someone tell me what we're doing wrong, or
even if what we're trying to do is possible? Thanks!
<http://www.motricity.com>
NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of Motricity. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.