Migrating data from one select box to other.

2008-04-14 Thread Arpan Debroy
I have two select box. Suppose the initial values of the select boxes are as follow :- There will be two button "Add" and "Remove". So when user select one element of "select1" and click "Add" button, the element should migrate to the "select2" box. And the "remove" button will do the opposi

Re: Struts 2 + AjaxTags + DisplayTag

2008-04-14 Thread Márcio Gurgel
Matt, tanks for your help. But I need to persist with displayTags /: I guess that there's some kind of validation inside struts 2 that doesnt allow the correct work of ajaxtags.. Just take a look at my generated url from displaytag pagination. http://localhost:8080/SGVDBA/view/usuario/UsuPesquisa

How do I insert a file into mySQL?

2008-04-14 Thread ryan webb
Hi! I want to store a file (any file mp3, avi, etc) on the database without using blob datatype. I just want to put the address of the file (in my Hard Disck) in mySQL and load the address of the file to be played on web page. but I have no idea how this can be done. +

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
That is correct, but should be highly discouraged. If your interceptor accepted any parameters, multiple configurations would step on each other, resulting in nondeterministic behavior. Interceptors should also be of the 'prototype' scope. Don On Tue, Apr 15, 2008 at 5:55 AM, Randy Burgess <[EMA

Re: [S2] Textfield key with resource bundle

2008-04-14 Thread Jeromy Evans
Kelly.Graus wrote: Hi Jeremy, I worked on this all morning, and I believe I'm at the exact same place I was before when it was breaking, but everything works fine now. My model doesn't have a getText( String ) function, so I don't think that was it. If I run across it again, I will make a cop

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
Could you provide a scenario where one bean is injected into another? Thanks M- - Original Message - From: "Randy Burgess" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, April 14, 2008 3:55 PM Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > So the in

Re: Validation for multiple fields

2008-04-14 Thread Wes Wannemacher
On Mon, 2008-04-14 at 16:51 -0300, Décio Heinzelmann Luckow wrote: > Hi All, > > Struts have some way to do the validation for multiple fields? > > Décio Yes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [S2]: When do I need to extend "ActionSupport"?

2008-04-14 Thread Wes Wannemacher
On Mon, 2008-04-14 at 12:49 -0700, Dave Newton wrote: > --- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote: > > Struts 2 promotes POJO based action. However I found most of the Action > > classes from the sample application extends ActionSupport? By looking at > > the ActionSupport class in Xwork, I f

Struts Clustering

2008-04-14 Thread Frans Thamura
hi all we are try to make clusteirng in Struts2, and we are see Terracotta as the candidate integration any experience with clustering, is terracotta the best one F

Clean some characters in request parameters

2008-04-14 Thread hernan gonzalez
Assume I have a lot of html forms with text inputs, and I want to palce some restrictions for the set of allowed chars. Sort of a sanity check, at the charset level. For a concrete example, my storage (db) uses LATIN9 (iso-8859-15), and the user sometimes can enter the non-allowed acute-accent (ins

Clean some characters in request parameters

2008-04-14 Thread hernan gonzalez
Assume I have a lot of html forms with text inputs, and I want to palce some restrictions for the set of allowed chars. Sort of a sanity check, at the charset level. For a concrete example, my storage (db) uses LATIN9 (iso-8859-15), and the user sometimes can enter the non-allowed acute-accent (ins

Re: Struts 2 + AjaxTags + DisplayTag

2008-04-14 Thread matt.payne
You could try struts2 + jquery + jgrid (http://trirand.com/jqgrid/jqgrid.html) If you need ajax, you need something that returns an json or xml response (insert you velocity, freemarker, json result, jsp result here). Matt Márcio Gurgel wrote: > > Hi all! > > Since this morning I'm having tr

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
So the interceptor would have to be declared at the action level in this case then? If I have a spring bean named myBean that is default scope and I inject another bean declared as a prototype into it, the injected bean will still be a singleton since there will be only one instance of myBean. Reg

Validation for multiple fields

2008-04-14 Thread Décio Heinzelmann Luckow
Hi All, Struts have some way to do the validation for multiple fields? Décio

Re: [S2]: When do I need to extend "ActionSupport"?

2008-04-14 Thread Dave Newton
--- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote: > Struts 2 promotes POJO based action. However I found most of the Action > classes from the sample application extends ActionSupport? By looking at > the ActionSupport class in Xwork, I found it implements quite a few > interfaces, e.g. Valicateable,

Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Kelly.Graus wrote: > > Thanks for the reply! I'm using field validators, so I did this: > > > > The passwords do not match! > > > Which works perfectly. Thanks! > > Kelly > Actually, it should be: The passwords do not match! -- View this

[S2]: When do I need to extend "ActionSupport"?

2008-04-14 Thread Zheng, Xiahong
Struts 2 promotes POJO based action. However I found most of the Action classes from the sample application extends ActionSupport? By looking at the ActionSupport class in Xwork, I found it implements quite a few interfaces, e.g. Valicateable, ValidationAware, TextProvider, LocalProvider and Action

Re: STruts 2 - populating an ArrayList from the JSP

2008-04-14 Thread Jukka Välimaa
Hi, You do need a getter for list. I don't think you need a setter, though. Your textfields should have a value attribute in addition to name, to access the getters, which I suppose you have even if you don't show them, since it displays your arraylist correctly. Is using #stat.index enough withou

Re: STruts 2 - populating an ArrayList from the JSP

2008-04-14 Thread Musachy Barroso
Look at your HTML and you will see why, you need to add %{} around #stat.index, so the name of the fields are students[0], students[1], etc. musachy On Mon, Apr 14, 2008 at 6:54 PM, <[EMAIL PROTECTED]> wrote: > I am having a similar problem to Ancat: > > I have an arrayList named 'students' in

STruts 2 - populating an ArrayList from the JSP

2008-04-14 Thread jstraub
I am having a similar problem to Ancat: I have an arrayList named 'students' in an action. I use this action to load values for a .jsp which contains the following code: This displays my arrayList correctly, but when I submit to my action, I cannot retrieve the modified

Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Guillaume Bilodeau wrote: > > Sure, you can use an ExpressionValidator annotation with an OGNL > expression like this: > > @ExpressionValidator(expression = "password1.equals(password2)", ...) > > Cheers, > GB > Thanks for the reply! I'm using field validators, so I did this:

Re: [S2] Matching string validator

2008-04-14 Thread Dave Newton
--- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: > Does struts 2 have a built in validator that will allow me to make sure two > fields match (ie, two password fields). From looking around, it seems that > struts 1 had validatewhen which could be used, but I haven't been able to > find anything for st

Re: [S2] Matching string validator

2008-04-14 Thread Guillaume Bilodeau
Sure, you can use an ExpressionValidator annotation with an OGNL expression like this: @ExpressionValidator(expression = "password1.equals(password2)", ...) Cheers, GB Kelly.Graus wrote: > > Hello, > > Does struts 2 have a built in validator that will allow me to make sure > two fields match

[S1] Strecks

2008-04-14 Thread Zheng, Xiahong
Anybody used Strecks with Struts 1.x? I was made aware of this extension project and it seems very attractive for integrating existing struts 1.x applications for struts 2 like features while preserve backward compatibility. Any thoughts? The mailing list seems to be dead; the last message posted w

[S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Hello, Does struts 2 have a built in validator that will allow me to make sure two fields match (ie, two password fields). From looking around, it seems that struts 1 had validatewhen which could be used, but I haven't been able to find anything for struts 2. Thanks! Kelly -- View this messag

Re: [S2] Textfield key with resource bundle

2008-04-14 Thread Kelly.Graus
Jeromy Evans - Blue Sky Minds wrote: > > > Thanks Kelly, that would be great because I'm sure there's a bug here > that's hard to replicate. > The model for ModelDriven gets pushed in front of the action. If it had > a getText(String) method it would have caused this problem. > > --

Re:

2008-04-14 Thread Dave Newton
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a bean which have a variable List l, this list is readed from a JSP > to show the elements. > But I would to show each elements in a different side in the HTML page so > when i write (the first two elements...) > So I can have the element

user@struts.apache.org

2008-04-14 Thread [EMAIL PROTECTED]
Hi, I have a bean which have a variable List l, this list is readed from a JSP to show the elements. But I would to show each elements in a different side in the HTML page so when i write

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
I assume you're speaking of the capabilities of the spring-plugin? http://struts.apache.org/2.x/docs/spring-plugin.html A very good article on Spring BeanFactory scope parameters can be found here: http://www.theserverside.com/tt/articles/article.tss?l=IntrotoSpring25 where Bean Factory scope is d

RE: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Brad A Cupit
wow that was a terrific explanation. Thanks Don! [note: I was not the original poster] Brad Cupit Louisiana State University - UIS e-mail: [EMAIL PROTECTED] office: 225.578.4774 -Original Message- From: Don Brown [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 10:13 AM To: Struts

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
To clarify, interceptors aren't technically singletons as each instance in an interceptor stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be used. Therefore, you do need to be careful. For example, most interceptors take parameters th

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
Interceptors are Singletons according to the documentation. If it were me I would come up with another method besides Spring for changing object properties. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: GF <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailin

Ajax file upload with Struts2 having problem.

2008-04-14 Thread sharath karnati
Hi All, For ajax file upload in struts2, I used below plugins(including apache common fileupload) AjaxFileUpload-0.03.jar json-lib-2.0-jdk15.jar After adding these .jar files into my project, when I try to access one of my page which is having tabbedpane with theme=

Re: [OT] UML and Reverse Engineering

2008-04-14 Thread Haroon Rafique
On Friday at 8:01am, AK=>Ashish Kulkarni <[EMAIL PROTECTED]> wrote: AK> Hi AK> Is there any decent Open Source tool out there which can be used to do AK> reverse engineering of Java code, AK> If not open source then some thing which really works, AK> Any input would be really appreciated AK> AK>

[S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread GF
In a guide I found on the web, the interceptor was defined as singleton in the Spring's ApplicationContext. If I need to use "changeable" object properties, I need to have it as Prototype, otherwise different requests will result in a object property overwriting. Is there any issues about defining

Re: action not getting called from struts-config

2008-04-14 Thread newBea
The java code inside ReminderAction: public ActionForward execute(ActionForm form, ActionMapping mapping, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ System.out.println("Hi"); ReminderForm reminderForm = (Reminder

Re: action not getting called from struts-config

2008-04-14 Thread newBea
/send.html gives be blank page...:( Lukasz Lenart wrote: > >> >> action >> *.html >> > > So, then try /sendmail.html > > > Regards > -- > Lukasz > > http://www.linkedin.com/in/lukaszlenart > > - > To unsubscr

Re: action not getting called from struts-config

2008-04-14 Thread Lukasz Lenart
> > action > *.html > So, then try /sendmail.html Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: action not getting called from struts-config

2008-04-14 Thread Antonio Petrelli
2008/4/14, newBea <[EMAIL PROTECTED]>: > > > struts config is not getting ReminderAction...but the configuration is > correct i guess?? I meant the Java code inside your ReminderAction class. Antonio

Re: Struts 2 URL tag problems

2008-04-14 Thread ancatdubher
Hey, That worked :-) Thanks a lot. Ancat.. hi try it View Your Account My english is not good hope this can help you gordian -- View this message in context: http://www.nabble.com/Struts-2-%3Cs%3Aa%3E-URL-tag-problems-tp16583543p16674404.html Sent from the Struts - User mailing lis

Re: action not getting called from struts-config

2008-04-14 Thread newBea
struts config is not getting ReminderAction...but the configuration is correct i guess?? Antonio Petrelli-3 wrote: > > 2008/4/14, newBea <[EMAIL PROTECTED]>: >> >> > type="com.lbi.equalito.webapp.action.ReminderAction"> >> > path="/WEB-INF/pages/remsuccess

Re: action not getting called from struts-config

2008-04-14 Thread newBea
Hey thnks for reply I am using mapping as action *.html in web.xml Lukasz Lenart wrote: > >> When i invoke /sendmail action, nothing is shown..I mean it displays >> only > > Maybe /sendmail.do will better? How did you map struts servlet in web.xml? > > > Regards > -- >

Re: action not getting called from struts-config

2008-04-14 Thread Lukasz Lenart
> When i invoke /sendmail action, nothing is shown..I mean it displays only Maybe /sendmail.do will better? How did you map struts servlet in web.xml? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscrib

Re: action not getting called from struts-config

2008-04-14 Thread Antonio Petrelli
2008/4/14, newBea <[EMAIL PROTECTED]>: > > type="com.lbi.equalito.webapp.action.ReminderAction"> > path="/WEB-INF/pages/remsuccess.jsp"/> > > ... > type="com.lbi.equalito.webapp.form.ReminderForm"> > > When i invoke /sendma

action not getting called from struts-config

2008-04-14 Thread newBea
Hi All... I am using struts1.2.9 I have an action mapping in struts-config as: the form bean definition is as: When i invoke /sendmail action, nothing is shown..I mean it displays only blank page without any excepti

Re: How do I make Tomcat send 403 Forbidden page to the client in jsp and in struts?

2008-04-14 Thread ryan webb
Thanks Randy Burgess, Your suggestion works perfectly! Sorry I didn't reply early I was out of town.. Have a nice day! -Ryan Webb On Fri, Apr 11, 2008 at 9:53 PM, Randy Burgess <[EMAIL PROTECTED]> wrote: > I wonder if specifying HttpServletResponse.SC_FORBIDDEN would make a > difference becaus

Re: Advice on dynamic form elements

2008-04-14 Thread Rene Gielen
You could also think of using a component, which would help to avoid writing a tag with tld generation and all that: http://struts.apache.org/2.0.11.1/docs/component.html Sparecreative wrote: > > Thanks Laurie, > > I actually thought of a tag file but thought it might be the lazy way out. > We

Re: Problems with default-action-ref (I was sent this message before with wrong subject...)

2008-04-14 Thread Lukasz Lenart
> the s2.1 version is only avaiable from subversion? If you using Maven, you can Apache Snapshot repo http://people.apache.org/repo/m2-snapshot-repository/ or download struts2-blank.war from here http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-blank/2.1.1-SNAPSHOT/