remote div diff behavior in 2.1.x

2007-11-26 Thread Giovanni Azua
hi, I fed up guessing so looked at the sources. The key parameters in this issue are these: - delay: How long to wait before fetching the content (in milliseconds) - updateFreq: How often to reload the content (in milliseconds) - preload: Load content when page is loaded The closest I could

Re: struts2 blank application request parameters

2007-11-26 Thread slideharmony
Thank you, I have understood! Tom Schneider wrote: Checkout the I18NInterceptor: http://struts.apache.org/2.0.11/docs/i18n-interceptor.html This interceptor picks up the request_locale parameter and sets the locale. This happens even before the action is executed. Tom

[S2] SVG in tiles result

2007-11-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Hello all, I'm trying to put a svg image in a tiles result, but it seems that it don't work... I've changed the html tag : html xmlns:svg=http://www.w3.org/2000/svg; And I have tried 2 examples. Example 1: svg xmlns=http://www.w3.org/2000/svg; version=1.1 width=400 height=300 rect x=50

Re: logic:iterate question

2007-11-26 Thread Ingo Villnow
The class Book must have the getter-function getTitle() Minghui Yu schrieb: in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books bean:write

Re: [S2] SVG in tiles result

2007-11-26 Thread Antonio Petrelli
2007/11/26, LEONARD Julien (Consulting for ACCOR Hotels) [EMAIL PROTECTED]: I'm trying to put a svg image in a tiles result, but it seems that it don't work... How are you trying to put it? As a picture, using the img HTML tag? Antonio

RE: [S2] SVG in tiles result

2007-11-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
No, directly in the html. I have a template.jsp that include since to tiles my body jsp : table width=100% height=100% tr td height=10% s:select list=listeImagesCertifs name=challenge.diplome value=%{challenge.diplome} theme=simple

Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread vijay vijay
Hi i am getting the fallowing error when i try to run my program. Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor. Perhaps it exists but certain dependencies are not available? - interceptor - jar:file:/C:/Tomcat%205.5/webapps/StrutsSample/WEB-INF/lib/struts2-

Re: [S2] SVG in tiles result

2007-11-26 Thread Antonio Petrelli
2007/11/26, LEONARD Julien (Consulting for ACCOR Hotels) [EMAIL PROTECTED]: No, directly in the html. Probably you are interested in this then: http://www.w3schools.com/svg/svg_inhtml.asp HTH Antonio

Re: Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread Nuwan Chandrasoma
Hi, If your not using the strus1 pluging for you can remove the struts1-plugin-2.0.9.jar from your WEB-INF/lib directory Thanks, Nuwan vijay vijay wrote: Hi i am getting the fallowing error when i try to run my program. Could not load class

RE: [S2] SVG in tiles result

2007-11-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
In fact, it's exactly what I've tried... Could it be a MIME type problem? -Message d'origine- De : Antonio Petrelli [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 novembre 2007 11:05 À : Struts Users Mailing List Objet : Re: [S2] SVG in tiles result 2007/11/26, LEONARD Julien (Consulting

Re: [S2] SVG in tiles result

2007-11-26 Thread Antonio Petrelli
2007/11/26, LEONARD Julien (Consulting for ACCOR Hotels) [EMAIL PROTECTED]: In fact, it's exactly what I've tried... What did you try? Using embed or object? Could it be a MIME type problem? No, it's a browser problem: unfortunately most browser do not support putting SVG directly in the

RE: [S2] SVG in tiles result

2007-11-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Oh... Ok thanks I will try with embed or object ^^ Julien -Message d'origine- De : Antonio Petrelli [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 novembre 2007 11:17 À : Struts Users Mailing List Objet : Re: [S2] SVG in tiles result 2007/11/26, LEONARD Julien (Consulting for ACCOR

Re: Struts2 + JFreeChart Plugin + HttpServletRequest

2007-11-26 Thread Dave Newton
It doesn't have anything to do with Tiles; it's just that the default chart package doesn't extend the struts-default package, hence the normal interceptor stack isn't executed. Defining your own interceptor stack should fix the issue. d. --- Kate Fox [EMAIL PROTECTED] wrote: The version

RE: [S2] SVG in tiles result

2007-11-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Thanks for the help Antonio. It works fine :) I have an action that return a svg file correctly :) Julien -Message d'origine- De : LEONARD Julien (Consulting for ACCOR Hotels) [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 novembre 2007 11:20 À : Struts Users Mailing List Objet : RE: [S2]

Cannot find message resources under key org.apache.struts.action.MESSAGE

2007-11-26 Thread forumuser
I tried to deploy struts application on RAD Websphere App Server 6. it is throwing following exception javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE and on the browser it says internal server error 500 please help as what to do to

[S2] Spring validator integrated in Struts actions?

2007-11-26 Thread Joachim Ansorg
Hi, I want to use the Spring validation framework in Struts2 action classes. Has such an integration already been done in a project? Thanks a lot! Joachim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

@SMDMethod and servlet context

2007-11-26 Thread Daab, Andreas
Hi, in my application there is an action class named ShowSearchResult, which is derived from BaseActionSupport. BaseActionSupport implements ServletContextAware. The app stores some object in the servlet context, e.g. an object for the database connection. Other classes derived from

RE: EL Statements are not evaluated in logic:equal tag

2007-11-26 Thread Slattery, Tim - BLS
You can use EL without the EL libraries if your servlet container supports J2EE version 2.4. If you have that support, you can use EL anyplace in your jsp page, and the container will take care of it. I hope that you meant Servlet 2.4, included in J2EE 1.4. Anyway EL is in JSP 2.0,

Re: @SMDMethod and servlet context

2007-11-26 Thread Dave Newton
Are you running the action through the regular interceptor stack? --- Daab, Andreas [EMAIL PROTECTED] wrote: Hi, in my application there is an action class named ShowSearchResult, which is derived from BaseActionSupport. BaseActionSupport implements ServletContextAware. The app stores

RE: @SMDMethod and servlet context

2007-11-26 Thread Daab, Andreas
No, I'm using the json interceptor. Don't know if it's possible to use the default stack and SMD. action name=ShowSearchResult class=ShowSearchResult method=execute interceptor-ref name=json param name=enableSMDtrue/param /interceptor-ref result type=json param

Re: Help with html:select multiple=true

2007-11-26 Thread amarr003
Thank you for responding to me both times. However, I have tried both declarations and I get the same result. form-property name=selectedAttributes type=java.lang.String[] / and form-property name=selectedAttributes type=java.lang.String / I know that Ljava.lang.String is an array of strings,

RE: @SMDMethod and servlet context

2007-11-26 Thread Dave Newton
If you define a single interceptor for an action then things like the servlet config interceptor won't run. --- Daab, Andreas [EMAIL PROTECTED] wrote: No, I'm using the json interceptor. Don't know if it's possible to use the default stack and SMD. action name=ShowSearchResult

Re: @SMDMethod and servlet context

2007-11-26 Thread Musachy Barroso
it is a regular action, so you can use interceptors as usual. musachy On Nov 26, 2007 10:50 AM, Daab, Andreas [EMAIL PROTECTED] wrote: No, I'm using the json interceptor. Don't know if it's possible to use the default stack and SMD. action name=ShowSearchResult class=ShowSearchResult

[ANN] Javapolis 2007

2007-11-26 Thread Ian Roughley
Hi everyone; The announcement: for those attending Javapolis, I will be presenting a university session on Struts2 this year, on Tuesday December 2007. Originally, I was speaking to the organizers about a BOF session, but it seems like other topics have taken priority. The question: for

Re: Help with html:select multiple=true

2007-11-26 Thread Dave Newton
I'd assume you've made an error defining your form or the accessor in the form. If you dereference the array do you get the data you expect? --- amarr003 [EMAIL PROTECTED] wrote: Thank you for responding to me both times. However, I have tried both declarations and I get the same result.

Re: Help with html:select multiple=true

2007-11-26 Thread amarr003
Isn't dereferencing the array equivalent to: attr[0]? If it is then the data I get is not what I expect, it is Ljava.lang.String;@57125f92. Which is the problem that I am having. My form is defined as follows: private String [] selectedAttributes; public String [] getSelectedAttributes() {

Re: Help with html:select multiple=true

2007-11-26 Thread Dave Newton
I thought you were defining your form in your XML file. Why won't you dereference it *again* and see what data is there? --- amarr003 [EMAIL PROTECTED] wrote: Isn't dereferencing the array equivalent to: attr[0]? If it is then the data I get is not what I expect, it is

Re: Getting the login name from client pc

2007-11-26 Thread Chris Pratt
On Nov 20, 2007 1:43 AM, Ehteshamul Haque [EMAIL PROTECTED] wrote: I have a web application. Some one is browsing it from his PC. I want to rack him. I need to get his login name of his PC(Windows OS). Its a intranet application. You might want to look at the JCIFS project

[s2] workflow/process question regarding menus and preferences

2007-11-26 Thread Eric Martin
I'm building a S2 application and want to add the following: 1) Menus and sub-menus, based on the user's rights (session) 2) UI preferences (application) I want the menu items to be determined after login / before rendering of the page, and placed in the session. And for UI preferences, they

Re: Download .zip of Struts 2 CRUD Example

2007-11-26 Thread Rick Reumann
On Nov 25, 2007 9:17 PM, hezjing [EMAIL PROTECTED] wrote: Hi Where can I download the .zip of the Struts 2 CRUD Example? See http://struts.apache.org/2.x/docs/crud-demo-i.html This is a different Struts2 CRUD one that Andy Ma created that I just put up last night...,

Re: [s2] workflow/process question regarding menus and preferences

2007-11-26 Thread Martin Gainty
Easiest implementation with Realms http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html On the other hand if you want Single Signon thru a Portal take a look at Jetspeed http://portals.apache.org/jetspeed-2/ M- - Original Message - From: Eric Martin [EMAIL PROTECTED] To:

Tabbedpanel issue

2007-11-26 Thread Srikanth Muthyala
Hello, I am currently using Struts 2 with Ajax for Tabbed panel. I can create and load tabbedpanel showing a jsp page with a form for one of tabs. The form action = /some.action is executed ok butthe issue is reload is shown in its own new page rather than the as part of tab content. How do

Re: Tabbedpanel issue

2007-11-26 Thread Martin Gainty
first off is there a reason for 2 of everything? M-- - Original Message - From: Srikanth Muthyala [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, November 26, 2007 4:48 PM Subject: Tabbedpanel issue Hello, I am currently using Struts 2 with Ajax

Re: Tabbedpanel issue

2007-11-26 Thread Srikanth Muthyala
M, I dont know what happened there but NO, no 2 of these. Here is the updated one. (Cleanedup) I am currently using Struts 2 with Ajax for Tabbed panel. I can create and load tabbedpanel showing a jsp page with a form for one of tabs. The form action = /some.action is executed ok butthe issue

Re: Tabbedpanel issue

2007-11-26 Thread Srikanth Muthyala
Martin, Thanks for your help. But its the same - loading in new page. Any more ideas Regards, Srikanth Muthyala - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 27 November 2007 10:26:33 AM (GMT+1000) Australia/Sydney Subject: Re:

RE: Issue with Type Conversion and Select Boxes

2007-11-26 Thread Gunnar Hillert
Thanks for your answer. But my issue quite Struts2 specific. Also, it works quite well if I don't use struts 2 type converters (and specify listKey/listValue explicitly in that case). Gunnar mgainty wrote: I dont believe that is not necessary for V1

Re: Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread vijay vijay
Hi Nuwan, thanks for your suggestion.i have removed that from my lib still i got the error not the same one.I found my error in struts.xml there i have not given my package name.once it is done it is starrted to work. i have one query from the day one 1) i use to get the error like error

Retrieving last inserted ID

2007-11-26 Thread Unnikrishnan
Hi I am new to Struts 2. I would like to know how to retrieve last inserted id. I have page called welcome where I have 3 fields (name, telephone, email) my execute method is as follows. public String execute() throws Exception { CustomerFacadeLocal customerFacedeLocalObj=

Re: Help with html:select multiple=true

2007-11-26 Thread Paul Benedict
Something totally goofy is going on in your example. You showed a form in XML and then a form in Java. You can only do one, not both together. Paul On Nov 26, 2007 12:58 PM, Dave Newton [EMAIL PROTECTED] wrote: I thought you were defining your form in your XML file. Why won't you dereference