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
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
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.
+
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
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
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
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
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
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
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
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
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
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
Hi All,
Struts have some way to do the validation for multiple fields?
Décio
--- "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,
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
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
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
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
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
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:
--- "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
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
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
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
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.
>
> --
--- "[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
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
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
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
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
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
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=
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>
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
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
/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
>
> 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]
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
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
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
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
> --
>
> 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
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
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
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
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
> 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/
48 matches
Mail list logo