Re: [S2] Struts with Web Services

2008-04-03 Thread Lukasz Lenart
> http://www.ja-sig.org/products/cas/ > > -Wes Do you have some experience with that? It looks quite interesting ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tiles in 1.3.9

2008-04-03 Thread Antonio Petrelli
2008/4/4, balaji.m.cs <[EMAIL PROTECTED]>: > > java.lang.IllegalArgumentException: path must begin with a "/" What's the path that you are calling? Antonio

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.

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 1014

Re: 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 property: Moving ahead, now stuck with a different issue. Actually, I want to create name of the param dynamically by concaten

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 familiari

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: http://foo.b

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: Map testConfig = new HashMap(); testConfig.put("config", "struts-default.xml,struts-plugin.xml

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 ques

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 se

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 question

[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 h

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 on

RE: 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: tag help I meant "iterator" tag ;) musachy On Thu, Apr 3, 2008 at 4:52 PM

Re: clearFieldErrors() - where is it ?

2008-04-03 Thread Laurie Harper
[EMAIL PROTECTED] wrote: 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 . It looks like clearFieldErrors() was introduced in the (not yet released) 2.1.x stream

Re: Default JSP content type

2008-04-03 Thread Laurie Harper
Page encoding yes; content type, not sure: http://java.sun.com/javaee/5/docs/tutorial/doc/bnajg.html L. Matthew Seaborn wrote: Does anyone know if it is possible to override the default JSP page content type and/or page encoding either for an entire web-app or as part of Struts 2? Many thank

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: 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

Re: 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: ...etc On Thu, Apr 3, 2008 at 2:54 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > I meant "iterator" tag ;) > > musachy > > On Thu, Apr 3, 2008 at 4:52 PM, Musachy Bar

Re: 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 question in

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. This is Panel1 This is Panel2 Thanks for your help in advance. Regards,

Re: 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: > > > > > > > > > > Where intList is of type L

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: Where intList is of type List, how do I reference to current Integer on the value stack without using ? So I want to reference the current Integer with OGNL or EL expression language

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. -Origi

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 showcase.

Connecting s:autocompleter and s:div

2008-04-03 Thread manishbel
Hello There, I am new to struts and have a requirement where i have to connect the autocompleter with the div e.g. when autocompleter's value changes i need to refresh the contents of the div. i have written the following code to achieve that. The Div Code -- The AutoCompleter Cod

Re: Problem with submitting an additional param in a form

2008-04-03 Thread Ryan
I think what you are looking for is: 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 this mailing list. > I'm prog

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 ---

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: >>>

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 com.op

[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 > C

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 an

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.. e

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 this cuases the div to load over again and again. Thanks Manish -- View this message in c

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.. e

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 t

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 deploy

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. http://s

RE: struts.xml

2008-04-03 Thread Relph,Brian
Copy paste error, you need to initialize the Dispatcher with your testConfig map: Map testConfig = new HashMap(); testConfig.put("config", "struts-default.xml,struts-plugin.xml,struts.xml,struts-test.xml"); dispatcher = new Dispatcher(servletContext, tes

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

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: org.apache.struts.config.ModuleConfig.findA

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 ?? -- View

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); di

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 - Use

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 wan

Re: Eclipse with struts

2008-04-03 Thread Musachy Barroso
I think the easiest way to get a project going, is to use the maven archetype and then ask maven to generate the eclipse project: http://struts.apache.org/2.x/docs/struts-maven-archetypes.html regards musachy On Wed, Apr 2, 2008 at 12:19 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Sam Wun <

Re: 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: > > > > > > > > "changeKeep1()" theme="simple"/> > > > But when

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

Default JSP content type

2008-04-03 Thread Matthew Seaborn
Does anyone know if it is possible to override the default JSP page content type and/or page encoding either for an entire web-app or as part of Struts 2? Many thanks. Matthew Seaborn Software Architect t+44(0) 208 484 0729 m +44(0) 7949 465 142 e [EMAIL PROTECTED]

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: this works fine on first display. The trouble seems to occur when there is validation error and I am redirected to in

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, allo

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 us

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 s

Re: Regarding Service layer getting called twice

2008-04-03 Thread Prajapati Manish Narandas
Thanx Laurie, Actually issue was in button 's hyperlink .we were calling same function on both href and onclick event.Actually yesterday we tried to find out weather action is getting called twice or not but might be we some were failed to notice it but today morning after your mail i again trie

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 with

[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] 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..