Re: help with modules
Try adding contextRelative="true" to the forwards in your struts-config. I remember a similar problem I had a while back, but I'm not entirely sure this will solve it. Here is an example of an Action I had in a struts module I wrote: -james On Fri, 2004-03-26 at 10:08, Bruce Christie wrote: > Hello, > > I am playing around with modules and things work pretty nicely = > except > > I have a tiles template that reads in a menu.jsp from the default = > WEB-INF. The links to the actions are prepended with the module. (i.e. = > . ) > > This works fine expect that once I am in the correct module the link = > then points to module1/module1/dosomething.do. Is there a way that the = > link tag can be used so that it will drop the module prefix when I am in = > the module asscoiated with the action? > > I think I read something about adding a module @ to the link tag but DTD = > complains. > > Thanks > Bruce > > - > 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: newbie html-el question
Hi Wendy, Thanks for responding! Someone showed me a way to do what I needed to do, but the way I'm approaching the entire problem may be kludged: The user can click Search Attributes | Search Components | Search Templates I've provided html:link's like these respectively: doPrepareSearch.do?searchType=attribute | doPrepareSearch.do?searchType=component | doPrepareSearch.do?searchType=template so when they user lands on my form, I want to prepopulate the search type based on what they chose. If they submit a search with bad data, then I'd want the SearchForm's (extends ActionForm) validate() method to send the back to the search form, this time keeping their most recent entries to the form field -- if they changed search type for example now it would be different. I am new to Struts and may not be getting a key concept of it's Best Practices usage. Does it make sense what I've described? Thanks again!, Jim -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 2:03 PM To: Struts Users Mailing List Subject: RE: newbie html-el question From: Bender, James [mailto:[EMAIL PROTECTED] > I am trying to display a value from a requestAttribute in an ...> but I can't get it to work. Here is my code: > value="<%=request.getAttribute("searchType")%>"/> > > I recieve the error: > "Attribute searchType has no value" > Someone told me I have to do something more like this: > > > but where would I define the variable searchType that is > accessed there? You wouldn't, you'd set the property of the Form bean and let Struts handle it. If you need to pre-populate the form, you do that in the Action by calling setSearchType() on your Form bean. Then when you forward to the JSP, Struts will fill in the value. Can you explain more about your situation? I'm making some assumptions that may not be correct. In general there's no need to touch the 'value' attribute of the tags that render HTML form elements. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: newbie html-el question
> I am trying to display a value from a requestAttribute in an ...> but I can't get it to work. Here is my code: > > value="<%=request.getAttribute("searchType")%>"/> > > I recieve the error: > > "Attribute searchType has no value" > > Someone told me I have to do something more like this: > > > > but where would I define the variable searchType that is accessed there? > I tried defining a local string variable called "searchType" hoping its > value would be passed in, but no luck. Just hitting a wall on what I'm > hoping is a pretty simple issue. I googled this one for a while with no > luck before coming here. Thanks!, > > Jim This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sycnhronizer Token- can someone explain this?Curre
well at the moment i'm just trying to get it to work from an html page that submits to an action so the html has the transaction=true and the action checks the token i have been debugged the value of the session attribute Globals.TRANSACTION_TOKEN_KEY at the start of the action the page submits to.. the isValidToken fails beacuse the session token is null. the only way It is not null is if I save the token in a previous action what i want to know is how does this work for a single action? what if i only hadf one action? (admittedly i wouldn't need the pattern then) [EMAIL PROTECTED] BC.caTo: [EMAIL PROTECTED] cc: 24/03/04 14:01 Subject: RE: Sycnhronizer Token- can someone explain this?Curre Please respond to struts-user I'm not sure how it worked in 1.1, but what you're saying makes sense. Basically there is a computeURL function that add the transaction attribute only if it is set (in 1.1). This is for the html:link that I am talking about: // Add our transaction control token (if requested) if (transaction) { HttpSession session = pageContext.getSession(); String token = null; if (session != null) { token = (String) session.getAttribute(Globals.TRANSACTION_TOKEN_KEY); } if (token != null) { results.put(Constants.TOKEN_KEY, token); } } So that is good I guess, but I don't know what you are trying to do someaction -> saveToken -> jsp jsp has transaction = true which means that it will propagate to the next action that it submits to. I may be missing something... sandeep -----Original Message- From: James Scrimshire [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 AM To: [EMAIL PROTECTED] Subject: RE: Sycnhronizer Token- can someone explain this?Curre sandeep. using transaction="true".. this is what i get from the action the link submits too as you can see the session token is null, and only gets set when i explicitly call saveToken(request) from a prior action 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Request Token = null 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Session Token = null 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: 2004-03-24 13:36:34,089 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Invalid Token For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail:
RE: Sycnhronizer Token- can someone explain this?Curre
sandeep. using transaction="true".. this is what i get from the action the link submits too as you can see the session token is null, and only gets set when i explicitly call saveToken(request) from a prior action 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Request Token = null 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Session Token = null 2004-03-24 13:36:34,073 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: 2004-03-24 13:36:34,089 [DEBUG] gov.ons.classifications.controller.action.SynchronizerTokenAction: Invalid Token For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sycnhronizer Token- can someone explain this?Curre
i have the transaction attribute i check to see if the token is Valid.. this method says the token is not valid For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sycnhronizer Token- can someone explain this?Curre
i have tried transaction="true" from the but it doesn't appear to work unless i have called saveToken(requset) For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sycnhronizer Token- can someone explain this?Curre
Currently I have an Action that does the following if (isCancelled(request)) { log.debug("Request Cancelled"); return mapping.findForward("home"); } ActionErrors errors = new ActionErrors(); if (!isTokenValid(request)) { log.debug("Invalid Token " ); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError("errors.token")); } else { log.debug("token success"); } resetToken(request); if (!errors.isEmpty()) { saveErrors(request, errors); saveToken(request); return (mapping.getInputForward()); } // Forward to result page return mapping.findForward("success"); My problem is the pattern doesn't work unless i save the token in a previous action using the saveToken(rquest) method.. but what about if I want to go from this action to a page to another action? this action only saves the token on a resubmit. and reset it if it is the first occurence. so if i want to do the action-page-action-page-action how do i go abuot saving the token?? how should it get saved the first time? does any one even understand waht i'm saying.. cos i'm not sure i do anymore For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hrml:link transaction
It appears that the token is not being saved using the transcation="true" property is there something i am missing here? the isValidToken(request) method in my Action claims the token is not valid? but this is on the first submission to the action from the followling link My Link For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] Struts Console v4.4 - GUI tool
Struts Console version 4.4 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.4.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.4.tar.gz --- BIG ENHANCEMENT --- The Struts Console Eclipse plugin now has an emdedded editor for users of Eclipse 3.0m7 and later. This is a huge improvement over the old plugin where Struts Console opened into a separate window. --- BIG ENHANCEMENT --- Struts Console is FREE software. Changes with Struts Console v4.4 *) Added new Eclipse editor (for Eclipse 3.0m7 and later) that opens inside of Eclipse instead of in a separate window. *) Updated to be able to co-habitate with Faces Console. *) Added tool tips for Struts dialog fields. *) Added tool tips for Tiles dialog fields. *) Updated to support IDEA 4.0. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: calling ASP inside a JSP
This has nothing to do with ASP or JSP specifically. You simply want to use one frame as the "target" of another's links/posts. This is very easy to do. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All > I have a webpage in which i have two Frames. In my left frame i want to > display an ASP page. In the main frame i have a JSP page. Can i do this at > all. I have a link to the ASP page, but i do not want to provide a link > but only want to display the content of the ASP page. Please let me know > if i can do this. > > Thanks > --Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot initialize RequestProcessor
It has to extend TilesRequestProcessor, not RequestProcessor. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 7:20 AM To: [EMAIL PROTECTED] Subject: Cannot initialize RequestProcessor Hello All, We have written a class RFFRequestProcessor which will extends org.apache.struts.action.RequestProcessor. This is being used to validate the values in request headers before control enters into execute() method of action classes. When the application initialized struts not able to locate RFFRequestProcessor class. We are getting the below exception. ERROR (2004-03-15 10:30:42,329) [ org.apache.struts.action.ActionServlet] - javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class com.links.servlet.RFFRequestProcessor: java.lang.ClassNotFoundException: com.links.servlet.RFFRequestProcessor "RFFRequestProcessor" located in "WEB-INF/classes/com/links/servlet" directory. All the struts related jars are in WEB-INF/lib folder. Struts version 1.1. Any help or direction to resolve this problem is highly appreciated. regards Uma Mahesh - 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: server side date validation
datePatternStrict MM/dd/ ... -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:04 PM To: Struts Users Mailing List Subject: server side date validation Can anybody give me example code to validate date towards server side? -Jignesh - 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: [SwitchAction] How
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324 &release_id=147944 -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] "Mike Zatko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > Does anyone have a simple example on how to use a SwitchAction? How > is it defined properly in the config file? > > Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] 2 JSF questions
Hi Matthias, What do you mean by "pics"? jim -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:23 PM To: 'Struts Users Mailing List' Subject: RE: [OT] 2 JSF questions hi jim, searched the web :) http://www.javaworld.com/javaworld/jw-11-2003/jw-1114-jsfredux-p2.html the last to pics looks like mac but it is not a sample for the RI it is form Early Access4 (old) :-) Cheers! -Original Message----- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 7:30 PM To: [EMAIL PROTECTED] Subject: [OT] 2 JSF questions 1) Since JSF is written in Java, why does Sun have 3 different download available, Windows, Solaris, Linux? 2) Would any of those work for Mac OS X? Thanks, jim - 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] 2 JSF questions
1) Since JSF is written in Java, why does Sun have 3 different download available, Windows, Solaris, Linux? 2) Would any of those work for Mac OS X? Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts in Action: 12.10.1 Multipage validations
I'm not guaranteeing that this is the best way to do it, but it works for me ;-) private static final String dateTimeFormat = "MM/dd/-HH:mm:ss"; /* * This validator must be associated with date2 (the later date), * not date1. (This is so that date1 has already been validated.) * date1 and date2 must use the same datePattern and * they must have already been validated as valid dates, */ public static boolean date1LEdate2( Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request ) { String date2Property = field.getProperty(); String dateStr2 = ValidatorUtil.getValueAsString(bean,date2Property); String date1Property = field.getVarValue("date1"); String dateStr1 = ValidatorUtil.getValueAsString(bean,date1Property); String datePattern = null; try { datePattern = field.getVarValue("datePatternStrict"); } catch (Exception e1) { try { datePattern = field.getVarValue("datePattern"); } catch (Exception e2) {} } if (datePattern == null) { errors.add( field.getKey(), new ActionMessage("errors.validator.config") ); return false; } boolean returnVal; try { SimpleDateFormat formatter = new SimpleDateFormat(datePattern); Date date1 = formatter.parse(dateStr1, new ParsePosition(0)); Date date2 = formatter.parse(dateStr2, new ParsePosition(0)); returnVal = date1.compareTo(date2) <= 0 ? true : false; } catch (Exception e) { System.out.println(e); e.printStackTrace(); returnVal = false; } if ( returnVal == false ) { errors.add( field.getKey(), new ActionMessage("errors.daterange", date1Property, date2Property) ); } return returnVal; } -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Struts in Action: 12.10.1 Multipage validations This section of the book sounds interesting, but it would be nice if there were an example somewhere. Can someone point me to one? 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: ASP.NET and Struts: Web Application Architectures
LOL That's a good one!! -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] - Original Message - From: "Christian Bollmeyer" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 10, 2004 4:02 PM Subject: Re: ASP.NET and Struts: Web Application Architectures On Wednesday 10 March 2004 21:10, Guido García Bernardo wrote: > Interesting reading... > > http://msdn.microsoft.com/asp.net/using/migrating/default.aspx?pull=/ >library/en-us/dnaspp/html/aspnet-aspnet-j2ee-struts.asp#aspnet-aspnet- >j2ee-struts_topic4 > > Regards. Yeah! Finally, the first truly unbiased comparison between both serverside component technologies has arrived! Pity for J2EE. I definitely want .NET now. Still, I obviously didn't completely grok the following yet: "Impersonation allows ASP.NET applications to execute with the identity of the user who requested the page. Impersonation pushes authentication and authorization out to IIS, as ASP.NET will just use the token received from IIS whether it is authenticated or not. When impersonating, ASP.NET relies on standard NTFS permissions on files and folders in order to determine whether it should allow or deny access to a particular resource." So I can simply delegate all those nasty security issues to the trusty IIS and have my users just safely wander about the servers' hard drives afterwards? No wonder J2EE falls short in terms of security. A pity they don't tell anything about availability dates for Linux clusters, so we may have to live on with this outdated J2EE technology for some time. A real pity :-) -- Chris. - 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: Suggestion needed on good Struts book
IMHO, "Struts in Action" is the best, given the caveat that it's rather dated. Combine it with "Professional Jakarta Struts" and you should be in good shape. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 2:38 PM To: [EMAIL PROTECTED] Subject: Suggestion needed on good Struts book Hi, I am a newbie to Struts. I have been looking for books on Struts and found these on Amazon Programming Jakarta Struts - OReilly Struts in Action- Manning Struts Framework- Morgan Kaufmann Struts Survival Guide - ObjectSource Professional Jakarta Struts - Wrox Struts Kick Start - Sams Can anybody suggest which is good? 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: JSF RI Final is out!
There are books available today. The McGraw Hill book came out weeks ago and I believe the APress book is out too. However, these books are probably out of date due to the fact that the spec wasn't finalized when the books were published. Also, there are a total of 10 or so books in progress or done. You can find the list on my website at: http://www.jamesholmes.com/JavaServerFaces/ -James > > No books have been published about JavaServer Faces yet (to my knowledge), > although I know of at least five that are nearing completion, and should > be > published very soon. > > > Funny you say that, as I could have sworn I saw one a month or so ago over > at the Clementi bookshop. I recall not looking closely at it as the RI > wasnt > out yet afaik so I figured the book would have to be based on a beta or > something and I did already have my arms full of more books than I could > rightly afford to buy at the time. (Im like a kid in a candy store at that > shop!). Of course I could just have been blur that day and mistaken the > letters JSP for JSF... but hmmm, I dunno mate - I reckon I saw one. > > -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] > Sent: Saturday, 6 March 2004 02:15 > To: Struts Users Mailing List > Subject: RE: JSF RI Final is out! > > > Quoting Janarthan Sathiamurthy <[EMAIL PROTECTED]>: > >> Hi, >> >> How do i get started wiith JSF ?. >> Any books ? >> Please advice >> > > JavaServer Faces Home Page: > http://java.sun.com/j2ee/javaserverfaces/ > > Download Page: > http://java.sun.com/j2ee/javaserverfaces/download.html > > Support Forum (free registration required): > http://forums.java.sun.com/forum.jsp?forum=427 > > The download includes some example applications that illustrate its use. > An > update to the JavaServer Faces Tutorial is in progress, and will be posted > shortly. > > No books have been published about JavaServer Faces yet (to my knowledge), > although I know of at least five that are nearing completion, and should > be > published very soon. > > Nightly builds of an integation library for using JavaServer Faces and > Struts > together are available, but it's still based on the beta version. I'm > debugging the updates as I type, and will post messages here when the > nightly > builds have been updated to work with the final version. > > >> Regards, >> Janarthan S >> > > Craig McClanahan > > > - > 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: JSF RI Final is out!
Hi Janarthan, There are several books available and/or coming available shortly for JSF. I have put together a comprehensive list of resources for JavaServer Faces on my website at: http://www.jamesholmes.com/JavaServerFaces/ Hope that helps, -James -Original Message- From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 12:19 AM To: Struts Users Mailing List Subject: RE: JSF RI Final is out! Hi, How do i get started wiith JSF ?. Any books ? Please advice Regards, Janarthan S "Hookom, Jacob" <[EMAIL PROTECTED]> wrote: I've come to the conclusion that I'm disappointed with JSF. Yes, I see what it's trying to accomplish, but it puts too much overhead in the JSP designer, you can't easily create dependencies in the controller, no exception handling, etc. http://forum.java.sun.com/thread.jsp?forum=427&thread=490234 Based on what I've learned from JSF, I'm working on a framework called "Banten" which is an attempt to remove the need for Actions/Forms, etc (yes, I've jumped on the bandwagon). So then your actions can be chained on a single request as: "#{orderController.order.addLineItem(param.id}" "#{orderController.order:validate()}" I've finished the expression parser (it actually benchmarks a good deal faster than the current EL implementations). Now to finish the Controller :-) -Nerdy -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 8:14 AM To: Struts Users Mailing List Subject: RE: JSF RI Final is out! Well its great to know the word is spreading... ...soon JSF will conquer all! muahahahaha ...I need some sleep :-( -Original Message- From: Dietmar Krause [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 March 2004 22:18 To: Struts Users Mailing List Subject: RE: JSF RI Final is out! Return Receipt Your document: RE: JSF RI Final is out! was received by: Dietmar Krause/NRL/DE/Draeger at: 04.03.2004 15:14:56 - 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] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
>From the main page of Struts (the one you clicked past to subscribe to this list) http://jakarta.apache.org/struts/learning.html -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Satya Narayan Dash" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 03, 2004 9:31 AM Subject: Newbie question Hi, I am new to struts. I found a number of simple tutorials (with examples) to understand struts-1.0, but there seems to none for struts-1.1. I have gone through one struts-1.0 tutorial given at jspfinder.com, which is good. Can you please recommend for struts-1.1 (with examples)? Thanks, Satya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BODY onLoad Workaround
I had this problem but I just used a tiles tag from the tiles page. In my page which brings in the Body tag; > >From the calling page eg... Hope this helps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles problem
Maybe I didn't follow you, but I changed to and it didn't make any difference. What am I missing? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 4:40 PM To: Struts Users Mailing List Subject: Re: Tiles problem On 2 Mar 2004, at 22:15, Anderson, James H [IT] wrote: > There's something I'm not understanding :-( I've got the following > tiles definitions. > > path="/tiles/layouts/mainLayout1.jsp"> > > > << variable for > substitution > > > path="/tiles/layouts/portfolioLayout.jsp"> > > > > > > path="/tiles/layouts/marketdataLayout.jsp"> > > > > > > path="/tiles/layouts/userinputLayout.jsp"> > > << > variable for substitution > > > and I want to create a new tile, substituting values for both variable: > > > > > > > But this doesn't work! The "content" variable is replaced as expected, > but the "app-specific" variable > is ignored and doesn't show up at all. It looks like the only tile for > which variable substitution > is supported is the one that's specified in the "extends" > attribute--not in any nested tile. Surely > there must be a way to get around this... > > jim > > - > 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]
Tiles problem
There's something I'm not understanding :-( I've got the following tiles definitions. << variable for substitution << variable for substitution and I want to create a new tile, substituting values for both variable: But this doesn't work! The "content" variable is replaced as expected, but the "app-specific" variable is ignored and doesn't show up at all. It looks like the only tile for which variable substitution is supported is the one that's specified in the "extends" attribute--not in any nested tile. Surely there must be a way to get around this... jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: splitting struts-config into multiple files
Nadeem, I think I didn't read your reply carefully enough. Are you saying that I could maintain global-forwards.xml somewhere on the filesystem outside the app and xdoclet could be setup to merge it with struts-config.xml? jim -Original Message- From: Nadeem Bitar [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 7:03 AM To: Struts Users Mailing List Subject: Re: splitting struts-config into multiple files You can take advantage of xdoclet merging capabilities. You would have your action mapping in struts-actions.xml, your global- forwards in global-forwards.xml, your form beans inside struts-forms. xml ... and xdoclet would merge the files for you. On Sat, 2004-02-28 at 13:36 -0700, Manish Singla wrote: > May be Ant task can help in your environment. > > HTH > Manish Singla > > Jim Anderson wrote: > > > We have many apps that require the same global forwards. Rather than > > copy this info into the config file for each app, we'd like to be able > > to place it in a struts-config file that lives somewhere on the > > filesystem outside WEB-INF, and then specify that as one of the config > > files to use. I know it's possible to split struts-config, but is there > > some way that one of the config files can reside outside the app? > > > > Thanks, > > > > jim > > > > - > > 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] -- Nadeem Bitar Software Engineer IzuCode, LLC 5230 Fiore Terrace #k208 San Diego, Ca 92122 - 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 do I access Message Resources in an Action?
The same way it is done in the struts-example. Did you run that yet? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 7:37 AM Subject: How do I access Message Resources in an Action? Hey everybody! Well the subject basically states my problem already. I'd like to create a dynamical Navigation Bar that holds some pages you visited last. Therefore I'd like to add Name, Link and Parameters to a Collection for later printing. Problem is that the Name needs to come from the Message Resources, and I don't know how to access those in an Action. Can somebody help me?! Thx! P.S.: Can you guys access http://java.sun.com <http://java.sun.com> ??! Either my company's net is broken or the page is really down. ___ Tim Adler, Abt. SDA1 Adress Management Solutions AZ | Direct Carl-Bertelsmann Straße 161s D-33311 Gütersloh Tel.: 05241/ 80 - 89574 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: replacing messages tag with fmt tag - can both exist at 1x?
Yes, just point them to the same file. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Menke, John" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, March 01, 2004 10:16 AM Subject: replacing messages tag with fmt tag - can both exist at 1x? > does anyone have the messages tag working in the same application as the fmt > tag using the fmt tag for displaying messages in some pages and messages for > other pages? can you implement both at once? > > > > - > 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]
custom validator question
I'm creating a custom validator to enforce a <= relationship between 2 date fields and am having a problem. A validator method gets a Field arg for the field with which it's associated in validation.xml, but I need to also get the Field object for the other date field. I need this so that I can get its property name for display in an error message. (I'd also like to be able to get the field's datePattern.) I can't figure out how to do this. Any help would be much appreciated! jim Here's the relevant part of my validation.xml file: datePatternStrict MM/dd/ datePatternStrict MM/dd/ date1 starting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: custom validator question
I guess I wasn't clear (also, I was a bit confused :) My validator is already working, and what you suggest below will get me the property name I need for display in an error msg. But how can I get the datePattern from mySecondDate? At the moment I'm assuming it'll be the same as for myFirstDate, but that's just an assumption... -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: custom validator question Specify the second field as datePattern dd/MM/ compareDate mySecondDate Then in your custom validation method: String datePattern = field.getVarValue("datePattern"); String compareDateProperty = field.getVarValue("compareDate"); String compareDate = ValidatorUtils.getValueAsString(bean, compareDateProperty); Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 2:54 PM Subject: custom validator question I'm creating a custom validator to enforce a <= relationship between 2 date fields and am having a problem. A validator method gets a Field arg for the field with which it's associated in validation.xml, but I need to also get the Field object for the other date field. I need this so that I can get its property name for display in an error message. (I'd also like to be able to get the field's datePattern.) I can't figure out how to do this. Any help would be much appreciated! jim Here's the relevant part of my validation.xml file: datePatternStrict MM/dd/ datePatternStrict MM/dd/ date1 starting - 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: custom validator question
I wasn't aware of it--I'm using Struts 1.1. I'll check it out. Thanks. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:20 AM To: Struts User Jakarta Subject: Re: custom validator question Also, what about using the existing ValidWhen validation http://jakarta.apache.org/struts/userGuide/dev_validator.html Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 3:17 PM Subject: Re: custom validator question > Specify the second field as > > > > datePattern > dd/MM/ > > > compareDate > mySecondDate > > > > Then in your custom validation method: > > String datePattern = field.getVarValue("datePattern"); > String compareDateProperty = field.getVarValue("compareDate"); > > String compareDate = ValidatorUtils.getValueAsString(bean, > compareDateProperty); > > > Niall > > - Original Message - > From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 26, 2004 2:54 PM > Subject: custom validator question > > > I'm creating a custom validator to enforce a <= relationship between 2 date > fields and am having a problem. > > A validator method gets a Field arg for the field with which it's associated > in validation.xml, but I need to also get the Field object for the other > date field. I need this so that I can get its property name for display in > an error message. (I'd also like to be able to get the field's datePattern.) > I can't figure out how to do this. > > Any help would be much appreciated! > > jim > > Here's the relevant part of my validation.xml file: > > > property="starting" >depends="date"> > > > datePatternStrict > MM/dd/ > > > property="ending" >depends="date,date1LEdate2"> > > > datePatternStrict > MM/dd/ > > > date1 > starting > > > > > - > 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]
[ANNOUNCE] Struts Console support for IDEA 4.0
I've uploaded a new Struts Console build specifically for IntelliJ IDEA 4.0. You can download it from the download page on my website: http://www.jamesholmes.com/struts/console/download.html Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Common Services across Different Actions.
Could you provide a little more detail? Thanks, jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:54 AM To: Struts Users Mailing List Subject: Re: Common Services across Different Actions. I like to use a ServiceLocater (created and initialized at application start) exposed through the BaseAction. Rick DeBay On Wed, 25 Feb 2004 17:50 , Kommineni, Sateesh \(GE Consumer & Industrial\) <[EMAIL PROTECTED]> sent: > >Hi All, > > In our Application we have identified few common Services which we are planning to develop as reusable components. > > The approaches we identified are > > 1) Representing each service as a Plug-in so that we can initialize all the Service when the Web App is initialized . > > 2) Create a BaseAction and have all the resources available in that Action class . Sub Class all your Custom Actions from the BaseAction. > >Is there any Other Approach that we are missing here > >Thanks a lot >Sateesh - 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 create a "No Action" ActionForward
I think Srikanth has hit the nail on the head, in that I am not fully utilizing what is already available with vanilla J2EE, namely security roles, authorization constraints, and error pages, all of which I can declare in the deployment descriptor of my web app. But I still want to use a Struts component for the authentication instead of a more traditional form-based authentication scheme. Let me outline below what is, I think, a much better approach and kindly ask for comments, as I'm not certain that this will work or if it's actually the smartest way to go. I would like to use a Struts Action class to handle my login form, instead of vanilla form-based authentication, i.e. "j_security_check", for two reasons: 1) form-based authentication is not very secure since it passes the user name and password across the network in clear text, and 2) I want to use a LDAP server (within my login Action class) to do the authentication, and this would not be possible using plain form-based authentication. So the plan is to have a form in my Login.jsp with the form's action being the login Action class. The login Action class will connect to the LDAP server and try to authenticate using the username and password supplied as form inputs. If the authentication succeeds then the user's session is set with the user's role (also retrieved from the LDAP server), and then the control is forwarded to the first "logged in" welcome page. If the authentication fails then the appropriate error message ("Login failed - try again") will be added to the ActionErrors and control is forwarded back to the login page, which will display the ActionError message via a tag, and allow the user to try again. In order to accomplish session authorization of a session for each *.jsp of the application I will declare a security constraint in the web.xml, like so: Restricted Pages *.jsp admin customer With the above I will get automatic checking of the user's role by the container at each access of any *.jsp, and anyone accessing a *.jsp without an appropriate role set in their session will not be allowed to access the page. If the user is not in the appropriate role then I can forward to an error page by declaring an in the deployment descriptor. The above authorization strategy takes care of what I was trying to accomplish with my SessionValidator Action class idea from before, which was to check for a "loggedIn" session attribute before allowing a user to continue with page processing. In fact it is even better, in that it allows the flexibility of allowing different roles and authorization of pages based on roles and not just on a single "loggedIn" flag. I am not sure how I will programmatically set the user's role in the login Action class execute() method. Is it as simple as just setting a session attribute named "role" ? Thanks in advance for your insight. -James __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: spontaneous disappering ApplicationResources.properties
This is cause by Eclipse rebuilding your project. You need to put your "source" files (that means *.properties as well as *.java) in your source folders. Any time you make changes, Eclipse will copy them over to the classes directory for you. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 21, 2004 2:45 PM > To: [EMAIL PROTECTED] > Subject: spontaneous disappering ApplicationResources.properties > > > Hi list, > > I have a weird problem with all of my struts applications. > > the file ApplicationResources.properties, usually in WEB- > INF/classes, is disappearing spontaneously every now and then. > this happens with all of my projects. I tried and set the attributes of > the file on read-only, but that does not help. > Though i learned to live with it by having backups available, it is > quite irritating. > > Has anyone else experienced this? Is it some weird setting or > what? > > I'm using Eclipse 2.1.0 on a win2000 platform. > > Thanks, > Rinke > > - > 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: Extra Lines in Compiled JSP
Why do you have this problem with extra lines in your html generated by the <%@ %> section of your jsp and I do not - I use JBOSS and WebLogic both -- never saw this problem? - Jim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 3:42 PM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Perhaps it was in the taglibs-user mailing list where I dreamt it? Maybe I'm searching for the wrong key-words - I've looked for 'white space' and 'blank lines' but not found anything. Perhaps it was even on this list? Check this link for a filter solution: http://www.mail-archive.com/[EMAIL PROTECTED]/msg03824.html On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote: > I am talking abt generated output(HTML/csv/email/whatever). If > the question was abt generated java code, nobody should care. > > The generated output contains newlines for every <% %> enclosure > in the JSP. And if you are generating anything other > than HTML output, thats likely to cause a problem. > > We did this for our export to exel feature... > > cheers > -jayash > > > > -Original Message- > From: Thad Humphries [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 11:05 AM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Why care about how generated code looks? This approach makes the code you > maintain harder to read. > > On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote: > >>I must have had the same dream !! >>I remember that tomcat config thing..and not too >>long ago. I am surprised you couldn't find it. >> >>We had to do something like this though, for weblogic. >> >><%@ taglib uri="xxx" prefix="bean" >>%><%@ taglib uri="/display" prefix="display" >>%><%@ taglib uri="xxx" prefix="html" >>%><%@ taglib uri="xxx" prefix="nested" >>%><%@ taglib uri="xxx" prefix="tiles" >>%><%@ page language="java" >>%><%@ page contentType="text/html; charset=UTF-8" >>%><% your code continues.%> >>... > > > > - > 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] > > -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and I8N looking for a good combination
You should consider using a database implementation of Struts' internal MessageResources component. That let's you keep your text in the database, supports i18n without changing anything in your Struts app (except one line in the struts-config), and provides the ability to change content on the fly (although this last part is up to you). -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Linus Nikander > Sent: Friday, February 20, 2004 3:52 AM > To: [EMAIL PROTECTED] > Subject: Struts and I8N looking for a good combination > > > Is there any (preferably GPL:ed or equivalent) framework out there for > internationalization of all texts on a site ? In particular I'm > looking for > something that integrates well with struts. > > I know I can use different resource-files for different languages > in Struts. > The problem is that using files for internationalizations quickly becomes > hard to handle, particularly as the amount of text and languages > increases. > I also want to be able to dynamically update text content when the site is > up and running (very hard to accomplish using textfiles). > > Anyone have any recommendations / experiences ? > > //Linus Nikander - [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: Extra Lines in Compiled JSP
is it windows that has the eol be crlf and unix uses just cr? Somthing like that I think... try looking at your jsp file in a hex editor and see if it is crlf and if so change it to be just cr. Be careful moving file back and forth between windows and unix, there is a unix util called dos2unix and one called unix2dos that is suppose to do this kind of fixing for you. When ftp'ing files around use the type=ascii feature and supposedly it will automatically take care of this conversion for you when trasnfering files between windows and unix. - Jim -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:34 AM To: 'Struts Users Mailing List' Subject: RE: Extra Lines in Compiled JSP Thanks for the reply. I strung out the taglib defn's and reduced the number of out.writes from seven to one. It's better, but still not perfect. Seems like the jsp compiler should be smart enough to recognize that it doesn't need to generate anything for these kinds of lines. Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 10:15 AM > To: Struts Users Mailing List > Subject: Re: Extra Lines in Compiled JSP > > > Try this: > <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; > prefix="bean" > %><%@ taglib uri="/display" prefix="display" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; > prefix="html" > %><%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; > prefix="nested" > %><%@ taglib > uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" > %><%@ page language="java" > %><%@ page contentType="text/html; charset=UTF-8" %> > > The idea being you try to contain the \r\n inside the tags > and outside the > template text. > > --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I should know how to fix this, but am at a loss. At the > top of my JSP I > > have the following lines: > > > > > > When I look at the compiled JSP, there are seven blank lines (i.e. > > out.write("\r\n"); ). Is there anyway to have the JSP > compiler (were > > running Tomcat 5.0.18 Stable) NOT generate these lines? I > guess they come > > from the <% %> sources lines, but it really screws up > my generated HTML > > code > > > > > > Thanks! > > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > This transmission (and any information attached to it) may > be confidential > > and > > is intended solely for the use of the individual or entity > to which it is > > addressed. If you are not the intended recipient or the > person responsible > > for > > delivering the transmission to the intended recipient, be > advised that you > > have received this transmission in error and that any use, > dissemination, > > forwarding, printing, or copying of this information is strictly > > prohibited. > > If you have received this transmission in error, please > immediately notify > > LabOne at the following email address: > [EMAIL PROTECTED] > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a "No Action" ActionForward for return from an Action's execute() ?
Thanks for all of the suggestions on how to solve this problem. You have all given good ideas and introduced me to concepts that I am unfamiliar with as a beginner with Struts. To further clarify what I want to do, in case it will lead to more pointed suggestions - I am including this session validator on each JSP of my application to check to make sure that a user is logged in, and if not I forward to the login page. There really is no logic involved other than if (loggedIn) { // stay on current page } else { // go to login page } I have done this before by including a servlet on each page which directs to the login page if the user wasn't logged in. If this further information leads you to conclude that one approach is superior/simpler to another (it looks like using a Filter or RequestProcessor.processPreprocess() is the concensus) then I will certainly appreciate any further suggestions. Also, if I decide to use the RequestProcessor, which seems best, how do I configure it ? I assume that I just put an entry in the struts-config.xml and specify the class of the RequestProcessor (I didn't find anything on this in the User's Guide). Again thanks for helping me out with this. -James __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to create a "No Action" ActionForward for return from an Action's execute() ?
How would you forward the user to the login page? The processPreprocess() method returns true or false. -Original Message- From: Brad Balmer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 1:47 PM To: Struts Users Mailing List Subject: Re: How to create a "No Action" ActionForward for return from an Action's execute() ? While you can use a filter to do this, why not extend the RequestProcessor class? By overriding the processPreprocess function you can check for your flag. If found simply return true to continue processing. Otherwise forward the user onto the login page. * *James Adams wrote: >I have created an Action class which does session >validation by checking to see if a "loggedIn" flag is >set in the session - if it is absent, or set to false, >then I want to forward to the login page. However if >it is set to true then I don't want to do anything - >the execute() method should just complete and control >should return to the calling page. But the execute() >method must return an ActionForward, and it is >impossible to specify a forward name/path for this >case in the struts-config.xml since the path should be >the path of the page that the action is being called >from, and there is no way to know this information >beforehand. So I am wondering how can I (within the >execute() method of the SessionValidatorAction) create >an ActionForward to return which will indicate the >path of the calling page ? Is there a way to create >and return a "No Action" ActionForward ? Can I just >return null ? > >I am including the action at the top of the JSPs via > > > > > >The action mapping I'm currently using looks like this > > >type="mypkg.action.SessionValidatorAction"> >path="Login.jsp"/> > > > > >Is this the right approach/design ? If so how can I >return an ActionForward from the >SessionValidatorAction's execute() method which >forwards control back to the calling page ? If not >then how else should I go about this ? > >Thanks in advance for your feedback. Please Cc: any >rsponses to this email address. > > >-James > >__ >Do you Yahoo!? >Yahoo! Mail SpamGuard - Read only the mail you want. >http://antispam.yahoo.com/tools > >- >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]
How to create a "No Action" ActionForward for return from an Action's execute() ?
I have created an Action class which does session validation by checking to see if a "loggedIn" flag is set in the session - if it is absent, or set to false, then I want to forward to the login page. However if it is set to true then I don't want to do anything - the execute() method should just complete and control should return to the calling page. But the execute() method must return an ActionForward, and it is impossible to specify a forward name/path for this case in the struts-config.xml since the path should be the path of the page that the action is being called from, and there is no way to know this information beforehand. So I am wondering how can I (within the execute() method of the SessionValidatorAction) create an ActionForward to return which will indicate the path of the calling page ? Is there a way to create and return a "No Action" ActionForward ? Can I just return null ? I am including the action at the top of the JSPs via The action mapping I'm currently using looks like this Is this the right approach/design ? If so how can I return an ActionForward from the SessionValidatorAction's execute() method which forwards control back to the calling page ? If not then how else should I go about this ? Thanks in advance for your feedback. Please Cc: any rsponses to this email address. -James __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mroe then one resource message file
Just like it is done in the struts-example. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: Daniel [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 8:52 AM > To: Struts Users Mailing List > Subject: Mroe then one resource message file > > > Does anybody know of a way to define more than one default message > resources in struts 1.1. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet Context
Get it from the servletContext and change it...dynamically. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: keshav [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 2:11 AM > To: Struts Users Mailing List > Subject: Servlet Context > > > Hi > > How can I update a list dynamically which has been added to > servletContext. > > regards, > keshav > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java / J2EE Developer
Looks like the only way to compete is to improve yourself. That works for me, what about you? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] > -Original Message- > From: Andy Engle [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 12:59 PM > To: Struts Users Mailing List > Subject: RE: Java / J2EE Developer > > > deepak saini <[EMAIL PROTECTED]> wrote: > > > Come to India, there are lots of jobs for you here. > > This drives me crazy -- our future is being exported and nobody seems > to care. > > http://www.wired.com/wired/archive/12.02/india.html > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using split() method in java script
> -Original Message- > From: McCormack, Chris [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 3:35 AM > To: Struts Users Mailing List > Subject: RE: Problem using split() method in java script > > > Ahh yes I see how this relates to struts... > > subscribe to a JS newsgroup > google is your friend +1 I couldn't have said it better myself. > > Chris > > -Original Message- > From: Ramachandran [mailto:[EMAIL PROTECTED] > Sent: 16 February 2004 07:52 > To: Struts Users Mailing List > Subject: Problem using split() method in java script > > > Hi, > > I am facing problem in java script, using spilt() methos. > > Here i want to split the strings using '\' this separator. Here it is > separating the strings. Bu it is displayed in the zeroth index > array. But i > want to display in each index. > > But not Working. Any body having idea please maile me. > > This is my code. > > var where_is_mytool="home\mytool\mytool.cgi"; > var mytool_array=where_is_mytool.split("\\"); > alert(mytool_array[0]+" second "+mytool_array[1]+" third > "+mytool_array[2]); > > -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: client-side validation not working
Or, I should say that it looks like it would be called. here's the code fragment:
RE: client-side validation not working
Yes and yes. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 4:17 PM To: 'Struts Users Mailing List' Subject: RE: client-side validation not working So, did you find the validateDate function, and was it called? -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 3:29 PM To: Struts Users Mailing List Subject: RE: client-side validation not working Struts 1.1 -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:25 AM To: 'Struts Users Mailing List' Subject: RE: client-side validation not working Try to put some alerts in the validateDate javascript function in the validator-rules.xml file and see if the function is called. BTW, what version of Struts you are using? Saul -Original Message----- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:12 AM To: Struts Users Mailing List Subject: RE: client-side validation not working To test the possibility of it being a problem with using html:image instead of html:submit, I replaced html:image by html:submit but got the same result, i.e., the client-side validation is not being invoked. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:42 AM To: Struts Users Mailing List Subject: Re: client-side validation not working Everything looks OK to me. Have you checked what javascript is being generated - use "view source" in your browser when you are looking at the page. is there a validateActivityViewForm() method and is that method doing the validations you expect? A second thought is how are you submitting your page - I had problems when I was using javascript with a link tag. If your doing that, then try putting an ordinary submit button on the page and see if that works. Save Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 2:23 PM Subject: client-side validation not working Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> ... ... ... Here's the piece of validation.xml: Here's the Action entry from struts-config: ActivityViewForm extends PortfolioForm which is declared thusly: public class PortfolioForm extends ValidatorForm implements Serializable { As I said, server-side validation is working fine, but the javascript on the client-side isn't getting activated. I hope someone can help me to resolve this quickly! Thanks very much, jim - 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] - 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: client-side validation not working
Are you referring to struts-example? If so, I don't currently have it installed, but I'll do so shortly. For browsers, I've tried it on Netscape 7.1 and on Safari (OS/X) with the same results. Since I'm not sure how much of the view source you need, I'm sending the whole thing. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:45 AM To: Struts Users Mailing List Subject: Re: client-side validation not working Ignore that...I think I'm talking rubish. Its not a browser issues is it? Does the javascript validation work if you try out the sample webapp? How about posting the html that has been generated? If strust generates everything OK, then its another issue (browser?) but seeing the source might give a pointer, if struts isn't putting out everything it needs to. Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 4:38 PM Subject: Re: client-side validation not working > You seem to be missing a ';' at the end of your onsubmit(), if this is > exactly how your code is, that would cause this > > > > Niall > > - Original Message - > From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, February 13, 2004 3:11 PM > Subject: RE: client-side validation not working > > > To test the possibility of it being a problem with using html:image instead > of html:submit, I replaced html:image by html:submit but got the same > result, i.e., the client-side validation is not being invoked. > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Friday, February 13, 2004 9:42 AM > To: Struts Users Mailing List > Subject: Re: client-side validation not working > > > Everything looks OK to me. > > Have you checked what javascript is being generated - use "view source" in > your browser when you are looking at the page. is there a > validateActivityViewForm() method and is that method doing the validations > you expect? > > A second thought is how are you submitting your page - I had problems when I > was using javascript with a link tag. If your doing that, then try putting > an ordinary submit button on the page and see if that works. > > Save > > Niall > > > - Original Message - > From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, February 13, 2004 2:23 PM > Subject: client-side validation not working > > > Server-side validation is working fine, but I can't seem to get client-side > working. > > I know I must be doing something wrong, but I can't figure out what it is > :-( > > Here's a bit of the tile that uses validation: > > <%@ taglib uri="/tags/struts-bean" prefix="bean" %> > <%@ taglib uri="/tags/struts-html" prefix="html" %> > <%@ taglib uri="/tags/struts-logic" prefix="logic" %> > > > > ... > > ... > > ... > > >name="error"/> > > > > > > > Here's the piece of validation.xml: > > > > > property="starting" >depends="date"> > > > property="ending" >depends="date"> > > > > > > > Here's the Action entry from struts-config: > > path="/SelectActivity" >name="ActivityViewForm" >type="portfolio.SelectActivityAction" >input=".activity.detail"/> > > > ActivityViewForm extends PortfolioForm which is declared thusly: > > public class PortfolioForm extends ValidatorForm implements Serializable { > > As I said, server-side validation is working fine, but the javascript on the > client-side isn't getting activated. > > I hope someone can help me to resolve this quickly! > > Thanks very much, > > jim > > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: client-side validation not working
Struts 1.1 -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:25 AM To: 'Struts Users Mailing List' Subject: RE: client-side validation not working Try to put some alerts in the validateDate javascript function in the validator-rules.xml file and see if the function is called. BTW, what version of Struts you are using? Saul -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:12 AM To: Struts Users Mailing List Subject: RE: client-side validation not working To test the possibility of it being a problem with using html:image instead of html:submit, I replaced html:image by html:submit but got the same result, i.e., the client-side validation is not being invoked. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:42 AM To: Struts Users Mailing List Subject: Re: client-side validation not working Everything looks OK to me. Have you checked what javascript is being generated - use "view source" in your browser when you are looking at the page. is there a validateActivityViewForm() method and is that method doing the validations you expect? A second thought is how are you submitting your page - I had problems when I was using javascript with a link tag. If your doing that, then try putting an ordinary submit button on the page and see if that works. Save Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 2:23 PM Subject: client-side validation not working Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> ... ... ... Here's the piece of validation.xml: Here's the Action entry from struts-config: ActivityViewForm extends PortfolioForm which is declared thusly: public class PortfolioForm extends ValidatorForm implements Serializable { As I said, server-side validation is working fine, but the javascript on the client-side isn't getting activated. I hope someone can help me to resolve this quickly! Thanks very much, jim - 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: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004
Yep, I've been getting them since this morning. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:13 PM To: Struts User Jakarta Subject: Re: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004 I keep getting these messages - I'm thinking its when I send an email to this list - is anyone else getting them? Niall - Original Message - From: "Ben Janes" <[EMAIL PROTECTED]> To: "Niall Pemberton" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 5:08 PM Subject: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004 > HI, > > I am currently out of the office. > > Any queries regarding Obtree go to Niklas Rolf (nkr or [EMAIL PROTECTED]) > > I will get to you as soon as I return > > Ben Janes > > - 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: client-side validation not working
To test the possibility of it being a problem with using html:image instead of html:submit, I replaced html:image by html:submit but got the same result, i.e., the client-side validation is not being invoked. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:42 AM To: Struts Users Mailing List Subject: Re: client-side validation not working Everything looks OK to me. Have you checked what javascript is being generated - use "view source" in your browser when you are looking at the page. is there a validateActivityViewForm() method and is that method doing the validations you expect? A second thought is how are you submitting your page - I had problems when I was using javascript with a link tag. If your doing that, then try putting an ordinary submit button on the page and see if that works. Save Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 2:23 PM Subject: client-side validation not working Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> ... ... ... Here's the piece of validation.xml: Here's the Action entry from struts-config: ActivityViewForm extends PortfolioForm which is declared thusly: public class PortfolioForm extends ValidatorForm implements Serializable { As I said, server-side validation is working fine, but the javascript on the client-side isn't getting activated. I hope someone can help me to resolve this quickly! Thanks very much, jim - 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: client-side validation not working
Yes, the javascript is being generated which includes a validateActivityViewForm(). As far as I can tell, the javascript looks appropriate. I'm submitting the page using an html:image tag. Do you think the problem might be related to that? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:42 AM To: Struts Users Mailing List Subject: Re: client-side validation not working Everything looks OK to me. Have you checked what javascript is being generated - use "view source" in your browser when you are looking at the page. is there a validateActivityViewForm() method and is that method doing the validations you expect? A second thought is how are you submitting your page - I had problems when I was using javascript with a link tag. If your doing that, then try putting an ordinary submit button on the page and see if that works. Save Niall - Original Message - From: "Anderson, James H [IT]" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 2:23 PM Subject: client-side validation not working Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> ... ... ... Here's the piece of validation.xml: Here's the Action entry from struts-config: ActivityViewForm extends PortfolioForm which is declared thusly: public class PortfolioForm extends ValidatorForm implements Serializable { As I said, server-side validation is working fine, but the javascript on the client-side isn't getting activated. I hope someone can help me to resolve this quickly! Thanks very much, jim - 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]
client-side validation not working
Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> ... ... ... Here's the piece of validation.xml: Here's the Action entry from struts-config: ActivityViewForm extends PortfolioForm which is declared thusly: public class PortfolioForm extends ValidatorForm implements Serializable { As I said, server-side validation is working fine, but the javascript on the client-side isn't getting activated. I hope someone can help me to resolve this quickly! Thanks very much, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Module switching example
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324 &release_id=147944 -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Sreenivasa Chadalavada" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 12, 2004 4:09 PM Subject: Struts Module switching example > All, > > I am trying to switch from 'navbar' module to 'patient' module in my > application. > > The following is the definition of the URL. > > contextRelative="true" redirect="true"/> > > From with in navbar module I am trying to perform the forward. > > It is not working. Can some one shed some light on this topic? Is there a > detailed documentations on how to work with struts modules? > > Your help is very much appreciated. > > Thanks and Regards, Sree/- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No getter method available for property - error
Change them to public methods. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Samyukta Akunuru" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 12, 2004 1:21 PM Subject: No getter method available for property - error Hi, My error: javax.servlet.jsp.JspException: No getter method available for property ids for bean under name org.apache.struts.taglib.html.BEAN at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247) I do have a getter in my form bean: private String[] ids; private String[] getIds() { return this.ids; } private void setIds(String[] ids) { this.ids = ids; } Let me know Best Regards, Samyukta - 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: Config issue
It is possible that this application is NOT the default (or in Tomcat terms 'ROOT' application). In that case, it is correct... > (servlet context) (your path mapping) ^^ If this application was the default, then that would eliminate one the first "/gannett"s Hope that helps. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 11, 2004 11:03 PM Subject: Config issue > Greetings, > > I'm a STRUTS newbie and am having a problem I can't seem to solve, > searched everywhere I can think of and haven't found an answer. > > I have STRUTS 1.1 running with Tomcat 5.0.18 and am > having a URI context issue. All of my html form actions > are coming out with the wrong URI -- should be "/gannett/login" > but are coming out as "/gannett/gannett/login" duplicating the prefix. > > Any ideas out there? Following is my config. > > Thanks, > > Sam > > web.xml snippet: > > > Gannett Web Application > > gannett > > org.apache.struts.action.ActionServlet > > > config > /WEB-INF/struts-config.xml > > > debug > 4 > > > detail > 4 > > 1 > > > gannett > /gannett/* > > > Struts-config: > > path="/login" > input="/login.jsp" > name="loginForm" > scope="request" > type="com.dimeta.security.LoginAction" > validate="false"> > > > > > HTML for login.jsp: > > > > HTML source from browser: > > > > > - > 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]
question regarding dynamic Tile capability
We want to display different tiles, depending on the characterics of a logged-in user. In other words, some users would see one tile, others another. Is this possible? If so, could someone please send me a short code sample? Thanks very much, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Supporting a back button without JavaScript
On Mon, 9 Feb 2004, Brian Ivey wrote: > Dear List, > > I have to give my application users a way to navigate to the previous page > without using the browser back button. Program constraints prevent me from > using JavaScript to solve this. Because many JSP pages use the same Actions > I am unable to simply hard code the referring page to navigate back to. > > Any thoughts would be appreciated. BTW, I am inclined to believe that I can > extract the referring page from one of the attributes sent to the Action > (mapping, request, ...) and then cache this value as either a parameter or > as an attribute. Does anyone think this could work? I recently completed a mechanism for doing this. It supports back (previous) and cancel actions for you. Basically, I keep 2 stacks in the session, one for standard navigation and one for exception flows which simply are pointers the standard nav stack. In my base action, I call super.execute (I use DispatchAction, use an abstract doExecute or whatever if you are going stock) with a custom wrapped ActionMapping that takes (and manages) the request on the constructor so that all calls to findforward are added to the stack. What is boils down to is for normal flow of my application, I don't have to do anything. In the case where the user 'jumps' off the normal flow of things, the app needs to provide a cancel that takes them back on flow where they left off. (all the while remember the back or previous page). The only problem with our implementation is that all lists (drop down collections) are retrieved via a caching mechanism that is invoked from our dto getters (not my design), which allows our simple design to work so fuently. >From there, all the developers have to do is: - remeber to call addCancelAction() from any action that takes the user off of the normal flow - use an <%page include...%> which renders the previous or cancel button Anyway, I can't indulge in all the details, but I hope you can get a couple of ideas from that. > > Thanks, > Brian Ivey > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Mitchell Software Developer / Struts Evangelist http://www.struts-atlanta.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Debugging JSP
On Mon, 9 Feb 2004, Ramadoss Chinnakuzhandai wrote: > Hi, > I'm debugging Java code using JBoss IDE installed with Eclipse 2.1 and I > found I could not debug JSP using the same IDEthen I installed MyEclipse to > debug JSP and tested working fine with JSP when I come to debug Java code the break > point which I put seems to be does not working then I found MyEclipse has got its > own JBoss IDE and it clashes with JBoss IDE which I installed already. > > Can anybody suggest me how can get rid of this problem or suggest is there anyother > way I can debug JSP without getting into this problem? or any better alternatives > debug JSP without affecting debugging of java code?? Here a couple of ideas: - use [OT] when discussing off-topic threads - if you rely on JSP debugging, chances are good that you have WAY too much logic in your pages. Consider following an MVC approach. ...hope that helps. > > Thankx in advance, > > -Ramadoss > > -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:iterate question
Oops, did you mean to do this? > > ^^^ > > > shouldn't that be? > ^^ ^ -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, February 06, 2004 9:29 AM Subject: RE: logic:iterate question > > i have a question about the tag. My tag > > iterates over an ArrayList which contains an amount of beans. > > However, in the last iteration i want to perform some special > > action. My current code looks something like this: > > > > > > > > ... > > > > ... > > > > > > > > This is something that JSTL does *extremely* well: > > > > > > > > -- > Tim Slattery > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to export the html table contents (records) to an Excel file.
response.setContentType("application/vnd.ms-excel"); Assuming the end user has Excel installed and their browser accepts "application/vnd.ms-excel", the data will be streamed to the client and the content will be opened by Excel. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 04, 2004 4:06 AM Subject: How to export the html table contents (records) to an Excel file. > Hi, > > I have webpage (.jsp) which lists out 4 to 5 records (having say 4 to 5 columns) > inside html table tag. This page, has an "Export" button, at the bottom. On > click of this button, I need to export the records (that the current page is > displaying) to an .xls (Excel format) file. > > Shall be greatful if anyone can tip me on this. > > Thanks, > S.Srikanth > > > > - > 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: [ANNOUNCE] Struts Console v4.3
There's not a property for this at the moment, but I will add it to the TODO list. Thanks, James -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 10:18 AM To: Struts Users Mailing List Subject: Re: [ANNOUNCE] Struts Console v4.3 Nice one.. Just one question.. Its there a property or something I can set that will let me define where the StrutsConfig.cfg lives? I use console as a standalone bundled up with jar bundler or whatever its called on OSX. The file likes appearing in my home directory, whereas ideally i could have it inside the application directory itself. Many thanks Mark On 2 Feb 2004, at 16:01, James Holmes wrote: > Struts Console version 4.3 is now available. > > http://www.jamesholmes.com/struts/ > > Download Now: > http://www.jamesholmes.com/struts/struts-console-4.3.zip > -- OR -- > http://www.jamesholmes.com/struts/struts-console-4.3.tar.gz > > Struts Console is FREE software. > > This release has a few bug fixes and some enhancements. > > Changes with Struts Console v4.3 > > *) Fixed bug where Form screen was not showing up for Validator > 1.1 config files. > > *) Fixed bug where Field screen was improperly showing "bundle" > attribute on Arg0 - Arg3 tabs for Validator 1.1 config files. > > *) Updated Eclipse plugin to recognize read only files. > > *) Updated to support system specified DTDs. > > *) Added support for the variant attribute of tags for > Validator 1.1 config files. > > Thanks, > > -James > [EMAIL PROTECTED] > http://www.jamesholmes.com/struts/ > > > - > 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 application.properties from JSP
Serverside jsp processing knows nothing about embedded JavaScript or anything else. works anywhere on your page (if you remember to put the taglib declaration) -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, February 03, 2004 12:01 PM Subject: RE: accessing application.properties from JSP > Hi, > Actually my problem is that I have to make so that a javascript > message can be internationalized, so I must get it from > application.properties. > > But it looks like writing a inside a javascript method > Does not work. > > Any workarounds? > > I assume that message resources are stored in servlet context.. if so, > under > Which name? > > Thanx and regards > marco > > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: 03 February 2004 15:09 > To: Struts Users Mailing List > Subject: Re: accessing application.properties from JSP > > The same way it is done in the struts-example. > > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 (cell) > AIM: jmitchtx > MSN: [EMAIL PROTECTED] > > > > - Original Message - > From: "Marco Mistroni" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, February 03, 2004 10:06 AM > Subject: accessing application.properties from JSP > > > > Hi all, > > Does anyone know how to access application.resources from a JSP? > > With best regards > > Marco > > > > > > > > > > - > > 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 application.properties from JSP
The same way it is done in the struts-example. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, February 03, 2004 10:06 AM Subject: accessing application.properties from JSP > Hi all, > Does anyone know how to access application.resources from a JSP? > With best regards > Marco > > > > > - > 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: Is there an INCLUDE feature that works with struts-config?
Thanks, both of you, I'll go the XML entities route if that's all that's available. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: Is there an INCLUDE feature that works with struts-config? I think XML entities would do what he wants. What you do is, at the top of your struts-config.xml file, you define the entities you want to include: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"; [ ]> Then, at each place you want to use the entity in your file, you include it as an entity using &entityName; (so for the above example: &actionMappings; and &formBeans;) So to include action mappings in your struts config that you have defined in another file, you would do: &actionMappings; In struts-config, the entity paths can be relative to your struts-config.xml file (usually /WEB-INF/), or hard coded paths to somewhere else on the file system. If you want to use entities in tiles-defs.xml or validation.xml, they must be hard coded paths (for now...I'm investigating this in my free time!!). Matt Bathje - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 02, 2004 11:23 AM Subject: Re: Is there an INCLUDE feature that works with struts-config? > Probably not in the way you're thinking. > Struts allows you to specify more multiple config files for the same > app, so you can probably specify the app-specific config and the shared > config for each app. However, each of your apps will need to have copies of > the same shared XML. > If you're worried about duplication, you can have the shared config in > one location and have your build process copy it from there. > Just an idea. > > - Hubert > > --- "Anderson, James H [IT]" <[EMAIL PROTECTED]> wrote: > > We will have many related Struts apps that require identical entries in > > struts-config, so I'm wondering if there's a way to define common sets of > > entries and then include them in the config file for each of the apps. > > > > Thanks, > > > > jim > > > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > http://webhosting.yahoo.com/ps/sb/ > > - > 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]
Is there an INCLUDE feature that works with struts-config?
We will have many related Struts apps that require identical entries in struts-config, so I'm wondering if there's a way to define common sets of entries and then include them in the config file for each of the apps. Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using database tables for resource bundles
Not yet. I was planning to finish my refactoring to commons-resources (sandbox) quite some time ago, but like most people.I have just been too busy with other things. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Johan Wasserman - CPX Mngd Services" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 02, 2004 10:21 AM Subject: RE: Using database tables for resource bundles Regarding using a database to provide resource bundles; James Mitchell developed a nifty extention called 'OJBMessageResources' that uses OJB and there where talk of a new version using Hibernate... I'm also about to release another implementation that uses Hibernate for those who don't want the required OJB internal tables.stay tunedmore to come. Does anyone know (James, if you're listening) if the Hibernate version where made available or if there is something else available (that doesn't use OJB)? Thanks (and kudos to James for the OJB version), Johan Wasserman For: Comparex Africa (Pty) Ltd +27 (0) 83 326 7339 (Mobile) +27 (0) 11 266 1110 (Tel) +27 (0) 11 266 1099 (Fax) Mailto:[EMAIL PROTECTED] http://www.comparex.co.za/ Company Registration Number 1993/003683/07 NOTICE: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Johan Wasserman at Comparex Africa (Pty) Ltd immediately, telephone number +27 (0) 11 266 1110. Any unauthorized use, alteration or dissemination is prohibited. Comparex Africa (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:17 PM To: Struts Users Mailing List Subject: Re: Using database tables for resource bundles On Tue, 2003-03-25 at 10:30, Robert Leland wrote: > Rahul wrote: > > Hi, > > > > We are developing a multilingual system using struts 1.1 and j2ee > > 1.3. > > > > I need to know whether we can use backend database tables for > > providing all the messages i.e. whether the messages can be provided > > by a set of java class rather than relying on resource files > > residing on the server. > > James Mitchell developed a version of this. > It is in the jakarta-commons-sandbox/resources. > I haven't used this myself though. For 1.2 we plan > on making the message resources in struts a wrapper > around these classes. Until that point you'll need to > provide your own glue. Cool, I wasn't aware that it was added to commons-sandbox. I initially released this extension on http://sourceforge.net/struts called 'OJBMessageResources'. This particular implementation uses OJB under the covers. It is very simple to use. The best part is that you don't have to change anything in your application that already uses MessageResources. You can even use both properties files and database in the same application. (Props for some and db for others) Complete details are available in the download, and I'm here (almost 24 X 7) if you need assistance with setting things up. I'm also about to release another implementation that uses Hibernate for those who don't want the required OJB internal tables.stay tunedmore to come. > > -Rob > > -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - 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: Tesiting DispatchAction with StrutsAction..
What is your question? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Al Rathon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 02, 2004 9:42 AM Subject: Tesiting DispatchAction with StrutsAction.. > Need to test a struts app that uses DispatchAction > using struts TestCase. > > Thanks for the help. > > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > http://webhosting.yahoo.com/ps/sb/ > > - > 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]
[ANNOUNCE] Struts Console v4.3
Struts Console version 4.3 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.3.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.3.tar.gz Struts Console is FREE software. This release has a few bug fixes and some enhancements. Changes with Struts Console v4.3 *) Fixed bug where Form screen was not showing up for Validator 1.1 config files. *) Fixed bug where Field screen was improperly showing "bundle" attribute on Arg0 - Arg3 tabs for Validator 1.1 config files. *) Updated Eclipse plugin to recognize read only files. *) Updated to support system specified DTDs. *) Added support for the variant attribute of tags for Validator 1.1 config files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing Struts Datasource from another action servlet
Hi Guys, I have a web application written in Stuts and am writing a scheduler which is a seperate action servlet which is configured in the web.xml file to start at startup. All of my other action classes are session based so they can get the default datasource (From the struts-config.xml) from the session using; DataSource ds = getDataSource(request); I also store this datasource in the session so that I can access it from jsp's or pass it to other standalone servlets for background database processing and this approach seems to work well. I can't use this approach for the scheduler though as I can't guarantee that anyone will start a session so I can pass the datasource. My question is, how do I use the struts datasource in my scheduled servlet? Thanks for any help! Regards, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Need help downloading latest commons-sandbox and Struts Contrib from CVS
On Sun, 1 Feb 2004, Jim Anderson wrote: > Sorry, I'm feeling very stupid, but could someone please send me the > cvs command(s) needed to download each of these from the Jakarta site? > IIn case you haven't guessed, I'm rather new to CVS :-) Yes, you are right. This is VERY OT. But I'm feeling generous today :) Depending on your cvs client, and assuming you have the correct connection established to connect to apache's cvs repository. >cvs checkout jakarta-struts and >cvs checkout jakarta-commons-sandbox > > Thanks very much! > > A CVS ignoramus... > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Mitchell Software Developer / Struts Evangelist http://www.struts-atlanta.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: entity includes in tiles-defs.xml (again)
Sorry, I thought you *wanted* to specify it directly. >From what you've said below, that's an odd problem and my first inclination would be to check and recheck the spelling. Other than that, I'm not sure without having more information or having the project right here in front of me. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Matt Bathje" <[EMAIL PROTECTED]> To: "strutslist" <[EMAIL PROTECTED]> Sent: Wednesday, January 28, 2004 2:52 PM Subject: Re: entity includes in tiles-defs.xml (again) > Hi James, thanks for the answer. Unfortunatley it somehow wound up in my > spam box... > > This doesn't really solve the problem. I don't care about having to put the > c:\ in the entity - what I care about is having to put > /Inetpub_Tomcat/rsg_java/struts/pub in there. The application I am working > on will have multiple instantations, and the installation path will change > with each one. > > What I am looking for is a solution that allows me to put in just the file > name (as you can do in struts-config files) or a path relative to WEB-INF. > > > Thanks, > Matt Bathje > > > > - Original Message - > > Date: Mon, 26 Jan 2004 13:17:25 -0500 > > From: James Mitchell <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > Subject: Re: entity includes in tiles-defs.xml (again) > > To: Struts Users Mailing List <[EMAIL PROTECTED]> > > > > Try changing this: > > > Here is what DOES work in tiles-defs: > > > > > > "C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml"> > > > > > > > to this > > > "/Inetpub_Tomcat/rsg_java/struts/pub/WEB-INF/kurt-admin-tilesdefs.xml"> > > > > > > normally, "/" will be interpreted as "C:\" or to be more > > specificyour system's %SystemDrive% > > > > > > > > -- > > James Mitchell > > Software Engineer / Struts Evangelist > > http://www.struts-atlanta.org > > 678.910.8017 (cell) > > AIM: jmitchtx > > MSN: [EMAIL PROTECTED] > > > > > > > > - Original Message - > > From: "Matt Bathje" <[EMAIL PROTECTED]> > > To: "strutslist" <[EMAIL PROTECTED]> > > Sent: Monday, January 26, 2004 12:04 PM > > Subject: entity includes in tiles-defs.xml (again) > > > > > > > Hi, I asked this question a month or 2 ago, and never got a response, so > > > thought I'd try again - > > > > > > Using XML entities, I was able to get my struts-config file broken up > into > > > multiple files. > > > > > > I am attempting the same thing on my tile-defs.xml file, and when I do > it, > > I > > > get the following error: > > > > > > 12/16/03 10:56:55 AMERROR org.apache.struts.tiles.TilesPlugin init - > Can't > > > create Tiles definition factory for module ''. > > > ServletInitError: javax.servlet.ServletException: IO Error while parsing > > > file '/WEB-INF/tiles-defs-admin.xml'. > > > C:\WINDOWS\system32\kurt-admin-tilesdefs.xml (The system cannot find the > > > file specified) > > > > > > > > > So, just to be stupid, I put the full path to the file in the XML > enitity > > > declaration, and that makes it work - but I don't want to have to hard > > code > > > that path in. > > > > > > > > > Here is what works in struts-config: > > > > > > > > > Here is what DOESN'T work in tiles-defs: > > > > > > > > > Here is what DOES work in tiles-defs: > > > > > > "C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml"> > > > > > > I have also tried doing ./kurt-admin-tilesdefs.xml and > > > /kurt-admin-tilesdefs.xml but they just give me the same error. > > > > > > Any ideas about what is going on or how to fix it? > > > > > > > > > Thanks, > > > Matt Bathje > > > > > > > > > - > > > 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] > > > > > > - End forwarded message - > > > > > > > - > 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: request scope vs. session scope
Sorry, but there could be any number of reasons why your page isn't working. We'll need more information to help you. Check out the struts-example.war that ships with the distribution. That shows the most basic ways to send data to your jsp (in request scope). -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "struts fox" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 28, 2004 4:39 PM Subject: Re: request scope vs. session scope > I never specified, but adding it doesn't effect anything. Same results, it just doesn't like the request scope. Other example code does work with request, just not the one I'm trying to do myself. > > > > > > > > James Mitchell <[EMAIL PROTECTED]> wrote:Does your action-mapping use redirect="true"? > > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 (cell) > AIM: jmitchtx > MSN: [EMAIL PROTECTED] > > > > - Original Message - > From: "struts fox" > To: "Struts Users Mailing List" > Sent: Wednesday, January 28, 2004 2:38 PM > Subject: request scope vs. session scope > > > > > > I have the following weird problem. > > > > I start off with a web page, that has a hyperlink, not a submit button. > > When the hyperlink is selected the page goes to Tomcat/Struts. > > Two actions are executed and the page is forwarded to a jsp page and > displayed. > > > > The second action executed, as stated above, sets a bean up in the > session before it is forwarded. The problem is in the jsp if I declare the > bean via 'session' scope it sees the attribute and displays the value > properly, but if I declare it as 'request' scope it doesn't and just prints > null. Request scope should work here but it doesn't. > > > > > > > > > > > > > > > > > > > > - > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. Try it! > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request scope vs. session scope
Does your action-mapping use redirect="true"? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "struts fox" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 28, 2004 2:38 PM Subject: request scope vs. session scope > > I have the following weird problem. > > I start off with a web page, that has a hyperlink, not a submit button. > When the hyperlink is selected the page goes to Tomcat/Struts. > Two actions are executed and the page is forwarded to a jsp page and displayed. > > The second action executed, as stated above, sets a bean up in the session before it is forwarded. The problem is in the jsp if I declare the bean via 'session' scope it sees the attribute and displays the value properly, but if I declare it as 'request' scope it doesn't and just prints null. Request scope should work here but it doesn't. > > > > > > > > > > - > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: White space problem
Yes, same as with any tag or scriptlet. Of course, you could always use a servlet filter and replace all "\n+" with "/n". -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "McCormack, Chris" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 28, 2004 5:19 AM Subject: White space problem Hi all I am using struts with jstl. I have a problem that is a bit annoying. In the navigation jsp on one of my sites I have 2 nested c:forEach tags that have c:if tags inside them. If a bean element meets the c:if condition it gets c:out to the page, if not the loop skips over it until all the outer c:forEach beans have been looped. The problem is however when the c:if condition is not met a white line is written out by the c:forEach (ie one white line for each iteration regardless of the c:if condition). This ends up with a MASS of white space on the page. Is there anyway to stop the c:forEach writing out the white space ? tia Chris *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - 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: Best Practices question
Thanks very much, the article is just what I was looking for. jim -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 12:22 PM To: 'Struts Users Mailing List' Subject: RE: Best Practices question Jim, Throw custom exceptions in your business beans and then use the struts declarative exception handling feature so that your custom exception handler class(es) handle the exceptions by populating ActionMessages and logging the error if neccessary. Check out this article by Keld H. Hansen http://javaboutique.internet.com/tutorials/excep_struts/index-7.html -Richard -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 5:31 AM To: Struts Users Mailing List Subject: Best Practices question What is considered the best way for a business bean to handle errors so that they eventually get to ActionErrors? And what about business logging? Thanks, jim - 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]
Best Practices question
What is considered the best way for a business bean to handle errors so that they eventually get to ActionErrors? And what about business logging? Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebGroups & css
I've found this to be the cleanest way (aside from using a custom tag): ... ... @import url(<html:rewrite page="/stylesheets/style.css" />); The benefits here are: * The URL is relative to the root of the server. An application named "myapp" will resolve to /myapp/stylesheets/style.css. So this will work from anywhere in the application, no matter what the address bar shows. * no scriplet * no nested xml-like syntax ...anyway...just my $.02 -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Otto, Frank" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, January 27, 2004 5:10 AM Subject: AW: WebGroups & css > Hi, > > you can do this in this way (static path to css file): > > <% > String context_path = request.getContextPath(); > %> > > > > > Regards, > > Frank > > -Ursprungliche Nachricht- > Von: Manuel Lenz [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. Januar 2004 09:15 > An: Struts Users Mailing List > Betreff: WebGroups & css > > > > > > > > Hi you, > I do have a silly problem with style sheets-linking. > > I have a css-File in the folder "/theme/formats.css". > > I access this file from a jsp-page of the folder "/help/info.jsp" with this > link: > > This works, if I call the jsp-Page directly. > > There is another jsp-page in the folder called "/help/infoTest.jsp". > This page is called from struts-config with a forward. > The page has exactly the same code for linking the css-File. > But when the jsp-Page is called, the css-File is not found and the server > is > showing this message: > > "Web group /theme/formats.css is not defined" > ("Die Webgruppe /theme/formats.css wurde nicht definiert.") > > Does anybody have an idea how to solve this problem? > > Manuel > > > - > 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: constant url
- Original Message - From: "shankarr" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 27, 2004 3:47 AM Subject: RE: constant url > Hi! > > Thanks for the response. > http://localhost:8081/log4jdemo/loginScreen.do is what I see in my url. > I would like to keep this a constant at http://localhost:8081/log4jdemo only. > I am using both a href and html:link. Have you seen what DispatchAction can do for you? > > But, even in cases where i use direct action like /loginScreen.do, on > invoking the action, i.e clicking a button, > i get the full path in the url. Yes, and that bothers you? > > This exposes the data to the hackers and will be a big issue in deployment. WHAT?!?!? Expose what to hackers? The HTTP request string? If you want to get away from HTTP request string, you need to get away from HTTP. Your closest option is to "POST" everything, but that still leaves you vulnerable. I could (if I were sniffing your network) capture and read a "POST" as easily as I could a "GET". Consider using SSL. > > Any help will be appreciated. > > Richie > > -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: entity includes in tiles-defs.xml (again)
Try changing this: > Here is what DOES work in tiles-defs: > "C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml"> > to this normally, "/" will be interpreted as "C:\" or to be more specific....your system's %SystemDrive% -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Matt Bathje" <[EMAIL PROTECTED]> To: "strutslist" <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 12:04 PM Subject: entity includes in tiles-defs.xml (again) > Hi, I asked this question a month or 2 ago, and never got a response, so > thought I'd try again - > > Using XML entities, I was able to get my struts-config file broken up into > multiple files. > > I am attempting the same thing on my tile-defs.xml file, and when I do it, I > get the following error: > > 12/16/03 10:56:55 AMERROR org.apache.struts.tiles.TilesPlugin init - Can't > create Tiles definition factory for module ''. > ServletInitError: javax.servlet.ServletException: IO Error while parsing > file '/WEB-INF/tiles-defs-admin.xml'. > C:\WINDOWS\system32\kurt-admin-tilesdefs.xml (The system cannot find the > file specified) > > > So, just to be stupid, I put the full path to the file in the XML enitity > declaration, and that makes it work - but I don't want to have to hard code > that path in. > > > Here is what works in struts-config: > > > Here is what DOESN'T work in tiles-defs: > > > Here is what DOES work in tiles-defs: > "C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml"> > > I have also tried doing ./kurt-admin-tilesdefs.xml and > /kurt-admin-tilesdefs.xml but they just give me the same error. > > Any ideas about what is going on or how to fix it? > > > Thanks, > Matt Bathje > > > - > 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: Where is struts-scaffold.jar?
Terrific! Thanks very much. jim -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:35 PM To: Struts Users Mailing List Subject: RE: Where is struts-scaffold.jar? Look at the bottom of the page... http://sourceforge.net/project/showfiles.php?group_id=49385 Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 10:18 AM To: Struts Users Mailing List Subject: Where is struts-scaffold.jar? What am I missing? It's not in the Struts 1.1 distribution, and I haven't been able to find it anywhere. jim - 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] How to use java constants as bean identifiers in jsps
Look at the "unstandard" tags. Specifically, the bind tag. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Paul McCulloch" <[EMAIL PROTECTED]> To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 12:56 PM Subject: [OT] How to use java constants as bean identifiers in jsps > Hi, > > Is there a common solution to using Constants for bean identifiers in your > views? > > For example in some action I have > ... > Collection foo = new SomeCollection(); > request.setAttribute(Constants.SOME_THING, foo); > > > I want to access this collection via the JSTL in my view. Something like > > > > > > Is there a decent way of doing this? What does everyone else do? > > thanks, > > Paul > > > ** > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where is struts-scaffold.jar?
What am I missing? It's not in the Struts 1.1 distribution, and I haven't been able to find it anywhere. jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Debugging in JBoss 3.2.3
Sorry, I wasn't able to get this done. A few hours ago I got 5 more Chapters dumped into my Inbox (tech editing) so I'm not sure when I'll have time. Maybe next week. Thankx. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message ----- From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 23, 2004 9:39 AM Subject: Re: Debugging in JBoss 3.2.3 > I'll see if I can put together something this weekend like this: > http://jakarta.apache.org/struts/faqs/eclipse.html > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 (cell) > AIM: jmitchtx > MSN: [EMAIL PROTECTED] > > > > - Original Message - > From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, January 23, 2004 9:24 AM > Subject: RE: Debugging in JBoss 3.2.3 > > > Can u drop more light on itit would be helpful for guy like me whoz new > to JBoss > > Tnx in advance. > > -R > > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 22, 2004 3:27 PM > To: Struts Users Mailing List > Subject: Re: Debugging in JBoss 3.2.3 > > > Yes, > > 1. Setup JBoss for remote debugging. > (specifically, you need to add a line > to the .bat/.sh startup script) > > 2. Setup your .war expanded > (for example, the directory in the > deploy directory is named 'myapp.war') > > 3. Startup JBoss/Tomcat and use remote debugging >in Eclipse > > > sorry for the speedy, not-quite-complete helpbut that's basically > what I used to do before I found MyEclipse. > > Now, if only MyEclipse worked on 3.0 M6...hm > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 (cell) > AIM:jmitchtx > MSN: [EMAIL PROTECTED] > > > > - Original Message - > From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 22, 2004 3:07 PM > Subject: Debugging in JBoss 3.2.3 > > > Hi, > I'm using JBoss 3.2.3 (with Tomcat as default container) and was > using version 3.2.1 earliar with Tomcat as separate container and was able > to debug my application using eclipse, now we are moved onto JBoss 3.2.3 > with Tomcat as default container. Is there anyway I can debug my application > using eclipse without having to re-deploy my application again and again. > I know I can use myeclipse plugin to debug but wondering is there any other > better alternate for debugging. > Thanks in advance, > -Ramadoss > > > > > > > - > 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]
ActionErrors display
Hi, I have been trying to work through the display of ActionErrors - both global and non-global (field level) - such that it would look something like the following HTML sample: Search Form The following errors have occurred: A global error has been detected Last Name is invalid. Fields marked with a red background and a https://scgi.ebay.com/saw/pics/sitewide/warning_9x10.gif"; width="9" height="10" hspace="3" vspace="2" border="0"> have failed validation. Please provide the following search criteria information. You must complete all of the fields marked with an asterisk (*). *Last Name: https://scgi.ebay.com/saw/pics/sitewide/warning_9x10.gif"; width="9" height="10" hspace="3" vspace="2" border="0"> *First Name: The desire is: 1. All errors will appear in one place - the top of the page. 2. Any field for which validation errors have been detected, would be further flagged in 1 of three potential ways: a. changing the fields background colour; b. marking it with an exclamation icon (thanks to eBay for the quick sample); or c. including the error message (in this case "Last Name is invalid.") in the title attribute of the input. #1 is easily achieved; however, I have been struggling with #2 in any form. The html:errors tag makes it very easy to output the message for a specific field, but I cannot seem to find a means to use it to "flag" that an error has occurred. Any suggestions would be greatly appreciated. Cheers, 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Atlanta] January meeting
This month's meeting will be held on Thursday, January 29, 2004. The topic this month is an Open Forum. Our local Atlanta Struts gurus will take their best crack at helping you with any issues/questions you may have. For more information, go to: http://www.struts-atlanta.org -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Switch Action
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=74324 &release_id=147944 -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 10:47 AM Subject: Switch Action Hi, Can anybody give an example for switch action if possible in detail. Thanks in advance. -Ram - 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: Debugging in JBoss 3.2.3
I'll see if I can put together something this weekend like this: http://jakarta.apache.org/struts/faqs/eclipse.html -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 23, 2004 9:24 AM Subject: RE: Debugging in JBoss 3.2.3 Can u drop more light on itit would be helpful for guy like me whoz new to JBoss Tnx in advance. -R -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:27 PM To: Struts Users Mailing List Subject: Re: Debugging in JBoss 3.2.3 Yes, 1. Setup JBoss for remote debugging. (specifically, you need to add a line to the .bat/.sh startup script) 2. Setup your .war expanded (for example, the directory in the deploy directory is named 'myapp.war') 3. Startup JBoss/Tomcat and use remote debugging in Eclipse sorry for the speedy, not-quite-complete helpbut that's basically what I used to do before I found MyEclipse. Now, if only MyEclipse worked on 3.0 M6...hm -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 3:07 PM Subject: Debugging in JBoss 3.2.3 Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - 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:link multiple parameters
Sorry if this was already posted, but you can always do this: Add XYZ Cart -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Richard Hightower" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 8:16 PM Subject: RE: html:link multiple parameters > use JSTL > > > > it allows you to pass parameter tags > > -Original Message- > From: Nathan Maves [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 22, 2004 9:47 AM > To: Struts Users Mailing List > Subject: html:link multiple parameters > > > Is there any reason why this has not been implemented in the struts > html tags? > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html > > Say I have a List of People objects that I place into the request from > an action. > > Now I want to iterate through them and create links with two or more > parameters. I now have to add a List of HashMaps that contain these > two attributes of a person. Tell me there is a better way to do this. > > Nathan > > > - > 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: Debugging in JBoss 3.2.3
Yes, 1. Setup JBoss for remote debugging. (specifically, you need to add a line to the .bat/.sh startup script) 2. Setup your .war expanded (for example, the directory in the deploy directory is named 'myapp.war') 3. Startup JBoss/Tomcat and use remote debugging in Eclipse sorry for the speedy, not-quite-complete helpbut that's basically what I used to do before I found MyEclipse. Now, if only MyEclipse worked on 3.0 M6...hm -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 3:07 PM Subject: Debugging in JBoss 3.2.3 Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - 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: editor
Struts Console doesn't help with JSPs like you mention below, but it helps with the Struts config files. http://www.jamesholmes.com/struts/ -James > Does anybody knows a good and free struts editor ? > Does anybody knows an editor that is able to make code more readable, > user friendlier... eg. formatting the following code: > > bla > > into: > > > bla > > > > Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] [ANNOUNCE] Faces Console 1.0 Beta 2
I'd like to announce the availability of Faces Console 1.0 Beta 2. This new version now supports JSF 1.0 beta and fixes many bugs. The Faces Console is a FREE standalone Java Swing application for managing JavaServer Faces-based applications. With the Faces Console you can visually edit JavaServer Faces configuration files as well as JSP Tag Library files. The Faces Console also plugs into multiple, popular Java IDEs for seamless management of Faces applications from one central development tool. Version 1.0 Beta 2 can be downloaded from my website at: http://www.jamesholmes.com/JavaServerFaces/console/ Please give it a try and let me know if you have any problems. Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/JavaServerFaces/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT?]Tomcat multiple users developing
- Original Message - From: "Larry Meadors" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 21, 2004 10:47 AM Subject: Re: [OT?]Tomcat multiple users developing > > 1) How do you share the same application development? Do you use > > a "strategy"? We are testing our business objects outside struts, > > Are you all sharing a single tomcat instance for development? If so, > stop now! :-) +1 > > Set up a version control system (like cvs), and use one instance of > tomcat per developer (on each workstation). That way only your changes > affect you. Update from cvs often and commit when your code works. > > > 2) Is there another way to tell Tomcat that a class has been changed > > instead of reload the application or set the reload=true attribute > > in the context? > > No. Actually, that's not totally true. When running Tomcat and attaching via Remote Debugging (or using something like MyEclipse), you can change and save (which Eclipse automatically compiles for you) your code at will and you will be able to execute that new code by just refreshing your browser. Or even better, if you set a break point in a method and as an executing thread comes to (and freezes on it) that peice of code, you can change anything in that method and execution will restart from the top of that method. As long as you don't change the signature of a preloaded class (binary compatibility), you can change all you want, on the fly. Good stuff for lazy people! (like me ;) > > Larry > -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
beginner's html:options question
I have a collection of LabelValueBeans as a property of another bean (an Action), and I store this bean in session scope with "preparedData" as the key. But when I try and access it using html:option, I get the following error: "Cannot find bean preparedData in any scope" Here's html:option related stuff: > Any help greatly appreciated! jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Eclipse and JSTL
That's true. It is not free. But it is the best $30 you'll ever spend. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx - Original Message - From: "Ashikuzzaman" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 12:50 PM Subject: RE: [OT] Eclipse and JSTL > > But myeclipseide is not free. I guess new plugins will come soon or a lomboz > j2ee plugin update will come for supporting J2EE 1.4. Currently my lomboz > supports J2EE 1.3 of which JSTL is not an integral part. > > Regards, > > Muhammad Ashikuzzaman (Fahim) > SCJP, SCWCD, IBM WebSphere and XML Developer > Senior Software Engineer, SurroundApps Inc. > > > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 18, 2004 10:05 PM > To: Struts Users Mailing List > Subject: Re: [OT] Eclipse and JSTL > > Yes, MyEclipse. > http://www.myeclipseide.com/ > > > > > > -- > James Mitchell > Software Engineer / Struts Evangelist > http://www.struts-atlanta.org > 678.910.8017 (cell) > AIM:jmitchtx > > > > - Original Message - > From: "Mike Duffy" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Sunday, January 18, 2004 3:13 AM > Subject: [OT] Eclipse and JSTL > > > > Has anyone found a good Eclipse plugin for editing JSPs containing JSTL? > > > > Thanks. > > > > Mike > > > > __ > > Do you Yahoo!? > > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > > > - > > 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] Eclipse and JSTL
Yes, MyEclipse. http://www.myeclipseide.com/ -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx - Original Message - From: "Mike Duffy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 3:13 AM Subject: [OT] Eclipse and JSTL > Has anyone found a good Eclipse plugin for editing JSPs containing JSTL? > > Thanks. > > Mike > > __ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > - > 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]
[Tiles] Insert URL Restrictions?
From the Tiles documentation, the insert page URL restrictions aren't clear to me. For example, with the JSTL tag, one can import content from: 1. the same web context 2. another context in the same web container 3. anywhere in the world via a URL (this is what I need) Tiles API Guide: "The page attribute is any valid URL pointing to a resource inside the current site." "The Tiles body can be a simple JSP page, a Struts action or any URI pointing to a resource inside the current web site." Which of the numbered items above can be specified as a source of content with Tiles? Thank you. - Jim ______ James Watkin ACIS Software Development The Anderson School at UCLA [EMAIL PROTECTED] Voice: 1-310-825-5030 Fax: 1-310-825-4835 __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator overriding cache-control?
Just to follow up with a few questions, based on the following statement: It is my assumption in this scenario that the browser (IE) has cached the URL and data posted to said URL, thus it is able to redisplay the page with the data the user has entered. 1. Is this a correct assumption? 2. If yes, is this the expected behaviour of a browser for pages that are marked as do not cache? 3. If yes, is there any known mechanism to force the browser to not cache the POST data? Cheers, 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. > > -Original Message- > > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > > Sent: 2004 January 14 21.57 > > To: Struts Users Mailing List > > Subject: Re: Struts Validator overriding cache-control? > > > > > > The sequence you described is the expected behavior. > > Comments below. > > > > --- "Brown, James" <[EMAIL PROTECTED]> wrote: > > > We have encountered a situation wherein it appears that the > > server-side > > > validation provided by the struts-validator and that of > > > ValidatorForm.validate(...) appears to be overriding the > > controller's nocache > > > value. > > > > > > The scenario we have encountered is follows: > > > 1. user enters data on a page that is backed by a > > subclass of ValidatorForm > > > 2. form is submitted but one of either server-side > > validation for a required > > > field (set via the struts validator plugin) or the > > ValidatorForm.validate(...) > > > method returns and ActionError. > > My guess is the form was submitted using METHOD=POST. > > > 3. the page is redisplayed with the appropriate error > message(s). > > This page is the result of a submitted form. > > > 4. the user corrects the form and submits. > > > 5. the subsequent (success) page is displayed. > > > 6. the user selects the browser's back button and > > receives the IE "Warning: > > > Page has Expired" warning/error. > > When the user selects the back button, he is trying to > > redisplay the page shown > > in step 3, which can only be displayed by resubmitting the > > form. IE will not > > resubmit a form without informing the user, and therefore > > shows this warning to > > tell the user. > > > 7. the user refreshes the page via the F5 key or the > > refresh button, and the > > > page as displayed in step 3 is redisplayed. > > This is expected because the form that was submitted in step > > 2 was resubmitted by > > IE to display the page requested by the user. > > > > > > Our controller is set to not cache any pages via: > > > > > > > > > > > > > > > The ValidatorForm/ActionForm's scope is also set to > > request, thus the page > > > should be displayed empty. > > > > > > This situation only occurs if the form is submitted with > > data that fails > > > server-side validation and the page is redisplayed. In a > > true "success" path, > > > the page is displayed as desired - empty. > > > > > > Any ideas? > > > > Your user tried to redisplay the result of an errant form, > > and so WILL get the > > page with the error message. If you want to display an empty > > form, perhaps to > > allow the user to enter another set of data, you can provide > > a link which the > > user can follow for a fresh form, or display the form in step > > 5 along with your > > "success" message. > > > > > > > > Cheers, > > > James > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > > > > - > > 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: How to enable Text formatting in Text area using struts html tags
You know, you'll be lucky if you don't get flamed for asking a question like that here. I'll take the high road today ;) I would highly suggest you do one of the following: - purchase a book on HTML - go through an HTML tutorial - search google - search mail-archive.com Please post back if you don't find your answer after doing one of those. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx - Original Message - From: "N.N.S.S Ravi Krishna" <[EMAIL PROTECTED]> To: "'struts users'" <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 6:28 AM Subject: How to enable Text formatting in Text area using struts html tags > Hi, > I am using .I want to format the text written in the > given text area i.e. enabling characters bold, Italics,underline etc., as in > windows .doc format. > > Please help me how do I achieve this using struts tags > > --Ravi Krishna > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator overriding cache-control?
Thanks. I was confused by the fact that the behaviour is different if the page is submitted without error. In the without-error scenario, the "re-post" as the result of the refresh does not contain the form values that would logically be contained in the "with-error" scenario. Now, I just need to work myself out of the corner I am in - I need to prevent the refresh from redisplaying this data which I think is darn near imposibble. Cheers, 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. > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: 2004 January 14 21.57 > To: Struts Users Mailing List > Subject: Re: Struts Validator overriding cache-control? > > > The sequence you described is the expected behavior. > Comments below. > > --- "Brown, James" <[EMAIL PROTECTED]> wrote: > > We have encountered a situation wherein it appears that the > server-side > > validation provided by the struts-validator and that of > > ValidatorForm.validate(...) appears to be overriding the > controller's nocache > > value. > > > > The scenario we have encountered is follows: > > 1. user enters data on a page that is backed by a > subclass of ValidatorForm > > 2. form is submitted but one of either server-side > validation for a required > > field (set via the struts validator plugin) or the > ValidatorForm.validate(...) > > method returns and ActionError. > My guess is the form was submitted using METHOD=POST. > > 3. the page is redisplayed with the appropriate error message(s). > This page is the result of a submitted form. > > 4. the user corrects the form and submits. > > 5. the subsequent (success) page is displayed. > > 6. the user selects the browser's back button and > receives the IE "Warning: > > Page has Expired" warning/error. > When the user selects the back button, he is trying to > redisplay the page shown > in step 3, which can only be displayed by resubmitting the > form. IE will not > resubmit a form without informing the user, and therefore > shows this warning to > tell the user. > > 7. the user refreshes the page via the F5 key or the > refresh button, and the > > page as displayed in step 3 is redisplayed. > This is expected because the form that was submitted in step > 2 was resubmitted by > IE to display the page requested by the user. > > > > Our controller is set to not cache any pages via: > > > > > > > > > > The ValidatorForm/ActionForm's scope is also set to > request, thus the page > > should be displayed empty. > > > > This situation only occurs if the form is submitted with > data that fails > > server-side validation and the page is redisplayed. In a > true "success" path, > > the page is displayed as desired - empty. > > > > Any ideas? > > Your user tried to redisplay the result of an errant form, > and so WILL get the > page with the error message. If you want to display an empty > form, perhaps to > allow the user to enter another set of data, you can provide > a link which the > user can follow for a fresh form, or display the form in step > 5 along with your > "success" message. > > > > > Cheers, > > James > > > > __ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > - > 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]