About tag bean

2008-03-20 Thread Chen Chunwei
Hi all, Can tag bean fetch the value processed by a specified ActionForm? For instance, there's an ActionForm named TestActionForm, which has a field defined with String test. And the corresponding get-method getTest() will add a prefix p: to the field test. Supposing the origin value of test

Re: About tag bean

2008-03-20 Thread Antonio Petrelli
2008/3/20, Chen Chunwei [EMAIL PROTECTED]: Can tag bean fetch the value processed by a specified ActionForm? For instance, there's an ActionForm named TestActionForm, which has a field defined with String test. And the corresponding get-method getTest() will add a prefix p: to the field

Re: html:radio in struts

2008-03-20 Thread Antonio Petrelli
2008/3/20, Sonu S [EMAIL PROTECTED]: Hi, I have something like this in JSP : html:radio property=gender value=male/MALE html:radio property=gender value=female/FEMALE 1) i want to know how to make Male to be default selected when page is loaded Initialize your ActionForm's gender

Re: struts 2 jsf plugin problem

2008-03-20 Thread Daniel
Ok i've done something like this : struts-jsf.xml !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=portlet-jsf-default extends=struts-portlet-default result-types

Re: About tag bean

2008-03-20 Thread Chen Chunwei
Thanks Antonio. Yes, this is exactly what I want. And this is my fourth day to learn about JSP, STRUTS and everything about JAVA. So I found there are too much to learn, whereas I don't have much time to learn it systematically and I don't have enough materials to learn it from espesially

Re: About tag bean

2008-03-20 Thread Antonio Petrelli
2008/3/20, Chen Chunwei [EMAIL PROTECTED]: And this is my fourth day to learn about JSP, STRUTS and everything about JAVA. So I found there are too much to learn, whereas I don't have much time to learn it systematically and I don't have enough materials to learn it from espesially that I

Re: About tag bean

2008-03-20 Thread Chen Chunwei
Almost. :-( Talos - Original Message - From: Antonio Petrelli [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, March 20, 2008 5:01 PM Subject: Re: About tag bean 2008/3/20, Chen Chunwei [EMAIL PROTECTED]: And this is my fourth day to learn about

Using xdoclets and minlength from validator

2008-03-20 Thread Dimitris Mouchritsas
Hi all, I'm trying to make a password field be at least 6 characters in length but the check doesn't seem to work. Here's my code: /** * @struts.validator type=required,minlength,maxlength,mask * * @struts.validator-var name=minlength value=5 * @struts.validator-var

Re: struts 2 jsf plugin problem

2008-03-20 Thread Nils-Helge Garli Hegvik
First of all, I'm not even sure if it's possible to use the portlet and the jsf plugin at the same time. I have not tried, but there might be issues with it if they try to do conflicting things in the interceptors and the results. struts.xml package name=default extends=portlet-jsf-default

Re: File Upload Size

2008-03-20 Thread Richard Sayre
No it doesn't On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Does your action implements ValidationAware interface? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To

Re: File Upload Size

2008-03-20 Thread Lukasz Lenart
No it doesn't Maybe that's the problem, FileUploadInterceptor check if action implements it and add error messages. If you implement it, remember to add result name=input. Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart

Re: Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-20 Thread bugs_
What I need is to have one action and many various (POJO) objects, which polulate and receive date from html form. POJO object should be selected by the form, which is displayed (or submited). But I realy don't know how to do this in Struts 2. newton.dave wrote: --- bugs_ [EMAIL PROTECTED]

Re: struts 2 jsf plugin problem

2008-03-20 Thread Daniel
I have changed the myfaces lib with jsf lib. Now i am getting the error : javax.portlet.PortletException at com.bea.portlet.container.PortletRequestDispatcherImpl.include( PortletRequestDispatcherImpl.java:143) at org.apache.struts2.portlet.result.PortletResult.executeRenderResult(

OGNL Method calls class static properties

2008-03-20 Thread Michael Gagnon
Is it valid to, within the scope if a s:if tag, to: a) Call non getter/setter methods on a bean on the stack b) Reference some unrelated class' public static field (without a getter method) To give the situation some context, I'm attempting to do something similar to the

Using Javascript to change struts-generated forms

2008-03-20 Thread Allen, Daniel
Hi, all. I'm working on a form that would allow some arbitrary number of documents to be uploaded at once. The idea is that by default, one set of document fields appears, and there's a link that a user can click to activate some javascript that would add another set of document fields. I have

Best Pratices for Access Restriction and Authentication?

2008-03-20 Thread Frank Fischer
Hi all Creating my first struts2 web application i came to the point where questions about access restriction and authentication pop up. I read some articles about these topics that cover certain single aspects but none of them seem to answer all my questions. As far as i learned, i think best

Re: Best Pratices for Access Restriction and Authentication?

2008-03-20 Thread Lukasz Lenart
I just read bout about Acegi (http://www.acegisecurity.org/). As far as i understand this framework would provide mechanisms for authentication and authorization (which also will be going to be a topic in a later project stage). In its documentation i read that it's working with spring.

Re: OGNL Method calls class static properties

2008-03-20 Thread Dave Newton
Static access: http://struts.apache.org/2.x/docs/ognl-basics.html --- Michael Gagnon [EMAIL PROTECTED] wrote: Is it valid to, within the scope if a s:if tag, to: a) Call non getter/setter methods on a bean on the stack b) Reference some unrelated class' public static field

Any issues using latest Dojo with Struts2?

2008-03-20 Thread Karr, David
Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? I imagine this might preclude trying to use the Struts2 tags that use Dojo widgets (or just need some

Re: Any issues using latest Dojo with Struts2?

2008-03-20 Thread Dave Newton
--- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? Not if you're not trying to combine the two versions;

RE: Any issues using latest Dojo with Struts2?

2008-03-20 Thread Karr, David
The following link into the Dojo Book has an example. There are others throughout the book. The ${...} is substituted on the CLIENT side. http://dojotoolkit.org/node/3161 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:41 PM To:

RE: Any issues using latest Dojo with Struts2?

2008-03-20 Thread Dave Newton
Oh, the templates? Yeah, if you tried to use that notation on a JSP page it would cause a problem. I'd imagine escaping the $ would work, although I haven't tried it. Dave --- Karr, David [EMAIL PROTECTED] wrote: The following link into the Dojo Book has an example. There are others