Re: Problem about the hello world struts2 example.

2007-08-26 Thread Nuwan Chandrasoma
Hi, If your not using JSF plugin its safe to delete that jar from your lib folder, what is the tomcat version you are using? if its supports servelet spec. 2.4+ you dont need it in the web.xml. what i ment was that in you .jsp file do you have this line on top? %@ taglib prefix=s

Re: Problem about the hello world struts2 example.

2007-08-26 Thread Kun Niu
Thanks for your fast reply. Yes. I've got the taglib in my jsp file. My tomcat verion is 5.5.23. And the following code work for me: s:url id=url action=AuthAction /s:url s:a href=%{url}my url/s:a I can see my url and the address is correct. In case I change property attribute as the following:

Re: Problem about the hello world struts2 example.

2007-08-26 Thread Kun Niu
I think that I've solved the problem. I put the configuration file under the wrong directory. I put it under the WEB-INF directory. Now I've moved it to WEB-INF/classes direcotry. And it works for me. Thanks again for your kind reply. Regards. 2007/8/26, Kun Niu [EMAIL PROTECTED]: Thanks for

Re: dafault value in autocompleter tag

2007-08-26 Thread ece
Hi Herrera, Could you find a solution for this problem ? Ece Pedro Herrera wrote: I´m using displaytag to paging and I need to put a default value in autocompleter tag when page is changed, How I can do this ? Herrera -- View this message in context:

Re: dafault value in autocompleter tag

2007-08-26 Thread ece
Hi again, I tried this and worked. I don't know if useful with displaytag s:autocompleter theme=simple name=outbound list=timetable.outboundMap notifyTopics=/Changed forceValidOption=true id=sel/ I have both outbound and outboundKey String properties in the struts2 action. ece wrote:

Re: tabs (struts + tiles) How to do it ??

2007-08-26 Thread Angelo zerr
Hi robin tabs of JSPTabcontrol is customized with css. To customize it you must undersand HTML generated (see http://jsptabcontrol.sourceforge.net/developer-guide.html) and know css. What is your problem with css? Regards Angelo 2007/8/25, robinbajaj [EMAIL PROTECTED]: This thread is very

Re: Struts1/Tiles and Struts2/tiles in same app

2007-08-26 Thread Ray Clough
I have prepared a pdf document describing this exact problem: Tiles-2 as a standalone service along with Struts-1 and Struts-2. The doc includes copies of the web.xml and struts.xml files. I am attaching the file in the hopes it is useful. - Ray Clough [EMAIL PROTECTED]

RE: Session problem

2007-08-26 Thread Mark Rollins
You are correct - I decided to refactor as I was pasting!! Sorry. Rod Bollinger wrote: This may not be the only issue but I do see a typo in setSession()... It should be: this.session = session; instead of this.session = map; -Rod -Original Message- From: Mark Rollins

Re: Struts1/Tiles and Struts2/tiles in same app

2007-08-26 Thread Ray Clough
My previous post failed, presumably the attachment was blocked. Here is the contents of the document I created to define the process of using Tiles-2 as a standalone service with Struts-1 and Struts-2. Sorry if it is long, but I couldn't get the attachment to work. If you ask, I will send the

Struts 2 - radio inside iterator

2007-08-26 Thread new2you
Hi, I've seen tons of similar posts here, but no solution: I want to create a table of users, each row represents 1 user and has 3 radio buttons, which determine the user's role in the application. A user can only have 1 role. So I created the following code(shortened): s:iterator value=userList

Re: dafault value in autocompleter tag

2007-08-26 Thread Pedro Herrera
no solution yet ... see http://www.nabble.com/-S2--Autocompleter-initial-value-and-key-tf4291467.html ece wrote: Hi again, I tried this and worked. I don't know if useful with displaytag s:autocompleter theme=simple name=outbound list=timetable.outboundMap notifyTopics=/Changed

Re: problem configuring struts config in applicaion

2007-08-26 Thread j alex
It's not clear what you are trying to do ; as long as validate=true, the form should get validated. You an have an action mapping action name=editForm ... validate=true , and on hitting the save button, change the form's action to editForm using javascript so that the right action-mapping is

Re: s2 equivalent of logic:messagesNotPresent

2007-08-26 Thread j alex
I don't think there's an equivalent tag, see if s:if test= actionMessages.size()* == 0 *helps 8/24/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hey does anyone know which tag in struts2 would be equivalent to the tag logic:messagesNotPresent in struts1. Thanks. -- Pavel Sapozhnikov

Re: s2 equivalent of logic:messagesNotPresent

2007-08-26 Thread Pavel Sapozhnikov
Hey Alex thank you very much. I'll definately try that. On 8/26/07, j alex [EMAIL PROTECTED] wrote: I don't think there's an equivalent tag, see if s:if test= actionMessages.size()* == 0 *helps 8/24/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hey does anyone know which tag in struts2

Re: Session problem

2007-08-26 Thread Pavel Sapozhnikov
Hey what does that thing implementing ApplicationAware really do for you? On 8/26/07, Mark Rollins [EMAIL PROTECTED] wrote: You are correct - I decided to refactor as I was pasting!! Sorry. Rod Bollinger wrote: This may not be the only issue but I do see a typo in setSession()... It

Re: Struts1/Tiles and Struts2/tiles in same app

2007-08-26 Thread Darryl Thompson
Ray, I followed your instructions and now I am getting this exception on startup: java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener I don't have the struts-jsf plugin jar in my web-inf and I removed the myfaces jar files. I did a search of the file

Beginner

2007-08-26 Thread Cenk
Hi, I m new to Struts and i wonder if you can help to start with some simple tutorials? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Beginner

2007-08-26 Thread Deepak Kumar
Hi, Please check http://www.roseindia.net/struts and http://www.roseindia.net/struts/struts2 Thanks Deepak Kumar -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Cenk Sent: Sunday, August 26, 2007 9:09 PM To: user@struts.apache.org Subject: Beginner Hi, I m new to

Re: Struts1/Tiles and Struts2/tiles in same app - Works!

2007-08-26 Thread Darryl Thompson
After following the instructions received from Ray Clough I only had to drop the commons*.jar and tiles*.jar files into my eclipse embedded Tomcat commons/lib directory and everything worked! Many thanks to you Ray! - Original Message From: Ray Clough [EMAIL PROTECTED] To:

Re: Reload combo option if validation fail.

2007-08-26 Thread Zarar Siddiqi
That would do it too. But you could've used the info in ActionProxy in the prepare() method to differentiate between actions. Later, Zarar On 8/20/07, Boon Leng [EMAIL PROTECTED] wrote: Hi Zarar, I managed to solve the problem by using PreResultListener and find the action info in