Re: OT YUI slider post conntection
To get started, forget about Struts 2 for the moment. Follow the YUI Slider examples provided by Yahoo.http://developer.yahoo.com/yui/slider/ Attach your own listener to the slider and show convince yourself by updating a form field dynamically If your content is not dynamic, your JSP can contain hidden divs and your javascript simply show and hide the divs. Otherwise, use the YUI Connection Manager to get or post to a struts2 action in your slider listener. The action is just addressed by a URL (eg. /myaction.action) If your action provides an HTML response, the callback function for the Connection Manager can insert that response into the page. If your action needs to provide data, you can use the Struts2 JSON Plugin or a JSON or XML template with the action and your callback can use that object. Hope that helps, Jeromy Evans bhaarat Sharma wrote: Hello I am trying to integrate struts2 with YUI. Trying to make a slider bar that will have price range from 0 - 200 and when user moves the slider bar the items on the right are updated automatically based on the current position of the slider bar. so Items on the right will be in different 's i am guessing and will be slide up/down or show/hide based on the slider. I am lost as to where to begin with this. I havnt worked with YUI and struts 2 before. Any pointers where to start iwth this? Was thinking about just making something that shows/hides a div in YUI but ddint find an example of this in their vast # of examples :( - 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]
how to access the properties of one action by another action
Hello all, I am fetching a list of objects in one action and i want to use the same list of objection when i move to another action from that action. How can i do that? Actually i use the list of objects to populate the table of a jsp page and the i want to access the same list of objects in the action that is triggered when the form of that jsp page is submitted. Do i have to fetch those objects again or is there any way that i can use the same list of objects fetched in earlier action? -- Thanks, Prashant Khanal
[S2] Validation
Hi I have an application in Struts 2, my problem is when i try to submit the form even if there are values in the form input box it stills give validation message to the user to enter values for the required fields. here is my form fields. here is my UserMgt-save-validation.xml: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> true Employee ID is required. true Lastname is required. true First Name is required. true true password.equals(password2) Password confirmation did not match. I also implement prepare interceptors in my action class UserMgt.class here is the prepare code public void prepare() throws Exception { if (userid != null ){ UserBean userBean = new UserBean(); setEdituser(userBean.findUser(userid)); } ModuleBean moduleBean=new ModuleBean(); setModules(moduleBean.getAllModule()); } please help me. Thanks in advance for your help. -- View this message in context: http://www.nabble.com/-S2--Validation-tp15539111p15539111.html 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: JSP Tree
Hi Naveen, Got this from google.. http://jsptree.sourceforge.net/ ~Santosh On Feb 16, 2008 8:50 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- naveen k <[EMAIL PROTECTED]> wrote: > > I am using struts1.1 for my application. > > I want to show some links in tree view on JSP page. > > How can i do that in JSP pages? > > Is there any predefined tag for that? > > If possible can any one send me a sample code. > > There is no S1 tree tag shipped with S1. > > Have you tried searching the web? > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Santosh G Gokak
[ANN-OT] February 19 - Stateful Applications that Scale Like Stateless Ones by Orion Letizi at Googleplex in Silicon Valley
Advanced Registration is required to be part of give-away drawing. You can register at: http://sv-web-jug.eventbrite.com/ This is a free event open to the general public. So, please forward this announcement on to other interested parties. The online meeting announcement is here: https://sv-web-jug.dev.java.net/servlets/NewsItemView?newsItemID=5425 18:30-19:00 Arrive & mingle -- Food & drinks provided by Google 19:00-20:30 Stateful Applications that Scale Like Stateless Ones talk by Orion Letizi TALK DESCRIPTION Within every innocent web application lies a sleeping monster. There comes a time when every successful web application outgrows its single-machine architecture. Whether for high-availability, scalability, or both, the adult web application must grow to live on more than one application server. That's when the latent beast strikes: the State Monster. The most recent accepted wisdom about solving application state problems in a scaled-out production architecture is to make your web application "stateless"—i.e., externalize all application state out of the application tier so that any application server can serve any user request. Unfortunately for the owners of such applications, making it "stateless" is hard to do, corrupts the programming and data model of the application, and pushes the problem out to other pieces of infrastructure that are ill-equipped to handle it. Stateless programming is hard on the application developer, hard on the application infrastructure, and hard on the application. There must be a better way to write business applications. In this talk, we will discuss the current "stateless" application paradigm, its shortcomings, and a new alternative using Terracotta's open-source availability and scalability technology for the Java Virtual Machine. Please be sure to preregister at http://sv-web-jug.eventbrite.com/ so you will be eligible for our raffle. We will be Using Jim Weaver's JavaFX Spinning Wheel for our raffle. You can learn more about the project at: http://learnjavafx.typepad.com/weblog/2008/01/spinning-wheel.html Currently, the prizes include: * IntelliJ IDEA license from JetBrains * Ajax Security from Addison Wesley * Pro JSF and Ajax: Building Rich Internet Components from Apress * Filthy Rich Clients from Addison Wesley (2 copies) * Professional Hibernate from Wrox Press * Professional Java Development with the Spring Framework from Wrox Press * Professional Ajax 2nd Edition from Wrox Press This meeting was organized by the Silicon Valley Web Developer JUG and is being co-hosted by the Silicon Valley JUG. -- | Michael "Van" Riper | http://weblogs.java.net/blog/van_riper/ | http://www.linkedin.com/in/vanriper | Silicon Valley Web Developer JUG | mailto:[EMAIL PROTECTED] | https://sv-web-jug.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] struts result going to a current page
Dave Newton wrote: --- Dale Newfield <[EMAIL PROTECTED]> wrote: ${#context.get(@[EMAIL PROTECTED]).getHeader("Referer")} Ew. Yep. It's almost enough to make me want to put the request object in as a named thingie. You won't get an argument from me. That and the current action (as #action, I would have sworn we all talked about that at one point? to avoid issues with multiple pages, iterators, etc. and property shadowing). +1 -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] struts result going to a current page
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > ${#context.get(@[EMAIL PROTECTED]).getHeader("Referer")} Ew. It's almost enough to make me want to put the request object in as a named thingie. That and the current action (as #action, I would have sworn we all talked about that at one point? to avoid issues with multiple pages, iterators, etc. and property shadowing). Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] struts result going to a current page
Dave Newton wrote: --- Dale Newfield <[EMAIL PROTECTED]> wrote: P.S.: If that request.getHeader bit doesn't work, it's because I think the OGNL #request object might be the request namespace rather than the actual HttpServletRequest object. That's correct; #request is the request context, not the request itself. I posted the OGNL for getting the actual request a few days ago; it's a little twisted. From that post (which was asking how to get the current request URL): Thanks. Since this poster isn't asking for the request URL, but the page from which that request was submitted, which is the Referrer, I think that means they want: name="location">${#context.get(@[EMAIL PROTECTED]).getHeader("Referer")} -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: and AJAX
Dave, I need 3 selects chained together. As I understand it, the will not fit my needs. What I am requesting is an example of using AJAX techniques in a struts2 based app to populate a . Are people using dojo or homegrown js, and how do they wire it to an action? I've not used AJAX before, so that's why I would like to see an example first so I don't waste your time with the nitty-gritty before my feet are even wet. Any examples would be greatly appreciated. -Ryan -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Saturday, February 16, 2008 5:50 AM To: Struts Users Mailing List Subject: RE: and AJAX --- "Stanley, Eric" <[EMAIL PROTECTED]> wrote: > Been, there done that. Anything out there with a real example? What exactly are you asking for? Do you not want to use the built-in (if you need more than two select boxes it's probably not worth it)? There are a million examples of doing linked select boxes via Ajax on the web; what specific issue are you having with the S2 aspect of things? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT YUI slider post conntection
Hello I am trying to integrate struts2 with YUI. Trying to make a slider bar that will have price range from 0 - 200 and when user moves the slider bar the items on the right are updated automatically based on the current position of the slider bar. so Items on the right will be in different 's i am guessing and will be slide up/down or show/hide based on the slider. I am lost as to where to begin with this. I havnt worked with YUI and struts 2 before. Any pointers where to start iwth this? Was thinking about just making something that shows/hides a div in YUI but ddint find an example of this in their vast # of examples :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] struts result going to a current page
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > P.S.: If that request.getHeader bit doesn't work, it's because I think > the OGNL #request object might be the request namespace rather than the > actual HttpServletRequest object. That's correct; #request is the request context, not the request itself. I posted the OGNL for getting the actual request a few days ago; it's a little twisted. From that post (which was asking how to get the current request URL): Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemesh & Struts 2
You could say Struts 2 was built with SiteMesh in mind :) The WebWork folks heavily favored their sister project SiteMesh and had SiteMesh support in there from day one. In Struts 2, we moved it out into the SiteMesh plugin: http://struts.apache.org/2.x/docs/sitemesh-plugin.html Don On Feb 17, 2008 8:07 PM, Matthew Seaborn <[EMAIL PROTECTED]> wrote: > > Has anyone had much experience with SiteMesh and Struts 2? > > Do they 'play' together well? > > Are there better alternatives when styling/compiling pages? > > Thanks. > > > > CONFIDENTIALITY - This email and any files transmitted with it, are > confidential, may be legally privileged and are intended solely for the use > of the individual or entity to whom they are addressed. If this has come to > you in error, you must not copy, distribute, disclose or use any of the > information it contains. Please notify the sender immediately and delete them > from your system. > > SECURITY - Please be aware that communication by email, by its very nature, > is not 100% secure and by communicating with Perform Group by email you > consent to us monitoring and reading any such correspondence. > > VIRUSES - Although this email message has been scanned for the presence of > computer viruses, the sender accepts no liability for any damage sustained as > a result of a computer virus and it is the recipient's responsibility to > ensure that email is virus free. > > AUTHORITY - Any views or opinions expressed in this email are solely those of > the sender and do not necessarily represent those of Perform Group. > > COPYRIGHT - Copyright of this email and any attachments belongs to Perform > Group, Companies House Registration number 6324278. > > - > 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]
Sitemesh & Struts 2
Has anyone had much experience with SiteMesh and Struts 2? Do they 'play' together well? Are there better alternatives when styling/compiling pages? Thanks. CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system. SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence. VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient’s responsibility to ensure that email is virus free. AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group. COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]