I have two select box. Suppose the initial values of the select boxes are as
follow :-
s:select name = select1 list=#{'Mandatory':'Mandatory',
'Optional':'Optional', 'Critical':'Critical'} size=3/
s:select name = select2 list=#{'Mandatory':'Mandatory'} size=3/
There will be two button Add and
that's part of my decorator file:
-
next is web.xml
struts-cleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
sitemesh
com.opensymphony.module.sitemesh.filter.PageFilter
struts2
org.apache.struts2.dispatcher.FilterDispatcher
Hi Ryan,
Thats lovely.. :)
But I don't want so many buttons.
I need only two button as Add and Remove.
How to do that?
On Tue, Apr 15, 2008 at 12:31 PM, Ryan [EMAIL PROTECTED] wrote:
I believe these will help you out a bit:
http://struts.apache.org/2.0.11/docs/optiontransferselect.html
I believe these will help you out a bit:
http://struts.apache.org/2.0.11/docs/optiontransferselect.html
http://www.roseindia.net/struts/struts2/struts2uitags/optiontransferselect-tag.shtml
Cheers!
Ryan
On Tue, Apr 15, 2008 at 1:54 AM, Arpan Debroy [EMAIL PROTECTED]
wrote:
I have two select
Thanks Ryan,
My purpose is done. There are lot of options to change the label of the
buttons and to remove them from the page also.
On Tue, Apr 15, 2008 at 12:55 PM, Arpan Debroy [EMAIL PROTECTED]
wrote:
Hi Ryan,
Thats lovely.. :)
But I don't want so many buttons.
I need only two button as
Flash scope is fairly common nowdays (for displaying messages) I
wonder if S2 2.011, has anything similar?
thanks,
Alex.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oh, didn't see the 2.0.11.1 requirement...not sure if the message
store interceptor code is in that branch, but the scope plugin should
work just fine.
Don
On Tue, Apr 15, 2008 at 7:19 PM, Don Brown [EMAIL PROTECTED] wrote:
There is the Struts 2 Scope Plugin [1], which does flash scope and a
hello everybody,
my need would be to click a link in my web page,
and to associate a variable parameter to it,
giving the possibility to the action java code to
recognize the parameter string and compute a logic
depending on its value; to be more clear, i visualize
a dinamyc number of links, one
There is the Struts 2 Scope Plugin [1], which does flash scope and a
lot more. Also, the message store interceptor, available in core
out-of-the-box, will persist action and error messages across a
redirect in a flash scope, which is very handy for registering
validation errors on a POST but
Hi,
back again with my problem. The root cause is:
SCHWERWIEGEND: Exception sending context initialized event to listener
instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
On Tue, Apr 15, 2008 at 11:33 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
hello everybody,
my need would be to click a link in my web page,
and to associate a variable parameter to it,
giving the possibility to the action java code to
recognize the parameter string and compute a logic
The error message is pretty clear, you're missing some classes in your
classpath. The compile time classpath and runtime classpath is usually
not the same. Make sure that you have the required jar files in your
runtime classpath.
Nils-H
On Tue, Apr 15, 2008 at 12:04 PM, Peter Theissen [EMAIL
Hello,
I wish to display/read value that belongs to an enumerated type. Struts
seems to handle Class and Enum differently. For instance,
*xwork-conversion*
com.company.utils.Constants.EducationalQualification=com.company.ui.utils.EducationalQualificationConverter
hi,
A simple workaround would be defining the bean property as String type
rather than as the actual enum.
Then use the two enum type built in operations name() and valueOf()
to implement the getter and setter respectively.
If there is actually an elegant way to do it, I would also be
Hi
On Tue, Apr 15, 2008 at 12:29 PM, Ramanathan RV [EMAIL PROTECTED] wrote:
Hello,
I wish to display/read value that belongs to an enumerated type. Struts
seems to handle Class and Enum differently. For instance,
*xwork-conversion*
Perhaps this would be better asked on a mailing list relating to databases.
--- ryan webb [EMAIL PROTECTED] wrote:
I want to store a file (any file mp3, avi, etc) on the database without
using blob datatype.
No, you want to store the path of a file in the database.
I just want to put the
Just about every single S2 action I have ever created uses Spring to inject
a service object of some sort into the action. I use Spring for
transactions, SLSB's, MDB's, JDBC, Hibernate, you name it.
Ganfab asked about injecting a new instance of an object into a custom
interceptor on every action
There is also a flash result type / interceptor in webwork - very easy
(2 min) to convert to s2.
/Ian
Don Brown wrote:
There is the Struts 2 Scope Plugin [1], which does flash scope and a
lot more. Also, the message store interceptor, available in core
out-of-the-box, will persist action and
Well your requestURI is not set so the URL is set to the current JSP and not
the action. I have never had any success leaving requestURI blank with
DisplayTag on S1 or S2. I always set it to the name of an action.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
link to the webwork Flash result Ian mentioned:
http://wiki.opensymphony.com/display/WW/Flash+Result
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2008 8:39 AM
To: Struts Users Mailing List
Subject:
Hi,
I am planning to use struts 2. But in my application , I have to load
different resouce bundle for different group of users.
For Instance,
User A, Belongs to Group A logs into the application, different set of
labels need to be displayed.
User B, Belongs to Group B logs into the
INF/applicationContext.xml]: problem with class file or dependent
class; nested exception is java.lang.NoClassDefFoundError:
org/quartz/SimpleTrigger
You missed some quartz jar file.
2008/4/15, Peter Theissen [EMAIL PROTECTED]:
Hi,
back again with my problem. The root cause is:
I must be missing something obvious here, but I can't seem to get my
checkboxlist to prepopulate.
s:checkboxlist name=platformsKeys value=platformsKeys
list=allPlatforms listKey=value listValue=label /
platformsKeys is a array of integers and allPlatforms is a list of objects
with the key being
I am facing an interesting situation and looking for feedback. I am really
enjoying minimal action configurations such as:
action name=wizard_* class=acme.action.wizard.Wizard
method={1}
result/pages/wizard/${nextPage}.jsp/result
/action
No, the workflow interceptor will check for errors and return 'input'
if there are any:
http://svn.opensymphony.com/fisheye/browse/~raw,r=1630/xwork/trunk/src/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java
In your case, why don't you remove the workflow interceptor?
hernan gonzalez wrote:
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
Hi all,
sorry to continue with that OT thread, but its starting to get
really mad out here. But first of all, thanks for the hint that
the runtime classpath (rcp) has to be configured independently.
Well, I tried that but it ended up in a mess!
Of course, first thing I did was adding spring.jar
There's nothing in Struts that will take care of this directly. Ideally
your users should be able to enter whatever characters they want; I would be
looking at how to get the database layer to cooperate, instead of imposing
arbitrary input restrictions based on the current database
Yes very clear thank you
so the default assignment of scope=singleton happens under these scenarios:
1)bean creation defaulting to singleton as in ApplicationContext
2)beanFactory supports registerSingleton
then a singleton bean can be set to lazy-initialize (that is not be
pre-instantiated).
Hi,
I'm using Struts 2.0.11.1, and I have wierd problem with select UI tag. It
works perfectly, but
when I added namespace to the package in struts.xml, which is used in form
where this select tag
is located, I get an error:
tag 'select', field 'list', id 'roles', name 'user.roles': The
Hi there,
I have an action/form that contains properties x, y, z with values 1, 2,
3. I have a .JSP where I want to write out the values of them dynamically.
c:set var=currentProperty value=x/
How do I write a s:property value=/ using currentProperty that would
result it showing my
--- JRD [EMAIL PROTECTED] wrote:
I have a .JSP where I want to write out the values of them dynamically.
c:set var=currentProperty value=x/
How do I write a s:property value=/ using currentProperty that would
result it showing my actions value (1).
If I were using runtime
I am trying to implement a custom exception mapping interceptor to be used
in my struts2 portlet. I implemented my own ExceptionMappingInterceptor
class that is similar to
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor, the only
difference is that I send an email with the
hi there (esp Mus),
I am try-ing Struts2GWTPlugins Demo
and i got there is 2 project, 1 the client and the other is the web, both
under the src
i have succesfully make the web become the war.
and i see the other folder struts2gwtdemoclient, it is a GWT project
can u explain to me, how to
As a basic rule of thumb, you shall _never_ add the servlet-api.jar or
servlet.jar to the WEB-INF/lib folder (if that's what you are doing)
Consider reading this:
http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
If
Hi All,
I am facing a strange issue. I am using Struts 2.0.11 on Websphere 6.1 with
JDK 1.5.
Thing is, I am using result type redirect-action and redirect to
redirect to a different action for certain scenarios in my action class.
This works fine from my local workstation. But when we deploy our
Hi Randy,
I also tried to set requestURI.
I'm having lots of problems with components inside tabbedPanels...
For example:
This example works outside a tabbed panel:
2. Attach to onmouseover, and onclick event on Area below and update
content of Div1, highlight targets with green color
I've never used that method of injection so I wouldn't comment on it one way
or another, I just found it in the Spring documentation.
If you don't declare the scope for a Spring bean it defaults to singleton.
It will never be a prototype unless you explicitly declare it as such using
either
Hi Peter,
Please try adding the quartz.jar or spring-quartz.jar to your classpath. You
can check out http://www.springframework.org for the dependencies of the spring
version you're using.
Pls don't add anymore jars at the moment. Also, I would suggest reverting your
original classpath
Dear Dave,
Thank you for your time in replying to my mail.
Yes you are correct my english is quite confusing.
I will follow your advise and ask to database mailing-list.
regards,
Ryan Webb
On 4/15/08, Dave Newton [EMAIL PROTECTED] wrote:
Perhaps this would be better asked on a mailing list
I myself found the solution.
To open link in the new window, do as it is mentioned below.
s:url id='abc' action='xyz'/s:url
s:a href='#' onclick=javascript:window,open('%{abc}');test/s:a
this is working for me. I hope this solution can help you guys also. =)
Mohiit wrote:
I am using Struts
41 matches
Mail list logo