I have a action class extending actionsupport
in which I have a getters and setters for a HashmapString,String
in my execute I populate the hashmap.
But in my select it is not showing
This is code in my jsp.
s:select label=DashBoard
name=dashBoardSelector
thank for the reply
Can you please help me out, how i can do this implementation using AJAX
call.
Thanks in advance
Joseph
Zarar Siddiqi wrote:
Yeah, you're going to have to load them every time. You could store
the collections in session or application scope if that's feasible but
other
Yes, tiles-default extends struts-default.
Here's the content of struts-plugin.xml from the library
struts2-tiles-plugin-2.0.9.jar
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
Hello all,
In my Struts2 project, I use a custom ResourceBundle which takes i18n in a
database and cache them.
I have configured Struts to use it in struts.xml like this :
constant name=struts.custom.i18n.resources
value=com.xxx.xxx.i18n.StrutsResourceBundle/
And it works !
But I want to
Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
or use Webwork 2 instead?
Thanks in advance
--
It's not just about coding, it's a matter of fulfilling your core being
YM!: thejavafreak
Blog: http://joshuajava.wordpress.com/
Hello:
I am working in Struts 2 and would like to override
the default behavior of Add and Remove button which
are rendered by the OptionTransferSelect tag. Can I do
this?
Regards,
Shoaib Ahmad
2007/10/4, Joshua Jackson [EMAIL PROTECTED]:
Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
or use Webwork 2 instead?
You have to use Struts 2 jars for JDK 1.4:
http://struts.apache.org/download.cgi#struts209?update=200707231930
Download: struts-2.0.9-j4.zip
HTH
Pavel Sapozhnikov wrote:
Second about this ApacheCon...will the power point or pdf slides be
available after the conference has ended?
Comparing Java Web Frameworks from Matt Raible is already available
http://raibledesigns.com/rd/entry/ja_sig_comparing_java_web
Hi, Vinny
i also try urlrewrite but cannot get it work with struts 2's action,
only work with static html files.
would you pls give give me some sample app or guides to
have
my urls go from this : /myAction.do?p1=v1p2=v2 to
/myAction/p1,v1/p2,v2/
best regards,
-
I have an object named ticket in may Action class.
this object has an attributes which has an attribute which has an
attribute which has an attibute.
When I want to display it in a textfield, I use the synthax below:
td
s:textfield onkeydown=return false; name=
ticket.asset.underlying.reference
For performance problems, be sure to follow the advice on this page.
* http://struts.apache.org/2.x/docs/performance-tuning.html
If you do all of these things, and still consider the performance
unacceptable, then I doubt that Struts 2.1 will make a startling
difference. If performance is the
On 10/2/07, Tom Holmes Jr. [EMAIL PROTECTED] wrote:
web-project altogether with just Struts2 ... no Spring2 and no Hibernate.
What are you using instead of Hibernate (or the like)? I mean JDBC
works, but ... ugh ... those were the bad old days. Or, is the plan to
use Toplink as a JPA provider?
The native Struts2 solution would be to use an interceptor, or to
piggy back on an interceptor that already exists. Writing your own
interceptor is not difficult
* http://struts.apache.org/2.x/docs/writing-interceptors.html
and I would suggest that everyone at least try writing one interceptor
If it does, please feel free to file a issue ticket against 2.1.0.
* https://issues.apache.org/struts/browse/WW/fixforversion/21794
-Ted.
On 10/4/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
We did all of the things described in the performance-tuning tips.
But we've been using
We did all of the things described in the performance-tuning tips.
But we've been using intensively ajax tag (datetime picker and
autocompleter).
Theses two tags force us to include the killing head tag.
When we removed them (removing the head tag in the same time) our pages
are faster (a least
It also looks like Manning has released Struts 2 in Action through their
Early Access Program!
http://www.manning.com/dbrown/
On 10/4/07, Ted Husted [EMAIL PROTECTED] wrote:
On 10/2/07, Tom Holmes Jr. [EMAIL PROTECTED] wrote:
web-project altogether with just Struts2 ... no Spring2 and no
Double check that your action has a public getTicket() and that it has a
public getAsset() and that it has a public getUnderlying() and that it has a
public getReference(). As you probably know, spelling and case matters :)
Scott
On 10/4/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have
The class that is handling your ResourceBundle is -
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/util/LocalizedTextUtil.html
'findResourceBundle(String aBundleName, Locale locale)' looks
promising, but I'm guessing it's not what your looking for.
It doesn't appear that there is
I am having some trouble with some struts 1 interface code. I have an
object that contains an unknown number of key/value pairs and I want to
display them in a checkbox where the checkbox value is the key and the
Label is the value. I am having no problem iterating and binding the keys
to
Hi!
I use struts2 and want to load object in action1 and then access in in
action2 and result jsp, like on drawing
my1.html -(myobject.id)- action1.save -(myobject)- action2.edit
-(myobject)- my2.jsp - my2.html
I do not want to load this object in action2.edit if it was already loaded
in
If you use the Spring framework, you can define your object as Spring
beans and have them injected to your action.
-Original Message-
From: ros [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 10:21 AM
To: user@struts.apache.org
Subject: how to keep object from action to
So you have no problem if you only nest attribute less than 4 times? I
thought you have to use the value parameter to pull the value to the
page. Were you able to set the attribute?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007
nevermind. I figured it out
I am having some trouble with some struts 1 interface code. I have an
object that contains an unknown number of key/value pairs and I want to
display them in a checkbox where the checkbox value is the key and the
Label is the value. I am having no problem
How do you populate s:select with action or for that matter from any other
file which can be commonly used to populate s:select on other pages?
Please help me with this
Its URGENT
-
Forgot the famous last words? Access your message archive online.
Hello,
I have two s:select drop downs on my page, lets call them x and y. When
I change the value of x I populate y using the onchange attribute
calling a javascript function. If the user then tries to submit the
form with errors my validation kicks in and refreshes the page showing
the field
Hi,
Thanks a lot for your replies :-)
I found the solution to my problem. It was a case of missing name
parameter in the html:select.
I had used html:select property=xyz. It was showing the values from
previous form object.
Thanks a bunch!
Regards,
Ramita
Antonio Petrelli-3 wrote:
Hi,
You can try using DWR for AJAX implementation...Its very easy to use. There
are few other libraries like prototype.js, DOJO toolkit...I haven't used
them but you may want to explore them too...
I have worked on DWR and its really helpful...
Regards,
Ramita
Jose4u wrote:
thank for the
Yes, I use spring. I will describe question in details:
Same situation
my1.html -(mypojo.id)- action1.save -(mypojo)- action2.edit-(mypojo)-
my2.jsp - my2.html
action1 loads mypojo:
class action1 {
..
private mypojo;
setMypojo()..
getMyPojo()
...
public String save () {
mypojo =
If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your
object factory, and you define mypojo in your action to match your bean
id in the application context, mypojo will be automatically injected for
you by the spring framework. You don't need to use
myManager.loadPojo().
You
thanks Ramita
Can u send a sample code and if any help material
and can u provide how it can be done in this implementation.
Ramita Gambhir wrote:
Hi,
You can try using DWR for AJAX implementation...Its very easy to use.
There are few other libraries like prototype.js, DOJO toolkit...I
Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml?
struts.xml?
Thanks.
Jiang, Jane (NIH/NCI) [C] wrote:
If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your
object factory, and you define mypojo in your action to match your bean
id in the
Thanks for the replies. I haven't tried jadeclipse and eclipse europa. I
will try them to and see how debug mode works. One thing I wansn't able to
figure out. why do we need source files of third party jars. Even the java
jre we include is like third party to eclipse. Still it is able to debug
I just used a hidden field to save the index. Easier way?
-Jason
On Thu, 2007-10-04 at 11:07 -0400, Jason Deffenbaugh wrote:
Hello,
I have two s:select drop downs on my page, lets call them x and y. When
I change the value of x I populate y using the onchange attribute
calling a
--- Viplav Kallepu [EMAIL PROTECTED] wrote:
why do we need source files of third party jars.
So you can see the source if you're
debugging/executing something in a class contained in
one of the third party jars. You don't *have* to have
them, especially if you don't care about what's going
on in
Dear all,
I've been struggling with a Permgen error on my application's development:
after a number of re-deployments, I get a permgen memory error in Tomcat 6
(described in more detail here
http://www.nabble.com/forum/ViewPost.jtp?post=12984476framed=y
You must be using Spring framework but not the Spring plug-in. Here is
the link to help you setup.
http://struts.apache.org/2.x/docs/spring-plugin.html
-Original Message-
From: ros [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 12:18 PM
To: user@struts.apache.org
Subject:
Hi,
I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper IDE
ver 10.1.3.3.0.
I have created the following validation in validation.xml file.
field property=size depends=floatRange
msg name=floatRange key=error.SizeRange /
Hey Rapsy,
just a quick thought, shouldn't the arguments start at index 0? this meaning
that you should have
arg0 name=floatRange key=${var:min} resource=false/
arg1 name=floatRange key=${var:max} resource=false/
??
-Cesar
- Original Message
From: rapsy
There is probably very little difference between the nightly build and
trunk, I have found it's pretty easy to just build from trunk. If you
don't have them already, get subversion and maven (both small
downloads) and build it yourself.
Follow the instructions from this thread -
I found that same problem trying to use the disabled parameter of the
form tag. I did a search on the generated html and found not one
element with the disabled attribute. Any one else?
-Original Message-
From: Session A Mwamufiya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08,
I don't think that matters but I gave a try just in case. The error message
is now changed to:
(Error) Invalid element 'arg0' in content of 'field', expected elements
'[msg, arg, var]'.
Thanks for your reply!
Cesar Arevalo wrote:
Hey Rapsy,
just a quick thought, shouldn't the arguments
Thank you for the suggestion, but unfortunately I still can't figure out how
to get it to build as this is my first experience with Maven.
I noticed someone placed struts-2.1.0-SNAPSHOT-lib.zip in the nightlies
directory which I appreciate greatly, but while it includes most of the
plugins, the
Thanks guys, I didn't know the c:forEach tag could be used that way.
But now I've found a Struts related problem: according to the Struts taglib,
the list attribute is obligatory for the s:select tag, therefore I can't
use a inside s:param tag with a FOR loop to fill it.
Thanx anyway :-)
On
Wes Wannemacher wrote:
There is probably very little difference between the nightly build and
trunk, I have found it's pretty easy to just build from trunk. If you
don't have them already, get subversion and maven (both small
downloads) and build it yourself.
Follow the instructions
The dependency seems to be fine (it was broken before). On core:
dependency
groupIdcom.opensymphony.xwork/groupId
artifactIdxwork/artifactId
version2.1-SNAPSHOT/version
/dependency
on xwork trunk:
groupIdcom.opensymphony.xwork/groupId
artifactIdxwork/artifactId
On 10/4/07, chengas123 [EMAIL PROTECTED] wrote:
Wes Wannemacher wrote:
There is probably very little difference between the nightly build and
trunk, I have found it's pretty easy to just build from trunk. If you
don't have them already, get subversion and maven (both small
downloads)
--- chengas123 wrote:
I was trying to build myself, but I'm afraid I can't
agree that it's pretty easy. It appears the pom.xml
files are broken along with who knows what else.
As I said, aside from the XWork pom.xml issue I found
building trunk was very straight-forward. Perhaps if
you
Yes, it is working for me now. I checked out the project and did not have to
change any of the pom.xml files. I will let you know how my performance
tests go with the new plug in.
Thanks,
Ben
Musachy Barroso wrote:
The dependency seems to be fine (it was broken before). On core:
Hi ,
I have started developing my application using Struts-2. Now my
requirement is I need to use another application(separate WAR file) with
this new one. This other application is written strut1 framework. My
question is how do I make calls to the actions in struts-1 from my
jsps/actions.
These pages help you:
http://www.penguin-soft.com/penguin/developer/struts/userGuide/dev_validator.html
http://wiki.apache.org/jakarta-commons/ValidatorXmlFile
The error is telling you that the 'arg0' should not be put there, maybe there
is something wrong, hope those pages help you.
-Cesar
One thing to keep in mind is that you will have to migrate from the old struts
tags with theme=ajax to the new ajax specific struts tags. I found that the
new tags were basically the same as the old ones, but I did have to go through,
drop the theme, and change the tag library. It's probably
How can I forward to a url from within my action class? For example, instead
of 'return SUCCESS' I just want to call another action... something like
'return SomeAction!doit.action. Any ideas? Thanks in advance.
_
Windows Live
How about -
action name=YourFirstAction class=...
result type=redirect-action
param name=actionNameYourSecondAction/param
/result
http://struts.apache.org/2.0.9/docs/redirect-action-result.html
The downside is that it is a redirect, so you any data from
YourFirstAction that
--- Henry Park [EMAIL PROTECTED] wrote:
How can I forward to a url from within my action
class? For example, instead of 'return SUCCESS' I
just want to call another action... something like
'return SomeAction!doit.action. Any ideas? Thanks
in advance.
Define a result that either chains or
I would start here -
http://struts.apache.org/2.0.9/docs/struts-1-plugin.html
-W
On 10/4/07, Leena Borle [EMAIL PROTECTED] wrote:
Hi ,
I have started developing my application using Struts-2. Now my
requirement is I need to use another application(separate WAR file) with
this new one.
hi. i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1
on windows and am getting an exception when i deploy my .war file.
18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found.
(please let me know if you'd like to see the full exception text)
however, web.xml
Hey, what version of the jboss-web.dtd are you using, see here for the types:
http://www.jboss.org/j2ee/dtd/
I see that the context-root element is not in the
http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is present.
Thanks Antonio,
I didn't know about that.
Cheers,
joshua
On 10/4/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
2007/10/4, Joshua Jackson [EMAIL PROTECTED]:
Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2?
or use Webwork 2 instead?
You have to use Struts 2
Hi
I am behind a firewall, and also donot have proxyHost to change
settings of maven and svn to work properly.
Can somebody please pass me the jars that comprise struts2.0.10 . I need
the tiles plugin as well.
Kindly please point me to a location where I can download or mail the
jars to my
59 matches
Mail list logo