Re: Running Struts 2.0.11 on Weblogic 8.1 SP5

2008-01-01 Thread Venkat Sadasivam

You can resolve this issue by following steps given in
http://susa.wikidot.com/struts2



LesleyT wrote:
> 
> Example NPE exception stack trace that I get when navigating to the URL:
> 
> 
> 
> java.lang.NullPointerException
>   at
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50)
>   at jsp_servlet._web_45_inf._jsp.__home._jspService(__home.java:226)
>   at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
>   at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
>   at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
>   at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
>   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>   at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>   at
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
>   at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>   at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)
>   at
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139)
>   at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
>   at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>   at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
>   at
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>   at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>   at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)
>   at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>   at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>   at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>   at
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
>   at
> com.opensymphony.xwork2.DefaultActionInvocation$2.

Re: Requested resource not found

2008-01-01 Thread AbelMacAdam

Actually, there is. I powered up Tomcat independently from Eclipse, and than
pointed my browser to the address. That worked. And that is probably what I
did last Friday.

I seem not to be able to look eye to eye with Eclipse (must be my
configuration). So now I try to add log4j logging to my app to debug it. I
think this is sad, as I now need to learn yet another library to be able to
learn Struts :-[. 


newton.dave wrote:
> 
> --- AbelMacAdam <[EMAIL PROTECTED]> wrote:
>> That means (IMHO) that my app could be accessed using the following URL:
>> http://localhost:8080/app15a/createCustomer.do. But looking at the error
>> I
>> can only conclude it could not. So what I'm now wondering is whether my
>> configuration is as it should be. I even seem to remember that the
>> example
>> worked last friday. Does anyone know what is wrong? 
> 
> Is there anything different in your configuration or setup since last
> Friday?
> Without more information it'll be hard to diagnose. Is there anything in
> the
> logs? Is your application deployed (it sounds like it isn't, but it's hard
> to
> say)?
> 
> d.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Requested-resource-not-found-tp14555866p14574683.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



saveToken() help!!!!!

2008-01-01 Thread Partha Maitra
Hi All,
Happy new year,
I am new to struts and have got a problem,
I want to handle the duplicate form submission using saveToken(), 
isTokenValid() method, but unable to findout any concrete example,
can you please provide me a concrete example so that I can have a better 
understanding on that..
Waiting for your responses

==
Thanks & Regards,
Partha

__

Re: difference between Action.perform() and Action.execute()

2008-01-01 Thread Ray

sai reddy wrote:

Hi friends.

What's the difference between Action.perform() and Action.execute()

methods??

I'm talking about org.apache.struts.action.Action class.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


As far as I know. perform() is used in sturts older version, it was 
replaced by execute() in new version.

However they are all belonged to sturts version 1.x.
May this can help u.

--
Ray Chen
Email:[EMAIL PROTECTED]
Blog: http://clraychen.blogcn.com
http://www.blogjava.net/clraychen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



difference between Action.perform() and Action.execute()

2008-01-01 Thread sai reddy

Hi friends.

What's the difference between Action.perform() and Action.execute()

methods??

I'm talking about org.apache.struts.action.Action class.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



difference between Action.perform() and Action.execute()

2008-01-01 Thread sai reddy

Hi friends.
What's the difference between Action.perform() and Action.execute() 
methods??

I'm talking about org.apache.struts.action.Action class.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HNY

2008-01-01 Thread Dharmendra Singh
Thanks all,

YesVery-2 Happy New Year.2008

Regards
Dharmendra


On 1/1/08, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
>
> Happy new year everyone.. ,
>
> Thanks Al, for including ppl like me ;)
>
> Regards,
>
> Nuwan
>
> Al Sutton wrote:
> > No, it's the nice part he fails on :).
> >
> > Only kidding (love ya really dave).
> >
> > Happy new early Friday... I mean new years to everyone (dumb and nasty
> > people included).
> >
> > Al.
> >
> > -Original Message-
> > From: Martin Gainty [mailto:[EMAIL PROTECTED]
> > Sent: 31 December 2007 18:05
> > To: Struts Users Mailing List
> > Subject: RE: HNY
> >
> >
> > smart means you're included..Martin
> > __Disclaimer and
> confidentiality
> > noteEverything in this e-mail and any attachments relates to the
> official
> > business of Sender. This transmission is of a confidential nature and
> Sender
> > does not endorse distribution to any party other than intended
> recipient.
> > Sender does not necessarily endorse content contained within this
> > transmission.> Date: Mon, 31 Dec 2007 09:55:33 -0800> From:
> > [EMAIL PROTECTED]> Subject: Re: HNY> To: user@struts.apache.org> >
> ---
> > Roberto Nunnari <[EMAIL PROTECTED]> wrote:> > Happy new Year to
> all
> > the smart and nice struts people!> > Now I feel left out.> > d.> > >
> > ->
> To
> > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional
> > commands, e-mail: [EMAIL PROTECTED]>
> > _
> > Don't get caught with egg on your face. Play Chicktionary!
> > http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Running Struts 2.0.11 on Weblogic 8.1 SP5

2008-01-01 Thread LesleyT

Example NPE exception stack trace that I get when navigating to the URL:



java.lang.NullPointerException
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50)
at jsp_servlet._web_45_inf._jsp.__home._jspService(__home.java:226)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)
at
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139)
at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.U

Running Struts 2.0.11 on Weblogic 8.1 SP5

2008-01-01 Thread LesleyT

Hi all,

Am trying to run our application built using:
Struts 2.0.11, Spring 2.0, Hibernate 3.2 on WL 8.1 sp5.

I've read that some people have successfully run a struts2 app on weblogic
and would like to know how you got it up and running.

I retrotranslated the JARs below:
xwork-j4-2.0.4.jar
struts2-core-j4-2.0.11.jar
struts2-spring-plugin-j4-2.0.11.jar
ognl-j4-2.6.11.jar
freemarker-2.3.8.jar

Are there any other JARs you need to J4 for WL 8.1 ?

But for some reason I don't get consistent errors coming from the
application.

I've had a couple of issues which don't happen consistently on my weblogic
deployed war files:
* spring's contextloaderlistener not loading any beans
* parse exceptions when the xmlconfigurationprovider parses the
struts-default.xml
* null pointer exceptions when our app uses struts tags

Does anyone hav any advice on how they got their app working on weblogic 8.1
?

Thanks,
Lesley
-- 
View this message in context: 
http://www.nabble.com/Running-Struts-2.0.11-on-Weblogic-8.1-SP5-tp14573006p14573006.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] How to retained pre selected values in Struts form select

2008-01-01 Thread carmi_cd

i have preselected values in my form select..my problem is when i try to add
to its selected values
by clicking other entries.. it looses the preselected values. how could i
solve this?

here is the code..

 

thanks in advance..,
-- 
View this message in context: 
http://www.nabble.com/-S2--How-to-retained-pre-selected-values-in-Struts-form-select-tp14572905p14572905.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



unexpected behavior with a checkbox.

2008-01-01 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks,

I have a form that the values for each field is populated as a result of
a database query.  One of the fields on the form is rendered as a
checkbox and the corresponding table column is a boolean.

When I pull in a "true" value from the database the reset() method of my
form sets the checkbox accordingly.

When the page is rendered the checkbox is set the way I expect.  So far,
so good.

Where the trouble comes in is if the field is unchecked which I thought
would set the value of the Boolean to "false."  It doesn't, it remains
as a true.

How do I implement behavior where if the checkbox is unchecked it sets
the corresponding property of the form to false?

- 

Peter L. Berghold   Unix Professional
[EMAIL PROTECTED] AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHeuK3UM9/01RIhaARAkOwAJ9uNnENpwIVb9XAl8bR26xKvfEgXwCfSKXM
Dwcd0MqGUCQ2O09XMgP+TMk=
=Qbl6
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: form submission doesn't work with ajax theme

2008-01-01 Thread Jeromy Evans

Jeancarlo wrote:

Hello,

I'm using struts version 2.0.11 and dwr. The field validation and form
submission and everything work fine (I'm using the tag  without
any parameters). It did work until I wanted to use the autocomplete struts
tag. To use that I need to add theme="ajax" in the s:head tag, right?
However, when I did so, everything stopped to work: validation, form
submission. When I click in the submission button, it seems to work, because
I can see through the console that it goes to the server but the page
doesn't change. Am I missing something about how to configure the actions to
work with ajax/dwr?

Thank you in advance,
Jeancarlo.
Happy new year!

  

Hi Jeancarlo,
When you had just  all your tags were using the default theme 
(usually xhtml) and were working.
When you changed it to , all your tags started 
using the ajax theme and stopped working.


It sounds like you require all your existing tags to use xhtml, and only 
the autocompleter tag to use the ajax theme.


Two options:
 - use , then modify all existing tags to use the 
xhtml theme (theme="xhtml"); or
 - use  but add the javascript directly to your page to enable 
the autocompleter (see the html output when theme="html").  Set the 
autocompleter to use theme="ajax" only.



It should be possible to get all tags to work with theme="ajax" but 
you'll have to check what changed in the rendered html.


Hope that helps,
Jeromy Evans


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: regex validation problem

2008-01-01 Thread Laurie Harper

supa charoenchit wrote:

Hello, I am having a problem validating a password field.
 
My requirement on my password is that it must be:
8 characters minimum length and contain at least one from each of the following groups: [a-z], [A-Z], and [0-9]. 
 
Here is what I have so far (which is not working):
 
[...]
 
^[a-z]+$
[a-z] 
 
 
^[A-Z]+$
[A-Z] 
 
 
^[0-9]+$
[0-9] 
 
 
When I attempt to submit my form with correct data, it does not submit and states that I need a-z, A-Z, and 0-9.  What is going on here?


Well, those regexs say a valid password must start and end with one or 
more lowercase letters, must also start and end with one or more 
uppercase letters and must also start and end with one or more digits. 
That's obviously not possible.


If you remove the '^' and '$' characters from the expressions, you'll 
just be testing that the characters appear somewhere within the 
password, which I think is what you meant.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: some question about adding parameter when redirecting in struts.

2008-01-01 Thread Paul Benedict
Use ActionRedirect class. Grab the forward from mapping.findForward, wrap,
and add parameters.

Paul

On Jan 1, 2008 3:51 AM, Tony Lin <[EMAIL PROTECTED]> wrote:

> hi all,
>Happy new year!
>I have got a question about how to set parameter to the url when using
> redirect in struts.
>For example, i am going to update a persion's profile. And I am using
> PersonUpdateAction to do this. When I finish doing the update operation I
> would redirect to the page which show the profile, the view mode not edit
> mode. Here is the sequence.
>
> view  profile  --->  personview.do?name=tony  (go to edit mode)>
> > personedit.do?name=tony  ---(update the profile and return to view
> > mode)--->  personview.do?name=tony
> >
>
>   Now the problem comes up. In PersonUpdateAction I finish the update
> operation, and go to redirect to personview.do. But the URL in the Browser
> is personedit.do, not personview.do?name=tony. I want to and the parameter
> like "?name=tony" to the url.
>
>  > scope="request">
> >  > path="/personview.do" />
> > 
> >
>
>
>   Do you know what I am talking about?
>
>  regards tony lin
>


WW2.1.7 to S2: Most S2 tags fails to retrieve values

2008-01-01 Thread wwwclaes

Hi, I'm porting an old WW 2.1.7 application to S2. This is a bit confusing,
but I'm on my way and have managed to get it up and running with limited
functionality. One of my major problems right now is that most S2 tags do no
longer get their values.

The rendering of s:textfield contains the name of the value attribute
instead of its underlying value, eg mailAddress instead of [EMAIL PROTECTED]

The rendering of s:select is always empty, instead of filled with options as
it is supposed to be (and was in WW 2.1.7).

Some S2 tags DO retrieve their values, eg an explicit  with
s:property in an s:iterator loop is correctly filled with its options.

For some additional clues; the application uses Velocity so I added
"struts.ui.templateSuffix=vm" to struts.properties. If I remove that, the
GUI gets somewhat messy but s:select suddenly get their values (doesn't help
for s:textfield though).

I'm lost in Struts territory. Anyone that can help me out?

Thanks,
Claes
-- 
View this message in context: 
http://www.nabble.com/WW2.1.7-to-S2%3A-Most-S2-tags-fails-to-retrieve-values-tp14567668p14567668.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: wrong request parameters sent

2008-01-01 Thread Martin Gainty

are you pre-setting the value or fieldValue attributes for s:checkbox
please display code in your jspMartin 
__Disclaimer and confidentiality 
noteEverything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.> Date: Mon, 31 Dec 2007 21:48:12 -0800> From: [EMAIL PROTECTED]> 
To: user@struts.apache.org> Subject: Re: wrong request parameters sent> > > hi 
any help?> > > > ravi_eze wrote:> > > > hi,> > > > i have 3 
checkboxes(c1,c2,c3) enclosed in a form (theme: ajax;> > validate=true). I am 
trying to get the validation done by ajax and when i> > un-check all boxes or 
check some of the boxes i see that always c3 is> > being set in request 
parameter.> > > > when i tried to debug i found the following statement in> > 
validationClient.js which could be a cause of this behavior:> > > > var vc = 
this;> > var form = input.form;> > var params = new Object();> > for (var i = 
0; i < form.elements.length; i++) {> > var e = form.elements[i];> > if (e.name 
!= null && e.name != '') {> > params[e.name] = e.value;> > }> > }> > > > which 
is always putting the 3rd checkbox in the request parameter even> > though its 
not checked. If i remove all ajax related attributes (i.e.> >  > are happening 
fine. > > > > any ideas where i am going wrong/ is any body else is also 
getting the> > same behavior?> > > > > > -- > View this message in context: 
http://www.nabble.com/wrong-request-parameters-sent-tp14555088p14564745.html> 
Sent from the Struts - User mailing list archive at Nabble.com.> > > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]> 
_
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec

some question about adding parameter when redirecting in struts.

2008-01-01 Thread Tony Lin
hi all,
Happy new year!
I have got a question about how to set parameter to the url when using
redirect in struts.
For example, i am going to update a persion's profile. And I am using
PersonUpdateAction to do this. When I finish doing the update operation I
would redirect to the page which show the profile, the view mode not edit
mode. Here is the sequence.

view  profile  --->  personview.do?name=tony  (go to edit mode)>
> personedit.do?name=tony  ---(update the profile and return to view
> mode)--->  personview.do?name=tony
>

   Now the problem comes up. In PersonUpdateAction I finish the update
operation, and go to redirect to personview.do. But the URL in the Browser
is personedit.do, not personview.do?name=tony. I want to and the parameter
like "?name=tony" to the url.

 scope="request">
>  path="/personview.do" />
> 
>


   Do you know what I am talking about?

 regards tony lin