Assuming your ids are of type long, you could do it with a list of Long
like so in your action:
private ListLong test = new ArrayListLong();
plus the getters and setters (getTest(), setTest()).
test is the name you gave in the select (s:select name=test ... /).
Struts2 will polulate the list
Forgot to mention, this is the case with a multiple select, if the
select is simple and only one option can be selected, then a bean
property for an int or long will sufice.
Em 23-03-2010 09:33, Alex Rodriguez Lopez escreveu:
Assuming your ids are of type long, you could do it with a list of
I have mentioned the action configuration in web.xml but struts Action is
not getting initialized.
I have placed the jar file in the classpath also which is in lib folder.
Where is the problem.
Regards,
VR Venugopal Rao
-Original Message-
From: Alex Rodriguez Lopez
With the recent release of JasperReport Plug-in, Now, you can directly add
any fields, calculations(stored/un-stored), aggregations, global variables,
related fields and many more, to your Jasper Report, as you are doing in
Servoy itself. You don't have write huge SQL Query for the same. Just
Hi,
I am fairly new to Struts. I'm trying to get an application which uses Struts
to work on Glassfish v3. I have made it work on JBoss and Tomcat.
If I put struts2-core-2.1.8.jar in the classpath, loading the application
triggers the error message:
WARNING: StandardWrapperValve[jsp]:
2010/3/23 Hallgrímur Th. Björnsson hallgrimur.bjorns...@skyrr.is:
I am fairly new to Struts. I'm trying to get an application which uses Struts
to work on Glassfish v3. I have made it work on JBoss and Tomcat.
Try to use one of these
Hi,
Thanks for the reply.
Where is this typically changed? In an XML file or in the code?
Kveðja / Regards,
Hallgrímur
-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: 23. mars 2010 11:49
To: Struts Users Mailing List
Subject: Re:
Hi,
I found where to change the filter settings.
I get the exact same errors with the different filters:
java.lang.ClassCastException:
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter cannot be cast to
javax.servlet.Filter
For all 3 filters you suggested.
Kveðja / Regards,
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The following code works :
s:url id=genererRapportPDF action=affichePDF windowState= /
s:a href=%{genererRapportPDF}
Hi,
I tried to display error messages in my JSP, I put on the JSP the tag :
html:errors header=errors.header footer=errors.footer
prefix=errors.prefix suffix=errors.suffix /
In the MessageRessources.properties, I created the following entries :
errors.header=div class=errors
errors.footer=/div
I fixed this issue by changing my Cancel (submit) button to use the
action attribute for a cancel action, see change below. Sharing just
in case someone else runs into this issue.
Previously
---
s:submit value=Cancel name=redirectAction:cancelAlbum/
Fixed
--
s:submit value=Cancel
Hello,
This is a JS thing. Try:
onclick=javascript:window.open('%{genererRapportPDF}'); return false;
Gustavo
-Mensagem original-
De: Celinio Fernandes [mailto:cel...@yahoo.com]
Enviada: terça-feira, 23 de Março de 2010 13:03
Para: Struts Users Mailing List
Assunto: [Struts 2.1.8]
Hi!
How about using
target=_blank
instead of onclick?
Robert
Gustavo Felisberto schrieb:
Hello,
This is a JS thing. Try:
onclick=javascript:window.open('%{genererRapportPDF}'); return false;
Gustavo
-Mensagem original-
De: Celinio Fernandes [mailto:cel...@yahoo.com]
Enviada:
What if I'm using the app, and I want to open the link in a new tab
instead? Or how about, I want to open it in the same tab and just use
the back button once I'm done looking at the PDF?
-Brian
On Tue, Mar 23, 2010 at 8:02 AM, Celinio Fernandes cel...@yahoo.com wrote:
Hi,
I am using Struts
Target blank isn't necessarily available (e.g. writing the site in xhtml 1.1)
-Brian
On Tue, Mar 23, 2010 at 10:06 AM, Robert Graf-Waczenski r...@lsoft.com wrote:
Hi!
How about using
target=_blank
instead of onclick?
Robert
Gustavo Felisberto schrieb:
Hello,
This is a JS thing.
Hello,
You can avoid opening of the link in the current window removing the
href attribute from s:a tag.
Florin Cazacu.
Celinio Fernandes wrote:
Hi,
I am using Struts 2.1.8.
In a JSP, I have a link which calls an action. I want to open that link in a
new window. The following code works :
I'm seeing some weird behavior in ActionSupport.getText() that is causing me
some problems in Struts 2.0.14. From the docs (and my previous experience),
getText() retrieves entries from the resource bundle's associated with the
application. But for some reason, in my current instance it's trying
Chris Pratt wrote:
for some reason, in my current instance it's trying to
evaluate the resource bundle key as an OGNL expression.
A couple weeks ago I finally took the time to look at lots of the
warning output in my log files and was able to use that to fix a few
buggy ognl expressions (yay
18 matches
Mail list logo