First of all, thanks for replying. I really appreciate it. Making a single
action class will make the classes very bulky and complex. I dont want to
have that. I used the remote tabs functionality in tabbed panel but all it
does is that it goes into a infinite recursive loop. It adds infinite
Chris,
I've used the StoreInterceptor and my opinion is that it just isn't flexible
enough to use.
To illustrate the point, consider try following;
1) You have a View Action which displays all of the data of a specific type,
which uses the StoreInterceptor in retrieve in order to show
On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton [EMAIL PROTECTED] wrote:
Chris,
I've used the StoreInterceptor and my opinion is that it just isn't
flexible enough to use.
To illustrate the point, consider try following;
1) You have a View Action which displays all of the data of a specific
Hi,
Wanted to get opinion from the struts2 user community if there are any
advantages/disadvantages of using one approach over another (Xml vs Annotation
based validation).
Nope ;-)
There is no one good answer for your question, because it depends ;-)
For me, the best thing is, you can
Hi,
so, if I extend this action, the action will query and get security
permission from database.. because i prefer database driven ..
You can do this with Acegi and even combine database with LDAP or with
something else.
I have used such solution in my projects.
but i thinking a
Of course, but in this page there is a section To upgrade from Struts Menu
1.x to Struts Menu 2.x... So I guess it should work with this. I wouldn't
have even tried if there hadn't been this section...
Anyway, I think someone managed already, and I would like to know how to
configure the files...
Chris,
I'm familiar with the code, but the main problem is that there is a paper
wall between the StoreInterceptor and the jsp tags, so that one does not
know or rely on how the other works.
As far as I'm aware this is only a philosophical decision, and there is no
technical reason why the
Thank you for reply!
I just wonder:
I understand it would work out of box for 1 User-Object, if I bound checkbox
to permission property of this user.
But I wonder it should work out of box if I use (as I described) Collection
of Users in Action
and on jsp side iterator tag, and checkbox tag
That's talking about upgrading from 1.x to 2.x of Struts Menu isn't it?
I had a quick look at their Getting Started docs, and I think you would
want to follow the Using Struts Menu outside of Struts documentation.
The only thing I see that's Struts 1 specific is the plug-in
configuration in
Provided the checkbox is properly bound to the collection entry, yes.
You need to specify the name of the s:checkbox (or any other input type)
as userCollection[index].userProperty where 'userCollection' is the name
of the Collection property on your action, index comes from the iterator
and
Adam Hardy on 02/04/08 12:23, wrote:
Can I have a second struts.xml in my test directory, and if so, how do I
configure it?
I'm testing some stuff using HttpUnit which launches the whole webapp in
my tests. Having a test-only struts.xml will keep the test mappings out
of the real webapp,
I am runing my app on jetty and I am getting the Error below (edited
to hide private info)
I have a page that contains this JSP:
s:action name=countriesLookup namespace=/lookup id=cl
executeResult=false /
s:actionerror/
s:form action=helloWorld
s:textfield label=What is your name?
I have a problem that seems to occur periodically.
My freemarker templates, served by struts2, stop appearing - I get a blank
page. There are no useful messages in the logs, other than saying that it
couldn't find the template (which it could find previously).
First question - does anybody know
--- Niral Trivedi [EMAIL PROTECTED] wrote:
I am using Struts 2.0.11 on RAD7, Webspher 6.1, JDK 1.5.
Hey, me too. My sympathies.
I am trying to create radio buttons using a dynamic Map as below:
s:bean name=java.util.HashMap id=keepRemoveRadioMap
s:param name=Keep value=john/
A servlet filter is relatively easy if you are going to put restrictions on
the actions alone and you don't have to mess with interceptor stacks. We've
done both interceptors and a filter and the filter is lower maintenance.
Just put the filter before the struts 2 filter in your web.xml. If you
Hi,
i want to know if it 's possible to allow multiple selections in same
datetimepicker struts2 component? (to select more than one date)
thanks
--
View this message in context:
http://www.nabble.com/struts2-datetimepicker-multiple-selections-tp16467478p16467478.html
Sent from the Struts -
Showcase uses sitemesh and the tab links are on the sitemesh template.
If you are just starting you will find it easier to play with
struts-blank (distributed with struts).
musachy
On Thu, Apr 3, 2008 at 10:50 AM, ghan_java [EMAIL PROTECTED] wrote:
hi all, i am new to struts 2 ,
i have
Copy paste error, you need to initialize the Dispatcher with your testConfig
map:
MapString, String testConfig = new HashMapString, String();
testConfig.put(config,
struts-default.xml,struts-plugin.xml,struts.xml,struts-test.xml);
dispatcher = new
Hello all.
I am using MyEclipse, JBoss 4.0.2, and Struts 1.3.8. I have an exploded war
file directory that contains the skeleton files for my Struts app. When I
deploy to JBoss using the MyEclipse facilities for this, I get a
java.lang.NoSuchMethodError:
You need to have access to the Dispatcher and the ServletContext in your tests,
but you could do something like this for per-unit test configurations:
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(
struts-test.xml, true, servletContext);
hi all, i am new to struts 2 ,
i have download a struts's application (struts showcase) and run it . it's
working fine , but i am not able to get how it's(page) header set (where
are different tabs for different application) .
if i want to change this header , we i need to change ??
--
2008/4/3, DWilkerson [EMAIL PROTECTED]:
I am using MyEclipse, JBoss 4.0.2, and Struts 1.3.8
...
java.lang.NoSuchMethodError:
org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)
ModuleConfig.findActionConfigId has been introduced since Struts 1.3.6.
Thanks for the reply Antonio. I sincerely appreciate it.
I solved the problem. Figures as soon as I go on a posting spree...lol. It's
the way it always works.
When clicking Redeploy in MyEclipse to push your updated files to the
server, MyEclipse didn't delete the Struts 2 jars from my
On Thu, Apr 3, 2008 at 1:03 AM, Al Sutton [EMAIL PROTECTED] wrote:
Chris,
I'm familiar with the code, but the main problem is that there is a paper
wall between the StoreInterceptor and the jsp tags, so that one does not
know or rely on how the other works.
As far as I'm aware this is
Hi All,
I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
starting with Struts2.
I'm creating a web application. I jus want to initialize the system before
the application startup. Like reading certain config files, initializing the
Connection Pool, creating DAO factory..
Hello,
I wish to connect the s:autocompleter and s:div so that when the value in
autocompleter changes i need to refresh the div content to retrieve its
values.
here the code that i currently have
s:div cssClass=formcontainer href=%{EmailDistributionList_Load}
theme=ajax
Hi All,
I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
starting with Struts2.
I'm creating a web application. I jus want to initialize the system before
the application startup. Like reading certain config files, initializing the
Connection Pool, creating DAO factory..
The action messages and errors are stored in a request attribute which is
why the don't survive a redirect.
I played around with some ideas and found that Freemarker (the template
language used for the tags), is just too dumb to clear session scoped
variables (which would survive a redirect
--- JiVi [EMAIL PROTECTED] wrote:
I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
starting with Struts2.
I'm creating a web application. I jus want to initialize the system before
the application startup. Like reading certain config files, initializing
the
I am trying to deal with the same issue. Did you get any resolution?
Following on from the reply asking for a stack trace, here is what I am
getting...
java.lang.NullPointerException
at
com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:299)
at
Hello everbody,
I'm new to Struts2 and also this mailing list.
I'm programming a user management for a non-profit organisation.
My question is now:
I have started with the basic struts2 application. In the index.jsp
there is a form which looks (nearly) like this:
s:form
Hi guys,
in struts2 i have a class that extends ActionSupport.
In my validate method i can use clearErrorsAndMessages(); but when i try
clearFieldErrors() eclipse can not find it .
Should i put setFieldErrors(null); or extend another class ?
I appreciate your replies.
Regards,
Leon
I think what you are looking for is:
s:hidden name=status value=waiting /
This creates a hidden input field in the form which then passes the status
parameter to the request when the form submits.
On 4/3/08, Peter Theissen [EMAIL PROTECTED] wrote:
Hello everbody,
I'm new to Struts2 and also
The problem is that the notify topics are published multiple times
(before request, after request and on error). A parameter is passed to
the topic listener indicating when the topic is fired. Search the
archives for examples (dojo.event.topic.subscribe), also look at the
ajax examples on
I recommend creating an action context. Here is the basic guide I followed to
do so:
http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
If you are not using spring or the struts2 spring plugin, you can cut out all
the code around the applicationContext.
Hi. This question may be very simple to answer, but it's driving me
crazy. If I have code similar to:
s:iterator value=intList
/s:iterator
Where intList is of type ListInteger, how do I reference to current
Integer on the value stack without using s:property /? So I want to
reference
Use the id attribute in the for tag, like id=currInt.
musachy
On Thu, Apr 3, 2008 at 4:38 PM, Eric Nelson [EMAIL PROTECTED] wrote:
Hi. This question may be very simple to answer, but it's driving me
crazy. If I have code similar to:
s:iterator value=intList
/s:iterator
Where
Hi All,
I'm having following tabbedpanel,whenever I select a tabbed pane I'd like
to call a javascript method. I tried onselect/onclick but these are not working.
s:tabbedPanel id=tabContainer cssStyle=valign:top; height: 500px;
doLayout=true
s:div id=Panel1
I meant iterator tag ;)
musachy
On Thu, Apr 3, 2008 at 4:52 PM, Musachy Barroso [EMAIL PROTECTED] wrote:
Use the id attribute in the for tag, like id=currInt.
musachy
On Thu, Apr 3, 2008 at 4:38 PM, Eric Nelson [EMAIL PROTECTED] wrote:
Hi. This question may be very simple to answer,
Not sure I understand your question ... but
Are you aware of the status attribute in the iterator tag?
Something like:
s:iterator value=intList status=rowstatus
option value=rowstatus.count...etc
/s:iterator
On Thu, Apr 3, 2008 at 2:54 PM, Musachy Barroso [EMAIL PROTECTED] wrote:
I meant
If it works without theme set to ajax, it's probably a client-side
issue. What browser are you using? Are there any Javascript errors reported?
L.
xianwinwin wrote:
thank you Laurie for your reply.
I made a type - its str not the Note. so the str is null :-(
when I remove the theme=ajax it
Hi,
What´s diference of use between s:include and jsp:include.
Thanks
Herrera
--
View this message in context:
http://www.nabble.com/s%3Ainclude-ou-jsp%3Ainclude-tp16473172p16473172.html
Sent from the Struts - User mailing list archive at Nabble.com.
I'm such an idiot. This works great. Thanks Musachy.
--Eric
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2008 2:54 PM
To: Struts Users Mailing List
Subject: Re: s:iterator tag help
I meant iterator tag ;)
musachy
On Thu, Apr 3, 2008
Have you looked at the s:action tag? It sounds like that could solve at
least part of your problem. I'm still not clear how you expect two
actions designed in isolation to suddenly be able to work in tandem
without modification. As I say, you can't submit a request to more than
one action at
Hello,
I've been spending the last couple months familiarizing myself with a few
java based web technologies, mainly Struts 2, Spring, and Hibernate. I have
a decent understanding of Struts, enough to make a few simple example
webapps that have helped me learn the concepts (along with a lot of
Jonny Cavell wrote:
I have a problem that seems to occur periodically.
My freemarker templates, served by struts2, stop appearing - I get a blank
page. There are no useful messages in the logs, other than saying that it
couldn't find the template (which it could find previously).
First
Hi,
1. Is this login web service something that is actually commonly used?
Yes and no, mainly because WS is session-less and you have to manage
the session token by your self. We use such approach internally,
through ssl and we manage session expirations by hand.
2. Is this what a web
Hi All!
This is my first e-mail.
My name is Márcio Gurgel, I'm from Brasília (Brazil). My english isn't very
well, I hope you understand (:
There's 10 months that I'm working with J2EE.
I'll finish my graduation this semester, than I'm developing a final project
using Struts 2.
So, I have a
Brian, thanks for the low-down. It works well.
Regards
Adam
Relph,Brian on 03/04/08 15:53, wrote:
Copy paste error, you need to initialize the Dispatcher with your testConfig map:
MapString, String testConfig = new HashMapString, String();
testConfig.put(config,
Hi Márcio,
First, check that the sort and pagination links rendered in the HTML
appear valid. I have seen cases where the URL is corrupt because it
includes the original request parameters, resulting in the action being
invoked with an unexpected result.
They should look like:
I see that Lukasz already has a longer response, but if I am reading
your request properly, then I think you might be looking for CAS -
http://www.ja-sig.org/products/cas/
-Wes
On Thu, 2008-04-03 at 16:00 -0700, Kelly.Graus wrote:
Hello,
I've been spending the last couple months
Hi Dave,
Thanks for the reply. I've actually tried with #keepRemoveRadio as well but
got same result. In fact, I got it working by putting john or doe as
below for s:param property:
s:param name=*Keep* value=%{'john}/
Moving ahead, now stuck with a different issue. Actually, I want to create
I need to integrate tiles in struts 1.3.9 i have included the jar files and
tlds as needed but im getting the exception...
i don know whats the error
Apr 4, 2008 10:25:48 AM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from code-source:/C:/Jdeveloper
hello friends Is it possible? that we can take form within form
-
Sent from Yahoo! Mail.
A Smarter Inbox.
54 matches
Mail list logo