External And Internal URLs
I have tomcat running on a server with an internal name of http://webserver1 This is then mapped (im not sure how as this is not my area) to the external URL: http://maps.gov.au However, when a struts action is invoked by a user on the external website, the internal host name is resolved when a page is forwarded to. Is there anyway to specify that all pages in a site should resolve to a particular host address? As an EXAMPLE, I type in the following address: http://maps.gov.au/customer/login.jsp Which contains a form with the following action: action=custmer/login.do Which is defined in the struts-config.xml as having a successful forward like this: forward name=success path=/customer/addCustomerDone.jsp / When this forward gets invoked, I am redirected to the following URL http://webserver1/customer/login.jsp Can anyone suggest how I fix this problem? Thanks heaps, Toby *** This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the Department of Lands. This email message has been swept by MIMEsweeper for the presence of computer viruses. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Difference between different validator forms
Hi All 1.)what are the difference in scenarios when we want to use DynaValidatorForm and DynaValidatorActionForm 1.)what are the difference in scenarios when we want to use ValidatorForm and ValidatorActionForm Thanks, -Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
[EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable validate in actionForm
Sebastian Ho wrote: I suppose this is how I do it? html:submit property=action value=Create Experiment bean:message key=button.createexperiment/ html:hidden property=selection value=createexperiment / /html:submit Why don't you just use a cancel button and then validate won't be called? You can still label the cancel button as Back and it will submit to your action. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Difference between different validator forms
http://wiki.apache.org/struts/ValidatorActionForms On Wed, 18 Aug 2004 12:12:14 +0530, Jitesh Sinha [EMAIL PROTECTED] wrote: Hi All 1.)what are the difference in scenarios when we want to use DynaValidatorForm and DynaValidatorActionForm 1.)what are the difference in scenarios when we want to use ValidatorForm and ValidatorActionForm Thanks, -Jitesh - 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: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
Thanks Rick. Right now the form is in session scope. Giving the action mapping and the form definition for your reference : form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lines type=com.test.Line[]/ form-property name=lastSlotId type=java.lang.String / form-property name=campaignId type=java.lang.Integer / /form-bean Action mapping is : action path=/8200/123 type=com.test.myAction name=MyForm scope=session input=/myJSP.jsp forward name=success path=/8200/123.do/ /action Regds Ravi -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:20 PM To: Struts Users Mailing List Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException [EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing collections in jsp
To pass a range of values i used in PassAction.java Vector v=null; v.add(somestring); v.add(someotherstring); request.setAttribute(name,v); and in the jsp i tried to access it like logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate but i got an error saying javax.servlet.ServletException: Cannot find bean list in scope request anyone know wat is this problem my struts-config action mapping is action path=/accountslisting type=com.c2rmnet.struts.action.AccountslistAction validate=false forward name=success path=/form/AccountListing.jsp / forward name=invalidsession path=/form/InvalidSession.jsp / /action Thanks vinu
RE: Accessing collections in jsp
Hmm, i don't think your Passaction code is complete?? With this code, you would already get an nllpointerexception on the v variable! Aren't you missing something? Otherwise: try Vector v=new Vector(); -Original Message- From: vineesh . kumar [mailto:[EMAIL PROTECTED] Sent: woensdag 18 augustus 2004 9:13 To: [EMAIL PROTECTED] Subject: Accessing collections in jsp To pass a range of values i used in PassAction.java Vector v=null; v.add(somestring); v.add(someotherstring); request.setAttribute(name,v); and in the jsp i tried to access it like logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate but i got an error saying javax.servlet.ServletException: Cannot find bean list in scope request anyone know wat is this problem my struts-config action mapping is action path=/accountslisting type=com.c2rmnet.struts.action.AccountslistAction validate=false forward name=success path=/form/AccountListing.jsp / forward name=invalidsession path=/form/InvalidSession.jsp / /action Thanks vinu STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen.
RE: Accessing collections in jsp
Use html:options tag. -Original Message- From: vineesh . kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:43 PM To: [EMAIL PROTECTED] Subject: Accessing collections in jsp To pass a range of values i used in PassAction.java Vector v=null; v.add(somestring); v.add(someotherstring); request.setAttribute(name,v); and in the jsp i tried to access it like logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate but i got an error saying javax.servlet.ServletException: Cannot find bean list in scope request anyone know wat is this problem my struts-config action mapping is action path=/accountslisting type=com.c2rmnet.struts.action.AccountslistAction validate=false forward name=success path=/form/AccountListing.jsp / forward name=invalidsession path=/form/InvalidSession.jsp / /action Thanks vinu Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
variable number of parameters in DynaValidatorActionForm
Hi: We are developing an application with struts using DynaValidatorActionForm. The attributes of the forms must be declared in struts-config file. Can I have dynamic forms with variable number of parameters without declare in struts-config? Thanks
RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
Hi Rick, How to re-set the size of the array in the form? Can you pls point me to some example. Regds Ravi -Original Message- From: Ravi Vedala (WT01 - FINANCE BANKING SERVICES) Sent: Wednesday, August 18, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException Thanks Rick. Right now the form is in session scope. Giving the action mapping and the form definition for your reference : form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lines type=com.test.Line[]/ form-property name=lastSlotId type=java.lang.String / form-property name=campaignId type=java.lang.Integer / /form-bean Action mapping is : action path=/8200/123 type=com.test.myAction name=MyForm scope=session input=/myJSP.jsp forward name=success path=/8200/123.do/ /action Regds Ravi -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:20 PM To: Struts Users Mailing List Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException [EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Difference between different validator forms
Okay so that means DynaValidatorForm can be used throughout a formbean while DynaValidatorActionForm can be made particular to a JSP .Is that correct? Now where can I find answer for 2.)? Thanks -Original Message- From: Kunal Parikh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:24 PM To: Struts Users Mailing List Subject: Re: Difference between different validator forms http://wiki.apache.org/struts/ValidatorActionForms On Wed, 18 Aug 2004 12:12:14 +0530, Jitesh Sinha [EMAIL PROTECTED] wrote: Hi All 1.)what are the difference in scenarios when we want to use DynaValidatorForm and DynaValidatorActionForm 2.)what are the difference in scenarios when we want to use ValidatorForm and ValidatorActionForm Thanks, -Jitesh - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modifying Tiles definitions dinamically
Ok I'll try to explain the whole process. 1) Create your TilesAction. For example, take this example class: snip package foo.bar; public class MyAction extends org.apache.struts.tiles.actions.TilesAction { public ActionForward execute(ComponentContext componentContext, ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception { String userRole; // Used to store the user role to analyze // Insert some code to get the user role. if (userRole.equals(TheBigBoss)) return actionMapping.findForward(menuForBoss); else if (userRole.equals(PoorFellow)) return actionMapping.findForward(menuForFellow); return actionMapping.findForward(default); } } /snip 2) Map the TilesAction in struts-config.xml You should make a thing like this: snip action path=/myTilesAction type=foo.bar.LoadCatalogueAction name=myForm scope=session !-- The form bean name myForm depends on your needs -- forward name=menuForBoss path=myPage.menuForBoss / forward name=menuForFellow path=myPage.menuForFellow / forward name=default path=myPage.menuForEveryoneElse / /action /snip Notice that in the forward path there are tiles definition, but you could use normal path-to-jsp-page. 3) Map the tiles definition (only needed if you are using the tiles definitions in your forwards). snip definition name=myPage.menuForBoss path=/tiles/menuForBoss.jsp / definition name=myPage.menuForFellow path=/tiles/menuForFellow.jsp / definition name=myPage.menuForEveryoneElse path=/tiles/menuForEveryoneElse.jsp / /snip 4) Modify your tiles definition for the page. (I am using your example) definition name=.PartyPlace path=/layouts/layout.jsp .. put name=menu value=/myTilesAction.do/ .. /definition 5) You did it! Bye and sorry for being late in this answer. Antonio Petrelli Leandro Melo wrote: I'm not sure if i get it right, i still have a couple doubts. Take this definition: definition name=.PartyPlace path=/layouts/layout.jsp ... put name=menu value=/chooseMenu.do/ ... /definition Naturally i got a login page, would i have to redirect the login (or just forward the login) to this TilesAction and then manipulate my definition and insert the real jsp page i want??? I have never heard of this TilesAction (haven`t been dealling with struts for long time), but is it possible to some post some bib reference (or web reference) where i can learn how to work with it??? If it`s easy, maybe a little piece of code would also work. Thanks, Leandro --- [EMAIL PROTECTED] escreveu: think the best (and the most elegant) way to make dynamic tiles is by using TilesAction. This because this class has knowledge of the use of Tiles. So write your TilesAction (it is similar to a plain Action, except of some more parameters in the execute method). In the execute method put your code that can distinguish between different users and for each one forward to a different JSP page, that will be your real tile. Obviously map your actions in struts-config.xml just the same way as normal actions. Then put a definition like this (I am using your example): definition name=.PartyPlace path=/layouts/layout.jsp put name=title value=PartyPlace/ put name=header value=/common/header.jsp/ put name=menu value=/common/menu.jsp/ put name=error value=/functionalBlocks/errorHTMLcomponent.jsp/ put name=pageComment value=/choosePageComment.do/ put name=body value=/chooseBody.do/ put name=footer value=/common/footer.jsp/ /definition Hope it helps. Ciao Antonio P.S. In fact in this example a normal Action can be used, but I suggest to use TilesAction because that class can manipulate the definition itself (please people working on Struts, correct me if I am wrong). Leandro Melo wrote: Hi, i got a very ordinary problem. I need to provide diferent menus for diferent people that are logged in the application. I don't know what i should do exactly to provide this funcionality, because i don't really know what Tiles allow me to do (i don't know it's potencial). I got the following base tiles definition in my app. definition name=.PartyPlace path=/layouts/layout.jsp put name=title value=PartyPlace/ put name=header value=/common/header.jsp/ put name=menu value=/common/menu.jsp/ put name=error value=/functionalBlocks/errorHTMLcomponent.jsp/ put name=pageComment value=${pageComment}/ put name=body value=${body}/ put name=footer value=/common/footer.jsp/ /definition One thing i thought is to verify the user permissions at log time, then, depending on the user i'd change the attribute menu of my definition to the page menu2.jsp or menu3.jsp, for example. Can (how) i do that??? I also thought on bulding 2 (or 3 or 4) BASE deifinitions and at log time i'd decide which base definition to use. Can i do that
RE: Difference between different validator forms
Never mind...I got it now.. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:05 PM To: Struts Users Mailing List Subject: RE: Difference between different validator forms Okay so that means DynaValidatorForm can be used throughout a formbean while DynaValidatorActionForm can be made particular to a JSP .Is that correct? Now where can I find answer for 2.)? Thanks -Original Message- From: Kunal Parikh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:24 PM To: Struts Users Mailing List Subject: Re: Difference between different validator forms http://wiki.apache.org/struts/ValidatorActionForms On Wed, 18 Aug 2004 12:12:14 +0530, Jitesh Sinha [EMAIL PROTECTED] wrote: Hi All 1.)what are the difference in scenarios when we want to use DynaValidatorForm and DynaValidatorActionForm 2.)what are the difference in scenarios when we want to use ValidatorForm and ValidatorActionForm Thanks, -Jitesh - 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] - 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: Accessing collections in jsp
What you store in the request with name name doesn't match the attribute name=list in the logic iterate tag. Make sure both are the same! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: woensdag 18 augustus 2004 9:20 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accessing collections in jsp Use html:options tag. -Original Message- From: vineesh . kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:43 PM To: [EMAIL PROTECTED] Subject: Accessing collections in jsp To pass a range of values i used in PassAction.java Vector v=null; v.add(somestring); v.add(someotherstring); request.setAttribute(name,v); and in the jsp i tried to access it like logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate but i got an error saying javax.servlet.ServletException: Cannot find bean list in scope request anyone know wat is this problem my struts-config action mapping is action path=/accountslisting type=com.c2rmnet.struts.action.AccountslistAction validate=false forward name=success path=/form/AccountListing.jsp / forward name=invalidsession path=/form/InvalidSession.jsp / /action Thanks vinu Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen.
logic:present jstl equivalent?
I am attempting to change my application to use jstl wherever possible. Is there an equivalent in jstl for the logic:present tag? For example, I use: logic:present scope=session name=user is there some way to do this in jstl? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:present jstl equivalent?
Try c:if test=${user != null} --Do Something /c:if --Deepak - Original Message - From: Dean A. Hoover [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:37 PM Subject: logic:present jstl equivalent? I am attempting to change my application to use jstl wherever possible. Is there an equivalent in jstl for the logic:present tag? For example, I use: logic:present scope=session name=user is there some way to do this in jstl? Thanks. Dean Hoover - 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: Recursive pages
I think the problem is that you are using a static include. This is an instruction to the jsp - java compiler that, you want to include the current *page source* within itself! You say you get a recursive loop - I'm surprised. I would expect that this wouldn't compile at all - are you sure yuo get a .java file a .class file for your JSP? I think that using a dynamic include (jsp:include/) has a better chance of working. This works as an instruction to include the *results* of the use of your page. Of course I could be entirely wrong about all of this :-) Paul -Original Message- From: terry Highfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:26 AM To: [EMAIL PROTECTED] Subject: Recursive pages Hi all, Does anyone know how to make recursive jsp pages? I believe this can be done using %@ include file=recursive.jsp % I have done this as :- nested:present property=replies nested:iterate property=replies %@ include file=recursive.jsp % /nested:iterate /nested:present The above code is actually in recursive.jsp The bean behind this has a structure : class Message implements Serializable { int id String subject String messageText ArrayList replies // Message objects } Not all messages have replies so this become likes a tree ADT - hence the need for recursion. All I get is a recursive loop! I did try using tiles but with this I get the error Cannot flush within a custom tag (even when I set flush to false), strange it only complains when within an iterate loop and equally annoying due to the fact that I need to do it within an iterate loop. This has been bugging me on and off for a week now and so any help would be greatly appreciated - thank you. Terry. aka: Ingenious Monkey _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
Subject: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? Background: = I'm writing a web front-end to a back-end system which has 1000 user accounts and each user has different rights (ACIs, ACLs) in that back-end (think of LDAP Directory, RDBMS, Filessystem = any Data-Store with user-dependend access-rights) I use J2EE, Tomcat 5.0.27, Struts 1.1+Tiles as front-end, Sun One LDAP as back-end. Requirement(s): - I want to user container managed security to leverage Realms and JNDI/JAAS. - I want to connect to the same back-end with the same user used by container managed security - Therefore I need principal *and* credential of that user by whatever means - authorization is not managed by security-roles in J2EE sphere but by security rules of backend which automatically apply to the logged on user Problem: authorization in back-end: == I can use container-managed security (JNDI-Realm) to authenticate users, *but* can't connect to the back-end as the current user because my application doesn't know the password(credential) of the current user. I can get the Principal, which is not enough. So I can't leverage the ACIs, ACLs of my Back-End System because I have to logon as Superuser/root/DBA who is allowed everything. Solution(s): = 1. Intermediate Servlet -- - User request protected resource - Container forwards to my configured login.jsp - User enters j_username and j_password and submits - login.jsp does not POST to container servlet /j_security_check directly but to by servlet which copies j_username and j_password in the session context and *then* forwards or redirects /j_security_check - Problem: /j_security_check as a servlet mapping magically disappeares by that time in Tomcat 5.0.x, so it complains it can't find '/j_security_check' :-P Part of my LoginAction: ActionForward forward = new ActionForward(); forward.setName(securityCheck); forward.setPath(/j_security_check); // forward.setPath(/../j_security_check); // forward.setPath(http://localhost:8080/j_security_check;); forward.setContextRelative(false); forward.setRedirect(false); // forward.setRedirect(true); 2. ServletFilter -- - User request protected resource - Container forwards to my configured login.jsp - User enters j_username and j_password and submits - login.jsp POSTS to /j_security_check - Container is configured as to apply MyServletFilter to the URL pattern /j_security_check - MyServletFilter gets the POSTed j_username, j_password out of the request, copies them into the session.context and chains to the Servlet /j_security_check which authentificates the user as normal - Problem: MyServletFilter gets called for all URL patterns with the one exeption being '/j_security_check'. :-P Part of my FilterMapping in web.xml: filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher /filter-mapping Part of my LoginFilter: log.warn(*** Executing LoginFilter doFilter()); chain.doFilter(request, response); Being J2EE conform? === Both solutions are J2EE conform. Standards were a bit ambigous at that point but I don't consider both solutions valid. The ServletFilter-solution is described for IBM Webpshere in developerWorks and the Intermediate Servlet was proposed by people on the tomcat mailing and seemed to work on tomcat 4.x Struts and Tiles: I use struts and tiles for the front-end. form-based authentification via login.jsp does work, even with struts and tiles, if I call /j_security_servlet directly in a non Struts-action. The Intermediate Servlet is my Action servlet from struts. j_username and j_password are in an action form bean. I use an ActionForward to '/j_security_check'. Because Struts appends the name of the web-app I tried '/../j_security_check' and 'http://localhost:8080/j_security_check' with forward or redirect but to no success. All *.do URLs are secure and protect be container-managed security. All resources to build the login.jsp are not protected. Subquestion: How do I forward to URIs outside my current web-app? Now it gets appended so I end up with /web-app/j_security_check which cannot be found? I don't think I'm the only one with this problem. What did I wrong? Did I overlook anything? Are my solutions valid. Are there more solutions? I don't want to use ServletFiltering for my proprietary SecurityFilter like the sourceforge.net project but stay with container-managed security. All help is welcome, TIA, Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268
Re: Accessing collections in jsp
In the (name=list) Here the list should be same as key used during setAttribute VAN BROECK Jimmy wrote: Hmm, i don't think your Passaction code is complete?? With this code, you would already get an nllpointerexception on the v variable! Aren't you missing something? Otherwise: try Vector v=new Vector(); -Original Message- From: vineesh . kumar [mailto:[EMAIL PROTECTED] Sent: woensdag 18 augustus 2004 9:13 To: [EMAIL PROTECTED] Subject: Accessing collections in jsp To pass a range of values i used in PassAction.java Vector v=null; v.add(somestring); v.add(someotherstring); request.setAttribute(name,v); and in the jsp i tried to access it like logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate but i got an error saying javax.servlet.ServletException: Cannot find bean list in scope request anyone know wat is this problem my struts-config action mapping is action path=/accountslisting type=com.c2rmnet.struts.action.AccountslistAction validate=false forward name=success path=/form/AccountListing.jsp / forward name=invalidsession path=/form/InvalidSession.jsp / /action Thanks vinu STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
form-property name=lines type=com.test.Line[] size=100/ [EMAIL PROTECTED] wrote: Hi Rick, How to re-set the size of the array in the form? Can you pls point me to some example. Regds Ravi -Original Message- From: Ravi Vedala (WT01 - FINANCE BANKING SERVICES) Sent: Wednesday, August 18, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException Thanks Rick. Right now the form is in session scope. Giving the action mapping and the form definition for your reference : form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lines type=com.test.Line[]/ form-property name=lastSlotId type=java.lang.String / form-property name=campaignId type=java.lang.Integer / /form-bean Action mapping is : action path=/8200/123 type=com.test.myAction name=MyForm scope=session input=/myJSP.jsp forward name=success path=/8200/123.do/ /action Regds Ravi -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:20 PM To: Struts Users Mailing List Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException [EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Insert a SimpleMenuItem with a tiles tag
Hi All, Is it possible to insert a SimpleMenuItem with a tiles tag instead of using html tags ? For ex. If I have items defined as definition name=/content/menu.body path=/layout/tabsLayout.jsp putList name=tabList item value=Image Upload link=/content/manageContentUpload.do tooltip=Click to upload Images icon=/images/logo.gif/ item value=HTML Upload link=/content/manageHtmlUpload.do tooltip=Click to upload HTML icon=/images/plus.gif/ /putList /definition Now to display these items I can use c:forEach var=tab items=${tabList} varStatus=status a href=c:url value=${tab.link}/ html-el:img page=${tab.icon} alt=${tab.tooltip}/c:out value=${tab.value}//a /c:forEach Is there a tiles way to insert this tab ? thanks n regards Deepak
RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
I have tried that ...form-property don't have a size attribute. :-( -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Wednesday, August 18, 2004 4:50 PM To: [EMAIL PROTECTED] Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException form-property name=lines type=com.test.Line[] size=100/ [EMAIL PROTECTED] wrote: Hi Rick, How to re-set the size of the array in the form? Can you pls point me to some example. Regds Ravi -Original Message- From: Ravi Vedala (WT01 - FINANCE BANKING SERVICES) Sent: Wednesday, August 18, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException Thanks Rick. Right now the form is in session scope. Giving the action mapping and the form definition for your reference : form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lines type=com.test.Line[]/ form-property name=lastSlotId type=java.lang.String / form-property name=campaignId type=java.lang.Integer / /form-bean Action mapping is : action path=/8200/123 type=com.test.myAction name=MyForm scope=session input=/myJSP.jsp forward name=success path=/8200/123.do/ /action Regds Ravi -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:20 PM To: Struts Users Mailing List Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException [EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing collections in jsp
Vector v=new Vector(); v.add(somestring); v.add(someotherstring); request.setAttribute(list,v); logic:iterate id=mylist name=list Element Value: bean:write name=mylist /br / /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] XDoclet Struts DynaForm 1.2.2 SNAPSHOT
There is copy/paste error in your example link at the bottom. It has this: (note the error) * @struts.dynaform name=personForm *type=org.apache.struts..validator.DynaValidatorForm ^^ *description=This is an example form. *validate=true -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Nick Heudecker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 10:46 PM Subject: [ANNOUNCE] XDoclet Struts DynaForm 1.2.2 SNAPSHOT This release adds validation support to the DynaForms generated by XDoclet. Using the @struts.validator tags, you can create the validation.xml for dynamic action forms in the same manner used by the struts.form XDoclet feature. Please note that this is a SNAPSHOT release, created from a fairly recent XDoclet CVS snapshot. (I'm not an XDoclet committer, and sf.net has been having problems with anonymous CVS lately.) I would like additional people to test this version. It works fine for me, but YMMV. If I can get a few people to confirm that it works for them, I'll submit it as a patch to the forthcoming XDoclet 1.2.2 release. In addition to the validation support, this patch also supports Struts 1.2.1 and 1.1.3 version of the validator. If I got anything wrong or missed anything, please let me know. Downloads - http://www.systemmobile.com/code/xdoclet-apache-module-1.2.2-SNAPSHOT.jar The full text of the README may be found here at: http://www.systemmobile.com/code/xdoclet-dynaform-README.txt An example may be found at: http://www.systemmobile.com/code/Person.java -- Nick Heudecker System Mobile, Inc. Email: [EMAIL PROTECTED] Web: http://www.systemmobile.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]
Refresh problem.
Hello, I have a page wherein I am listing a set of records. This page also has a button for adding new record. Now if the user clicks the [Add New] button, adds the record(after which he is directed to the same listing page) and refreshes the same record is added once more. Here onwards every refresh ends up adding 1 more record to database. Any suggesstions to get rid of this problem ? I have tried controller nocache=true / but no success :( nitin __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh problem.
The user is refreshing on the LIST page. :) --- nitin dubey [EMAIL PROTECTED] wrote: Hello, I have a page wherein I am listing a set of records. This page also has a button for adding new record. Now if the user clicks the [Add New] button, adds the record(after which he is directed to the same listing page) and refreshes the same record is added once more. Here onwards every refresh ends up adding 1 more record to database. Any suggesstions to get rid of this problem ? I have tried controller nocache=true / but no success :( nitin __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh problem.
Either redirect to the LIST page or use token for the Add page - Original Message - From: nitin dubey [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 5:40 PM Subject: Re: Refresh problem. The user is refreshing on the LIST page. :) --- nitin dubey [EMAIL PROTECTED] wrote: Hello, I have a page wherein I am listing a set of records. This page also has a button for adding new record. Now if the user clicks the [Add New] button, adds the record(after which he is directed to the same listing page) and refreshes the same record is added once more. Here onwards every refresh ends up adding 1 more record to database. Any suggesstions to get rid of this problem ? I have tried controller nocache=true / but no success :( nitin __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_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]
Re: multiple checkboxes
Jignesh Kapadia [EMAIL PROTECTED] wrote on 08/17/2004 10:14:20 PM: John, Thanks for your reply. This is a standard way of using multiple check boxes(i.e.html:multibox). If you read my earlier e- mail the requirement is little bit different.Just explaining in brief again. say for example I have a list with 10 objects. I am displaying a list on a page with a check box. the object has a boolean property . depending on the value of the property the check box should be checked or unchecked initially.( In case of Multibox all of them are unchecked initially). Now I can check and uncheck the check boxes my self on that page and when I submit the page the result should be displayed on the next page. Working with checkboxes can be tricky, and there is *a lot* about them in the archives. As you stated below, On the next screen it should show me the updated records. i.e. records which are unchecked on previous page should be seen as unchecked and records which are checked on previous page should be shown as checked. So, what in fact are you seeing on your next page? A partial list of only the ones previously checked? A full list with none of them checked? Something else? Are the values of the boolean property (the checkbox) coming from the database, and are they being displayed properly initially? What is not working in your observation? A few more hints may better help us to help you ... :) Let me know if anybody has come across this scenario with struts1.1. This is a user requirement and we really don't know how do it. We tried both using html:checkbox and html:multibox but could not make it work if anybody can give their expert comments then it will be a good help, Thanks, Jignesh [EMAIL PROTECTED] wrote: To use a multibox, you need a getter and setter method in your form-bean that returns/sets a String array. Each element in this String array corresponds to the value of a checked check-box. Let's say you have a multibox coded like this: ie 1) myFormBean has a method 'getDataBaseRecords' that returns a collection. 2) Each object in the 'getDataBaseRecords' collection has a method 'getDescription', which is used to set the value of (and display against) the checkbox. 3) myFormBean has methods 'get/setSelectedDataBaseRecords' coded as follows: private String[] selectedDataBaseRecords = new String[0]; public String[] getSelectedDataBaseRecords() { return selectedDataBaseRecords; } public void setSelectedDataBaseRecords(String[] value) { selectedDataBaseRecords = value; } The effect of the above will be to generate html as follows: [input] 1] name=selectedDataBaseRecords [input] 2] name=selectedDataBaseRecords [input] 3] name=selectedDataBaseRecords [input] 4] name=selectedDataBaseRecords etc. Initially none of the check-boxes are checked because I've coded 'getSelectedDataBaseRecords' to return a zero length array. If you were to check the second and third check-boxes and submit the form, 'getSelectedDataBaseRecords' would then return an array of 2 elements, with the values '[description 2]' and '[description 3]'. Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+--- | | Jignesh Kapadia | | | | | @yahoo.com | | | | | | 18/08/2004 12:33 PM | | | Please respond to | | | Struts Users | | | Mailing List | | | | |-+--- -- | | | | To: [EMAIL PROTECTED] | | cc: | | Subject: multiple checkboxes | -- | Hi , I have a scenario in our aplication which we are developing with Struts1.1. on first screen we are displaying bunch of records retrieved from database. Each record will have checkbox in first column. This check box wil be initially checked or unchecked depending upon the value of a bean attribute. A user can chsnge this .He/She can check or uncheck any check boxes for any records.On the next screen it should show me the updated records. i.e. records which are unchecked on previous page should be seen as unchecked and records which are checked on previous page should be shown as checked. I tried this using html:multibox tag but it is not working. can somebody give a suggestion on this? It will be good help from your side if you can give your expert feedback ASAP. Thanks, Jignesh Kapadia - Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? New and Improved
Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
I am not sure what version of Struts you're using but my version (Struts 1.1 or Struts 1.2) does support the size attribute on form-property. Here's the relevant doco for the size attribute on form-property from the Struts 1.1 DTD. -- size The number of array elements to create if the value of the type attribute specifies an array, but there is no value specified for the initial attribute. -- [EMAIL PROTECTED] wrote: I have tried that ...form-property don't have a size attribute. :-( -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Wednesday, August 18, 2004 4:50 PM To: [EMAIL PROTECTED] Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException form-property name=lines type=com.test.Line[] size=100/ [EMAIL PROTECTED] wrote: Hi Rick, How to re-set the size of the array in the form? Can you pls point me to some example. Regds Ravi -Original Message- From: Ravi Vedala (WT01 - FINANCE BANKING SERVICES) Sent: Wednesday, August 18, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: RE: DynaActionForm java.lang.ArrayIndexOutOfBoundsException Thanks Rick. Right now the form is in session scope. Giving the action mapping and the form definition for your reference : form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=lines type=com.test.Line[]/ form-property name=lastSlotId type=java.lang.String / form-property name=campaignId type=java.lang.Integer / /form-bean Action mapping is : action path=/8200/123 type=com.test.myAction name=MyForm scope=session input=/myJSP.jsp forward name=success path=/8200/123.do/ /action Regds Ravi -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:20 PM To: Struts Users Mailing List Subject: Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException [EMAIL PROTECTED] wrote: Thanks Anirudh. Tried, but didn't work. Same issue. Reinitialize the array with an adequate size in your form's reset method (or set your form to use Session scope). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: variable number of parameters in DynaValidatorActionForm
Take a look at Dyna ActionForms: http://www.niallp.pwp.blueyonder.co.uk/ --- Hevia_Vega,_Andrés [EMAIL PROTECTED] wrote: Hi: We are developing an application with struts using DynaValidatorActionForm. The attributes of the forms must be declared in struts-config file. Can I have dynamic forms with variable number of parameters without declare in struts-config? Thanks __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple checkboxes
You don't want to use multibox ... you need to set 'indexed=true' on the html:checkbox control in the logic:iterate or c:forEach loop that displays your list. Jignesh Kapadia wrote: Hi , Thanks for your reply. Let me clarify liitle bit more. Screen One I am displaying a list of records from a list(which is List of an object). There is a boolean property in the object depending on which the check box should be checked or unchecked. Once the list is displayed. I should have an option to check and uncheck those records. Then I hit submit button Screen Two On this screen I should see only the records checked on previous page. My questions are as follows: 1) How do I show the records with some checkboxes checked initially and some boxes not.(I don't know how many records will be there on the page )? I can user html:checkbox to do that but then it does not pick up the change when you hit submit button and it goes to next screen. 2) Is there any way in html:multibox to show some check boxes checked initially and some boxes not in a list? since it intializes strArray in reset method. I hope it helps , let me knoe if you need some more info. Thanks, Jignesh Susan Bradeen [EMAIL PROTECTED] wrote: Jignesh Kapadia wrote on 08/17/2004 10:14:20 PM: John, Thanks for your reply. This is a standard way of using multiple check boxes(i.e.html:multibox). If you read my earlier e- mail the requirement is little bit different.Just explaining in brief again. say for example I have a list with 10 objects. I am displaying a list on a page with a check box. the object has a boolean property . depending on the value of the property the check box should be checked or unchecked initially.( In case of Multibox all of them are unchecked initially). Now I can check and uncheck the check boxes my self on that page and when I submit the page the result should be displayed on the next page. Working with checkboxes can be tricky, and there is *a lot* about them in the archives. As you stated below, On the next screen it should show me the updated records. i.e. records which are unchecked on previous page should be seen as unchecked and records which are checked on previous page should be shown as checked. So, what in fact are you seeing on your next page? A partial list of only the ones previously checked? A full list with none of them checked? Something else? Are the values of the boolean property (the checkbox) coming from the database, and are they being displayed properly initially? What is not working in your observation? A few more hints may better help us to help you ... :) Let me know if anybody has come across this scenario with struts1.1. This is a user requirement and we really don't know how do it. We tried both using html:checkbox and html:multibox but could not make it work if anybody can give their expert comments then it will be a good help, Thanks, Jignesh [EMAIL PROTECTED] wrote: To use a multibox, you need a getter and setter method in your form-bean that returns/sets a String array. Each element in this String array corresponds to the value of a checked check-box. Let's say you have a multibox coded like this: ie 1) myFormBean has a method 'getDataBaseRecords' that returns a collection. 2) Each object in the 'getDataBaseRecords' collection has a method 'getDescription', which is used to set the value of (and display against) the checkbox. 3) myFormBean has methods 'get/setSelectedDataBaseRecords' coded as follows: private String[] selectedDataBaseRecords = new String[0]; public String[] getSelectedDataBaseRecords() { return selectedDataBaseRecords; } public void setSelectedDataBaseRecords(String[] value) { selectedDataBaseRecords = value; } The effect of the above will be to generate html as follows: [input] 1] name=selectedDataBaseRecords [input] 2] name=selectedDataBaseRecords [input] 3] name=selectedDataBaseRecords [input] 4] name=selectedDataBaseRecords etc. Initially none of the check-boxes are checked because I've coded 'getSelectedDataBaseRecords' to return a zero length array. If you were to check the second and third check-boxes and submit the form, 'getSelectedDataBaseRecords' would then return an array of 2 elements, with the values '[description 2]' and '[description 3]'. Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+--- | | Jignesh Kapadia | | | | | @yahoo.com | | | | | | 18/08/2004 12:33 PM | | | Please respond to | | | Struts Users | | | Mailing List | | | | |-+--- -- | | | | To: [EMAIL PROTECTED] | | cc: | | Subject: multiple checkboxes | -- | Hi , I have a scenario in our aplication which we are developing with Struts1.1. on first screen we are
Re: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
I got a solution from the tomcat mailing-list: - It is not possible to intersect a servlet between the login.jsp and the /j_security_check servlet -.Therefore it is not possible that the action of the login.jsp form is a Struts Action(Servlet) But You can provide your own Realm (JNDIRealm, JDBCRealm or JAAS Module) along woth your own subclass of Principal. Your Principal gets more members and access methods, like for the credential and more... It's a hard way but it is standards conform, clean and portable. I may write more if I was successful with it. Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generating struts tags from a Java Bean
These tags are going to be reused many times throughout our application, and I prefer to omit this type of decision logic from the jsp pages. Therefore I think it pays to design custom tags to accomplish what I need. I have been looking at some of the source code for the various tag handlers that extend BaseTagHandler, and I see there is a lot going on. I would like to make sure to leverage all of the functionality included in BaseTagHandler. I was wondering if there is some documentation out there for creating new BaseTagHandler extensions, or custom Struts HTML components in general. I understand how to create taglibs in general, I am asking whether there is such specific documentation for Struts. Much thanks/Victor Grazi -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 4:42 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Generating struts tags from a Java Bean The standard struts-example webapp has a case of conditional rendering as well. The registration.jsp page is used for both Create a New User and Log In As Existing User., but only in the latter case does it show the table at the bottom. This is controlled by the following tag around the table: logic:equal name=RegistrationForm property=action scope=request value=Edit ... /logic:equal which makes sure that the action property on the RegistrationForm bean equals Edit before displaying the table. Craig On Tue, 17 Aug 2004 16:13 -0400, Victor Grazi [EMAIL PROTECTED] wrote: The custom tag approach seems like the way to go. Is there any documentation for considerations besides just perusing the source code for exisiting html tags? Regards Victor ... Original Message ... On Tue, 17 Aug 2004 10:53:29 -0700 Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: Victor Grazi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 10:35 AM To: Struts Users Mailing List Subject: RE: Generating struts tags from a Java Bean the problem we are trying to solve is that depending on user entitlements and application state, some fields need to either be a drop down or just text. What I would suggest then, is to figure that out in your action class, and pass boolean values as part of the form bean. Then on the jsp page, use logic:equal or c:if to determine what to show. Alternatively you could write your own tag library for the field, which would figure out what html to generate based on the attributes you give it. Something like: myCompany:inputField value=${formName.fieldName} applicationState=${applicationState}/ You can of course get a list of roles from isUserInRole(), or hand them in if your doing something else. If you have only 1 or 2 pages, then the first option may be easier, but if you're doing it a lot then the taglib option might be better. ___ Sent with SnapperMail www.snappermail.com .. Original Message ... On Tue, 17 Aug 2004 09:46:49 -0700 Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 9:42 AM To: Struts Users Mailing List Subject: Generating struts tags from a Java Bean I would like to generate struts tags from a Java bean, which would decide what tags to generate based on context. Is there any way to configure the JSP so that it will evaluate the JavaBean first, before the struts tags, so that the struts tags can be generated by the beans? I don't believe so. Since struts tags only generate html, you could have beans that generate html based on context. However, given that struts and jstl have some rather powerful logical statements, you might be able to achieve what you want without doing away with struts tags, which is what you are basically asking. What problem are you trying to solve? -- --- 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating struts tags from a Java Bean
Jim Barrows wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 9:42 AM To: Struts Users Mailing List Subject: Generating struts tags from a Java Bean I would like to generate struts tags from a Java bean, which would decide what tags to generate based on context. Is there any way to configure the JSP so that it will evaluate the JavaBean first, before the struts tags, so that the struts tags can be generated by the beans? I don't believe so. Since struts tags only generate html, you could have beans that generate html based on context. However, given that struts and jstl have some rather powerful logical statements, you might be able to achieve what you want without doing away with struts tags, which is what you are basically asking. The JSP page is read and the tags there are used to do whatever is required to respond to a call to that page. Usually that is writing a JSP page. While you cannot use the struts tags between the JSP page and the ultimate HTML page, you can do something like that with code in the background. So, instead of dynamically generating Struts tags as follows: JSP page your tags JSP page struts tags - HTML page html tags You could somewhat easily work up something like the following: JSP page your tags Model Use of struts tags logic to generate HTML page html tags from your tags That clear? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm java.lang.ArrayIndexOutOfBoundsException
[EMAIL PROTECTED] wrote: I have tried that ...form-property don't have a size attribute. :-( If you are using a DynaForm, which I recommend you DO NOT (I think they stink big time and I can give reasons why) you'll have to create your own class that subclasses DynaForm so that you can declare a reset method and then call initialize in the reset() method: intialize( mapping ); However, if you are using a Session scoped form you won't have to do this ASSUMING you are making sure you com.test.Line[] is set up with a size BEFORE you ever try to populate anything in it from a form. If I was you, I'd scrap using a DynaForm and just use a regular ActionForm (or one of it's Validator flavors). Then simply set up declare your field: Line[] line = new Line[100]; Like Bill mentioned I thought size did work for a DynaForm property for an Array? Are you using Struts 1.1 Been a while since I used the Dynas. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating struts tags from a Java Bean
Victor Grazi wrote: These tags are going to be reused many times throughout our application, and I prefer to omit this type of decision logic from the jsp pages. Therefore I think it pays to design custom tags to accomplish what I need. I have been looking at some of the source code for the various tag handlers that extend BaseTagHandler, and I see there is a lot going on. I would like to make sure to leverage all of the functionality included in BaseTagHandler. I was wondering if there is some documentation out there for creating new BaseTagHandler extensions, or custom Struts HTML components in general. I understand how to create taglibs in general, I am asking whether there is such specific documentation for Struts. Much thanks/Victor Grazi My experience is that the easiest, fastest and best thing to do is to look through the source code of the struts tags. The tags are actually fairly simple coding. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generating struts tags from a Java Bean
Not exactly; can you elaborate the step Model Use of struts tags logic to generate -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:15 AM To: Struts Users Mailing List Subject: Re: Generating struts tags from a Java Bean The JSP page is read and the tags there are used to do whatever is required to respond to a call to that page. Usually that is writing a JSP page. While you cannot use the struts tags between the JSP page and the ultimate HTML page, you can do something like that with code in the background. So, instead of dynamically generating Struts tags as follows: JSP page your tags JSP page struts tags - HTML page html tags You could somewhat easily work up something like the following: JSP page your tags Model Use of struts tags logic to generate HTML page html tags from your tags That clear? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh problem.
Hi Nitin Have a look at this (Search for 'token' on this page) http://www.scioworks.net/camino_doc/manual/strutsIntro/struts1_0.html Hope you find a solution. Harjot - Original Message - From: nitin dubey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:05 AM Subject: Refresh problem. Hello, I have a page wherein I am listing a set of records. This page also has a button for adding new record. Now if the user clicks the [Add New] button, adds the record(after which he is directed to the same listing page) and refreshes the same record is added once more. Here onwards every refresh ends up adding 1 more record to database. Any suggesstions to get rid of this problem ? I have tried controller nocache=true / but no success :( nitin __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_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]
how to print out html with bean tag
I need to print out strings without having the html escaped i.e. i have br embedded in some message and I want the browser to reat them as line breaks, instead i always get them displayed whether i have filter set to on or off in bean:write ... thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to print out html with bean tag
Use a Bean:write with filter=false tag. Why did you write on and off? Are you giving those as your flags to the filter attribute? Docs for bean:write read: filter - If this attribute is set to true, the rendered property value will be filtered for characters that are sensitive in HTML, and any such characters will be replaced by their entity equivalents. http://struts.apache.org/userGuide/struts-bean.html#write Regards, David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of teknokrat Sent: Wednesday, August 18, 2004 11:06 AM To: [EMAIL PROTECTED] Subject: how to print out html with bean tag I need to print out strings without having the html escaped i.e. i have br embedded in some message and I want the browser to reat them as line breaks, instead i always get them displayed whether i have filter set to on or off in bean:write ... thanks - 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 print out html with bean tag
http://marc.theaimsgroup.com/?l=struts-userm=109164486002689w=2 On Wed, 18 Aug 2004 16:06:16 +0100, teknokrat [EMAIL PROTECTED] wrote: I need to print out strings without having the html escaped i.e. i have br embedded in some message and I want the browser to reat them as line breaks, instead i always get them displayed whether i have filter set to on or off in bean:write ... thanks - 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 print out html with bean tag
David Friedman wrote: Use a Bean:write with filter=false tag. Why did you write on and off? Are you giving those as your flags to the filter attribute? yes, i did use false , in fact what i have exactly is bean:write name=quote property=errorMessage filter=false/ And it still converts br to lt;brgt; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Recursive pages
Cheers Paul, I went down this path also, I tried jsp:include but this was ignore by tomcat. So much ignored infact the the jsp:incluse bit is not included in the source - it is just completly ignored. Have you any suggestion on this? Thank you, Terry From: Paul McCulloch [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Recursive pages Date: Wed, 18 Aug 2004 09:43:32 +0100 I think the problem is that you are using a static include. This is an instruction to the jsp - java compiler that, you want to include the current *page source* within itself! You say you get a recursive loop - I'm surprised. I would expect that this wouldn't compile at all - are you sure yuo get a .java file a .class file for your JSP? I think that using a dynamic include (jsp:include/) has a better chance of working. This works as an instruction to include the *results* of the use of your page. Of course I could be entirely wrong about all of this :-) Paul -Original Message- From: terry Highfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:26 AM To: [EMAIL PROTECTED] Subject: Recursive pages Hi all, Does anyone know how to make recursive jsp pages? I believe this can be done using %@ include file=recursive.jsp % I have done this as :- nested:present property=replies nested:iterate property=replies %@ include file=recursive.jsp % /nested:iterate /nested:present The above code is actually in recursive.jsp The bean behind this has a structure : class Message implements Serializable { int id String subject String messageText ArrayList replies // Message objects } Not all messages have replies so this become likes a tree ADT - hence the need for recursion. All I get is a recursive loop! I did try using tiles but with this I get the error Cannot flush within a custom tag (even when I set flush to false), strange it only complains when within an iterate loop and equally annoying due to the fact that I need to do it within an iterate loop. This has been bugging me on and off for a week now and so any help would be greatly appreciated - thank you. Terry. aka: Ingenious Monkey _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
form submit problem...
I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I have tried to use : html:link href=checkCustomer.doimg src=img/next.gif/html:link -- but it does not work as the form attributes are never set. And also i tried to write a javascript as function gotoNext(){ document.forms[0].action=checkCustomer.do; document.forms[0].submit(); } and in jsp use a link to call javascript function, even that does not work. Below is my jsp file... html:form action=/checkCustomer bean:message key=prompt.emailaddress/ html:text property=emailAddress / br Enter your password: html:password property=password redisplay=false/ br span class=lefthtml:link href=chooseProductOptions.doimg src=img/back.gif/html:link/span span class=righthtml:submit value=next//span Any help is greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: form submit problem...
-Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. http://husted.com/struts/tips/001.html and since you didn't use google: http://www.google.com/search?q=struts+image+button+sourceid=mozilla-searchstart=0start=0 I have tried to use : html:link href=checkCustomer.doimg src=img/next.gif/html:link -- but it does not work as the form attributes are never set. Of course not. A link is not the submit button on a form. And also i tried to write a javascript as function gotoNext(){ document.forms[0].action=checkCustomer.do; document.forms[0].submit(); } and in jsp use a link to call javascript function, even that does not work. Below is my jsp file... html:form action=/checkCustomer bean:message key=prompt.emailaddress/ html:text property=emailAddress / br Enter your password: html:password property=password redisplay=false/ br span class=lefthtml:link href=chooseProductOptions.doimg src=img/back.gif/html:link/span span class=righthtml:submit value=next//span Any help is greatly appreciated. - 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: Recursive pages
Strange. I can successfully define a very simple recursivejsp page: {begin recursive.jsp} Hello World jsp:include page=recursive.jsp flush=true/ {begin recursive.jsp} This works fine (other than crashing the container of course!). I'm using Tomcat 4 inside JBoss 3.2.3. looking at the generted servlet source I can see that the jsp:include/ is rendered as: JspRuntimeLibrary.include(request, response, recursive.jsp, out, true); So, I don't think there is any fundamental problem with using recurive, dynamic jsp includes. I'd check the spelling etc. in your code try again. Then simplify your jsp as far as you can - remove your recusrsion checks and just let the container fall over. If you are still having problems then I can send you a custom tag which implements include functionality - this might help with debugging. Paul -Original Message- From: terry Highfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 5:11 PM To: [EMAIL PROTECTED] Subject: RE: Recursive pages Cheers Paul, I went down this path also, I tried jsp:include but this was ignore by tomcat. So much ignored infact the the jsp:incluse bit is not included in the source - it is just completly ignored. Have you any suggestion on this? Thank you, Terry From: Paul McCulloch [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Recursive pages Date: Wed, 18 Aug 2004 09:43:32 +0100 I think the problem is that you are using a static include. This is an instruction to the jsp - java compiler that, you want to include the current *page source* within itself! You say you get a recursive loop - I'm surprised. I would expect that this wouldn't compile at all - are you sure yuo get a .java file a .class file for your JSP? I think that using a dynamic include (jsp:include/) has a better chance of working. This works as an instruction to include the *results* of the use of your page. Of course I could be entirely wrong about all of this :-) Paul -Original Message- From: terry Highfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:26 AM To: [EMAIL PROTECTED] Subject: Recursive pages Hi all, Does anyone know how to make recursive jsp pages? I believe this can be done using %@ include file=recursive.jsp % I have done this as :- nested:present property=replies nested:iterate property=replies %@ include file=recursive.jsp % /nested:iterate /nested:present The above code is actually in recursive.jsp The bean behind this has a structure : class Message implements Serializable { int id String subject String messageText ArrayList replies // Message objects } Not all messages have replies so this become likes a tree ADT - hence the need for recursion. All I get is a recursive loop! I did try using tiles but with this I get the error Cannot flush within a custom tag (even when I set flush to false), strange it only complains when within an iterate loop and equally annoying due to the fact that I need to do it within an iterate loop. This has been bugging me on and off for a week now and so any help would be greatly appreciated - thank you. Terry. aka: Ingenious Monkey _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants
How to set mask to validate ISO-8859-1 character set
What is the correct way to setup struts validation to allow a user to enter the following characters in ISO-8859-1 character set: Hex codeEquivalent characters 0x09\t 0x0A\n 0x0D\r 0x21-0x7E !#$%'()*+,-./0123456789:;=[EMAIL PROTECTED]|}~ 0xA0-0xFF ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ -- James THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: form submit problem...
Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form submit problem...
Michael McGrady wrote: I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael Perhaps I should say that I used the same solution that Ted suggests but found that it was way too heavy. You have to create an ImageButtonBean in your ActionForm for each image button you are using. I have created an alternative for that which creates one button and then nulls the action after mining it for its name on the above site. But, I believe that the button object solution is not as useful as just mining the original request name.x parameter as indicated in the above link. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: form submit problem...
Thanks for the references, but just replacing html:submit with the below line worked for me span class=righthtml:image src='img/next.gif' value='Submit' title='Submit' onclick='this.submit();' //span -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:50 PM To: Struts Users Mailing List Subject: Re: form submit problem... Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael - 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: form submit problem...
Shilpa Nalgonda wrote: Thanks for the references, but just replacing html:submit with the below line worked for me span class=righthtml:image src='img/next.gif' value='Submit' title='Submit' onclick='this.submit();' //span -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:50 PM To: Struts Users Mailing List Subject: Re: form submit problem... Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael This is because, apparently, you are only using one image button. If you have two, then you need these other suggestions. Sometimes, to make sure your code is ready for prime time, it is good to code as if someone might add another image button later, even though you don't need it now. Just a suggestion. If your page people decide to add a button later, you don't want to have to redo all your internal logic. Know what I mean? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:img tag and modules
Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does not work, it tries to rewrite the url to the current module. So I goto the api page and look what it says under page: page The module-relative path, starting with a slash, of the image to be displayed by this tag. The rendered URL for this image will automatically prepend the context path of this web application (in the same manner as the page attribute on the link tag works), in addition to any necessary URL rewriting. You must specify either the page attribute or the src attribute. [RT Expr] note module-relative, which i would assume SHOULD be the specified module. But yet under the module attribute it says: module Prefix name of a Module that contains the action mapping for the Action that is specified by the action attribute. You must specify an action attribute for this to have an effect. Note: Use to map to the default module. [RT Expr] How can this only work for specifying an action??? I cannot use action because when I try that it appends .do on to the link, and if i use src it wont rewrite anything appropriately... And i dont want to be repeating the use of images in images directories in each of my modules... right now I'm stuck doing img src=%= request.getContextPath() %/images/myimage.gif/ which sucks in my opinion.. what is everyone else doing?? -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to print out html with bean tag
Ok, sorry, I am an idiot. In case any one else has problems with this - RESTART TOMCAT! I don't know why , but after restarting tomcat (5.16) the tag works OK. Go figure. Kishore Senji wrote: http://marc.theaimsgroup.com/?l=struts-userm=109164486002689w=2 On Wed, 18 Aug 2004 16:06:16 +0100, teknokrat [EMAIL PROTECTED] wrote: I need to print out strings without having the html escaped i.e. i have br embedded in some message and I want the browser to reat them as line breaks, instead i always get them displayed whether i have filter set to on or off in bean:write ... thanks - 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]
Validation plug-in Websphere Studio 5.0.1
I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. TIA, Bart PS - I've put this inquiry on the IBM WSAD forum also but have not heard anything. Bart M Fuller DaimlerChrysler Services North America LLC CIMS 405-03-15 2 Inkster Road Farmington HIlls MI 48334-5326 Phone: 248-427-5920(T/L) 870-5920 mailto: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 10:49 AM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. How about some code? Log is cool but code is better :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation plug-in Websphere Studio 5.0.1
I thought we got rid of you!!!;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - 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: Validation plug-in Websphere Studio 5.0.1
I went to JavaOne and Craig told me how much I was missed ;-) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:00 PM I thought we got rid of you!!!;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:06 PM To: 'Struts Users Mailing List' Subject: RE: Validation plug-in Websphere Studio 5.0.1 I went to JavaOne and Craig told me how much I was missed ;-) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:00 PM I thought we got rid of you!!!;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:59 PM To: Struts Users Mailing List Subject: Re: Validation plug-in Websphere Studio 5.0.1 I thought we got rid of you!!!;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:59 PM To: Struts Users Mailing List Subject: Re: Validation plug-in Websphere Studio 5.0.1 I thought we got rid of you!!!;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:59 PM To: Struts Users Mailing List Subject: RE: Validation plug-in Websphere Studio 5.0.1 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 10:49 AM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. How about some code? Log is cool but code is better :) - 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: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM To: 'Struts Users Mailing List' Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. TIA, Bart PS - I've put this inquiry on the IBM WSAD forum also but have not heard anything. Bart M Fuller DaimlerChrysler Services North America LLC CIMS 405-03-15 2 Inkster Road Farmington HIlls MI 48334-5326 Phone: 248-427-5920(T/L) 870-5920 mailto: [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: how to print out html with bean tag
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of teknokrat Sent: Wednesday, August 18, 2004 1:39 PM To: [EMAIL PROTECTED] Subject: Re: how to print out html with bean tag Ok, sorry, I am an idiot. In case any one else has problems with this - RESTART TOMCAT! I don't know why , but after restarting tomcat (5.16) the tag works OK. Go figure. Kishore Senji wrote: http://marc.theaimsgroup.com/?l=struts-userm=109164486002689w=2 On Wed, 18 Aug 2004 16:06:16 +0100, teknokrat [EMAIL PROTECTED] wrote: I need to print out strings without having the html escaped i.e. i have br embedded in some message and I want the browser to reat them as line breaks, instead i always get them displayed whether i have filter set to on or off in bean:write ... thanks - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:img tag and modules
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:31 PM To: Struts Users Mailing List Subject: html:img tag and modules Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does not work, it tries to rewrite the url to the current module. So I goto the api page and look what it says under page: page The module-relative path, starting with a slash, of the image to be displayed by this tag. The rendered URL for this image will automatically prepend the context path of this web application (in the same manner as the page attribute on the link tag works), in addition to any necessary URL rewriting. You must specify either the page attribute or the src attribute. [RT Expr] note module-relative, which i would assume SHOULD be the specified module. But yet under the module attribute it says: module Prefix name of a Module that contains the action mapping for the Action that is specified by the action attribute. You must specify an action attribute for this to have an effect. Note: Use to map to the default module. [RT Expr] How can this only work for specifying an action??? I cannot use action because when I try that it appends .do on to the link, and if i use src it wont rewrite anything appropriately... And i dont want to be repeating the use of images in images directories in each of my modules... right now I'm stuck doing img src=%= request.getContextPath() %/images/myimage.gif/ which sucks in my opinion.. what is everyone else doing?? -David - 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: form submit problem...
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:27 PM To: Struts Users Mailing List Subject: Re: form submit problem... Shilpa Nalgonda wrote: Thanks for the references, but just replacing html:submit with the below line worked for me span class=righthtml:image src='img/next.gif' value='Submit' title='Submit' onclick='this.submit();' //span -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:50 PM To: Struts Users Mailing List Subject: Re: form submit problem... Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael This is because, apparently, you are only using one image button. If you have two, then you need these other suggestions. Sometimes, to make sure your code is ready for prime time, it is good to code as if someone might add another image button later, even though you don't need it now. Just a suggestion. If your page people decide to add a button later, you don't want to have to redo all your internal logic. Know what I mean? Michael - 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 print out html with bean tag
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Wednesday, August 18, 2004 1:11 PM To: [EMAIL PROTECTED] Subject: Re: how to print out html with bean tag Are you sure that these strings have not already been encoded with the character entities? teknokrat wrote: David Friedman wrote: Use a Bean:write with filter=false tag. Why did you write on and off? Are you giving those as your flags to the filter attribute? yes, i did use false , in fact what i have exactly is bean:write name=quote property=errorMessage filter=false/ And it still converts br to lt;brgt; - 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: form submit problem...
PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:04 PM To: Struts Users Mailing List Subject: RE: form submit problem... Thanks for the references, but just replacing html:submit with the below line worked for me span class=righthtml:image src='img/next.gif' value='Submit' title='Submit' onclick='this.submit();' //span -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:50 PM To: Struts Users Mailing List Subject: Re: form submit problem... Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:img tag and modules
There is unsubscription information on the bottom of every post. You may get better results that way. Jones, Demian [EMAIL PROTECTED] To 'Struts Users Mailing List' 08/18/2004 02:12 [EMAIL PROTECTED] PM cc Subject Please respond to RE: html:img tag and modules Struts Users Mailing List [EMAIL PROTECTED] he.org PLEASE TAKE ME OFF THIS MAILING -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:31 PM To: Struts Users Mailing List Subject: html:img tag and modules Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does not work, it tries to rewrite the url to the current module. So I goto the api page and look what it says under page: page The module-relative path, starting with a slash, of the image to be displayed by this tag. The rendered URL for this image will automatically prepend the context path of this web application (in the same manner as the page attribute on the link tag works), in addition to any necessary URL rewriting. You must specify either the page attribute or the src attribute. [RT Expr] note module-relative, which i would assume SHOULD be the specified module. But yet under the module attribute it says: module Prefix name of a Module that contains the action mapping for the Action that is specified by the action attribute. You must specify an action attribute for this to have an effect. Note: Use to map to the default module. [RT Expr] How can this only work for specifying an action??? I cannot use action because when I try that it appends .do on to the link, and if i use src it wont rewrite anything appropriately... And i dont want to be repeating the use of images in images directories in each of my modules... right now I'm stuck doing img src=%= request.getContextPath() %/images/myimage.gif/ which sucks in my opinion.. what is everyone else doing?? -David - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Supreme idiot
The equivalent of a 3 year old throwing a temper tantrum. How did you get a job, by holding your breath? Jones, Demian [EMAIL PROTECTED] 08/18/2004 02:12 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To 'Struts Users Mailing List' [EMAIL PROTECTED] cc Subject RE: Validation plug-in Websphere Studio 5.0.1 PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:06 PM To: 'Struts Users Mailing List' Subject: RE: Validation plug-in Websphere Studio 5.0.1 I went to JavaOne and Craig told me how much I was missed ;-) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:00 PM I thought we got rid of you!!! ;) - 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: form submit problem...
Why don´t you just follow the instructions to remove YOURSELF from the mailing list? thanks for not spamming us anymore Regards, Lucas - Original Message - From: Jones, Demian [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:13 PM Subject: RE: form submit problem... PLEASE TAKE ME OFF THIS MAILING -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:04 PM To: Struts Users Mailing List Subject: RE: form submit problem... Thanks for the references, but just replacing html:submit with the below line worked for me span class=righthtml:image src='img/next.gif' value='Submit' title='Submit' onclick='this.submit();' //span -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:50 PM To: Struts Users Mailing List Subject: Re: form submit problem... Jim Barrows wrote: -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:15 AM To: Struts Users Mailing List Subject: form submit problem... I am trying to submit a form with users email and password, such that when the user ckicks on next the checkCustomer.do action is executed. I am using html:submit to display the next button as below: span class=righthtml:submit value=next//span But i do not want to use html:submit as i have to display a img button . How can i do that. I would also suggest: http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Michael - 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] - 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: unsubscribe
Me thinks this is not a person...if it is, he's a moron. -Original Message- From: Andy Dailey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:19 PM To: Struts Users Mailing List Subject: RE: Validation plug-in Websphere Studio 5.0.1 To unsubscribe, e-mail: [EMAIL PROTECTED] -Original Message- From: Jones, Demian [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:13 PM To: 'Struts Users Mailing List' Subject: RE: Validation plug-in Websphere Studio 5.0.1 PLEASE TAKE ME OFF THIS MAILING -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:59 PM To: Struts Users Mailing List Subject: Re: Validation plug-in Websphere Studio 5.0.1 I thought we got rid of you!!!;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. -- -- - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Learning the basics
If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fix computer's date was Re: Struts with Flex
dhay, might be cool if you fixed you system date on your computer:) Thanks. [EMAIL PROTECTED] wrote: Yep, but a pretty prohibitive one. I was very eager to look at Struts with Flex, but then threw it out as we could never afford $12,000 per server. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:img tag and modules
Man and I got all excited that someone was replying to my thread and I might get an answer... but noo it gets highjacked by someone who cant read =D -David - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:16 PM Subject: RE: html:img tag and modules There is unsubscription information on the bottom of every post. You may get better results that way. Jones, Demian [EMAIL PROTECTED] To 'Struts Users Mailing List' 08/18/2004 02:12 [EMAIL PROTECTED] PM cc Subject Please respond to RE: html:img tag and modules Struts Users Mailing List [EMAIL PROTECTED] he.org PLEASE TAKE ME OFF THIS MAILING -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:31 PM To: Struts Users Mailing List Subject: html:img tag and modules Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does not work, it tries to rewrite the url to the current module. So I goto the api page and look what it says under page: page The module-relative path, starting with a slash, of the image to be displayed by this tag. The rendered URL for this image will automatically prepend the context path of this web application (in the same manner as the page attribute on the link tag works), in addition to any necessary URL rewriting. You must specify either the page attribute or the src attribute. [RT Expr] note module-relative, which i would assume SHOULD be the specified module. But yet under the module attribute it says: module Prefix name of a Module that contains the action mapping for the Action that is specified by the action attribute. You must specify an action attribute for this to have an effect. Note: Use to map to the default module. [RT Expr] How can this only work for specifying an action??? I cannot use action because when I try that it appends .do on to the link, and if i use src it wont rewrite anything appropriately... And i dont want to be repeating the use of images in images directories in each of my modules... right now I'm stuck doing img src=%= request.getContextPath() %/images/myimage.gif/ which sucks in my opinion.. what is everyone else doing?? -David - 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] - 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: html:img tag and modules
You guys are hysterical...thanks -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:25 PM To: Struts Users Mailing List Subject: Re: html:img tag and modules Man and I got all excited that someone was replying to my thread and I might get an answer... but noo it gets highjacked by someone who cant read =D -David - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:16 PM Subject: RE: html:img tag and modules There is unsubscription information on the bottom of every post. You may get better results that way. Jones, Demian [EMAIL PROTECTED] To 'Struts Users Mailing List' 08/18/2004 02:12 [EMAIL PROTECTED] PM cc Subject Please respond to RE: html:img tag and modules Struts Users Mailing List [EMAIL PROTECTED] he.org PLEASE TAKE ME OFF THIS MAILING -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:31 PM To: Struts Users Mailing List Subject: html:img tag and modules Hi I've got a pretty basic problem and I can't seem to understand why the html:img tag doesn't support it. I've got all my images stored under the default module in the /images directory. I want to access them from different modules. I tried html:img page=/image/myimage.gif module=/ and it does not work, it tries to rewrite the url to the current module. So I goto the api page and look what it says under page: page The module-relative path, starting with a slash, of the image to be displayed by this tag. The rendered URL for this image will automatically prepend the context path of this web application (in the same manner as the page attribute on the link tag works), in addition to any necessary URL rewriting. You must specify either the page attribute or the src attribute. [RT Expr] note module-relative, which i would assume SHOULD be the specified module. But yet under the module attribute it says: module Prefix name of a Module that contains the action mapping for the Action that is specified by the action attribute. You must specify an action attribute for this to have an effect. Note: Use to map to the default module. [RT Expr] How can this only work for specifying an action??? I cannot use action because when I try that it appends .do on to the link, and if i use src it wont rewrite anything appropriately... And i dont want to be repeating the use of images in images directories in each of my modules... right now I'm stuck doing img src=%= request.getContextPath() %/images/myimage.gif/ which sucks in my opinion.. what is everyone else doing?? -David - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
http://struts.apache.org/userGuide/ Mark -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:23 PM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - 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: Validation plug-in Websphere Studio 5.0.1
Below are snippets from my form. I'm working on the first check of several. But have hit a wall with this problem. The problem doesn't occur without the errors.add(Test add, new ActionError(errors.physical.takeover)); line of code. With it the validate() method got called 163 times. Thanks for the interest. Bart public class AuditAssignmentForm extends ValidatorActionForm { private boolean physicalAudit = false; private boolean bookAudit = false; private boolean dracAudit = false; private boolean takeoverAudit = false; /** * Constructor */ public AuditAssignmentForm() { super(); } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // // Validation plug-in is being used so must first call parent validate method // before doing custom validations. // ActionErrors errors = super.validate(mapping, request); if(errors == null){ errors = new ActionErrors(); } if(physicalAudit == true){ if(takeoverAudit == true){ errors.add(Test add, new ActionError( errors.physical.takeover)); } } if(errors.isEmpty()){ return null; }else{ return errors; } } Jim Barrows [EMAIL PROTECTED] m To Struts Users Mailing List 08/18/2004 01:58 [EMAIL PROTECTED] PM cc Subject Please respond to RE: Validation plug-in Websphere Struts Users Studio 5.0.1 Mailing List [EMAIL PROTECTED] he.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 10:49 AM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. How about some code? Log is cool but code is better :) - 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]
[OT] Re: Validation plug-in Websphere Studio 5.0.1
James Mitchell wrote: I thought we got rid of you!!!;) You can't get rid of Mark.. he lingers around like a bad case of athlete's foot. Or sort of like a foul body odor cloud released after eating 25 hot wings and a bowl of chili. Mark it's much easier for us to breath in #FunkyCodeMonkey (irc.darkmyst.org) since you haven't been around as much. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:55 PM Subject: RE: Validation plug-in Websphere Studio 5.0.1 Validator sucks. Learn to live without it - use forms validation. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:49 PM I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. - 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] -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
I didn't actually find the user guide that helpful for learning basics or for my specific question. Thanks. Ken -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:35 AM To: 'Struts Users Mailing List' Subject: RE: Learning the basics http://struts.apache.org/userGuide/ Mark -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:23 PM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - 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: Learning the basics
Mark ... you still live!? Welcome back. :-) It's been awfully quiet around here without you. Simon -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 1:35 PM To: 'Struts Users Mailing List' Subject: RE: Learning the basics http://struts.apache.org/userGuide/ Mark -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:23 PM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - 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: Learning the basics
Kenneth Litwak wrote: I didn't actually find the user guide that helpful for learning basics or for my specific question. Thanks. Ignore Mark (trust me:) I have some simple tutorials here if you want some basics http://www.reumann.net/do/struts/main One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. You normally wouldn't want that. Why would you want to go to three different controllers (Action classes) based on three different radio buttons? Try some of those tutorials first.. maybe you are getting some of terms wrong in relation to action ? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:23 AM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. http://www.google.com/search?q=struts+tutorialsourceid=mozilla-searchstart=0start=0 How would you wire these three in regular html? You need to trap the onclick action in javascript to do that, just like in regular html. When looking at how do I in struts, sometimes the answer is actually how would I in html. Then look for something similar in struts tags. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
http://www.reumann.net/do/struts/main Kenneth Litwak [EMAIL PROTECTED] 08/18/2004 02:44 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject RE: Learning the basics I didn't actually find the user guide that helpful for learning basics or for my specific question. Thanks. Ken -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:35 AM To: 'Struts Users Mailing List' Subject: RE: Learning the basics http://struts.apache.org/userGuide/ Mark -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:23 PM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
Hi Jim, Well, I did actually look in google before posting. If I was doing this in regular HTML, I would not use Javascript, which I view as evil. Thanks. Ken -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:49 AM To: Struts Users Mailing List Subject: RE: Learning the basics -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:23 AM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. http://www.google.com/search?q=struts+tutorialsourceid=mozilla-searchs tart=0start=0 How would you wire these three in regular html? You need to trap the onclick action in javascript to do that, just like in regular html. When looking at how do I in struts, sometimes the answer is actually how would I in html. Then look for something similar in struts tags. - 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: Learning the basics
That's right, Rick, you self-promoting egotistical maggot, tell the newbies it's okay to ignore the API. Mark -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:49 PM To: Struts Users Mailing List Subject: Re: Learning the basics Kenneth Litwak wrote: I didn't actually find the user guide that helpful for learning basics or for my specific question. Thanks. Ignore Mark (trust me:) I have some simple tutorials here if you want some basics http://www.reumann.net/do/struts/main One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. You normally wouldn't want that. Why would you want to go to three different controllers (Action classes) based on three different radio buttons? Try some of those tutorials first.. maybe you are getting some of terms wrong in relation to action ? -- Rick - 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: Validation plug-in Websphere Studio 5.0.1
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:38 AM To: Struts Users Mailing List Subject: RE: Validation plug-in Websphere Studio 5.0.1 snip bunch of code/snip if(physicalAudit == true){ if(takeoverAudit == true){ errors.add(Test add, new ActionError( errors.physical.takeover)); from the javadoc: public void add(java.lang.String property, ActionError error) property - Property name (or ActionErrors.GLOBAL_ERROR) I don't think your property name is not a valid property name. try test.add, testAdd or something similar. Or, for testing this out try GLOBABL_ERROR as defined above. } } if(errors.isEmpty()){ return null; }else{ return errors; } } Jim Barrows [EMAIL PROTECTED] m To Struts Users Mailing List 08/18/2004 01:58 [EMAIL PROTECTED] PM cc Subject Please respond to RE: Validation plug-in Websphere Struts Users Studio 5.0.1 Mailing List [EMAIL PROTECTED] he.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 10:49 AM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. How about some code? Log is cool but code is better :) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Learning the basics
Ken, if you are familiar with basic web programming and the web MVC architecture, then download the Struts examples and go through them. That should get you up and running. After that, there are several books and a couple of good sites that can get you up to speed. The struts website contains a wealth of information on getting started. A google search wouldn't hurt either. As for your question, you may want to look at DispatchAction. It allows you to invoke different logic in the same action based on what button the user clicked. There are other ways of doing this (hidden parameter and javascript, etc...). hth, robert -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:45 PM To: Struts Users Mailing List Subject: RE: Learning the basics I didn't actually find the user guide that helpful for learning basics or for my specific question. Thanks. Ken -Original Message- From: Galbreath, Mark A [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:35 AM To: 'Struts Users Mailing List' Subject: RE: Learning the basics http://struts.apache.org/userGuide/ Mark -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:23 PM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. Ken - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Top things Mark has been during his time away from the Struts List
Ok I'll start with a few - Ejoying some quality time in jail with a guy named Bubba. - Spending time cruising the parking lot at Washington Elementary looking for a date. - Re-reading the book How To Insult Someone in Ten Words or Less and of course... - Drinking Old English, St Ides, or The Bull. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Top things Mark has been during his time away from the Struts List
1 more... - molesting innocent squirrels behind the pub -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:55 PM Subject: [OT] Top things Mark has been during his time away from the Struts List Ok I'll start with a few - Ejoying some quality time in jail with a guy named Bubba. - Spending time cruising the parking lot at Washington Elementary looking for a date. - Re-reading the book How To Insult Someone in Ten Words or Less and of course... - Drinking Old English, St Ides, or The Bull. - 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: Learning the basics
-Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:52 AM To: Struts Users Mailing List Subject: RE: Learning the basics Hi Jim, Well, I did actually look in google before posting. If I was doing this in regular HTML, I would not use Javascript, which I view as evil. Ah... sorry... How would you do it without javascript? Which, while evil, is occasionaly useful. As occasional as possible of course. I was thinking you would want to do it as the user clicked the radio button. Unless you're talking about: html:form action=/dispatchAction html:radio property=action value=action1/ html:radio property=action value=action2/ html:submit/ /html:form You can look at dispatchAction, or LookupDispatchAction for details on how to set that up. And for more info: http://husted.com/struts/tips/002.html http://husted.com/struts/tips/003.html And in general: http://husted.com/struts/tips/index.html Thanks. Ken -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:49 AM To: Struts Users Mailing List Subject: RE: Learning the basics -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:23 AM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. http://www.google.com/search?q=struts+tutorialsourceid=mozill a-searchs tart=0start=0 How would you wire these three in regular html? You need to trap the onclick action in javascript to do that, just like in regular html. When looking at how do I in struts, sometimes the answer is actually how would I in html. Then look for something similar in struts tags. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Top things Mark has been during his time away from the Struts List
They were NOT innocent! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:03 PM To: Struts Users Mailing List Subject: Re: [OT] Top things Mark has been during his time away from the Struts List 1 more... - molesting innocent squirrels behind the pub -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:55 PM Subject: [OT] Top things Mark has been during his time away from the Struts List Ok I'll start with a few - Ejoying some quality time in jail with a guy named Bubba. - Spending time cruising the parking lot at Washington Elementary looking for a date. - Re-reading the book How To Insult Someone in Ten Words or Less and of course... - Drinking Old English, St Ides, or The Bull. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation plug-in Websphere Studio 5.0.1
My bad. That was some code I was trying just to see what would happen. This line gets the same results and is the one I started with. Promise. errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionError( errors.physical.takeover)); Jim Barrows [EMAIL PROTECTED] m To Struts Users Mailing List 08/18/2004 02:54 [EMAIL PROTECTED] PM cc Subject Please respond to RE: Validation plug-in Websphere Struts Users Studio 5.0.1 Mailing List [EMAIL PROTECTED] he.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:38 AM To: Struts Users Mailing List Subject: RE: Validation plug-in Websphere Studio 5.0.1 snip bunch of code/snip if(physicalAudit == true){ if(takeoverAudit == true){ errors.add(Test add, new ActionError( errors.physical.takeover)); from the javadoc: public void add(java.lang.String property, ActionError error) property - Property name (or ActionErrors.GLOBAL_ERROR) I don't think your property name is not a valid property name. try test.add, testAdd or something similar. Or, for testing this out try GLOBABL_ERROR as defined above. } } if(errors.isEmpty()){ return null; }else{ return errors; } } Jim Barrows [EMAIL PROTECTED] m To Struts Users Mailing List 08/18/2004 01:58 [EMAIL PROTECTED] PM cc Subject Please respond to RE: Validation plug-in Websphere Struts Users Studio 5.0.1 Mailing List [EMAIL PROTECTED] he.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 10:49 AM To: [EMAIL PROTECTED] Subject: Validation plug-in Websphere Studio 5.0.1 I'm new to Struts and couldn't find anything about this on the archive so please bear with me if I'm repeating a question. I'm developing a Struts 1.1 web app and trying to implement the validation plug-in. Things went well as long as I was only using the validations that came with the plug-in. When I try to add my own custom validation by overriding the validate() method of the form the server crashes with an IllegalStateException after dozens of loops in the validate() method. The statement causing the problem is the errors.add() statement. Without it there is no problem. If anyone can help I'd be grateful. I can provide more details from the log if needed. How about some code? Log is cool but code is better :) - 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] - 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: [OT] Top things Mark has been during his time away from the Struts List
Sorry, I meant to say unsuspecting. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Galbreath, Mark A [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:04 PM Subject: RE: [OT] Top things Mark has been during his time away from the Struts List They were NOT innocent! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:03 PM To: Struts Users Mailing List Subject: Re: [OT] Top things Mark has been during his time away from the Struts List 1 more... - molesting innocent squirrels behind the pub -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:55 PM Subject: [OT] Top things Mark has been during his time away from the Struts List Ok I'll start with a few - Ejoying some quality time in jail with a guy named Bubba. - Spending time cruising the parking lot at Washington Elementary looking for a date. - Re-reading the book How To Insult Someone in Ten Words or Less and of course... - Drinking Old English, St Ides, or The Bull. - 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] - 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: Learning the basics
Thanks Jim, and everyone else, for your help. Ken -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 12:04 PM To: Struts Users Mailing List Subject: RE: Learning the basics -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:52 AM To: Struts Users Mailing List Subject: RE: Learning the basics Hi Jim, Well, I did actually look in google before posting. If I was doing this in regular HTML, I would not use Javascript, which I view as evil. Ah... sorry... How would you do it without javascript? Which, while evil, is occasionaly useful. As occasional as possible of course. I was thinking you would want to do it as the user clicked the radio button. Unless you're talking about: html:form action=/dispatchAction html:radio property=action value=action1/ html:radio property=action value=action2/ html:submit/ /html:form You can look at dispatchAction, or LookupDispatchAction for details on how to set that up. And for more info: http://husted.com/struts/tips/002.html http://husted.com/struts/tips/003.html And in general: http://husted.com/struts/tips/index.html Thanks. Ken -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:49 AM To: Struts Users Mailing List Subject: RE: Learning the basics -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 11:23 AM To: Struts Users Mailing List Subject: Learning the basics If I'm an experienced developer, but new to Struts, do I need to buy a book to write a basic app, or is there an online tutorial or something like that that is sufficient? One of the things I'd like to figure out is to how to have three radio buttons, and a regular button, and have a different action for each radio button. I can't figure out how to wire that. Thanks. http://www.google.com/search?q=struts+tutorialsourceid=mozill a-searchs tart=0start=0 How would you wire these three in regular html? You need to trap the onclick action in javascript to do that, just like in regular html. When looking at how do I in struts, sometimes the answer is actually how would I in html. Then look for something similar in struts tags. - 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] - 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: Learning the basics
Robert Taylor wrote: The struts website contains a wealth of information on getting started. A google search wouldn't hurt either. Ken's questions are fine compared to the one's I've gotten mailed to me personally lately. I almost thought they were a joke Two separate e-mails from the same person: Email 1: How can i use tiles in struts1.1.Presently i am using MYECLIPSE editor. so please help me Email 2 ( a few days later ): How can i maintain session in struts? I love that e-mail 2 above. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Top things Mark has been during his time away from the Struts List
- Learning new and inventive ways to clutter up other technical mailing lists with OT Friday posts. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuration violating J2EE spec?
Before I go paging through the J2EE spec to find a defense, I want to see if someone out there can offer advice in the following matter. In our application, the configuration of the servers is such that any URL with a context of /apps/ is captured by the webserver, the URL is rewritten with this context stripped and the resulting URL is passed internally to the J2EE application server. For all intents and purposes, the app server assumes that the URL requested was without the /apps/ context and processes the servlet mapping as such. However, when the taglibs generate URLs, the /apps/ portion is not prepended and therefore a followup request by the client will not be processed by the app server. Is this in violation of the J2EE spec for the webserver to alter the URLs in this way? client (requests http://hostname/apps/modulename/) webserver (rewrites internally to http://hostname/modulename/) app server (generates http://hostname/modulename/somefile.jsp) client (requests http://hostname/modulename/somefile.jsp) webserver (throws 404 error) Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]