Re: [ANN] VTD-XML extended edition released

2008-10-21 Thread Paweł Wielgus
Hi Mead,
yes there are,
just looking at the sun offer, T5440 Server -> 512G.

Best greetings,
Paweł Wielgus.

2008/10/22 Mead Lai <[EMAIL PROTECTED]>:
> supports 256 GB max file sizes??
> Any system memory requirement? Wanne PC memory larger than 256G?
> There is no pc support so max memory now.
>
> On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <[EMAIL PROTECTED]> wrote:
>
>> The Java version of extended VTD-XmL is released and available for
>> download.
>> This version supports 256 GB max file sizes and memory mapped capabilities.
>> The updated documentation is also available for download. In short, you can
>> basically do full XPath query on documents that are bigger than memory
>> space
>> available on your machine.
>>
>> A special thanks to Duane May who provided value suggestions and inputs and
>> helped refine the VTD specs to make this happen.
>>
>> To download the package and the documentation, go to
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
>>
>>
>> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> BestRegards,
> Mead
> http://yayisoft.com
>
> Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
> religious cult."
>

i


Re: [ANN] VTD-XML extended edition released

2008-10-21 Thread Mead Lai
supports 256 GB max file sizes??
Any system memory requirement? Wanne PC memory larger than 256G?
There is no pc support so max memory now.

On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <[EMAIL PROTECTED]> wrote:

> The Java version of extended VTD-XmL is released and available for
> download.
> This version supports 256 GB max file sizes and memory mapped capabilities.
> The updated documentation is also available for download. In short, you can
> basically do full XPath query on documents that are bigger than memory
> space
> available on your machine.
>
> A special thanks to Duane May who provided value suggestions and inputs and
> helped refine the VTD specs to make this happen.
>
> To download the package and the documentation, go to
>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261
>
>
> https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
BestRegards,
Mead
http://yayisoft.com

Rita Rudner  - "I wonder if other dogs think poodles are members of a weird
religious cult."


Re: xwork injecting parameters into requestScope

2008-10-21 Thread dusty

Can you describe what you are doing in the Action and on the page a little
bit more?

It seems like you are trying to resolve if the portfolio is new or not. 
Where in your action do you load up the portfolio object?  Are you familar
with the Preparable interface for your actions?

What does your form look like?  Are you editing the portfolio or an object
that is related to the portfolio?


Adam Hardy (debian) wrote:
> 
> I have an Action and corresponding JSP form with the property "portfolio".
> 
> In my JSP, I have this JSTL tag test:
> 
>  stuff 
> 
> which works fine for my purposes. But then when I submit the form and
> validation 
> fails and myAction.portfolio is not initialized, Struts2 injects the
> portfolio 
> request parameter into the requestAttributes.
> 
> Now my JSP blows up because:
> 
> ${portfolio} = "0"
> 
> and
> 
> ${not empty portfolio} = true
> 
> and then
> 
> ${portfolio.id} > javax.servlet.jsp.JspException: 
> javax.el.PropertyNotFoundException: Property 'id' not found on type 
> java.lang.Character
> 
> 
> What influence can I have over this injection behaviour?
> 
> Or perhaps, can I reformulate my test so that I can tell whether my 
> "${portfolio}" is a string or a bean?
> 
> Thanks!
> Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/xwork-injecting-parameters-into-requestScope-tp20090024p20102956.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]



[ANN] VTD-XML extended edition released

2008-10-21 Thread jimmy Zhang

The Java version of extended VTD-XmL is released and available for download.
This version supports 256 GB max file sizes and memory mapped capabilities.
The updated documentation is also available for download. In short, you can
basically do full XPath query on documents that are bigger than memory space
available on your machine.

A special thanks to Duane May who provided value suggestions and inputs and
helped refine the VTD specs to make this happen.

To download the package and the documentation, go to
https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=vtd-xml_2.4_doc.zip&64621261

https://sourceforge.net/project/downloading.php?group_id=110612&use_mirror=&filename=ximpleware_extended_2.4.zip&99532507 




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



Re: xwork injecting parameters into requestScope

2008-10-21 Thread Adam Hardy

Adam Hardy on 21/10/08 14:12, wrote:

I have an Action and corresponding JSP form with the property "portfolio".

In my JSP, I have this JSTL tag test:

 stuff 

which works fine for my purposes. But then when I submit the form and 
validation fails and myAction.portfolio is not initialized, Struts2 
injects the portfolio request parameter into the requestAttributes.


Now my JSP blows up because:

${portfolio} = "0"

and

${not empty portfolio} = true

and then

${portfolio.id} > javax.servlet.jsp.JspException: 
javax.el.PropertyNotFoundException: Property 'id' not found on type 
java.lang.Character



What influence can I have over this injection behaviour?

Or perhaps, can I reformulate my test so that I can tell whether my 
"${portfolio}" is a string or a bean?


Solved the issue by writing a JSTL function to do the checks.

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



Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663

David,

Yeah I had read the wildcard-mappings.html  link, but it just isn't 
clear to me how this would work:


   1. I'm using annotation-based action definitions (no struts.xml) so 
I'm not explicitly declaring the action name.
   2. When invoking my actions, I'm using the method form of the calls, 
ex. sample!next,  sample!back,  sample!doSomethingand those methods 
determine which result would normally be returned.


My real application is going to need to be much more flexible, and 
cannot be so statically defined as it seems it would need to be to work 
with the wildcard mapping.


All I really want to happen is for the ValidationInterceptor to return 
me to the page that was displayed if there is a validation error (and 
show the field messages) so the user can correct their mistakes.


Is there a way that I can override the definition of the "input" results 
to return a different JSP page each time a method is invoked, or is 
there a way to extend the ValidationInterceptor so that it can 
dynamically figure out what page was submitted?


Thanks,
John


Kawczynski, David wrote:

The action-per-jsp page is just one way to do things.  Another is to use
wildcard actions in your struts.xml page.  Your input pages would all
have to employ the same naming convention, as would the actions called
by each of those pages.  Check out the wildcard-mappings link and you'll
see what I mean.
http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 12:14 PM

To: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Thanks David.

So are you saying that the struts2 validation framework requires one 
Action per JSP page?   If so, it seems like that needs to be included in


the "full disclosure" section of the "validation" confluence page  :-)

If I don't want to go that route (1 Action : 1 JSP),  are there any 
alternatives short of writing my own validation framework?


Thanks,
John


Kawczynski, David wrote:

Either have lots of actions in your struts.xml, or use wildcard

mappings

(http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html)

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:43 AM

To: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation

to

work

Great - that fixed it.

Follow up:  supposed this Action class can serve up 10 different JSP 
pages, all of which need validation.   I would want the "input" result


type to forward to whichever of the 10 JSPs that the user was in when 
the validation error occurred.   So what is the best way to handle

that?

Thanks,
John


Kawczynski, David wrote:

Yes, in the event of server-sided validation failure the framework
returns the user to this "input" page 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:27 AM

To: Kawczynski, David
Cc: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation

to

work

Thanks David for the quick reply.

Is the 'input' result type used by the validation framework?  My
action 

class does not return that.

Thanks,
John


Kawczynski, David wrote:
You need to define a  of type input for your action. 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:02 AM

To: Struts Users Mailing List
Subject: [s2] Problem getting basic server side field validation to

work

I'm trying to do a very basic test app that demonstrates the server

side

field validation and am getting an exception during initial JSP page



rendering.  The page and action work fine without the validation.

Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping

up

with the many posts on the mailing list, but they all seem to be

various

advanced scenarios.

Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering


Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDoDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
Errors 

on action [EMAIL 

Re: Remove [EMAIL PROTECTED]

2008-10-21 Thread Nils-Helge Garli Hegvik
I agree.

On Mon, Oct 13, 2008 at 10:49 AM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Could someone remove this email from list? It's very annoying ;-(
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> 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: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-21 Thread Nils-Helge Garli Hegvik
Thanks for the report. I think i understand the problem. Until it's
fixed, you can just created your non-portlet urls "by hand" (or with
JSTL or equivalent).

Nils-H

2008/10/21 Torsten Krah <[EMAIL PROTECTED]>:
> https://issues.apache.org/struts/browse/WW-2846
>
> --
> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
>
> Really, I'm not out to destroy Microsoft. That will just be a
> completely unintentional side effect."
>-- Linus Torvalds
>

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



RE: NoClassDefFoundError

2008-10-21 Thread Rabin Aryal
Thanks for the quick reply.

I am trying to deploy the application on Tomcat 6.x. I get the error logged
in log file and nothing loads.

Hope anybody else know the problem.


Thanking Sincerely,
 
Rabin Aryal 
 
-Original Message-
From: Torsten Krah [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 12:36 PM
To: Struts Users Mailing List
Subject: Re: NoClassDefFoundError

Am Dienstag, 21. Oktober 2008 18:20:09 schrieb Rabin Aryal:
> Does anybody know what might cause it?

You are undeploying your app - according to your stacktrace.
I am getting this error too, but not reproducable - sometimes it undeploys 
without those exception, sometimes not.
Additionally i am seeing this one more on JBoss than on Pluto (Tomcat 6.x), 
don't know if there is some sort of dependency.

I guess this might be some sort of classloader problem, but thats really a 
guess.


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds



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



RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
The action-per-jsp page is just one way to do things.  Another is to use
wildcard actions in your struts.xml page.  Your input pages would all
have to employ the same naming convention, as would the actions called
by each of those pages.  Check out the wildcard-mappings link and you'll
see what I mean.
http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 12:14 PM
To: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Thanks David.

So are you saying that the struts2 validation framework requires one 
Action per JSP page?   If so, it seems like that needs to be included in

the "full disclosure" section of the "validation" confluence page  :-)

If I don't want to go that route (1 Action : 1 JSP),  are there any 
alternatives short of writing my own validation framework?

Thanks,
John


Kawczynski, David wrote:
> Either have lots of actions in your struts.xml, or use wildcard
mappings
> (http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html)
> 
> -Original Message-
> From: 928572663 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 21, 2008 11:43 AM
> To: Struts Users Mailing List
> Subject: Re: [s2] Problem getting basic server side field validation
to
> work
> 
> Great - that fixed it.
> 
> Follow up:  supposed this Action class can serve up 10 different JSP 
> pages, all of which need validation.   I would want the "input" result

> type to forward to whichever of the 10 JSPs that the user was in when 
> the validation error occurred.   So what is the best way to handle
that?
> 
> Thanks,
> John
> 
> 
> Kawczynski, David wrote:
>> Yes, in the event of server-sided validation failure the framework
>> returns the user to this "input" page 
>>
>> -Original Message-
>> From: 928572663 [mailto:[EMAIL PROTECTED] 
>> Sent: Tuesday, October 21, 2008 11:27 AM
>> To: Kawczynski, David
>> Cc: Struts Users Mailing List
>> Subject: Re: [s2] Problem getting basic server side field validation
> to
>> work
>>
>> Thanks David for the quick reply.
>>
>> Is the 'input' result type used by the validation framework?  My
> action 
>> class does not return that.
>>
>> Thanks,
>> John
>>
>>
>> Kawczynski, David wrote:
>>> You need to define a  of type input for your action. 
>>>
>>> -Original Message-
>>> From: 928572663 [mailto:[EMAIL PROTECTED] 
>>> Sent: Tuesday, October 21, 2008 11:02 AM
>>> To: Struts Users Mailing List
>>> Subject: [s2] Problem getting basic server side field validation to
>> work
>>> I'm trying to do a very basic test app that demonstrates the server
>> side
>>> field validation and am getting an exception during initial JSP page

>>> rendering.  The page and action work fine without the validation.
>>>
>>> Any ideas what I may be missing?
>>>
>>> I've read the confluence pages on validation, and have been keeping
> up
>>> with the many posts on the mailing list, but they all seem to be
>> various
>>> advanced scenarios.
>>>
>>> Here is some info to help:
>>>
>>> * Using struts 2.1.2 basic (no plugins to speak of)
>>> * Using Zero Configuration (annotations) with no struts.xml
>>> * form bean is stored in session
>>> * action function works great w/o validation
>>> * when adding the SampleAction-validation.xml the exception happens 
>>> during initial page rendering
>>>
>>> Here is the stack and last few logs:
>>>
>>>
>>> DEBUG [] [2008/10/21 09:01:12] 
>>> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
>>> Invoking validate() on action [EMAIL PROTECTED]
>>> DEBUG [] [2008/10/21 09:01:12] 
>>> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
>> cannot 
>>> find method [validateDisplayForm] in action
>>> [EMAIL PROTECTED]
>>> DEBUG [] [2008/10/21 09:01:12] 
>>> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
>> cannot 
>>> find method [validateDoDisplayForm] in action
>>> [EMAIL PROTECTED]
>>> DEBUG [] [2008/10/21 09:01:12] 
>>> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
>> Errors 
>>> on action [EMAIL PROTECTED], returning result name 'input'
>>> ERROR [] [2008/10/21 09:01:12] 
>>> [org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
>>> result No result defined for action sample.SampleAction and result
>> input
>>>  at 
>>>
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
>>> ionInvocation.java:357)
>>>  at 
>>>
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
>>> cation.java:259)
>>>  at 
>>>
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
>>> dationInterceptor.java:248)
>>>  at 
>>>
>
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
>>> r.doIntercept(AnnotationValidationInterceptor.java:49)
>>>  at 
>>>
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
>

Re: Struts2 validation with portlet

2008-10-21 Thread Nils-Helge Garli Hegvik
The source for the example portlet app is here:
http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_0_11_2/apps/portlet/

On Tue, Oct 21, 2008 at 5:46 PM, bakann <[EMAIL PROTECTED]> wrote:
>
> Did you find an example ?
> I think it is not working.
>
>
> devsahu wrote:
>>
>> Hi,
>>
>> Does stuts2 support its validation feature with portlet.
>> Any help is highly appreciated.
>>
>> Thanks,
>> Sabyasachi
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Struts2-validation-with-portlet-tp11445797p20093267.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]
>
>

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



Re: NoClassDefFoundError

2008-10-21 Thread Torsten Krah
Am Dienstag, 21. Oktober 2008 18:20:09 schrieb Rabin Aryal:
> Does anybody know what might cause it?

You are undeploying your app - according to your stacktrace.
I am getting this error too, but not reproducable - sometimes it undeploys 
without those exception, sometimes not.
Additionally i am seeing this one more on JBoss than on Pluto (Tomcat 6.x), 
don't know if there is some sort of dependency.

I guess this might be some sort of classloader problem, but thats really a 
guess.


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


FW: using GET urls and parameters

2008-10-21 Thread Nick Maunder | Oathouse
Please excuse my stupidity

I was separating parameters from url with "&" instead of ? duh!! Time for
the pub

Nick

-Original Message-
From: Nick Maunder | Oathouse [mailto:[EMAIL PROTECTED] 
Sent: 21 October 2008 17:18
To: 'Struts Users Mailing List'
Subject: using GET urls and parameters

Hi all

 

My brain is fried

 

Why won't my struts2 accept a GET URL with parameters??

 

What I am doing wrong?

 

http://localhost:8080/ffRelease2/User_verifyEmail.action
 &user=1&otv=2d1afe2118ae59288f3d79fb52abee

 

I want to action User_verifyEmail (class UserAction.java, method
verifyEmail)

I have 2 request parameters, user and otv

I have gets and sets for both user (a "long") and otv (a String)

 

Can't find any example in my book or on the Struts2 website using GET URLs

 

I must be mr thicky today!!

 

Any help gratefully accepted

 

Nick



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



Re: using GET urls and parameters

2008-10-21 Thread Musachy Barroso
The url is broken: <
http://localhost:8080/ffRelease2/User_verifyEmail.action&user=1&otv=2d1afe2
118ae59288f3d79fb52abee
>&user=1&otv=2d1afe2118ae59288f3d79fb52abee

fix to this: 
http://localhost:8080/ffRelease2/User_verifyEmail.action
?blablah&blahblah

musachy

On Tue, Oct 21, 2008 at 12:17 PM, Nick Maunder | Oathouse <[EMAIL PROTECTED]
> wrote:

> Hi all
>
>
>
> My brain is fried
>
>
>
> Why won't my struts2 accept a GET URL with parameters??
>
>
>
> What I am doing wrong?
>
>
>
> http://localhost:8080/ffRelease2/User_verifyEmail.action
> <
> http://localhost:8080/ffRelease2/User_verifyEmail.action&user=1&otv=2d1afe2
> 118ae59288f3d79fb52abee>
> &user=1&otv=2d1afe2118ae59288f3d79fb52abee
>
>
>
> I want to action User_verifyEmail (class UserAction.java, method
> verifyEmail)
>
> I have 2 request parameters, user and otv
>
> I have gets and sets for both user (a "long") and otv (a String)
>
>
>
> Can't find any example in my book or on the Struts2 website using GET URLs
>
>
>
> I must be mr thicky today!!
>
>
>
> Any help gratefully accepted
>
>
>
> Nick
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd


using GET urls and parameters

2008-10-21 Thread Nick Maunder | Oathouse
Hi all

 

My brain is fried

 

Why won't my struts2 accept a GET URL with parameters??

 

What I am doing wrong?

 

http://localhost:8080/ffRelease2/User_verifyEmail.action
 &user=1&otv=2d1afe2118ae59288f3d79fb52abee

 

I want to action User_verifyEmail (class UserAction.java, method
verifyEmail)

I have 2 request parameters, user and otv

I have gets and sets for both user (a "long") and otv (a String)

 

Can't find any example in my book or on the Struts2 website using GET URLs

 

I must be mr thicky today!!

 

Any help gratefully accepted

 

Nick



NoClassDefFoundError

2008-10-21 Thread Rabin Aryal
Hey all,

 

When I deploy my application, I get the error below. 

Environment:

IDE: Netbeans 6.1

Struts: 2.0.11.1

 
java.lang.NoClassDefFoundError:
org/apache/struts2/util/ObjectFactoryDestroyable
at
org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:257)
at
org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java
:221)
at
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterCo
nfig.java:332)
at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:373
1)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3080)
at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
404)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1309)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)

 

Does anybody know what might cause it?

 

 

Thanking Sincerely,

 

Rabin Aryal 



Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663

Thanks David.

So are you saying that the struts2 validation framework requires one 
Action per JSP page?   If so, it seems like that needs to be included in 
the "full disclosure" section of the "validation" confluence page  :-)


If I don't want to go that route (1 Action : 1 JSP),  are there any 
alternatives short of writing my own validation framework?


Thanks,
John


Kawczynski, David wrote:

Either have lots of actions in your struts.xml, or use wildcard mappings
(http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html)

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:43 AM

To: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Great - that fixed it.

Follow up:  supposed this Action class can serve up 10 different JSP 
pages, all of which need validation.   I would want the "input" result 
type to forward to whichever of the 10 JSPs that the user was in when 
the validation error occurred.   So what is the best way to handle that?


Thanks,
John


Kawczynski, David wrote:

Yes, in the event of server-sided validation failure the framework
returns the user to this "input" page 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:27 AM

To: Kawczynski, David
Cc: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation

to

work

Thanks David for the quick reply.

Is the 'input' result type used by the validation framework?  My
action 

class does not return that.

Thanks,
John


Kawczynski, David wrote:
You need to define a  of type input for your action. 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:02 AM

To: Struts Users Mailing List
Subject: [s2] Problem getting basic server side field validation to

work

I'm trying to do a very basic test app that demonstrates the server

side
field validation and am getting an exception during initial JSP page 
rendering.  The page and action work fine without the validation.


Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping

up

with the many posts on the mailing list, but they all seem to be

various

advanced scenarios.

Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering


Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDoDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
Errors 

on action [EMAIL PROTECTED], returning result name 'input'
ERROR [] [2008/10/21 09:01:12] 
[org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
result No result defined for action sample.SampleAction and result

input
 at 


com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct

ionInvocation.java:357)
 at 


com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo

cation.java:259)
 at 


com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali

dationInterceptor.java:248)
 at 


org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto

r.doIntercept(AnnotationValidationInterceptor.java:49)
 at 


com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me

thodFilterInterceptor.java:86)



/SampleAction-validation.xml

1.0.2//EN"

"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


   
  You must enter a Last Name
   


   
  13
  19
  The max value must be between 13 and 19
   








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



Re: Struts2 validation with portlet

2008-10-21 Thread Torsten Krah
Am Dienstag, 21. Oktober 2008 17:46:41 schrieb bakann:
> Did you find an example ?
> I think it is not working.

It is working.
I am using 2.0.11.2 with portlets. I am using some field validators and 
configured validators.xml and my *.xml for the actions and validation 
triggers fine.

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
Either have lots of actions in your struts.xml, or use wildcard mappings
(http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html)

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:43 AM
To: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Great - that fixed it.

Follow up:  supposed this Action class can serve up 10 different JSP 
pages, all of which need validation.   I would want the "input" result 
type to forward to whichever of the 10 JSPs that the user was in when 
the validation error occurred.   So what is the best way to handle that?

Thanks,
John


Kawczynski, David wrote:
> Yes, in the event of server-sided validation failure the framework
> returns the user to this "input" page 
> 
> -Original Message-
> From: 928572663 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 21, 2008 11:27 AM
> To: Kawczynski, David
> Cc: Struts Users Mailing List
> Subject: Re: [s2] Problem getting basic server side field validation
to
> work
> 
> Thanks David for the quick reply.
> 
> Is the 'input' result type used by the validation framework?  My
action 
> class does not return that.
> 
> Thanks,
> John
> 
> 
> Kawczynski, David wrote:
>> You need to define a  of type input for your action. 
>>
>> -Original Message-
>> From: 928572663 [mailto:[EMAIL PROTECTED] 
>> Sent: Tuesday, October 21, 2008 11:02 AM
>> To: Struts Users Mailing List
>> Subject: [s2] Problem getting basic server side field validation to
> work
>> I'm trying to do a very basic test app that demonstrates the server
> side
>> field validation and am getting an exception during initial JSP page 
>> rendering.  The page and action work fine without the validation.
>>
>> Any ideas what I may be missing?
>>
>> I've read the confluence pages on validation, and have been keeping
up
> 
>> with the many posts on the mailing list, but they all seem to be
> various
>> advanced scenarios.
>>
>> Here is some info to help:
>>
>> * Using struts 2.1.2 basic (no plugins to speak of)
>> * Using Zero Configuration (annotations) with no struts.xml
>> * form bean is stored in session
>> * action function works great w/o validation
>> * when adding the SampleAction-validation.xml the exception happens 
>> during initial page rendering
>>
>> Here is the stack and last few logs:
>>
>>
>> DEBUG [] [2008/10/21 09:01:12] 
>> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
>> Invoking validate() on action [EMAIL PROTECTED]
>> DEBUG [] [2008/10/21 09:01:12] 
>> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
> cannot 
>> find method [validateDisplayForm] in action
>> [EMAIL PROTECTED]
>> DEBUG [] [2008/10/21 09:01:12] 
>> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
> cannot 
>> find method [validateDoDisplayForm] in action
>> [EMAIL PROTECTED]
>> DEBUG [] [2008/10/21 09:01:12] 
>> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
> Errors 
>> on action [EMAIL PROTECTED], returning result name 'input'
>> ERROR [] [2008/10/21 09:01:12] 
>> [org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
>> result No result defined for action sample.SampleAction and result
> input
>>  at 
>>
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
>> ionInvocation.java:357)
>>  at 
>>
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
>> cation.java:259)
>>  at 
>>
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
>> dationInterceptor.java:248)
>>  at 
>>
>
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
>> r.doIntercept(AnnotationValidationInterceptor.java:49)
>>  at 
>>
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
>> thodFilterInterceptor.java:86)
>>
>>
>>
>> /SampleAction-validation.xml
>>
>> > 1.0.2//EN"
>> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
>> 
>> 
>>
>>   You must enter a Last Name
>>
>> 
>> 
>>
>>   13
>>   19
>>   The max value must be between 13 and 19
>>
>> 
>> 
>>
>>

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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you ar

Re: Struts2 validation with portlet

2008-10-21 Thread bakann

Did you find an example ?
I think it is not working.


devsahu wrote:
> 
> Hi,
> 
> Does stuts2 support its validation feature with portlet.
> Any help is highly appreciated.
> 
> Thanks,
> Sabyasachi
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-validation-with-portlet-tp11445797p20093267.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: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663

Great - that fixed it.

Follow up:  supposed this Action class can serve up 10 different JSP 
pages, all of which need validation.   I would want the "input" result 
type to forward to whichever of the 10 JSPs that the user was in when 
the validation error occurred.   So what is the best way to handle that?


Thanks,
John


Kawczynski, David wrote:

Yes, in the event of server-sided validation failure the framework
returns the user to this "input" page 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:27 AM

To: Kawczynski, David
Cc: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Thanks David for the quick reply.

Is the 'input' result type used by the validation framework?  My action 
class does not return that.


Thanks,
John


Kawczynski, David wrote:
You need to define a  of type input for your action. 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:02 AM

To: Struts Users Mailing List
Subject: [s2] Problem getting basic server side field validation to

work

I'm trying to do a very basic test app that demonstrates the server

side
field validation and am getting an exception during initial JSP page 
rendering.  The page and action work fine without the validation.


Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping up



with the many posts on the mailing list, but they all seem to be

various

advanced scenarios.

Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering


Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 

find method [validateDoDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
Errors 

on action [EMAIL PROTECTED], returning result name 'input'
ERROR [] [2008/10/21 09:01:12] 
[org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
result No result defined for action sample.SampleAction and result

input
 at 


com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct

ionInvocation.java:357)
 at 


com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo

cation.java:259)
 at 


com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali

dationInterceptor.java:248)
 at 


org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto

r.doIntercept(AnnotationValidationInterceptor.java:49)
 at 


com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me

thodFilterInterceptor.java:86)



/SampleAction-validation.xml

1.0.2//EN"

"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


   
  You must enter a Last Name
   


   
  13
  19
  The max value must be between 13 and 19
   






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



RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
Yes, in the event of server-sided validation failure the framework
returns the user to this "input" page 

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:27 AM
To: Kawczynski, David
Cc: Struts Users Mailing List
Subject: Re: [s2] Problem getting basic server side field validation to
work

Thanks David for the quick reply.

Is the 'input' result type used by the validation framework?  My action 
class does not return that.

Thanks,
John


Kawczynski, David wrote:
> You need to define a  of type input for your action. 
> 
> -Original Message-
> From: 928572663 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 21, 2008 11:02 AM
> To: Struts Users Mailing List
> Subject: [s2] Problem getting basic server side field validation to
work
> 
> I'm trying to do a very basic test app that demonstrates the server
side
> 
> field validation and am getting an exception during initial JSP page 
> rendering.  The page and action work fine without the validation.
> 
> Any ideas what I may be missing?
> 
> I've read the confluence pages on validation, and have been keeping up

> with the many posts on the mailing list, but they all seem to be
various
> 
> advanced scenarios.
> 
> Here is some info to help:
> 
> * Using struts 2.1.2 basic (no plugins to speak of)
> * Using Zero Configuration (annotations) with no struts.xml
> * form bean is stored in session
> * action function works great w/o validation
> * when adding the SampleAction-validation.xml the exception happens 
> during initial page rendering
> 
> Here is the stack and last few logs:
> 
> 
> DEBUG [] [2008/10/21 09:01:12] 
> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
> Invoking validate() on action [EMAIL PROTECTED]
> DEBUG [] [2008/10/21 09:01:12] 
> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 
> find method [validateDisplayForm] in action
> [EMAIL PROTECTED]
> DEBUG [] [2008/10/21 09:01:12] 
> [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil]
cannot 
> find method [validateDoDisplayForm] in action
> [EMAIL PROTECTED]
> DEBUG [] [2008/10/21 09:01:12] 
> [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor]
Errors 
> on action [EMAIL PROTECTED], returning result name 'input'
> ERROR [] [2008/10/21 09:01:12] 
> [org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
> result No result defined for action sample.SampleAction and result
input
>  at 
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
> ionInvocation.java:357)
>  at 
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:259)
>  at 
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
> dationInterceptor.java:248)
>  at 
>
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
> r.doIntercept(AnnotationValidationInterceptor.java:49)
>  at 
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
> 
> 
> 
> /SampleAction-validation.xml
> 
>  1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
> 
> 
>
>   You must enter a Last Name
>
> 
> 
>
>   13
>   19
>   The max value must be between 13 and 19
>
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates
is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, ple

Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663

Thanks David for the quick reply.

Is the 'input' result type used by the validation framework?  My action 
class does not return that.


Thanks,
John


Kawczynski, David wrote:
You need to define a  of type input for your action. 


-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:02 AM

To: Struts Users Mailing List
Subject: [s2] Problem getting basic server side field validation to work

I'm trying to do a very basic test app that demonstrates the server side

field validation and am getting an exception during initial JSP page 
rendering.  The page and action work fine without the validation.


Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping up 
with the many posts on the mailing list, but they all seem to be various


advanced scenarios.

Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering


Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDisplayForm] in action

[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDoDisplayForm] in action

[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] Errors 
on action [EMAIL PROTECTED], returning result name 'input'
ERROR [] [2008/10/21 09:01:12] 
[org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
result No result defined for action sample.SampleAction and result input
 at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct

ionInvocation.java:357)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo

cation.java:259)
 at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali

dationInterceptor.java:248)
 at 
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto

r.doIntercept(AnnotationValidationInterceptor.java:49)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me

thodFilterInterceptor.java:86)



/SampleAction-validation.xml

1.0.2//EN"

"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


   
  You must enter a Last Name
   


   
  13
  19
  The max value must be between 13 and 19
   




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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.





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



RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
You need to define a  of type input for your action. 

-Original Message-
From: 928572663 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 11:02 AM
To: Struts Users Mailing List
Subject: [s2] Problem getting basic server side field validation to work

I'm trying to do a very basic test app that demonstrates the server side

field validation and am getting an exception during initial JSP page 
rendering.  The page and action work fine without the validation.

Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping up 
with the many posts on the mailing list, but they all seem to be various

advanced scenarios.

Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering

Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDoDisplayForm] in action
[EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] Errors 
on action [EMAIL PROTECTED], returning result name 'input'
ERROR [] [2008/10/21 09:01:12] 
[org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
result No result defined for action sample.SampleAction and result input
 at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct
ionInvocation.java:357)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:259)
 at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
dationInterceptor.java:248)
 at 
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
r.doIntercept(AnnotationValidationInterceptor.java:49)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)



/SampleAction-validation.xml

http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


   
  You must enter a Last Name
   


   
  13
  19
  The max value must be between 13 and 19
   




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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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



Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-21 Thread Torsten Krah
https://issues.apache.org/struts/browse/WW-2846

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


[s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
I'm trying to do a very basic test app that demonstrates the server side 
field validation and am getting an exception during initial JSP page 
rendering.  The page and action work fine without the validation.


Any ideas what I may be missing?

I've read the confluence pages on validation, and have been keeping up 
with the many posts on the mailing list, but they all seem to be various 
advanced scenarios.


Here is some info to help:

* Using struts 2.1.2 basic (no plugins to speak of)
* Using Zero Configuration (annotations) with no struts.xml
* form bean is stored in session
* action function works great w/o validation
* when adding the SampleAction-validation.xml the exception happens 
during initial page rendering


Here is the stack and last few logs:


DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] 
Invoking validate() on action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDisplayForm] in action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] cannot 
find method [validateDoDisplayForm] in action [EMAIL PROTECTED]
DEBUG [] [2008/10/21 09:01:12] 
[com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] Errors 
on action [EMAIL PROTECTED], returning result name 'input'
ERROR [] [2008/10/21 09:01:12] 
[org.apache.struts2.dispatcher.Dispatcher] Could not find action or 
result No result defined for action sample.SampleAction and result input
at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:357)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:259)
at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:248)
at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)




/SampleAction-validation.xml

1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


   
  
 You must enter a Last Name
  
   
   
  
 13
 19
 The max value must be between 13 and 19
  
   



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



RE: Migrating from Struts 1: dynamically loading

2008-10-21 Thread Nick Maunder | Oathouse
Good try but it doesn't work... tried #pageTitle as well, and a host of 
variations using tiles:useAttribute

I can't be the only one to want to internationalise/localize page titles??

Couldn't find anything on the web either

This is the last fmt tag in my application.  It needs to go!!

Nick

-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED] 
Sent: 21 October 2008 15:45
To: Struts Users Mailing List
Subject: Re: Migrating from Struts 1: dynamically loading 

>
>

Try




Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
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: Migrating from Struts 1: dynamically loading

2008-10-21 Thread Lukasz Lenart
>
>

Try




Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



RE: Migrating from Struts 1: dynamically loading

2008-10-21 Thread Nick Maunder | Oathouse
This is cool, Thanks Lukasz, and it's solved one of two issues for me

But I'm going to be difficult because I'm working with Tiles as well!

Is there any way of doing it without going to the action class?

What I really want to do is use  in a standard layout jsp used with
Tiles

For example, this works:






And I'd very much like to replace it with something like:




(which doesn't!!)  I get the feeling there is a missing link between the
tiles attribute and the stack variable, but I can't work out how to put the
tiles attribute on the ognl stack

Cheers

Nick

-Original Message-
From: Lukasz Lenart [mailto:[EMAIL PROTECTED] 
Sent: 21 October 2008 14:53
To: Struts Users Mailing List
Subject: Re: Migrating from Struts 1: dynamically loading 

> I am looking for a way to dynamically load 

try


and in your action add

String getSomethingDynamic() {
  return "some.key";
}


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
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: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-21 Thread Torsten Krah
Am Dienstag, 21. Oktober 2008 16:11:54 schrieb Torsten Krah:
> 
> 
> 

And additionally whats not working is something like this:

http://struts.apache.org/2.0.11.2/struts2-core/apidocs/org/apache/struts2/components/URL.html

Example 2 does not work:

 
 
 

does result in an url without any params - where %{myinputfieldvalue} is an 
Integer and will result in the ClassCastException anyway :-(

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: s:url Tag - Generate Servlet URL in a Portlet Environment

2008-10-21 Thread Torsten Krah
Am Mittwoch, 8. Oktober 2008 10:48:50 schrieb Nils-Helge Garli Hegvik:
> It's not directly supported (using action and namespace), but if I
> remember correctly you can use the "value" attribute to generate a
> regular "non-portlet" url.

I guess did find some bug.
I want to generate a regular servlet url using the value attribute. Works, but 
i need some parameters. 





does result in this exception:
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
at 
org.apache.struts2.portlet.util.PortletUrlHelper.buildResourceUrl(PortletUrlHelper.java:210)
at org.apache.struts2.components.URL.end(URL.java:260)


Not what i did expect.
How can i include/add parameters to my url?

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: Migrating from Struts 1: dynamically loading

2008-10-21 Thread Lukasz Lenart
> I am looking for a way to dynamically load 

try


and in your action add

String getSomethingDynamic() {
  return "some.key";
}


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



Re: [S2] why is javascript executed before DOM is updated

2008-10-21 Thread lbastil

For me it is still not clear:

with struts 2.0.11, how can I:
modyfy DOM which is given back from an AJAX request with javascript at all?

concrete:
suppose, I have a form, which is updated by a dojo ajax requst.
After the form is updated I wnat to execute a javascript which disables two
of the 
submit buttons in the form. Hoy can I do this task?

thank you in advance.


Jeromy Evans - Blue Sky Minds wrote:
> 
> I think it is WW-1951.
> 
> It's generally a bad idea to include inline scripts in a result loaded 
> via XHR because it varies from browser-to-browser and library-to-library 
> as to when the scripts are executed.  In this case, Dojo has the 
> responsibility to parse your result, extract the scripts and then 
> execute them (when separateScripts is false and executeScripts is 
> true).  If, for example, you only used element.innerHTML directly to 
> update your page the script would not be executed at all (in most 
> browsers).  The point is, the Dojo widget is explicitly separating and 
> executing your scripts in the result.
> 
> In 2.1, revision #543927, the Bind widget was modified to execute 
> scripts after setting the content.  In 2.0, scripts are executed after 
> parsing but before setting the content.
> 
> I think you have a couple of options:
>- (recommended) refactor your javascript so its not inline.  For 
> example, you may be able to listen for an event instead
>- if you're sure it's only s:submit that has the problem and s:div is 
> okay, have the submit publish a topic and have a s:div subscribe and 
> perform the request itself
>- patch the widget in struts 2.0 with the same change as in 2.1, and 
> build your own dojo release.
> 
> Hope that helps a little,
> Jeromy Evans
> 
> lbastil wrote:
>> Is this the WW-1951 - issue?
>>
>> And if so, is there any workaround for 2.0.11 release?
>>
>> Thank you,
>> basti
>>
>>
>> lbastil wrote:
>>   
>>> I have a serious problem with an ajax submit.
>>>
>>> the scenario is the following:
>>>
>>> I submit a form with ajax submit button and I want to update the parent
>>> div (targets="...")
>>> The original content of this div and the result content contains a
>>> 

xwork injecting parameters into requestScope

2008-10-21 Thread Adam Hardy

I have an Action and corresponding JSP form with the property "portfolio".

In my JSP, I have this JSTL tag test:

 stuff 

which works fine for my purposes. But then when I submit the form and validation 
fails and myAction.portfolio is not initialized, Struts2 injects the portfolio 
request parameter into the requestAttributes.


Now my JSP blows up because:

${portfolio} = "0"

and

${not empty portfolio} = true

and then

${portfolio.id} > javax.servlet.jsp.JspException: 
javax.el.PropertyNotFoundException: Property 'id' not found on type 
java.lang.Character



What influence can I have over this injection behaviour?

Or perhaps, can I reformulate my test so that I can tell whether my 
"${portfolio}" is a string or a bean?


Thanks!
Adam



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



Re: File Upload into database

2008-10-21 Thread Narayana S
now it is working. i could pass the values. i have added these two
interceptors to my stack as described in the link given.
i need to start working on strong this file content to data base blob field.
(lets see ...)




http://cwiki.apache.org/WW/file-upload-interceptor.html

Thanks everyone.


On Tue, Oct 21, 2008 at 4:25 PM, Narayana S <[EMAIL PROTECTED]> wrote:

> yes
>
>  enctype="multipart/form-data">
>
> this is the form tag...
>
>
> On Tue, Oct 21, 2008 at 4:25 PM, Ketil Holden <[EMAIL PROTECTED]>wrote:
>
>> Have you set enctype on the form element?
>>
>> Like this:
>> >
>> ??
>>
>>
>> -Original Message-
>> From: Narayana S [mailto:[EMAIL PROTECTED]
>> Sent: 21. oktober 2008 12:31
>> To: Struts Users Mailing List
>> Subject: Re: File Upload into database
>>
>> Hi Thanks for your reply,
>>
>>but when i submit my form it is not setting value for the
>> upload
>> properties. this is how my code is ...
>> -- in jsp
>> 
>> -- in action
>> private String uploadContentType;
>> private String uploadFileName;
>> private File upload;
>>
>> and getter setters for these properties. i am using struts 2.1.2. where i
>> am
>> still missing? remaining properties of the form are getting set, only this
>> is not working :(
>> help me
>>
>> On Tue, Oct 21, 2008 at 12:14 PM, ManiKanta G <[EMAIL PROTECTED]> wrote:
>>
>> > http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
>> >
>> > have some info to start.
>> >
>> > ManiKanta
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: how to find out the NULL value?

2008-10-21 Thread Adam Hardy

Mead Lai on 20/10/08 08:25, wrote:

Hi All,

Show something here


You can do this with JSTL tags:




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



Re: Confused by Result-generation

2008-10-21 Thread Stephan Schröder

Ok, i found the answer with debugging
DefaultActionInvocation.invoke()-method. It's the first case even if one
interceptor doesn't call actionInvocation.invoke(). In that case the result
is generated surrounded by all of the previous interceptors.

If all (e.g.2) interceptors call actionInvocation.invoke() you get this
call-sequence: 
Interceptor 1-> Interceptor 2-> Action-> Result-> Interceptor 2->
Interceptor 1

If one (e.g. the second) interceptor doesn't call actionInvocation.invoke()
you get:
Interceptor 1-> Interceptor 2-> Result-> Interceptor 1

There's some tricky use of recursion.

Regards,
Stephan


Stephan Schröder wrote:
> 
> hi,
> 
> as far as i understand it, the calling sequenze of an action mapping looks
> like this:
> Interceptor 1-> Interceptor 2->...-> Action-> Result->...-> Interceptor
> 2-> Interceptor 1
> (see http://struts.apache.org/2.0.11.2/docs/big-picture.html)
> 
> But what happens when i use this AuthenticationInterceptor:
> 
> public class AuthenticationInterceptor extends AbstractInterceptor {
> 
>   public String intercept( ActionInvocation actionInvocation ) throws
> Exception
>   {
> Map session = actionInvocation.getInvocationContext().getSession();
> User user = (User) session.get( Struts2PortfolioConstants.USER );
> if (user == null) {
>   return Action.LOGIN;
> }
> else {
>   (( UserAwareAction ) actionInvocation.getAction()).setUser(user);
>   return actionInvocation.invoke();
> }
>   }
> 
> }
> This is adapted from "Struts 2 in Action" and it looks like here the
> calling sequence would be
> Interceptor 1-> AuthenticationInterceptor-> Interceptor 1-> Result
> 
> So in the normal case the Result is generated within the Interceptors
> while the second code suggests that the Result is generated aber the last
> Interceptor has returned.
> Or is both true?
> 
> Regards,
> Stephan 
> 

-- 
View this message in context: 
http://www.nabble.com/Confused-by-Result-generation-tp20067494p20088687.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 ajax problem

2008-10-21 Thread emre akgün

i am using struts-2  2.0.11.2 version with eclipse europei have 2 jsp page 
news-alarm.jsp and category-list.jsphere is news-alarm.jsp
 
  

  


  
 
 
 
when channel select list change ajax call getCategoryList action and this 
method return category-list.jsp into div(listentopics=showdetail)
here is category-list.jsp
 
<[EMAIL PROTECTED] file="/init.jsp"%>  
when i submit news-alarm.jsp i cant get value of categoryList2 which is 
s:optiontransferselect> in categoryList2 page. everytime categorylist2 value is 
null. How can i solve this problem?
_
Windows Live Messenger'ın için Ücretsiz 30 İfadeyi yükle
http://www.livemessenger-emoticons.com/funfamily/tr-tr/

Migrating from Struts 1: dynamically loading

2008-10-21 Thread Nick Maunder | Oathouse
Hi all

 

I am migrating myself from JSTL/Struts 1 to Struts 2

 

I am looking for a way to dynamically load 

 

In JSTL/Struts 1 I can do this:



 

And i'd like to do this using Struts2:

 



 

I have searched high and low for the answer... anyone know how to do this
please??

 

Cheers

 

Nick Maunder

 



Re: File Upload into database

2008-10-21 Thread Narayana S
yes



this is the form tag...

On Tue, Oct 21, 2008 at 4:25 PM, Ketil Holden <[EMAIL PROTECTED]>wrote:

> Have you set enctype on the form element?
>
> Like this:
> 
> ??
>
>
> -Original Message-
> From: Narayana S [mailto:[EMAIL PROTECTED]
> Sent: 21. oktober 2008 12:31
> To: Struts Users Mailing List
> Subject: Re: File Upload into database
>
> Hi Thanks for your reply,
>
>but when i submit my form it is not setting value for the upload
> properties. this is how my code is ...
> -- in jsp
> 
> -- in action
> private String uploadContentType;
> private String uploadFileName;
> private File upload;
>
> and getter setters for these properties. i am using struts 2.1.2. where i
> am
> still missing? remaining properties of the form are getting set, only this
> is not working :(
> help me
>
> On Tue, Oct 21, 2008 at 12:14 PM, ManiKanta G <[EMAIL PROTECTED]> wrote:
>
> > http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
> >
> > have some info to start.
> >
> > ManiKanta
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: File Upload into database

2008-10-21 Thread Ketil Holden
Have you set enctype on the form element?

Like this:
mailto:[EMAIL PROTECTED]
Sent: 21. oktober 2008 12:31
To: Struts Users Mailing List
Subject: Re: File Upload into database

Hi Thanks for your reply,

but when i submit my form it is not setting value for the upload
properties. this is how my code is ...
-- in jsp

-- in action
private String uploadContentType;
private String uploadFileName;
private File upload;

and getter setters for these properties. i am using struts 2.1.2. where i am
still missing? remaining properties of the form are getting set, only this
is not working :(
help me

On Tue, Oct 21, 2008 at 12:14 PM, ManiKanta G <[EMAIL PROTECTED]> wrote:

> http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
>
> have some info to start.
>
> ManiKanta
>

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



Re: File Upload into database

2008-10-21 Thread Narayana S
Hi Thanks for your reply,

but when i submit my form it is not setting value for the upload
properties. this is how my code is ...
-- in jsp

-- in action
private String uploadContentType;
private String uploadFileName;
private File upload;

and getter setters for these properties. i am using struts 2.1.2. where i am
still missing? remaining properties of the form are getting set, only this
is not working :(
help me

On Tue, Oct 21, 2008 at 12:14 PM, ManiKanta G <[EMAIL PROTECTED]> wrote:

> http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
>
> have some info to start.
>
> ManiKanta
>


RE: Struts2: Custom Validation, message from property file

2008-10-21 Thread sean . chen
Hi all:

We are planning to develop a new project on Websphere 5.x (Servlet 2.3/JSP
1.2/ JDK 1.4) and wonder if struts2 could work with these components?

Thanks in advance

sean



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



Re: Struts2: Custom Validation, message from property file

2008-10-21 Thread Paweł Wielgus
Hi Ibastil,
i haven't tried that.
But maybe searching in annotation validation will bring some solution for You.

Best greetings,
Paweł Wielgus.


2008/10/21 lbastil <[EMAIL PROTECTED]>:
>
> Thank you very much!
>
> and did you know a possibility to use the existing validators manually?
>
> For instance when I manually have to do an email validation, it would be
> cool
> to be able to use the functionality of the allready existent
> emailfieldvalidator.
>
>
>
> Paweł Wielgus wrote:
>>
>> Hi Ibastil,
>> try getText() method inside Your action.
>> Your action needs to extend ActionSupport.
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>>
>> 2008/10/20 lbastil <[EMAIL PROTECTED]>:
>>>
>>> I have to use Custom Validation and set field errors like:
>>> addFieldError("", ">>
>>> instead of a plain string for the error message I would like the same
>>> property file woth message definitions
>>> as for my validator classes and actions.
>>>
>>> Is this possible?
>>> What is the most elegant solution?
>>>
>>> Thank you in advance.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.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]
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20086174.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: Struts2: Custom Validation, message from property file

2008-10-21 Thread lbastil

Thank you very much!

and did you know a possibility to use the existing validators manually?

For instance when I manually have to do an email validation, it would be
cool
to be able to use the functionality of the allready existent
emailfieldvalidator.



Paweł Wielgus wrote:
> 
> Hi Ibastil,
> try getText() method inside Your action.
> Your action needs to extend ActionSupport.
> 
> Best greetings,
> Paweł Wielgus.
> 
> 
> 2008/10/20 lbastil <[EMAIL PROTECTED]>:
>>
>> I have to use Custom Validation and set field errors like:
>> addFieldError("", ">
>> instead of a plain string for the error message I would like the same
>> property file woth message definitions
>> as for my validator classes and actions.
>>
>> Is this possible?
>> What is the most elegant solution?
>>
>> Thank you in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.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]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20086174.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: How to set global date format?

2008-10-21 Thread Suyog Doshi

Hi 

I am facing same problem Do you got any solution for same?

Struts2 Fan wrote:
> 
> Hi all,
> 
> I want to set a global date format. Is it possible? I defined
> format.date={0,date,dd.MM.} in package.properties file, but it does
> not work. 
> 
> Any ideas?
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-global-date-format--tp19478823p20086149.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: How to handle different div's and 1 or more ActionForms

2008-10-21 Thread Joris Kimpe

Thanks Lukasz,

I just found the cause...  I was using the same form id in the different
divs.  I had a jsp included in both divs, and it contained the form bean
(which needs to be different for both divs).




Lukasz Lenart wrote:
> 
> There is some problem with div's inside form, when you want to return
> a content from Ajax call, I think it's only on IE, check that.
> The second though can be duplicated id's for div's or other tags
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-handle-different-div%27s-and-1-or-more-ActionForms-tp20032791p20085329.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: How to handle different div's and 1 or more ActionForms

2008-10-21 Thread Lukasz Lenart
There is some problem with div's inside form, when you want to return
a content from Ajax call, I think it's only on IE, check that.
The second though can be duplicated id's for div's or other tags


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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