Re: Struts 2.1 TabbedPanel scenario

2008-04-03 Thread Shoaib Gauhar
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

Re: Actionerrors the Store Interceptor

2008-04-03 Thread Al Sutton
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

Re: Actionerrors the Store Interceptor

2008-04-03 Thread Chris Pratt
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

Re: xml based validation vs Annotations based validation

2008-04-03 Thread Lukasz Lenart
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

Re: Security @ Struts2, using Acegy or Inspector

2008-04-03 Thread Lukasz Lenart
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

Re: [S2] Menu Tag Library struts-config.xml problem.

2008-04-03 Thread sassien
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...

[DEV-IMPLICATIONS] Re: Actionerrors the Store Interceptor

2008-04-03 Thread Al Sutton
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

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread lbastil
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

Re: [S2] Menu Tag Library struts-config.xml problem.

2008-04-03 Thread Laurie Harper
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

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread Laurie Harper
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

Re: struts.xml

2008-04-03 Thread Adam Hardy
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,

org.apache.jasper.JasperException: tag 'select'

2008-04-03 Thread Alex Shneyderman
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?

Freemarker (old version that struts2 uses) disappearing pages

2008-04-03 Thread Jonny Cavell
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

Re: s:radio issue

2008-04-03 Thread Dave Newton
--- 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/

Re: Security @ Struts2, using Acegy or Inspector

2008-04-03 Thread Randy Burgess
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

struts2 datetimepicker multiple selections

2008-04-03 Thread zakaria ghandour
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 -

Re: new to sturts

2008-04-03 Thread Musachy Barroso
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

RE: struts.xml

2008-04-03 Thread Relph,Brian
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

java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)

2008-04-03 Thread DWilkerson
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:

RE: struts.xml

2008-04-03 Thread Relph,Brian
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);

new to sturts

2008-04-03 Thread ghan_java
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 ?? --

Re: java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)

2008-04-03 Thread Antonio Petrelli
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.

RE: java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)

2008-04-03 Thread DWilkerson
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

Re: [DEV-IMPLICATIONS] Re: Actionerrors the Store Interceptor

2008-04-03 Thread Chris Pratt
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

Initialization before the Application Startup.

2008-04-03 Thread JiVi
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..

connecting s:autocompleter and s:div

2008-04-03 Thread manishbel
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

Initialization before the Application Startup.

2008-04-03 Thread JiVi
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..

Re: [DEV-IMPLICATIONS] Re: Actionerrors the Store Interceptor

2008-04-03 Thread Al Sutton
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

[OT] Re: Initialization before the Application Startup.

2008-04-03 Thread Dave Newton
--- 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

Re: any struts 2 unit testers out there?

2008-04-03 Thread paulbrickell
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

Problem with submitting an additional param in a form

2008-04-03 Thread Peter Theissen
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

clearFieldErrors() - where is it ?

2008-04-03 Thread it
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

Re: Problem with submitting an additional param in a form

2008-04-03 Thread Ryan
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

Re: Connecting s:autocompleter and s:div

2008-04-03 Thread Musachy Barroso
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

RE: any struts 2 unit testers out there?

2008-04-03 Thread Relph,Brian
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.

s:iterator tag help

2008-04-03 Thread Eric Nelson
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

Re: s:iterator tag help

2008-04-03 Thread Musachy Barroso
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

Simple question in s:tabbedPanel

2008-04-03 Thread sharath karnati
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

Re: s:iterator tag help

2008-04-03 Thread Musachy Barroso
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,

Re: s:iterator tag help

2008-04-03 Thread Dustin S.
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

Re: rrrrr...why my field returns null????

2008-04-03 Thread Laurie Harper
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

s:include ou jsp:include

2008-04-03 Thread Pedro Herrera
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.

RE: s:iterator tag help

2008-04-03 Thread Eric Nelson
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

Re: Struts 2.1 TabbedPanel scenario

2008-04-03 Thread Laurie Harper
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

[S2] Struts with Web Services

2008-04-03 Thread Kelly.Graus
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

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-03 Thread Jeromy Evans
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

Re: [S2] Struts with Web Services

2008-04-03 Thread Lukasz Lenart
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 / Question - TabbedPanel with DisplayTag

2008-04-03 Thread Márcio Gurgel
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

Re: struts.xml

2008-04-03 Thread Adam Hardy
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,

Re: Hi / Question - TabbedPanel with DisplayTag

2008-04-03 Thread Jeromy Evans
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:

Re: [S2] Struts with Web Services

2008-04-03 Thread Wes Wannemacher
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

Re: s:radio issue

2008-04-03 Thread Niral Trivedi
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

Tiles in 1.3.9

2008-04-03 Thread balaji.m.cs
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

form within form

2008-04-03 Thread puneet duggal
hello friends Is it possible? that we can take form within form - Sent from Yahoo! Mail. A Smarter Inbox.