help me to use struts-layout
hi, would you like help me to developping with struts-layout in my jdevelopper thank you to give me a stepby step exemple. _\\|//_ (-0-0-) ooO-(_)-Ooo Mes meilleures salutations... OSMAN Mohamed AMINE Ingénieur consultant (216)98207939 Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
Form data to Vector
Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be appreciated. Thanks a lot, MB __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: help me to use struts-layout
2007/4/13, OSMAN Mohamed AMINE [EMAIL PROTECTED]: hi, would you like help me to developping with struts-layout in my jdevelopper thank you to give me a stepby step exemple. http://struts.application-servers.com/ Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help me to use struts-layout
I hadn't heard of this before and it looks quite good. Has anyone had good / bad experiences with it? In particular with layout:collection / is it possible to get a reference to the current object and use it in and onRowClick for example? Antonio Petrelli wrote: 2007/4/13, OSMAN Mohamed AMINE [EMAIL PROTECTED]: hi, would you like help me to developping with struts-layout in my jdevelopper thank you to give me a stepby step exemple. http://struts.application-servers.com/ Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help me to use struts-layout
2007/4/13, Lance [EMAIL PROTECTED]: I hadn't heard of this before and it looks quite good. Has anyone had good / bad experiences with it? In particular with layout:collection / is it possible to get a reference to the current object and use it in and onRowClick for example? I think that you need to ask this question in the Struts Layout mailing list. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles definition in global forward
Hi, we know that we can use a tiles definition as path of the forward tag under action tag in struts config file It looks like action path=/ .. forward name=homePage path=welcomePage redirect=true/ /action Since, I am using tiles plugin, here welcomePage is a tiles definition consisiting of a header. body and a footer. I am using this local forward to redirect to my home page when users want to go back to it. I made it a global forward so that I can use html:link tag's forward attribute to redirect users to the home page. I wrote html:link forward=homePageBack to Welcome Page/htmlLlink, but it does not work and shows page cannot be displayed. But when I use a jsp file path as the value of path attribute of the forward tag, it works. global-forwards forward name=homePage path=/jsp/home.jsp/ /global-forwards The above one works. But the following does not work global-forwards forward name=homePage path=welcomePage/ /global-forwards Can we not use tiles definition in global forwards? -- View this message in context: http://www.nabble.com/tiles-definition-in-global-forward-tf3570723.html#a9975974 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles definition in global forward
2007/4/13, Suman Maity [EMAIL PROTECTED]: Hi, we know that we can use a tiles definition as path of the forward tag under action tag in struts config file It looks like action path=/ .. forward name=homePage path=welcomePage redirect=true/ /action You cannot redirect to a Tiles definition, at least not directly. Just as an information in Tiles 2 there is a TilesDispatchServlet that lets you forward (and redirect) to an URL that renders a Tiles definition: http://tiles.apache.org/framework/apidocs/org/apache/tiles/web/TilesDispatchServlet.html HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles definition in global forward
I had this issue as well but you can use the built-in ForwardAction class, then using the global forward to map to an action that redirects to your tiles definition. e.g.: global-forwards forward name=homePage path=welcome.do/ /global-forwards action path=/welcome type=org.apache.struts.actions.ForwardAction scope=request validate=false parameter=welcomePage /action Yannick On 4/13/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/4/13, Suman Maity [EMAIL PROTECTED]: Hi, we know that we can use a tiles definition as path of the forward tag under action tag in struts config file It looks like action path=/ .. forward name=homePage path=welcomePage redirect=true/ /action You cannot redirect to a Tiles definition, at least not directly. Just as an information in Tiles 2 there is a TilesDispatchServlet that lets you forward (and redirect) to an URL that renders a Tiles definition: http://tiles.apache.org/framework/apidocs/org/apache/tiles/web/TilesDispatchServlet.html HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can we *please* havea seperate Struts *2* - User list?
Probably not! Leaving UBS unsubscribing myself ;-( -- Peter Pilgrim UBS Investment Bank, Client Portal Dev LDN, Triton Court, 14 Finsbury Square, London, EC2A 1PD United Kingdom ( +44 (0)207 56 75692 ) :: Java EE Spring 2.0 Hibernate 3.2 Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT][ANN] JAVAWUG BOF 26
Data Grid Defined / Brian Oliver / Tangosol / Skills Matter / London / 16 April 2007 from 18:30 http://jroller.com/page/javawug?entry=javawug_bof_26_data_defined http://skillsmatter.com/javawug I'm out of here until the next contract! -- Peter Pilgrim UBS Investment Bank, Client Portal Dev LDN, Triton Court, 14 Finsbury Square, London, EC2A 1PD United Kingdom ( +44 (0)207 56 75692 ) :: Java EE Spring 2.0 Hibernate 3.2 Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form data to Vector
Balazs Take a look at http://struts.apache.org/1.0.2/api/org/apache/struts/taglib/logic/package-summary.html you will see this example of implementing a vector via use of struts logic:iterate in your jsp %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % java.util.Vector vector = new java.util.Vector(); vector.add(new Integer(12)); vector.add(new Integer(5)); % logic:iterate id=myCollectionElement collection=%= vector % Do something with myCollectionElement /logic:iterate This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Balazs Michnay [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 4:09 AM Subject: Form data to Vector Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be appreciated. Thanks a lot, MB __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Ready to give back? Help sponsor ApacheCon
Newsflash: Sponsorships for ApacheCon Europe 2007 are still available! * http://www.eu.apachecon.com/sponsors/ The conference opens May 1 in Amsterdam, The Netherlands, so time is short, but if your organization might be able to help, please contact Delia Frees at [EMAIL PROTECTED] or on +1 707 765 0823. Various sponsorship levels and other custom strategies are available. Our willingness to work with people does extend to convention sponsorship! ApacheCon Europe 2007 is the official conference of the Apache Software Foundation (ASF). ApacheCon draws ASF Members, innovators, programmers, developers, vendors, and users to experience the future of Open Source development. Meet, mingle, and exchange ideas with like-minded participants on groundbreaking technologies and emerging industry trends, through informal networking, peer discussions, birds-of-a-feather sessions, and entertaining social events. In related news, the US conference will be held in Atlanta GA, November 12-16, 2007. For Atlanta, I'm hoping to snag one of the whole-day training sessions or maybe an Ajax Smackdown presention, and then do that meet and mingle thing :) HTH, Ted. http://husted.com/ted/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator Problem
I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: html:link action=/insertExpense.do?op=new styleClass=button this actions opens a form with a request parameter op set to new. inside this form I do something like: html:form action=/editExpense method=post focus=expenseType c:if test=${requestScope.op == 'new'} html:hidden name=op property=op value=insert/ /c:if c:if test=${requestScope.op == 'insert'} html:hidden name=op property=op value=insert/ /c:if c:if test=${requestScope.op == 'update'} html:hidden name=op property=op value=update/ /c:if If the user enters garbage in any field that is validated the form is redisplayed with an error message on the right side of the field. BUT THE ${requestScope.op} is empty and therefore this information is LOST!! Any idea what I am doing wrong??? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 Lifecycycle
Wouldn't it be easier if you could redirect to yourself without involving another action for this purpose? I use tile definitions as the target for all my requests. Once the user successfully does a task related to that page, I'd like to represent the tile with freshly injected beans. Can you explain the lifecycle of a tiles request as it relates to Spring? Scott -- View this message in context: http://www.nabble.com/Tiles-2-Lifecycycle-tf3561248.html#a9979957 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 Lifecycycle
2007/4/13, stanlick [EMAIL PROTECTED]: Wouldn't it be easier if you could redirect to yourself without involving another action for this purpose? I use tile definitions as the target for all my requests. Once the user successfully does a task related to that page, I'd like to represent the tile with freshly injected beans. Can you explain the lifecycle of a tiles request as it relates to Spring? It's not a problem of Spring, a Tiles definition cannot be redirected to, at least directly. See: http://www.mail-archive.com/[EMAIL PROTECTED]/msg58441.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 Lifecycycle
--- stanlick [EMAIL PROTECTED] wrote: Wouldn't it be easier if you could redirect to yourself without involving another action for this purpose? Sure. The action you redirect to wouldn't need to be a separate action; it could be the same one. But a tile isn't an action, so you wouldn't get Prepare and all those other features of the normal S2 stack. Can you explain the lifecycle of a tiles request as it relates to Spring? Someone else should chime in here, because I really don't know. My impression, however, is that the two are completely unrelated, just like if you were dispatching to a JSP. If you want to run an action (therefore the normal S2 stack), you need to involve an action somehow. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Web Parts v1.1 Beta 1 released
Hi Anoop, http://javawebparts.sourceforge.net Click the Javadocs link, that's the easiest way to see what's available. The project is organized as 11 packages, such as javawebparts.filter and javawebparts.servlet for example, it's usually pretty obvious where things will be found (and the descriptions on the javadoc summary will usually point you in the right direction). hth, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, April 13, 2007 10:51 am, Anoop kumar V wrote: hey - Where would I find pertinent information about the project. I mean suppose I want to look up what all types of filters are available for reuse, where is that infromations. Thanks, Anoop On 4/8/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hey everyone... just a quick weekend note to those that might be interested that Java Web Parts v1.1 beta 1 has been released. This release includes a number of new features as well as a number of bug fixes and enhancements to existing functionality (see release notes for full list). You can download the release, browse documentation, sample apps, etc., at javawebparts.sourceforge.net Thanks and take care, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Web Parts v1.1 Beta 1 released
Woops, sorry about that folks... I didn't see the Cc list before I clicked Reply All. Didn't mean to cross-reply. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, April 13, 2007 11:08 am, Frank W. Zammetti wrote: Hi Anoop, http://javawebparts.sourceforge.net Click the Javadocs link, that's the easiest way to see what's available. The project is organized as 11 packages, such as javawebparts.filter and javawebparts.servlet for example, it's usually pretty obvious where things will be found (and the descriptions on the javadoc summary will usually point you in the right direction). hth, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, April 13, 2007 10:51 am, Anoop kumar V wrote: hey - Where would I find pertinent information about the project. I mean suppose I want to look up what all types of filters are available for reuse, where is that infromations. Thanks, Anoop On 4/8/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hey everyone... just a quick weekend note to those that might be interested that Java Web Parts v1.1 beta 1 has been released. This release includes a number of new features as well as a number of bug fixes and enhancements to existing functionality (see release notes for full list). You can download the release, browse documentation, sample apps, etc., at javawebparts.sourceforge.net Thanks and take care, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax and struts 2
Hi David, u can able to read the session variable in javascript, e.g var intId intId='%=session.getValue(id)%' ; try this , Thanks, mahesh. On 4/12/07, David Harland [EMAIL PROTECTED] wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Web Parts v1.1 Beta 1 released
hey - Where would I find pertinent information about the project. I mean suppose I want to look up what all types of filters are available for reuse, where is that infromations. Thanks, Anoop On 4/8/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hey everyone... just a quick weekend note to those that might be interested that Java Web Parts v1.1 beta 1 has been released. This release includes a number of new features as well as a number of bug fixes and enhancements to existing functionality (see release notes for full list). You can download the release, browse documentation, sample apps, etc., at javawebparts.sourceforge.net Thanks and take care, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax and struts 2
ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u can able to read the session variable in javascript, e.g var intId intId='%=session.getValue(id)%' ; try this , Thanks, mahesh. On 4/12/07, David Harland [EMAIL PROTECTED] wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
token-session interceptor does not work with IE 6.0
Hi folks, token-session example (Example 3 (token-session based.jsp example) http://localhost:8080/showcase2/token/tokenPrepare3%21input.action from showcase throws following exception in IE 6.0/Weblogic 9.1. It works fine with firefox. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at weblogic.utils.io.ChunkedOutputStream.writeTo(ChunkedOutputStream.java:1 85) at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.j ava:346) We would like to use this filter instead of javascript to handle double-posting. Would appreiciate any pointers! thanks, Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them.
RE: ajax and struts 2
Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. What would be better would be for the dwr javascript to talk to an action. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u can able to read the session variable in javascript, e.g var intId intId='%=session.getValue(id)%' ; try this , Thanks, mahesh. On 4/12/07, David Harland [EMAIL PROTECTED] wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - -- ML {UFI} __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax and struts 2
--- David Harland [EMAIL PROTECTED] wrote: Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. http://getahead.org/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html But there are better ways to handle this in S2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 Lifecycycle
Antonio -- Can you explain this using this example? action name=course_* method={1} class=course result name=input type=tilescourse.page/result /action My class course is wired up in Spring. The course.page tiles definition cab be found below. The course.jsp allows CRUD operations for a Course. All four methods in the class return INPUT. An intial request of this page via action=course_input invokes Spring and ultimately display my composite page. The problem is that as items are added and the save() method returns INPUT, the beans are not renewed via Spring. However, the other methods returning INPUT do invoke Spring and renew the objects behind the page! I don't understand how each of the CRUD methods return INPUT, yet only the save() method is skipping the Spring step. I'll add that the save() Action method is invoked through the form, while the other three methods are invoked via links. I have also included the course.jsp where you will find this code. There seems to be a different lifecycle that is based on the invocation technique. definition name=standard template=/pages/base.jsp put name=title value=Standard Title for base.jsp / put name=header value=/pages/header.jsp / put name=navigation value=/pages/navigation.jsp / put name=body value=/pages/body.jsp / put name=footer value=/pages/footer.jsp / /definition definition name=course.page extends=standard preparer=controller.CourseController put name=title value=Course / put name=body value=/pages/course.jsp / /definition body s:form s:textfield name=course.text key=course.add.text size=40 / s:submit key=label.save action=course_save/ /s:form table border=1 s:iterator value=#request.list tr td s:property value=id / /td td input type=text name=course.text size=40 value=s:property value=text/ /td td s:url id=url action=course_remove s:param name=course.id s:property value=id / /s:param /s:url s:a href=%{url}Remove/s:a /td /tr /s:iterator /table /body -- View this message in context: http://www.nabble.com/Tiles-2-Lifecycycle-tf3561248.html#a9981576 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax and struts 2
Thanks Dave, I think that is exactly what I was looking for. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:54 To: Struts Users Mailing List Subject: RE: ajax and struts 2 --- David Harland [EMAIL PROTECTED] wrote: Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. http://getahead.org/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html But there are better ways to handle this in S2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - -- ML {UFI} __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax and struts 2
read my mail... on the serverside you can use WebContextFactory.get().getSession() David Harland wrote: Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. What would be better would be for the dwr javascript to talk to an action. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u can able to read the session variable in javascript, e.g var intId intId='%=session.getValue(id)%' ; try this , Thanks, mahesh. On 4/12/07, David Harland [EMAIL PROTECTED] wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - -- ML {UFI} __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7
Im developing a web application with struts 1.2.9 and if I run it in firefox everything looks good, But in IE everything is messed up, and I think some of the tags create like line breaks, and the Taglibs imports create empty spaces, so windows display to much blank space, and everything not in his place. Do you know something about that??? ççDo you think it can be because I don tuse html:html and thos kinds of tags . I only use the tags for the forms. Im I doing it wrong???
[S2] Cannot run TabbedPanel tag
Hi, I try to run the TabbedPanel sample code in the Strut 2 document http://struts.apache.org/2.x/docs/ajax-tags.html. I cut and paste the sample code to a test.jsp as follows: %@ taglib prefix=s uri=/struts-tags%s:url id=ajaxTest value=/AjaxTest.action /s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=tests:div label=static id=staticThis is an static content tab./s:divs:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamicThis is a dynamic content tab. The content of this div will be replaced with the text returned from /AjaxTest.action/s:div/s:tabbedPanel But, when I run it I got an error that the attribute id is required for the TabbedPanlel. So, I added a id and run it again. Then, it populated a page with the text strings, but no tabs. When I view the source code, I can see the following code has been generated: script type=text/javascript dojo.require(dojo.widget.TabContainer); dojo.require(dojo.widget.LinkPane); dojo.require(dojo.widget.ContentPane); /script div dojoType=TabContainer id=testselectedTab=dynamiclabelPosition=left-h closeButton=tabdoLayout=false div id=static This is an static content tab. /div div dojoType=struts:BindDiv id=dynamiclabel=dynamic href=/person/AjaxTest.action showError=true This is a dynamic content tab. The content of this div will be replaced with the text returned from /AjaxTest.action /div /div What should I do in order to generate Tabbed panels? Thanks in advance for your help, Willa __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [S2] Cannot run TabbedPanel tag
--- Minerva CC [EMAIL PROTECTED] wrote: %@ taglib prefix=s uri=/struts-tags%s:url id=ajaxTest value=/AjaxTest.action /s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=tests:div label=static id=staticThis is an static content tab./s:divs:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamicThis is a dynamic content tab. The content of this div will be replaced with the text returned from /AjaxTest.action/s:div/s:tabbedPanel But, when I run it I got an error that the attribute id is required for the TabbedPanlel. So, I added a id and run it again. Then, it populated a page with the text strings, but no tabs. When I view the source code, I can see the following code has been generated: Do you have the s:head theme=ajax/ on your page? Also, as general rule, you should generate well-formed HTML. In other words, create a complete HTML page, not just a JSP fragment, if you are dispatching directly to a JSP. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nid help on creating a cascaded multiple dynamic drop down list
Hi! I'm trying to create a cascaded multiple dynamic drop down list(as i call it) wherein the first drop down list would be for selecting a region, the second for selecting a province (contents based on the selected region), and the third for selecting a city within the selected province. I've downloaded javawebparts on sourceforge.net and intended to use jwpcb_dds for this but the problem is that i need to populate the third drop down list based on the selection made in the second drop down list which was populated by the first drop down list. First i edited the dynamicDoubleSelectServlet by adding a function that would return a response that would write onto the jsp. the code snippet looks like this: private void listCities (HttpServletRequest request, HttpServletResponse response) throws IOException { String province = (String) request.getParameter(province); String[] cities = getCities(province); response.setContentType(text/xml); response.setHeader(Cache-Control, no-cache); PrintWriter out = response.getWriter(); out.print(select name=\citySelect\\n); for (int i = 0; i cities.length; i++) { out.print(option value=\); out.print(province); out.print(i); out.print(\); out.print(cities[i]); out.print(/option\n); } out.print(/select\n); } Then i tried to include writing out.print(ajax:eventajaxRef=\DynamicDoubleSelectForm/provinceChange\/); at the end of the function below so that it will also be ajax enabled in order to populate the third selectbox dynamically. private void listProvinces(HttpServletRequest request, HttpServletResponse response) throws IOException { String region = (String) request.getParameter(region); String[] provinces = getProvinces(region); response.setContentType(text/xml); response.setHeader(Cache-Control, no-cache); PrintWriter out = response.getWriter(); out.print(select name=\provinceSelect\\n); out.print(option /option\n); for (int i = 0; i provinces.length; i++) { out.print(option value=\); out.print(region); out.print(i); out.print(\); out.print(provinces[i]); out.print(/option\n); } out.print(/select ); } But the third drop down list does not appear after selecting an element in the second drop downlist. Need help on this. My index.jsp look like this: %@ taglib prefix=ajax uri=javawebparts/ajaxparts/taglib % html head titleJava Web Parts Cookbook: Dynamic Double Select/title /head body Java Web Parts Cookbook br/ Dynamic Double Select br/br/ This shows how a selection in one lt;selectgt; element can change the contents of another based on a request to the server. This can be done in more than one way, we show you the most common one's from APT. br/br/ form name=DynamicDoubleSelectForm table cellpadding=20 width=90% tr td width=50% Select one of the regions to see a list of provinces under it:br/ select name=regionSelect option /option option value=CARCAR/option option value=R01Region I/option option value=R02Region II/option option value=R03Region III/option option value=NCRNCR/option /select ajax:event ajaxRef=DynamicDoubleSelectForm/regionChange/ /td /tr /table table cellpadding=20 width=90% tr td Here's the list of provinces: div id=provinces /div /td /tr /table table cellpadding=20 width=90% tr td List of Cities: div id=cities /div /td /tr /table /form /body /html ajax:enable debug=debug logger=JWPAlertLogger/ My ajax_config.xml looks like this: ajaxConfig group ajaxRef=DynamicDoubleSelectForm element ajaxRef=regionChange event type=onchange requestHandler type=std:QueryString method=get target=/dynamicDoubleSelect?method=first parameterregion=regionSelect/parameter /requestHandler !-- When we get back, just insert the returned results into the -- !-- div named provinces on the page, which contains the second -- !-- select element. -- responseHandler type=std:InnerHTML
RE: Struts in Servlet 2.4
c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. Well, I've made some progress, I guess. I removed the jstl.jar and standard.jar that came with the Struts distribution. I deleted the taglib tags for c: and fmt: in web.xml. And I got rid of references to -el tags, since in this brave new world, EL should be built-in. And now the page gets past the compiler. But it stops at my first Struts tag: html:link href=/CES/contactForm.do paramId=solicitationNumber paramName=Contact paramProperty=solicitationNumber styleClass=menu title=Respondent Information onClick=Javascript:return contact_window(this, 'Contact','false') Update Respondent Information/html:link The error message is: Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean Contact in any scope Now the Action module that runs and invokes this JSP page uses session.setAttribute to store a bean under the name Contact. I have some debug print in that module, and there's *no* doubt at all that it's running that statement. So why can't my struts tag find my bean? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7
The real truth is that IE5,6,7 are terrible browsers which are not very css compliant. IE is infamous among developers for making consistent coding impossible. If only there were some way of forbidding people from using IE, or even more improbable, getting Microsoft to make it a good product. They certainly have the resources to fix it, but it seems they'd rather not. I wonder if their reasons include universal good will and compassion. - Ray Clough Ashuin Sharma Chamorro wrote: Im developing a web application with struts 1.2.9 and if I run it in firefox everything looks good, But in IE everything is messed up, and I think some of the tags create like line breaks, and the Taglibs imports create empty spaces, so windows display to much blank space, and everything not in his place. Do you know something about that??? ççDo you think it can be because I don tuse html:html and thos kinds of tags . I only use the tags for the forms. Im I doing it wrong??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [S2] Cannot run TabbedPanel tag
Thanks Dave for your help. I tried to add s:head theme=ajax/ in my page and all the html tags to the test.jsp. Then, I got only one tab showing up, which is dynamic one with a close icon. In the panel, I have both panel contents displayed. When I click on the close icon, the dynamic panel content was collapsed. I also tried to put the theme ajax all over the place, in the header, outside and inside the tabbedpanel and I got the same result. Would you be kindly point it out what is wrong? %@ taglib prefix=s uri=/struts-tags% html head script type=text/javascript /script s:head theme=ajax/ /head body s:url id=ajaxTest value=/list.action / s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=test s:div label=static id=static This is an static content tab. /s:div s:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamic /s:div /s:tabbedPanel /body /html Thanks, Willa - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 10:03:04 AM Subject: Re: [S2] Cannot run TabbedPanel tag --- Minerva CC [EMAIL PROTECTED] wrote: %@ taglib prefix=s uri=/struts-tags%s:url id=ajaxTest value=/AjaxTest.action /s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=tests:div label=static id=staticThis is an static content tab./s:divs:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamicThis is a dynamic content tab. The content of this div will be replaced with the text returned from /AjaxTest.action/s:div/s:tabbedPanel But, when I run it I got an error that the attribute id is required for the TabbedPanlel. So, I added a id and run it again. Then, it populated a page with the text strings, but no tabs. When I view the source code, I can see the following code has been generated: Do you have the s:head theme=ajax/ on your page? Also, as general rule, you should generate well-formed HTML. In other words, create a complete HTML page, not just a JSP fragment, if you are dispatching directly to a JSP. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: S2 Action Validation
Yup :-) James Mitchell wrote: IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? Scott On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all. On 4/10/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: addFieldError(course.text... I really do not like placing a jsp field name name in Java source code, but I could not find another way to correlate the message to the field. No, I think that's how it works. Technically you already have the field name in the java code since you're using a Java object. I'm not really sure what the alternatices would be. is there an easy way to get the messages to appear to the right of the field as opposed to the top? There's a labelposition parameter but I don't recall what the options are; I think if you want any major changes you'd have to modify the theme. A general comment (not directed specifically at you): my view is that the default themes and templates are intended to serve as a launching point: they cover simple use cases, but if your pages have a specific layout then extension, modification, and/or creation of existing or new templates is almost certain to be required. And lastly, can I specify the color I would like the messages to be. CSS-ily, errorMessage class. d. Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
Well, there is not submit per se, the action is getting called when the user types the second char in the lookup editor. Here is the log when the user types zz: DEBUG interceptor.FileUploadInterceptor - Bypassing /html/ LookupSportsTeam DEBUG interceptor.StaticParametersInterceptor - Setting static parameters {} DEBUG interceptor.ParametersInterceptor - Setting params sportsTeam = [ zz ] DEBUG util.XWorkConverter - Property: sportsTeam DEBUG util.XWorkConverter - Class: com.nielsenmedia.lrs.enames2.view.lineup.LookupSportsTeamAction DEBUG util.XWorkConverter - field-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - global-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - falling back to default type converter [EMAIL PROTECTED] DEBUG validation.AnnotationValidationInterceptor - Validating /html/LookupSportsTeam with method execute. No mention of sportsOrg. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts in Servlet 2.4
Hi Tim I found this to be a great tutorial http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html Create your formbean with public Accessors/Mutators for each private attribute and also create methods for reset method validateMethod and of course public no arg constructor for bean in struts-config.xml configuration define the Bean form-beans form-bean name=NameOfBeanForm type=package.NameOfBeanForm/ /form-beans so later in your jsp you will be able to access the FormAttribute html:html html:form action=PathForAction.. html:text property=AttributeFromForm HTH M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Slattery, Tim - BLS [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 1:31 PM Subject: RE: Struts in Servlet 2.4 c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. Well, I've made some progress, I guess. I removed the jstl.jar and standard.jar that came with the Struts distribution. I deleted the taglib tags for c: and fmt: in web.xml. And I got rid of references to -el tags, since in this brave new world, EL should be built-in. And now the page gets past the compiler. But it stops at my first Struts tag: html:link href=/CES/contactForm.do paramId=solicitationNumber paramName=Contact paramProperty=solicitationNumber styleClass=menu title=Respondent Information onClick=Javascript:return contact_window(this, 'Contact','false') Update Respondent Information/html:link The error message is: Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean Contact in any scope Now the Action module that runs and invokes this JSP page uses session.setAttribute to store a bean under the name Contact. I have some debug print in that module, and there's *no* doubt at all that it's running that statement. So why can't my struts tag find my bean? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
Ooops sorry, now I got it, you need to put sportsOrg inside a form, and point to it from the other autocopleter, using formId musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, there is not submit per se, the action is getting called when the user types the second char in the lookup editor. Here is the log when the user types zz: DEBUG interceptor.FileUploadInterceptor - Bypassing /html/ LookupSportsTeam DEBUG interceptor.StaticParametersInterceptor - Setting static parameters {} DEBUG interceptor.ParametersInterceptor - Setting params sportsTeam = [ zz ] DEBUG util.XWorkConverter - Property: sportsTeam DEBUG util.XWorkConverter - Class: com.nielsenmedia.lrs.enames2.view.lineup.LookupSportsTeamAction DEBUG util.XWorkConverter - field-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - global-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - falling back to default type converter [EMAIL PROTECTED] DEBUG validation.AnnotationValidationInterceptor - Validating /html/LookupSportsTeam with method execute. No mention of sportsOrg. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would
Re: Problem passing form fields with autocompleter
That did it! Thank you, thank you. Not sure why I have to specify a form I am already in, but I don't care. It works! Thanks again, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: Ooops sorry, now I got it, you need to put sportsOrg inside a form, and point to it from the other autocopleter, using formId musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, there is not submit per se, the action is getting called when the user types the second char in the lookup editor. Here is the log when the user types zz: DEBUG interceptor.FileUploadInterceptor - Bypassing /html/ LookupSportsTeam DEBUG interceptor.StaticParametersInterceptor - Setting static parameters {} DEBUG interceptor.ParametersInterceptor - Setting params sportsTeam = [ zz ] DEBUG util.XWorkConverter - Property: sportsTeam DEBUG util.XWorkConverter - Class: com.nielsenmedia.lrs.enames2.view.lineup.LookupSportsTeamAction DEBUG util.XWorkConverter - field-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - global-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - falling back to default type converter [EMAIL PROTECTED] DEBUG validation.AnnotationValidationInterceptor - Validating /html/LookupSportsTeam with method execute. No mention of sportsOrg. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection
Re: Validator Problem
Tom Bednarz wrote: I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: html:link action=/insertExpense.do?op=new styleClass=button this actions opens a form with a request parameter op set to new. inside this form I do something like: html:form action=/editExpense method=post focus=expenseType c:if test=${requestScope.op == 'new'} html:hidden name=op property=op value=insert/ /c:if c:if test=${requestScope.op == 'insert'} html:hidden name=op property=op value=insert/ /c:if c:if test=${requestScope.op == 'update'} html:hidden name=op property=op value=update/ /c:if . If the user enters garbage in any field that is validated the form is redisplayed with an error message on the right side of the field. BUT THE ${requestScope.op} is empty and therefore this information is LOST!! Any idea what I am doing wrong??? I would guess it has to do with how you're setting up the 'op' hidden input. you have name=op property=op value=... which is telling Struts to use the 'op' property of a bean named 'op' in some scope. What does the generated HTML look like? I would suggest: a) move the hidden input outside the c:if tests, and just set it unconditionally; b) simplify the html:hidden, or maybe use vanilla HTML instead of the custom action, since you don't need the extra functionality provided by html:hidden in this case. The result would look like one of: html:hidden name=op value=${requestScope.op}/ input type=hidden name=op value=${requestScope.op} / HTH, L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
Actually now that you mention it, yeah, it should use the outer form by default, I will fix it for 2.1 regards musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: That did it! Thank you, thank you. Not sure why I have to specify a form I am already in, but I don't care. It works! Thanks again, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: Ooops sorry, now I got it, you need to put sportsOrg inside a form, and point to it from the other autocopleter, using formId musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, there is not submit per se, the action is getting called when the user types the second char in the lookup editor. Here is the log when the user types zz: DEBUG interceptor.FileUploadInterceptor - Bypassing /html/ LookupSportsTeam DEBUG interceptor.StaticParametersInterceptor - Setting static parameters {} DEBUG interceptor.ParametersInterceptor - Setting params sportsTeam = [ zz ] DEBUG util.XWorkConverter - Property: sportsTeam DEBUG util.XWorkConverter - Class: com.nielsenmedia.lrs.enames2.view.lineup.LookupSportsTeamAction DEBUG util.XWorkConverter - field-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - global-level type converter for property [sportsTeam] = none found DEBUG util.XWorkConverter - falling back to default type converter [EMAIL PROTECTED] DEBUG validation.AnnotationValidationInterceptor - Validating /html/LookupSportsTeam with method execute. No mention of sportsOrg. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Well, it is great that we are both right but it is still not working. I don't care about foo, I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ s:url id=autosportsorg action=LookupSportsOrg/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ s:autocompleter name=sportsOrg id=sportsOrg keyName=sportsOrgKey theme=ajax href=%{#autosportsorg} cssStyle=width: 450px; dropdownHeight=170; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false searchType=substring forceValidOption=true/ /div /s:form In LookupSportsTeamAction I need the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe,
RE: Struts in Servlet 2.4
I found this to be a great tutorial http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html Create your formbean with public Accessors/Mutators for each private attribute and also create methods for reset method validateMethod and of course public no arg constructor for bean in struts-config.xml configuration define the Bean form-beans form-bean name=NameOfBeanForm type=package.NameOfBeanForm/ /form-beans so later in your jsp you will be able to access the FormAttribute html:html html:form action=PathForAction.. html:text property=AttributeFromForm Thanks, but I don't think that has anything to do with what's happening here. This app works under WL8, and I'm having trouble getting it to work in WL9. The problem right now is this html:link... tag, which asks for a property named solicitationNumber in a bean named Contact. It's not the form's default bean, the Action doesn't have any problem getting its form bean. I've verified that it saves the proper bean in a session attribute named Contact. The tag says it can't find it. Dead end. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to format util date with JSTL
How to format util date value with -MM-DD HH:MM GMT this format using JSTL 1.0 Thanks, Vinit -- View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985370 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles-defs.xml and extended attributes...
Hello, I have a menuing system using a custom tag to create menus based on configurations specified in Tiles. I needed to create a more robust solution for menu specification than was provided by the org.apache.struts.tiles.beans.SimpleMenuItem. I extended the org.apache.struts.tiles.beans.MenuItem interface as well. I now have a new MenuItemExt class that extends SimpleMenuItem and implements my new IMenuItemExt that extends MenuItem. The extension provides several additional attributes to a menu item definition beyond that provided out of the box. My problem is this: the new attributes, when specified in tiles-def.xml, are flagged as errors - Attribute 'xyz' must be declared for element 'item'. Is there a way to define these extended attributes in my TLD file or would this require an extension to the tiles-config_1_3.dtd (not really preferable)? What is the correct procedure for declaring these extra attributes such that they are considered valid? Thanks, -Rod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to format util date with JSTL
Vinit, Place the following at the top of your JSP: %@ taglib uri=http://java.sun.com/jsp/jstl/fmt; prefix=fmt % Then, use the following to format your date: fmt:formatDate value=${myDateValue} dateStyle=myDateStyleString / The dateStyle attribute uses the same semantics as the SimpleDateFormat. You can alternatively use the pattern attribute to specify a custom date pattern if you prefer. HTH, -Rod -Original Message- From: Vinit N [mailto:[EMAIL PROTECTED] Sent: Friday, April 13, 2007 15:42 To: [EMAIL PROTECTED] Subject: How to format util date with JSTL How to format util date value with -MM-DD HH:MM GMT this format using JSTL 1.0 Thanks, Vinit -- View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985 370 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Cannot run TabbedPanel tag
Thanks Martin. I tried to add theme=ajax for the div for the first tab, it works. Now, it generates similar code as you posted here. In conclusion, there are two errors in the document page (http://struts.apache.org/2.x/docs/ajax-tags.html): 1. It didn't say that we need to put s:head theme=ajax/ on the page. Thanks to Dave Newton for pointing that out. Without this line, the tabs don't show at all, at least in Eclispe WTP environment. 2. Although it gives a warming for the ajax theme, but it doesn't have correct code in the samples. That was why I was confused. Now, I can generate tabs as I want. Many thanks to the people who support this community. Willa - Original Message From: Martin Gainty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 13, 2007 12:25:11 PM Subject: Re: [S2] Cannot run TabbedPanel tag The struts examples define the individual Tab categories as script type=text/javascript dojo.require(dojo.widget.TabContainer); dojo.require(dojo.widget.LinkPane); dojo.require(dojo.widget.ContentPane); /script then populate the div tags using the predefined dojoTypes div dojoType=TabContainer id=testdoLayout=false div dojoType=struts:BindDiv id=onelabel=Page showError=true h3Unknown page/h3 pre /pre /div div dojoType=struts:BindDiv id=twolabel=Configuration showError=true h3Unknown configuration/h3 pre /pre /div div dojoType=struts:BindDiv id=threelabel=Java Action showError=true h3Unknown or unavailable Action class/h3 pre /pre /div /div HTH M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Minerva CC [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 2:01 PM Subject: Re: [S2] Cannot run TabbedPanel tag Thanks Dave for your help. I tried to add s:head theme=ajax/ in my page and all the html tags to the test.jsp. Then, I got only one tab showing up, which is dynamic one with a close icon. In the panel, I have both panel contents displayed. When I click on the close icon, the dynamic panel content was collapsed. I also tried to put the theme ajax all over the place, in the header, outside and inside the tabbedpanel and I got the same result. Would you be kindly point it out what is wrong? %@ taglib prefix=s uri=/struts-tags% html head script type=text/javascript /script s:head theme=ajax/ /head body s:url id=ajaxTest value=/list.action / s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=test s:div label=static id=static This is an static content tab. /s:div s:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamic /s:div /s:tabbedPanel /body /html Thanks, Willa - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 10:03:04 AM Subject: Re: [S2] Cannot run TabbedPanel tag --- Minerva CC [EMAIL PROTECTED] wrote: %@ taglib prefix=s uri=/struts-tags%s:url id=ajaxTest value=/AjaxTest.action /s:tabbedPanel labelposition=left closeButton=tab selectedTab=dynamic id=tests:div label=static id=staticThis is an static content tab./s:divs:div href=%{ajaxTest} theme=ajax label=dynamic id=dynamicThis is a dynamic content tab. The content of this div will be replaced with the text returned from /AjaxTest.action/s:div/s:tabbedPanel But, when I run it I got an error that the attribute id is required for the TabbedPanlel. So, I added a id and run it again. Then, it populated a page with the text strings, but no tabs. When I view the source code, I can see the following code has been generated: Do you have the s:head theme=ajax/ on your page? Also, as general rule, you should generate well-formed HTML. In other words, create a complete HTML page, not just a JSP fragment, if you are dispatching directly to a JSP. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Struts in Servlet 2.4
Sounds as if your ejb compiler didnt generate and compile the necessary interfaces for what its worth here is a sample of a build for my wl env Note the easiest path is to run the build.xml target to build the ear cd %WL_HOME% cd samples cd server cd examples cd src cd examples cd webservices cd complex cd statelessSession ant build-ejb Note: you can also run all of this by going to /samples/server/medrec/src/medrecEar and running the targets which will run the wlcompile such as build.split.dir or build.web.service Note: I dont have WL version 9 on any of my boxes so I'll let other folks provide help for that specific version (being mindful that whatever solution is provided should run the ejb compiler) HTH/ Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Slattery, Tim - BLS [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, April 13, 2007 1:31 PM Subject: RE: Struts in Servlet 2.4 c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. Well, I've made some progress, I guess. I removed the jstl.jar and standard.jar that came with the Struts distribution. I deleted the taglib tags for c: and fmt: in web.xml. And I got rid of references to -el tags, since in this brave new world, EL should be built-in. And now the page gets past the compiler. But it stops at my first Struts tag: html:link href=/CES/contactForm.do paramId=solicitationNumber paramName=Contact paramProperty=solicitationNumber styleClass=menu title=Respondent Information onClick=Javascript:return contact_window(this, 'Contact','false') Update Respondent Information/html:link The error message is: Root cause of ServletException. javax.servlet.jsp.JspException: Cannot find bean Contact in any scope Now the Action module that runs and invokes this JSP page uses session.setAttribute to store a bean under the name Contact. I have some debug print in that module, and there's *no* doubt at all that it's running that statement. So why can't my struts tag find my bean? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Cannot run TabbedPanel tag
--- Minerva CC [EMAIL PROTECTED] wrote: 1. It didn't say that we need to put s:head theme=ajax/ on the page. http://struts.apache.org/2.x/docs/ajax-tags.html There's a big green box near the very top of the page that says: To use the Ajax tags you need to set the theme attribute to ajax. Use the head tag to configure the page for the ajax theme. Set the debug attribute of the head tag to true to display debug information on the bottom of the page. Glad it's working for you, though. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to format util date with JSTL
You can use the format and parse options of jstl/fmt e.g. %@ taglib prefix=fmt uri=http://java.sun.com/jstl/fmt; % fmt:formatDate value=${myDate} pattern=-MM-DD HH:MM var=formatted / fmt:parseDate value=${formatted} type=both timeStyle=full timeZone=GMT var=parsed/ c:out value=${parsed}/ (parsed in GMT)br M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Vinit N [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 13, 2007 3:42 PM Subject: How to format util date with JSTL How to format util date value with -MM-DD HH:MM GMT this format using JSTL 1.0 Thanks, Vinit -- View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985370 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to format util date with JSTL
Doesn't really belong in a struts list but here fmt:formatDate value=${myDateObject} pattern=-MM-dd HH:mm z / If you want them all in GMT you will have to convert them in your action. Al From: Vinit N [mailto:[EMAIL PROTECTED] Sent: Fri 4/13/2007 3:42 PM To: [EMAIL PROTECTED] Subject: How to format util date with JSTL How to format util date value with -MM-DD HH:MM GMT this format using JSTL 1.0 Thanks, Vinit -- View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985370 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] How to link Tree Node to another dynamic ajax div
Hi, I followed the instruction for the tree tag and created a treeview. Now, I want to select a tree node and display some data in another ajax div. This is how I created the treeview: s:tree theme=ajax rootNode=%{_rootNode} childCollectionProperty=_children nodeIdProperty=_id nodeTitleProperty=_name /s:tree This is what I would do to link ajax to the result action: s:url action=viewresult id=resultUrl s:param name=id value=%{#id} / /s:url s:div id=result theme=ajax href=%{resultUrl} loadingText=Loading... / Now, the question is how do I know if a node is selected? using onSelected attribute to call a javascript function or dojo event? Then, how can I pass the select node id to the id in the action parameter? I know this may be a simple question to most of you. But, I just didn't get it from the manual. Thanks in advance for your help, Willa __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [S2] How to link Tree Node to another dynamic ajax div
--- Minerva CC [EMAIL PROTECTED] wrote: I followed the instruction for the tree tag and created a treeview. Now, I want to select a tree node and display some data in another ajax div. IIRC you need to use Dojo topics to do useful things with tree events. Alas, I do not think they are working currently as discussed in a thread a week or two ago (where I swore my code worked but it had apparently broken at least a few weeks before and I hadn't noticed :/ For further details, search the archives for thread (I don't recall the subject) and look for Manu Mahajan's messages as he was the driver behind a potential fix. https://issues.apache.org/struts/browse/WW-1813 d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation Random Failures
I'm receiving random/spontaneous failures of validation on valid entries. I can use the browser back button, re-submit the same data, and sometimes get it accepted. I'm using simple Required strings: @Validations( requiredStrings = { @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName = company, message = You must enter a value for company., shortCircuit = true, trim = true)} ) I'm curious if there is a bug logged that I haven't found, a patch, or a new jar I need to download. I'm using struts2-core-2.0.6.jar and freemarker-2.3.8.jar Anyone have any input? Thanks, Zach Calvert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Posting Java 5 Enum values
I have an object that contains a Java 5 enum class. I'm having problems getting this to post back to my action. Is there any documentation on how to do this? Do I need to create a custom type converter/annotation/properties file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]