Re: Debug output
Look in WEB-INF/classes. At 02:06 PM 11/3/2003, you wrote: How do I adjust the logging level of struts? I am getting way too many DEBUG messages.. Peter -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: example of jsp in WEB-INF
Actually, if you want your images, e.g. gifs, inaccessible, you can also serve them with an Action subclass. I have made one for all resource file types, if anyone is interested. At 01:33 PM 10/29/2003 +0800, Andrew Hill wrote: Hi Ashish, You nee to do a non-redirecting forward from an action to get to the JSP. The container only blocks requests from the browser from seeing stuff thats in web-inf, but when redirecting on the server side its ok. The gif files are pulled by the browser using a seperate request. You will need to keep these outside of web-inf so that the browser can reach them. (btw: You might want to take a look at the docs for the html:base tag as it makes working out the relative urls to use in these cases a lot easier!) -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 12:39 To: [EMAIL PROTECTED] Subject: example of jsp in WEB-INF Hi, is there any example on net of keeping jsp in WEB-INF folder, like struts-blank how do we access the images and gif files, and how do we forward the request to these jsp Ashish __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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]
GURU NEEDED: Tiles Definitions and new ActionForward(TILES_DEFINITION_NAME);
If I return new ActionForward(TILES_DEFINITION_NAME);, will that return the page the definition defines? This is seemingly so. If so, I can dynamically choose definitions in the Action and not bother with either global forwards or defining forwards in action mappings. Is that right? I would really appreciate an answer to this from some guru. Thanks ahead of time. Micael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to remove *.do or /do/* from the URL
I use .Whatever, where that is some marketing term that is acceptable. At 10:39 AM 9/18/2003 -0400, Vic Cekvenich wrote: How about a hack: *.jsp It looks as jsp on top but it's a do. Or you can even say *.asp, or anything. Just pick a word marketing likes. .V Matt Raible wrote: I agree with you - however, it's a marketing thing. The project I'm on has implemented a lot of folder/index.html (with meta-refresh) so that marketing materials have pretty URLs. I was simply hoping to accomplish this without doing anything extra - so http://site.com/do/activities can be put into marketing materials as http://site.com/activities. Maybe we could have marketing use http://site.com/activities/index.html and then use a filter (mapped to *.html) to do a redirect to http://site.com/do/activities. Matt -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:26 AM To: Struts Users Mailing List Subject: Re: Is it possible to remove *.do or /do/* from the URL The important principle here is Web Application != Web Site. If your users feel compelled to use bookmarks and the back button in your webapps, despite efforts to train them correctly, this is a pretty good sign that you have not provided enough suitable navigation controls in your basic UI. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting a ResultSet to a List of POJOs
I assume you don't mean something like: brbr List list = null;br try {br list = Collections.synchronizedList(new LinkedList());br User user = null;br CompositeEntity composite = new CompositeEntity();br while(rs.next()) {br user = composite.getUserVO();br user.setId(rs.getInt(id));br user.setUsername(rs.getString(username));br user.setPassword(rs.getString(password));br user.setName(rs.getString(name));br user.setEmail(rs.getString(email));br user.setType(rs.getString(type));br user.setStatus(rs.getInt(status));br user.setTime(rs.getLong(time));br list.add(user);br } pstmnt.close();br pstmnt = null;br } catch(SQLException sqle) {br throw new ChainedException(sqle, HsqlUserDAO: rs.next(): + sqle.getMessage());br }br return list;brbrbr But, if you do, there it is: Micael At 05:49 PM 9/5/2003 -0500, you wrote: Dear Struts Experts, I recently started a new project where most of the backend code is already written with JDBC and ResultSets. The ResultSets are iterated through and a POJOs values are set using pojo.setName(rs.getString(...)), etc. - you get the point. I'm wondering if there's an easier way - so I could do something like this: ResultSet rs = stmt.executeQuery(SELECT ...); List objects = FancyUtilitity.convertResultSetToListOfObjects(rs, object.class); Hibernate let me do this very simply - and I miss the fact that I could type a line or two to get a List of POJOs. List users = ses.createQuery(from u in class + User.class + order by u.name).list(); I've looked at the RowSetDynaClass (http://tinyurl.com/mekh), which has an interesting way of doing this - is this the recommended approach in the JDBC world? Here's an example using it: ResultSet rs = stmt.executeQuery(SELECT ...); RowSetDynaClass rsdc = new RowSetDynaClass(rs); rs.close(); stmt.close(); ...;// Return connection to pool List rows = rsdc.getRows(); ...; // Process the rows as desired Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Converting a ResultSet to a List of POJOs
I might as well go ahead and state boldly what I was trying to imply, Matt. If you notice the CompositeEntity, then you can imagine altering that to include two changes to the norm. First, you can make all the composite entities of the same type, and, second, you can change .getUserVO() to getVO(rs, object.class) pretty easily, right? Or, do you want the entire thing to be done by reflection? If not, tucking the SQL into the CompositeEntity might work for you. No? Si? Micael At 06:20 PM 9/5/2003 -0500, Matt Raible wrote: This is what I'm trying to get away from. -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 5:19 PM To: Struts Users Mailing List Subject: Re: Converting a ResultSet to a List of POJOs I assume you don't mean something like: brbr List list = null;br try {br list = Collections.synchronizedList(new LinkedList());br User user = null;br CompositeEntity composite = new CompositeEntity();br while(rs.next()) {br user = composite.getUserVO();br user.setId(rs.getInt(id));br user.setUsername(rs.getString(username));br user.setPassword(rs.getString(password));br user.setName(rs.getString(name));br user.setEmail(rs.getString(email));br user.setType(rs.getString(type));br user.setStatus(rs.getInt(status));br user.setTime(rs.getLong(time));br list.add(user);br } pstmnt.close();br pstmnt = null;br } catch(SQLException sqle) {br throw new ChainedException(sqle, HsqlUserDAO: rs.next(): + sqle.getMessage());br }br return list;brbrbr But, if you do, there it is: Micael At 05:49 PM 9/5/2003 -0500, you wrote: Dear Struts Experts, I recently started a new project where most of the backend code is already written with JDBC and ResultSets. The ResultSets are iterated through and a POJOs values are set using pojo.setName(rs.getString(...)), etc. - you get the point. I'm wondering if there's an easier way - so I could do something like this: ResultSet rs = stmt.executeQuery(SELECT ...); List objects = FancyUtilitity.convertResultSetToListOfObjects(rs, object.class); Hibernate let me do this very simply - and I miss the fact that I could type a line or two to get a List of POJOs. List users = ses.createQuery(from u in class + User.class + order by u.name).list(); I've looked at the RowSetDynaClass (http://tinyurl.com/mekh), which has an interesting way of doing this - is this the recommended approach in the JDBC world? Here's an example using it: ResultSet rs = stmt.executeQuery(SELECT ...); RowSetDynaClass rsdc = new RowSetDynaClass(rs); rs.close(); stmt.close(); ...;// Return connection to pool List rows = rsdc.getRows(); ...; // Process the rows as desired Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Converting a ResultSet to a List of POJOs
Okay, gotcha. At least it had a List. LOL. At 06:20 PM 9/5/2003 -0500, you wrote: This is what I'm trying to get away from. -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 5:19 PM To: Struts Users Mailing List Subject: Re: Converting a ResultSet to a List of POJOs I assume you don't mean something like: brbr List list = null;br try {br list = Collections.synchronizedList(new LinkedList());br User user = null;br CompositeEntity composite = new CompositeEntity();br while(rs.next()) {br user = composite.getUserVO();br user.setId(rs.getInt(id));br user.setUsername(rs.getString(username));br user.setPassword(rs.getString(password));br user.setName(rs.getString(name));br user.setEmail(rs.getString(email));br user.setType(rs.getString(type));br user.setStatus(rs.getInt(status));br user.setTime(rs.getLong(time));br list.add(user);br } pstmnt.close();br pstmnt = null;br } catch(SQLException sqle) {br throw new ChainedException(sqle, HsqlUserDAO: rs.next(): + sqle.getMessage());br }br return list;brbrbr But, if you do, there it is: Micael At 05:49 PM 9/5/2003 -0500, you wrote: Dear Struts Experts, I recently started a new project where most of the backend code is already written with JDBC and ResultSets. The ResultSets are iterated through and a POJOs values are set using pojo.setName(rs.getString(...)), etc. - you get the point. I'm wondering if there's an easier way - so I could do something like this: ResultSet rs = stmt.executeQuery(SELECT ...); List objects = FancyUtilitity.convertResultSetToListOfObjects(rs, object.class); Hibernate let me do this very simply - and I miss the fact that I could type a line or two to get a List of POJOs. List users = ses.createQuery(from u in class + User.class + order by u.name).list(); I've looked at the RowSetDynaClass (http://tinyurl.com/mekh), which has an interesting way of doing this - is this the recommended approach in the JDBC world? Here's an example using it: ResultSet rs = stmt.executeQuery(SELECT ...); RowSetDynaClass rsdc = new RowSetDynaClass(rs); rs.close(); stmt.close(); ...;// Return connection to pool List rows = rsdc.getRows(); ...; // Process the rows as desired Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: What is Java Server faces ?
Come on, Mark. This guy is not necessarily what you are assuming. Maybe he just cannot tell what the difference and relations are between JSF and Struts. That is not a trivial issue in some ways of interpreting this. Boy, you are MEAN! LOL. At 09:26 AM 8/29/2003 -0400, Mark Galbreath wrote: yep, and can you write my code for me? -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 9:02 AM To: Struts Users Mailing List Subject: Re: What is Java Server faces ? do you still have to do a web search if you don't actually ask an inane question, but instead include the phrase 'I don't have the time to...' LOL -jeff On Friday, August 29, 2003, at 07:41 AM, Mark Galbreath wrote: Did you read the part about doing a web search before posting inane questions on mailing lists? -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 7:04 AM To: Struts Users Mailing List Subject: RE: What is Java Server faces ? Eh? You sure thats the link Mark? I read through it but it all seems to be some nonsense about questionable hackers , or hackers with questions or asking questions or something like that? - I didnt see anything about JSF or even struts. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2003 17:54 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: What is Java Server faces ? This should help: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Madhu Nair [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 3:52 AM What is java server faces technology? Is it similar to Struts ? Will all that I learnt about Struts go waste? Regards, Madhu - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts and flash
If you are embedding the Flash object in the web page, then none of the other questions have a thing to do with Flash. So, what you do is just what you would do in any case. The fact that Flash is embedded is as irrelevant to these other issues as the fact that a JPEG file might be called by an img tag. Okay? Micael At 09:22 AM 8/26/2003 -0400, Daniel Blumenthal wrote: my current plan of attack is to embed a flash object in the web page, and then use XML.sendAndLoad() to send queries to the server and get information back. i have one Action which is specifically tasked with receiving all internal requests by my application (it accepts things like GetRecord.do?row=1, SetRecord.do?row=1value=foo) and returning information (using ObjectOutputStreams). it *seems* like i should be able to do something like myXmlObject.sendAndLoad(GetRecord.do,result), and just reformat the return data a little. does this sound doable? -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 1:06 AM To: Struts Users Mailing List; Struts Users Mailing List Subject: Re: struts and flash There are real issues with this, unless you merely embed the Flash. If you just embed the Flash, everything is simple, of course. If you don't, there are real problems of referencing this and that. What do you want to do? If you say you can embed the Flash images in the JSP pages, then everything is easy. Which way is it? Micael At 03:02 PM 8/25/2003 -0400, Daniel Blumenthal wrote: i saw a thread on using flash with struts from about a year ago, and i was wondering what the current state of affairs was. i was a good doobie and wrote my application in pretty strict MVC form, but now i'm looking at refactoring it to use a flash front-end (with dynamic communication back to the server), and it's looking like a complete mess. basically, i want my Model layer to remain as it is (java / jdbc / mysql), and the View layer to be flash - i'd prefer to leave the Controller as a struts application. is this possible, while still allowing the front-end to talk to the server dynamically? daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts and flash
There are real issues with this, unless you merely embed the Flash. If you just embed the Flash, everything is simple, of course. If you don't, there are real problems of referencing this and that. What do you want to do? If you say you can embed the Flash images in the JSP pages, then everything is easy. Which way is it? Micael At 03:02 PM 8/25/2003 -0400, Daniel Blumenthal wrote: i saw a thread on using flash with struts from about a year ago, and i was wondering what the current state of affairs was. i was a good doobie and wrote my application in pretty strict MVC form, but now i'm looking at refactoring it to use a flash front-end (with dynamic communication back to the server), and it's looking like a complete mess. basically, i want my Model layer to remain as it is (java / jdbc / mysql), and the View layer to be flash - i'd prefer to leave the Controller as a struts application. is this possible, while still allowing the front-end to talk to the server dynamically? daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Advanced Resoures: Flash
I am retrieving resources as indicated by the following two examples: brbr html:img brnbsp;nbsp;nbsp;nbsp;src='staticResource.do?content_type=image/gifresource_source=graphics/struts-power.gif' brnbsp;nbsp;nbsp;nbsp;alt='Powered by Struts' brnbsp;nbsp;nbsp;nbsp;height='15'/ html:link brnbsp;nbsp;nbsp;nbsp;href='staticResource.do?content_type=text/plainresource_source=css/index_css.css'/ brbr The staticResource class is as follows: brbr public final class ActionStaticResourcebr nbsp;nbsp;nbsp;nbsp;extends Action {brnbsp;nbsp; public ActionForward execute(ActionMapping mapping,brnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; ActionForm form,brnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; HttpServletRequest request,brnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; HttpServletResponse response)brnbsp;nbsp;nbsp;nbsp; throws IOException,brnbsp;nbsp;nbsp;nbsp; ServletException {brnbsp;nbsp; response.setContentType(request.getParameter(StaticResource.CONTENT_TYPE));brnbsp;nbsp; try {brnbsp;nbsp; String fileName = WEB_INF.getClasspath() + brnbsp;nbsp;request.getParameter(StaticResource.RESOURCE_SOURCE);brnbsp;nbsp; FileInputStream fis = new FileInputStream(fileName);brnbsp;nbsp; byte[] imageBuf = new byte[1024];brnbsp;nbsp; BufferedInputStream bis = new BufferedInputStream(fis);brnbsp;nbsp; byte[] bytes= new byte[bis.available()];brnbsp;nbsp; OutputStreamos = response.getOutputStream();brnbsp;nbsp; bis.read(bytes);brnbsp;nbsp; os.write(bytes);brnbsp;nbsp; } catch(Exception e) { System.out.println(e);}brnbsp;nbsp; return null;brnbsp;nbsp; }brnbsp;nbsp; } /// ;-)brnbsp;nbsp; brbr However, I cannot get this to work with Flash files. Someone have a suggestion? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: mesage message account
Tell us something we all did not already know, Mark, you commie creep! ///;-) At 02:07 PM 8/19/2003 -0400, Mark Galbreath wrote: Actually, I'm an African-American pro-Islamic militant revolutionary who is on this list only to monitor the secret Zionist elitists disguised as Struts developers and gather intelligence for the coming .NET holocaust and world domination. Mark (is only my code name) -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:42 AM Did you take my message message account off the list ? Is that because that white shit Mark Galbreath said so and that shit Craig Mclanahan agreed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Advanced Struts Resource Retrieval and Flash
Presently I load images as follows, since I want to control who has access to my images and other like resources. First, an Action subclass, viz. ActionStaticResource, cf. infra, to retrieve and to deliver the image, letting me store the image inside WEB-INF and isolated from the outside. Second, I access the image via an html:link html:img call in Struts, e.g.: FOR CSS html:link href='staticResource.MichaelMcGradyHomeSites?content_type=text/plainresource_source=css/index_css.css'/ Or: FOR IMAGES html:img src='staticResource.MichaelMcGradyHomeSites?content_type=image/gifresource_source=graphics/struts-power.gif' alt='Powered by Struts' height='15'/ (I use .MichaelMcGradyHomeSites instead of .do, free ads, you know!) This includes the appropriate references in the struts-config.xml to: global-forwards // forward name='staticResource' path='/staticResource.MichaelMcGradyHomeSites'/ // /global-forwards And: action-mappings // action path='/staticResource' type='com.michaelmcgrady.struts.action.ActionStaticResource' scope='request' input='staticResource' forward name='staticResource' path='staticResource'/ /action // /action-mappings public final class ActionStaticResource extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(request.getParameter(StaticResource.CONTENT_TYPE)); try { String fileName = WEB_INF.getClasspath() + request.getParameter(StaticResource.RESOURCE_SOURCE); FileInputStream fis = new FileInputStream(fileName); byte[] imageBuf = new byte[1024]; BufferedInputStream bis = new BufferedInputStream(fis); byte[] bytes= new byte[bis.available()]; OutputStreamos = response.getOutputStream(); bis.read(bytes); os.write(bytes); } catch(Exception e) { System.out.println(e);} return null; } } /// ;-) I have tried to apply this strategy to SWF (Flash) files, using hints I have received before. But, I have not succeeded. I am a slow learner, I guess. I am not sure what I am doing wrong. Does anyone have a strategy? Thanks for any help LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
Another Try: Struts Advanced Image/Resource Retrieval and Flash
This email has spaces, etc., so let's see if it has this when it arrives there. If not, sorry. Presently I load images as follows, since I want to control who has access to my images and other like resources. First, an Action subclass, viz. ActionStaticResource, cf. infra, to retrieve and to deliver the image, letting me store the image inside WEB-INF and isolated from the outside. Second, I access the image via an html:link html:img call in Struts, e.g.: FOR CSS html:link href='staticResource.MichaelMcGradyHomeSites?content_type=text/plainresource_source=css/index_css.css'/ Or: FOR IMAGES html:img src='staticResource.MichaelMcGradyHomeSites?content_type=image/gifresource_source=graphics/struts-power.gif' alt='Powered by Struts' height='15'/ (I use .MichaelMcGradyHomeSites instead of .do, free ads, you know!) This includes the appropriate references in the struts-config.xml to: global-forwards // forward name='staticResource' path='/staticResource.MichaelMcGradyHomeSites'/ // /global-forwards And: action-mappings // action path='/staticResource' type='com.michaelmcgrady.struts.action.ActionStaticResource' scope='request' input='staticResource' forward name='staticResource' path='staticResource'/ /action // /action-mappings public final class ActionStaticResource extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(request.getParameter(StaticResource.CONTENT_TYPE)); try { String fileName = WEB_INF.getClasspath() + request.getParameter(StaticResource.RESOURCE_SOURCE); FileInputStream fis = new FileInputStream(fileName); byte[] imageBuf = new byte[1024]; BufferedInputStream bis = new BufferedInputStream(fis); byte[] bytes= new byte[bis.available()]; OutputStreamos = response.getOutputStream(); bis.read(bytes); os.write(bytes); } catch(Exception e) { System.out.println(e);} return null; } } /// ;-) I have tried to apply this strategy to SWF (Flash) files, using hints I have received before. But, I have not succeeded. I am a slow learner, I guess. I am not sure what I am doing wrong. Does anyone have a strategy? Thanks for any help
RE: [OT] RE: J2EE certified
Are you interested in getting yourself or an application certified? Do you mean, for example, that you want to get certified as a knowledgeable person or that you have coded an application which for some reason you want to be certified as J2EE compliant? If either is the case, go to www.java.sun.com and do the relevant searches to find the right pages on either one. Good luck. Pax nabisco! Micael At 09:37 AM 8/18/2003 -0400, Mark Galbreath wrote: Very diplomatic of you, Mark, but I won't be an apologist for a bigot. Mark -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 9:34 AM To: Struts Users Mailing List Subject: Re: [OT] RE: J2EE certified I'd prefer to know the guys name. I wouldn't like to make any judgments about disturbedness, give him a chance. He could have got off to a bad start, been up against the wire and trying to get something working when he started out. And forgot that there are real people at the end of the messages. By the time he got a response the whole dialogue had started. Message, can you stop assuming that we're all white racists that all hate you, and tell us what struts problems your still having? Signing up with your real name and putting a lid on the dummy-spitting could help you solve your problem. Even remaining message message wouldn't be a problem, if you just stop giving it the large one. If the english is a problem please just say so, perhaps an over-reliance on first language idioms makes things a tad tricky to comprehend. So did you get your login app running? If not what's going on with it? Any error messages? Cheers Mark On Monday, August 18, 2003, at 02:15 PM, Mark Galbreath wrote: already done. I'd like to see Craig or Ted kick this guy off the list. There is absolutely no excuse for racial slurs or personal attacks. This guy is apparently very disturbed. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 8:56 AM To: Struts Users Mailing List Subject: Re: [OT] RE: J2EE certified 'the majority of you...' ??? setting up message message filter filter now now... -jeff On Monday, August 18, 2003, at 07:51 AM, message message wrote: Who wants to know about your theory about girls or beer. I already you know that the majority of you are Racist , low life scum. From: message message [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [OT] RE: J2EE certified Date: Mon, 18 Aug 2003 16:47:47 +0400 Why not filter you out. Perhaps because you are white. Or perhaps you represent certain interests. From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [OT] RE: J2EE certified Date: Mon, 18 Aug 2003 08:05:44 -0400 Just filter out this message message character; he's been argumentative and arrogant since he joined a couple of weeks ago. Mark -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 6:08 AM To: Struts Users Mailing List Subject: Re: [OT] RE: J2EE certified Before you guys on this thread go really overboard with tit-for-tat arguments, perhaps you should consider whether that type of discussion fits in on a list where people are on first name terms, helpfulness and consideration are the order of the day, and secretiveness is generally considered unnecessary. It's only through such an attitude shared by all the listers here that such a high volume list can remain so productive. All the best, Adam On 08/16/2003 11:47 AM message message wrote: I should also inform you that I am writing my own product that includes marketing. It is none of your business what the product is. From: message message [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [OT] RE: J2EE certified Date: Sat, 16 Aug 2003 13:37:43 +0400 There is nothing wonky here apart from your postings. A discussion is going on about verify applications and the consequences. I hardly consider you to be qualified to express an opinion on my posting. To make comments or express opinions about my postings is a qualification you gave yourself but I do not recognise it. From: Alen Ribic [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] RE: J2EE certified Date: Sat, 16 Aug 2003 08:41:45 +0200 Just create a noise box and dump things like this in it. Does the job well. ;) Subjects aint standardised anyway. Some read [OT] other [OFF TOPIC], [???nothing???], etc. I can't really filter this so I just read first 1 or two threads and decide if it's relevant info to the reason I subscribed to this mailinglist. ;) ciao --Alen - Original Message
[OT] RE: J2EE certified
This discussion has gotten a little wonky. Let me suggest you add [OT] to this stuff. At 02:09 AM 8/16/2003 +0400, message message wrote: Also if somebody logged on Sun Microsystems' mailing list using tomcat or JBOSS, I guess he/she would be treated some hostility because he could write applications using J2EE without paying for the J2EE compliancy fee. From: message message [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: J2EE certified Date: Sat, 16 Aug 2003 00:14:02 +0400 There was a dispute by IBM over the specification so IBM's websphere 3.5 wasn't j2ee compliant ? From: Brian Lee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: J2EE certified Date: Fri, 15 Aug 2003 13:32:47 -0400 The main advantage is marketing. Since only a few apps are verified, you can tell your clients My product is j2ee verified by sun, but company x is not. Who knows what it will do? Not much of an advantage. But remember all the fud that bea threw back when IBM didn't certify their app server? In my opinion it's not that essential, but then one of my current clients is verifying a couple of their major products. BAL From: message message [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: J2EE certified Date: Fri, 15 Aug 2003 19:34:21 +0400 what is the point of verified application ? Assuming you are referring to the verifier tool which comes with the j2ee bundle from java.sun.com From: Brian Lee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: J2EE certified Date: Fri, 15 Aug 2003 10:24:55 -0400 They force you to buy their testing prog at $2k. The bare minimum to verify your app as a j2ee app is $17k for the first year, $15k for each additional. They'll also charge $10k if you need any support during the verification process. It's just a way for sun to make money. Sun doesn't verify your verification so anyone can pay $17k, lie on the checklist and get a sun verified product. BAL From: Bill Chmura [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: J2EE certified Date: Fri, 15 Aug 2003 01:53:38 -0400 Off that page there is a non-working link to a free trial version. Maybe you can claim your app passed in the free trial version :) -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 11:11 PM To: 'Struts Users Mailing List' Subject: RE: J2EE certified I guess since it is only verifying the war/ear, the thousands $$$ are not worth it. Plus, less than 10 products are j2ee verified ( http://java.sun.com/j2ee/verified/thirdparty.html ). I was 'told' by a colleague to get my app 'J2EE certified'. Never heard of a web application getting certified which was why I asked it here, since many j2ee experts are lurking in here. :) Thanks for the responses. Amin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 5:16 PM To: Struts Users Mailing List Subject: Re: J2EE certified Ah, you meant verified, not certified! Well why didn't you say? ;) I guess Sun have to make money somehow - although at a charge of 15 grand per year, I think I'll skip the Verified Designation for my j2ee app. On 08/14/2003 05:52 AM Thamarajah Dharma wrote: http://java.sun.com/j2ee/verified/avk_enterprise.html -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 8:26 AM To: 'Struts Users Mailing List' Subject: OT: J2EE certified Simple question, is there or is there not a certification for a J2EE web app? Struts question, I'm getting this error, nothing else. In tomcat, there's the Servlet action is currently unavailable error. Any ideas? --- error javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.handleConfigException(A ctionServl et.java:1035) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(A ctionServl et.java:1014) at org.apache.struts.action.ActionServlet.initModuleConfig(Action Servlet.ja va:955) at org.apache.struts.action.ActionServlet.init(ActionServlet. java:470) at javax.servlet.GenericServlet.init(GenericServlet.java:256) - snip - Amin -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:22 AM To: Struts Users Mailing List
Re: application.properties file location
Do you have the application param specified for the action servlet in your web.xml? If not, I would suggest you look at a standard setup in the examples and see how they reference the application.properties file. Here is how I do it in one instance: !-- ACTION SERVLET =-- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueresources.properties.messages/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet This means I have the messages.properties (which is the same as your application.properties with a different name) file in a directory/folder called resources in classes. 'Hope this helps. Micael At 08:27 PM 8/13/2003 +0530, Samanth Athrey wrote: Hi, I have my application.properties file stored in the classes directory. But the application is unable to locate and load this file. Any tips would be of great help. Thanks, Samanth Athrey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Struts is incomplete
LOL. Mark, your sense of humor is doing well. ///;-) Good to see! At 10:06 AM 8/12/2003 -0400, Mark Galbreath wrote: byte me, you cretin! ;-) -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 9:50 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Struts is incomplete May you find the freedom of acceptance of others. The struts user list is not responsible for books. People here are very helpful if you treat them with the dignity and respect we all deserve. Well, Mark doesn't, but everyone else does! LOL. Kidding, Mark, kidding! Love and kisses At 11:04 AM 8/12/2003 +0400, message message wrote: keep your abuse to yourself Mr. I have nothing to say so I might as well make a posting. Want ideas go and do reaserch. I paid for the book , I spent time correcting the examples. I can complain. The only parasite I can see here between the two of us is you. From: Paul Thomas [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Subject: Re: Struts is incomplete Date: Mon, 11 Aug 2003 23:21:40 +0100 On 11/08/2003 09:15 message message wrote: Frankly the example applications stink. The provide something better and stop being a parasite. Or don't use Struts... -- Paul Thomas +--+-- ---+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-- ---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Wiki - Chiki?
Last four times I tried Chiki it was broken. It used to work in early 2002 and then it went wonky. Has not been fixed since. Maybe it is the newer Tomcat or something? At 12:37 AM 8/14/2003 +0200, Adam Hardy wrote: oops got it wrong. it was on the FAQ page. heres the link http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsProjectPages%20 On 08/13/2003 07:17 PM Viggio, Alex wrote: Which resources page? I didn't see one listed under the singular 1.0.2 resources page, but found the following under Struts 1.1 Resources: Projects and Examples (http://jakarta.apache.org/struts/resources/examples.html). Is this the Struts wiki you were referring to? Is this the only one anyone is aware of? Chiki by GhootEmaho - A Wiki-like webapp built using Struts and J2EE, and runs on Tomcat. http://chiki.emaho.org/ This seems worth checking out if you want to deploy and extend a wiki built on Struts, but I think that Nick was asking (or suggesting) whether there was an existing wiki site with Struts related information. Sounds like a good idea to me. - Alex -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:22 AM To: Struts Users Mailing List Subject: Re: Struts Wiki A struts-wiki already exists! Check the resources page of the struts website for the link. Sydenham, Nick wrote: As has been pointed out by several people the Struts documentation is rather poor in terms of how to apply it. The books on the subject tend to be very specific and don't really address real-world issues. My suggestion is that the existing Stuts documentation is converted into a wiki that everyone can use and update as they find answers. Example: http://twiki.org/ Is this a good idea? This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts and synchronization
Have you thought about using a multi-threaded solution with a queque such that when your database is busy you can notify the user that things are being processed and giving them a link to check back on? At 12:46 PM 8/11/2003 -0500, Nathan Rogers wrote: The request path for a standard action within my code goes something like this : Struts servlet - action - model - database - model - action - Velocity servlet Here's what I know about each issue you've brought up. #1 - Tomcat is configured to work with the Warp connector. I don't know exactly how this works (if it passes all requests to Tomcat or just the ones registered to a servlet) #2 - I'll have to check with the sysadmin. Where is the number of request processors defined? #3 - I'm using the Jakarta Commons PoolingDataSource. I have used this before without any problems #4 - Something to look into. I'm closing my result sets, statements and connections (which returns them to the pool), but it might not be done in the best way. Mainguy, Mike wrote: The closest I ever came to this sort of problem involved the following: #1 Sending static content (and lots of it) through the servlet engine instead of using the web server. #2 Not having enough request processors and listeners configured. #3 Not using pooling for my connections and killing the DBMS with new connection requests. #4 Not properly closing/releasing my DBMS connections and consuming all available memory. So there you go, everything you should NOT do in a nutshell. Unless you're 100% proof-positive sure that it is a synchronization issue in your database portion, I would take a look at the above issues as potential problem areas. As far as synchronization is concerned, the only thing I can recommend is to be sure you aren't using your ActionServlet or something high in the food chain as your target, otherwise that would seem to cause that sort of a problem. -Original Message- From: Nathan Rogers [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:51 PM To: [EMAIL PROTECTED] Subject: Struts and synchronization I am using Struts 1.1 along with the Velocity tools to develop a fairly simple servlet (there are probably going to be no more than twenty actions total) The problem that I am facing is a deadlock situation where Tomcat simply refuses to respond to any new requests and just stalls. I think it may be due to some code in the model where I am using PreparedStatements (which are declared as synchronized). Has anyone else run into a similar problem where the Struts framework takes an unreasonably long time to handle a request due to synchronized methods? Is there any workaround, other than only using Statements in my model? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nathan Rogers Library Technology Group [EMAIL PROTECTED] (608)261-1409 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts is incomplete
May you find the freedom of acceptance of others. The struts user list is not responsible for books. People here are very helpful if you treat them with the dignity and respect we all deserve. Well, Mark doesn't, but everyone else does! LOL. Kidding, Mark, kidding! Love and kisses At 11:04 AM 8/12/2003 +0400, message message wrote: keep your abuse to yourself Mr. I have nothing to say so I might as well make a posting. Want ideas go and do reaserch. I paid for the book , I spent time correcting the examples. I can complain. The only parasite I can see here between the two of us is you. From: Paul Thomas [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Subject: Re: Struts is incomplete Date: Mon, 11 Aug 2003 23:21:40 +0100 On 11/08/2003 09:15 message message wrote: Frankly the example applications stink. The provide something better and stop being a parasite. Or don't use Struts... -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts and synchronization
This will also, of course, lead to better performance, period, in your case. Sounds to me like you need something like a WorkerQueue where you put requests in a regular queque and a thread pool of anonymous worker threads run a FIFO collection. This is fairly standard stuff with Doug Lea's stuff on concurrent programming (try oswego doug lea in google). If you are single threaded, you will not be able to consistent. And, if you are multi-threaded, in the model, then there are numerous things you can do, even if the WorkerPool (or whatever Doug calls it, I forget) is but one thread. You an return the thread while the database is doing its stuff. Why not? There are a lot of creative solutions, once you use concurrent techniques. I hope this is helpful. If you don't need to return the results of the database, but just to update, then you can really make it hum, having the database stuff just in queque until the right time. I do this with helper computers doing little tasks for me on modem based home computers (with the consent of friends). I just have them pass a notice of what there ip address is to a queque with a time, and when I need a little work done, I pass it via a tunnel to the freshest ip address, which is held at the application level. Of course, it is even easier with static ips. But, my friends, like me, don't have static ips. We are POOR! LOL. Micael At 04:54 PM 8/11/2003 -0700, Micael wrote: Have you thought about using a multi-threaded solution with a queque such that when your database is busy you can notify the user that things are being processed and giving them a link to check back on? At 12:46 PM 8/11/2003 0500, Nathan Rogers wrote: The request path for a standard action within my code goes something like this : Struts servlet - action - model - database - model - action - Velocity servlet Here's what I know about each issue you've brought up. #1 - Tomcat is configured to work with the Warp connector. I don't know exactly how this works (if it passes all requests to Tomcat or just the ones registered to a servlet) #2 - I'll have to check with the sysadmin. Where is the number of request processors defined? #3 - I'm using the Jakarta Commons PoolingDataSource. I have used this before without any problems #4 - Something to look into. I'm closing my result sets, statements and connections (which returns them to the pool), but it might not be done in the best way. Mainguy, Mike wrote: The closest I ever came to this sort of problem involved the following: #1 Sending static content (and lots of it) through the servlet engine instead of using the web server. #2 Not having enough request processors and listeners configured. #3 Not using pooling for my connections and killing the DBMS with new connection requests. #4 Not properly closing/releasing my DBMS connections and consuming all available memory. So there you go, everything you should NOT do in a nutshell. Unless you're 100% proof-positive sure that it is a synchronization issue in your database portion, I would take a look at the above issues as potential problem areas. As far as synchronization is concerned, the only thing I can recommend is to be sure you aren't using your ActionServlet or something high in the food chain as your target, otherwise that would seem to cause that sort of a problem. -Original Message- From: Nathan Rogers [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:51 PM To: [EMAIL PROTECTED] Subject: Struts and synchronization I am using Struts 1.1 along with the Velocity tools to develop a fairly simple servlet (there are probably going to be no more than twenty actions total) The problem that I am facing is a deadlock situation where Tomcat simply refuses to respond to any new requests and just stalls. I think it may be due to some code in the model where I am using PreparedStatements (which are declared as synchronized). Has anyone else run into a similar problem where the Struts framework takes an unreasonably long time to handle a request due to synchronized methods? Is there any workaround, other than only using Statements in my model? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL
[OT] RE: Struts Validator
I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: Struts Validator
Yah, we have weapons. We are NOT forced to resort to the truth. LOL. At 06:21 PM 8/13/2003 -0500, Jeff Kyser wrote: Just threaten to repost [Mark's] String.length() versus array.length mixup. That ought to quiet him down for a while... :) -jeff On Wednesday, August 13, 2003, at 05:55 PM, Micael wrote: I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received
Re: IMAGE DISPLAY PROBLEM - PLEASE HELP!! (fwd)
I have to go now, but I will give you the solution on this in an hour or so. None of the answers so far are correct. This is not an easy question. At 03:39 PM 7/17/03 +0200, you wrote: Once again, since indentation might be invisible on some clients... Sorry. -- Forwarded message -- Hello, I am having a simple problem regarding image displaying in a web application (.war). My directory structure is: MyWebApp.war -- META-INF -- WEB-INF -- pages graphics -- MyPicture.gif layout -- upperBar.jsp The problem is: HOW to display MyPicture.gif from upperBar.jsp? I tried this: html:img pageKey=graphics.MyPicture/ In properties file I have: graphics.MyPicture=/pages/graphics/MyPicture.gif This works fine -- HTML generated contains this: img src=/MyWebApp/pages/graphics/MyPicture.gif Unfortunately, when the browser tries to download the image I get this: 2003-07-17 15:17:05 org.apache.struts.action.RequestProcessor process INFO: Processing a 'GET' for path '/pages/graphics/MyPicture' 2003-07-17 15:17:05 org.apache.struts.action.RequestProcessor processMapping SEVERE: Invalid path /pages/graphics/MyPicture was requested There are two questions arising here: 1). WHERE did the file extension go? Because I get: INFO: Processing a 'GET' for path '/pages/graphics/MyPicture' and not INFO: Processing a 'GET' for path '/pages/graphics/MyPicture.gif' 2). WHY doesn't the image get loaded? I tried to refer it in a direct way: http://127.0.0.1:7001/MyWebApp/pages/graphics/MyPicture.gif which of course didn't work either. I am using Tomcat 4.1.24. My servlet is the 'default' servlet: servlet-mapping servlet-nameMyWebApp/servlet-name url-pattern//url-pattern /servlet-mapping Any help?? THANKS!! -- Stanislaw Findeisen http://rainbow.mimuw.edu.pl/~sf Live life to the MAX. Follow JESUS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: 4th Of July Struts Challenge...
The no-argument constructor is available from default ONLY if you do not have another constructor, Mark. If you have another constructor with an argument, then the no-argument constructor is not there by default and must be coded. There is no need to test this. It is that way. I would always make a class serializable in this situation. At 10:29 AM 7/16/03 -0400, you wrote: I have not found this in the spec, but I believe the no-argument constructor is available at anytime for a concrete class. This would be a good one to test -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:27 AM To: Struts Users Mailing List Subject: RE: [OT] Re: 4th Of July Struts Challenge... It's my understanding that you ONLY get the default if there are no other constructors written. The minute you write ANY constructor, you're on your own. If you still want a default ctor, you've gotta supply it. I'll be happy to learn something if this is incorrect. - MOD --- Mark Galbreath [EMAIL PROTECTED] wrote: The no-argument constructor is the default and does not have to be declared. You have a 2-arg constructor. As for JSTL (or any EL) acting like straight scripting, I've never had an argument with using scripting where appropriate. Pragmatism should be the rule of the day. Finally, I don't know why declaring DynaActionForm beans as Maps didn't work for me, but neither is it a big issue. I realize the constraints of declaring a variable as a concrete/abstract class vs. as an interface. Besides, I like what you've created. :-) -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 8:55 AM To: Struts Users Mailing List Subject: RE: [OT] Re: 4th Of July Struts Challenge... Quoting Mark Galbreath [EMAIL PROTECTED]: A few comments: 1. I got runtime errors when I declared a DynaActionForm bean of type Map; I had to declare it of type HashMap. Not sure what you're doing, but the example works as coded. If it matters, post some details and we'll see if something needs fixing. 2. You may be using JSTL, but it still looks like scripting to me. Fair enough. What's your recommended alternative to JSTL when using JSP for your view layer? 3. Strictly speaking, JavaBeans do not contain a constructor and implement Serializable. Strictly speaking, a JavaBean *does* contain a construtctor (or even more than one), just like any other Java class. It's just that a real bean needs to have a no-arg constructor. The actual code that I uploaded to Rick includes a no-arg construtctor for EmployeeBean but omitted implementing Serializable or Externalizable. The bean also fails to act as an event source and it doesn't check for things like null values passed to either its construtctor or its set methods. Mark -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 11:44 PM To: Struts Users Mailing List Subject: [OT] Re: 4th Of July Struts Challenge... Kris... this was just awesome! Thanks. You da 'man:) On Tue, Jul 15,'03 (11:25 AM GMT-0400), Kris wrote: As it turns out, some of my ideas about a standard property of type Map versus a mapped property were a bit off. So, if you're still interested, here's something I hacked together. You'll notice I used a session scoped form so that Struts doesn't choke when it tries to populate the form. struts-config.xml: -- form-beans form-bean name=employeesForm type=org.apache.struts.action.DynaActionForm form-property name=employeesMap type=java.util.Map/ /form-bean /form-beans action-mappings action path=/employees/edit type=com.dotech.EditEmployeesAction name=employeesForm scope=session validate=false forward name=success path=/editEmployees.jsp/ /action action path=/employees/save type=org.apache.struts.actions.ForwardAction parameter=/viewEmployees.jsp name=employeesForm scope=session validate=false/ /action-mappings editEmployees.jsp: -- %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/tags-bean; %%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %%@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html; % %-- dynamically get a handle to the form --% bean:struts id=mapping mapping=/employees/save/ c:set var=attribute value=${mapping.attribute}/ c:set var=scope value=${mapping.scope}/ c:choose c:when test=${scope eq 'request'} c:set var=form value=${requestScope[attribute]}/ /c:when c:otherwise c:set var=form
Re: WARNING: invalid welcome file
The leading / tells the app that this file is in the root app, and apparently it is not. At 07:11 PM 7/16/03 +0530, you wrote: Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?? What is up with the MDaemons ??
What is with the hundreds of MDaemons I am getting on this list? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
Could you give us the method body again? That is where we can see if there is a thread safety issue? At 07:53 AM 7/10/03 -0500, you wrote: To everyone: WOW! Talk about opening a can of worms! It's been quite interesting reading the different viewpoints regarding the use of statics vs singletons, whether Perl is OO or not, etc. etc. etc. It's this kind of discussion that makes this list one (if not THE) best list on the web. Ted: Thanks for answering the specific question. As much as I've enjoyed the thread, all I really wanted to know is if my approach for these 'helper' methods was appropriate or not. I'm not sure what you mean by 'whether instantiating Password is an issue' - I can't think of a case where instantiating any class would be an issue, so I guess I could change the Password class to be a 'normal' class. The 'getEncryptedPassword()' method is used by several different classes, so I don't really want to make it part of a specific class - that's one of the reasons I moved it to a 'helper' class and made it static. I guess the only question I have remaining is whether there is a problem with maintaining 'thread safety' with the use of a static method Is there a chance that two or more users can get to the method at the same time and clobber each other? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 5:34 PM To: Struts Users Mailing List Subject: Re: [OT] Use of Static Methods It's mainly a question of whether instantiating Password is an issue. If not, then make it a normal method. Ideally, getEncryptedPassword should be a method of whatever class needs to call it. The benefit of static methods is that they can be called without instantiating the class that contains them. So long as instantiation is not an issue, then make it a normal method on whichever class needs to use it. (Or make Password a member class of whichever classes need to call it, and instantiate it when the parent class is instantiated.) -Ted. Jerry Jalenak wrote: back-from-lunch Thanks to everyone for weighing in on this. I certainly didn't expect this type of discussion. Let me give an example of what we are trying to do, and see if this is appropriate or not. For various reasons we have a 'roll your own' logon authentication process. Part of the process takes the users password, and using a stored digest key, we encrypt it and then compare it to the stored (encrypted) password. If they match, great. If not, then we return an error. The code that we use to do the encryption looks like the following: public static byte[] getEncryptedPassword(byte[] digestKey, String password) { try { MessageDigest md = MessageDigest.getInstance(SHA1); md.update(digestKey); md.update(password.getBytes()); return (md.digest()); } catch(Exception e) { return (null); } } The class name is 'Password', so to call this method we use something like 'Password.getEncryptedPassword(storedDigestKey, enteredPassword)'. Is this type of method appropriate for a 'static' method? Or should this be a singleton? Or a normal class? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:35 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Use of Static Methods I and a lot of other developers would disagree with the statement Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). 1) Whenever you write a method that only accesses static data of a class, you should declare the method as static. 2) It is not correct to say that static methods can't be overriden. They can be overridden with another static method. You can't override a static method to be non-static, however. 3) There are many cases where using the static modifier on a method is totally appropriate. Typically, they are used on methods that provide a very specific functionality that will never change. Using the static modifier on such methods also reduces the overall memory footprint of an application. Regards, Richard -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:22 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the
RE: [OT] Use of Static Methods
I am still downloading, but at first blush, it looks as if Johnson's context object is also a singleton? At 04:45 PM 7/10/03 +0200, you wrote: This sounds a lot like the ServiceLocator pattern. http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html But ServiceLocator uses Singleton. Have a look the following link at page 126 http://developer.java.sun.com/developer/Books/j2ee/dpa/j2ee_dpa_Ch3.pdf Here the author is talking about an object that doesn't need to be singleton. That is the difference. At least as i understood it :) José. DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
Richard, I don't doubt what you say is true, but how do you know this? Why couldn't the implementation of the abstract class MessageDigest not be thread-safe? Micael At 01:55 PM 7/10/03 -0400, you wrote: Jerry, Your methods are thread-safe. The MessageDigest.getInstance() and SecureRandom() calls are thread-safe too. One thing I read while reading the JavaDocs for SecureRandom() was: This constructor is provided for backwards compatibility. The caller is encouraged to use one of the alternative getInstance methods to obtain a SecureRandom object. You might consider changing your code to comply with this. Regards, Richard -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:30 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Use of Static Methods Micael, The class is called 'Password': public class Password { public static byte[] getEncryptedPassword(byte[] digestKey, String password) { try { MessageDigest md = MessageDigest.getInstance(SHA1); md.update(digestKey); md.update(password.getBytes()); return (md.digest()); } catch(Exception e) { return (null); } } public static byte[] getRandomDigestKey() { byte[] digestKey = new byte[12]; SecureRandom sr = new SecureRandom(); sr.nextBytes(digestKey); return (digestKey); } public static String getRandomPassword() { return (RandomStringUtils.randomAlphabetic(8)); } } I am calling this using 'Password.getEncryptedPassword(digestKey, password)'. I don't think I have thread issues since I'm not using instance variables, but I'm concerned about the use of the MessageDigest.getInstance() and SecureRandom calls Thanks! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:51 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods Could you give us the method body again? That is where we can see if there is a thread safety issue? At 07:53 AM 7/10/03 -0500, you wrote: To everyone: WOW! Talk about opening a can of worms! It's been quite interesting reading the different viewpoints regarding the use of statics vs singletons, whether Perl is OO or not, etc. etc. etc. It's this kind of discussion that makes this list one (if not THE) best list on the web. Ted: Thanks for answering the specific question. As much as I've enjoyed the thread, all I really wanted to know is if my approach for these 'helper' methods was appropriate or not. I'm not sure what you mean by 'whether instantiating Password is an issue' - I can't think of a case where instantiating any class would be an issue, so I guess I could change the Password class to be a 'normal' class. The 'getEncryptedPassword()' method is used by several different classes, so I don't really want to make it part of a specific class - that's one of the reasons I moved it to a 'helper' class and made it static. I guess the only question I have remaining is whether there is a problem with maintaining 'thread safety' with the use of a static method Is there a chance that two or more users can get to the method at the same time and clobber each other? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 5:34 PM To: Struts Users Mailing List Subject: Re: [OT] Use of Static Methods It's mainly a question of whether instantiating Password is an issue. If not, then make it a normal method. Ideally, getEncryptedPassword should be a method of whatever class needs to call it. The benefit of static methods is that they can be called without instantiating the class that contains them. So long as instantiation is not an issue, then make it a normal method on whichever class needs to use it. (Or make Password a member class of whichever classes need to call it, and instantiate it when the parent class is instantiated.) -Ted. Jerry Jalenak wrote: back-from-lunch Thanks to everyone for weighing in on this. I certainly didn't expect this type of discussion. Let me give an example of what we are trying to do, and see if this is appropriate or not. For various reasons we have a 'roll your own' logon authentication process. Part of the process takes the users password, and using a stored digest key, we encrypt it and then compare it to the stored (encrypted) password. If they match, great. If not, then we
RE: [OT] Use of Static Methods
But, they might not be using that implementation. Or not that version, etc. Right? At 02:46 PM 7/10/03 -0400, you wrote: Micael, I searched the Sun site and read that the JCE 1.2 implementation from Sun is thread-safe. I suppose that a provider could provide a non-thread-safe version for developers to buy if they choose to do so too. Regards, Richard -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:10 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods Richard, I don't doubt what you say is true, but how do you know this? Why couldn't the implementation of the abstract class MessageDigest not be thread-safe? Micael At 01:55 PM 7/10/03 -0400, you wrote: Jerry, Your methods are thread-safe. The MessageDigest.getInstance() and SecureRandom() calls are thread-safe too. One thing I read while reading the JavaDocs for SecureRandom() was: This constructor is provided for backwards compatibility. The caller is encouraged to use one of the alternative getInstance methods to obtain a SecureRandom object. You might consider changing your code to comply with this. Regards, Richard -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:30 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Use of Static Methods Micael, The class is called 'Password': public class Password { public static byte[] getEncryptedPassword(byte[] digestKey, String password) { try { MessageDigest md = MessageDigest.getInstance(SHA1); md.update(digestKey); md.update(password.getBytes()); return (md.digest()); } catch(Exception e) { return (null); } } public static byte[] getRandomDigestKey() { byte[] digestKey = new byte[12]; SecureRandom sr = new SecureRandom(); sr.nextBytes(digestKey); return (digestKey); } public static String getRandomPassword() { return (RandomStringUtils.randomAlphabetic(8)); } } I am calling this using 'Password.getEncryptedPassword(digestKey, password)'. I don't think I have thread issues since I'm not using instance variables, but I'm concerned about the use of the MessageDigest.getInstance() and SecureRandom calls Thanks! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:51 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods Could you give us the method body again? That is where we can see if there is a thread safety issue? At 07:53 AM 7/10/03 -0500, you wrote: To everyone: WOW! Talk about opening a can of worms! It's been quite interesting reading the different viewpoints regarding the use of statics vs singletons, whether Perl is OO or not, etc. etc. etc. It's this kind of discussion that makes this list one (if not THE) best list on the web. Ted: Thanks for answering the specific question. As much as I've enjoyed the thread, all I really wanted to know is if my approach for these 'helper' methods was appropriate or not. I'm not sure what you mean by 'whether instantiating Password is an issue' - I can't think of a case where instantiating any class would be an issue, so I guess I could change the Password class to be a 'normal' class. The 'getEncryptedPassword()' method is used by several different classes, so I don't really want to make it part of a specific class - that's one of the reasons I moved it to a 'helper' class and made it static. I guess the only question I have remaining is whether there is a problem with maintaining 'thread safety' with the use of a static method Is there a chance that two or more users can get to the method at the same time and clobber each other? Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 5:34 PM To: Struts Users Mailing List Subject: Re: [OT] Use of Static Methods It's mainly a question of whether instantiating Password is an issue. If not, then make it a normal method. Ideally, getEncryptedPassword should be a method of whatever class needs to call it. The benefit of static methods is that they can be called without instantiating the class that contains them. So long as instantiation is not an issue, then make it a normal method on whichever class needs to use it. (Or make Password a member
RE: [OT] JSTL
There are, of course, books (or at least a book) on the topic. At 11:12 AM 7/9/03 -0400, you wrote: Did you try www.javasoft.com ? -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:08 AM To: 'Struts Users Mailing List' Subject: RE: [OT] JSTL I too am a bit of a newbie and have the same question plus where can we find good documentation on JSTL? Thanks Glenn -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:48 AM To: Struts (E-mail) Subject: [OT] JSTL I apologize if this is a bit off topic, and if it is a bit of a newbie question. I've never used JSTL before, and I'm not sure exactly what it is. Is it built into standard JSP technology (thus usable without any add-ons), or is it a tag lib that you have to download and put in your project? - Keith - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
I have to agree philosophically with the care that should be taken in using static methods. They really have limited use in an OO environment. They are like doing procedural code. You can run an entire Java program, by the way, without using the main(String [] params) method. A lot of people don't realize this. You just use all static methods and data. I have a half hour program I run doing all sorts of things, including some snappy graphics, math, etc., with no main method. But, this is certainly not OO programming. At 11:30 AM 7/9/03 -0700, you wrote: --- Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: I and a lot of other developers would disagree with the statement Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). 1) Whenever you write a method that only accesses static data of a class, you should declare the method as static. Yes you could declare it static; however, accessing static data isn't a sufficient condition for making a method static. 2) It is not correct to say that static methods can't be overriden. They can be overridden with another static method. You can't override a static method to be non-static, however. That's incorrect. Static methods cannot be overridden. 3) There are many cases where using the static modifier on a method is totally appropriate. Typically, they are used on methods that provide a very specific functionality that will never change. How can you possibly judge that functionality will never change in a particular method? Except in very limited circumstances you can never assume that. Just look at the assumption used in designing RequestUtils as static methods for an example. Using the static modifier on such methods also reduces the overall memory footprint of an application. That's a red herring argument. The class is loaded regardless of static or non-static method calls. A basic Java object is 8 bytes of memory. Are you going to give up on design principles for 8 lousy bytes? OO programs should be made up of objects passing messages to other objects, not calling global functions. David Regards, Richard -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:22 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the question is, in a web application, can common code be factored out to a helper class and marked as 'static'? Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). You should use a Singleton class with non-static methods. Struts' RequestUtils class is a good example of why you should never use static methods. Developers want to override their behavior but can't because everything is static. David Are there any major problems with doing this? I should know the answer, but just can't put my thumb on it right now 8) TIA! Jerry Jalenak Team Lead, 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL
RE: [OT] Use of Static Methods
At 02:36 PM 7/9/03 -0400, you wrote: OO programs should be made up of objects passing messages to other objects, not calling global functions. I would argue a Singleton is no better in this respect. The fact that they're instantiated into an object, don't make Singletons any less global than static methods. Yes, it does. You can code a singleton and change the code without changing the interface. You cannot do that with static methods. Static must remain static, the singleton can change, depending on how you code it. -TPP - I trim my responses, it saves bits - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
At 03:01 PM 7/9/03 -0400, you wrote: From: David Graham [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] 2) It is not correct to say that static methods can't be overriden. They can be overridden with another static method. You can't override a static method to be non-static, however. That's incorrect. Static methods cannot be overridden. Actually, that's incorrect. Static method can be overridden. foo.java public class foo{ public static void bar(){} } baz.java public class baz extends foo{ public static void bar(){} } compiles That is not the point. You won't get polymorphic behavior. THAT is the point. The key to OO is polymorphic behavior. Most, if not all, of the interesting things you can do with OO involves polymorphic behavior. _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
Please give me code showing polymorphic behavior in Perl. That is a new on on me. I think this may be a mistaken claim. To get polymorphic behavior, you have to have a Superclass type and a Subclass object and get the behavior of the Subclass, e.g. Superclass object = new Subclass(); object.run(); This will result in the run() method returning overridden results in Subclass rather than the results from the Superclass. This is critical to the interesting design patterns. If Perl can do that, I have learned something. Perl is not a procedural language? Amazing! At 09:27 PM 7/9/03 +0200, you wrote: Just to clarify, Perl is not a procedural language !!! You can implement any OO features (abstraction,inheritance,polymorphisme etc ...) with Perl http://www.manning.com/Conway/index.html http://www.manning.com/getpage.html?project=conwayfilename=Chapters.html http://www.perl.com/pub/a/2003/06/13/design1.html José. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:06 PM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods --- Paananen, Tero [EMAIL PROTECTED] wrote: OO programs should be made up of objects passing messages to other objects, not calling global functions. I would argue a Singleton is no better in this respect. The fact that they're instantiated into an object, don't make Singletons any less global than static methods. They are instantiated into objects which means you can change the specific type, method implementations, etc. without the app knowing instead of calling a global function. If I wanted to do procedural programming I'd be using Perl, not Java. David -TPP - I trim my responses, it saves bits - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
Also, singleton classes are less global too. Singleton classes can have an interface exhibiting their method signatures. But, you cannot do this, obviously, with static methods. interface Foo { static void bar(); } class Baz implements Foo { public static void bar() { // nothing } } Won't compile. This is the whole point and why Singletons generally should be preferred. This also shows why static methods are not overridden. At 04:59 PM 7/9/03 -0400, you wrote: OO programs should be made up of objects passing messages to other objects, not calling global functions. I would argue a Singleton is no better in this respect. The fact that they're instantiated into an object, don't make Singletons any less global than static methods. Yes, it does. You can code a singleton and change the code without changing the interface. You cannot do that with static methods. Static must remain static, the singleton can change, depending on how you code it. I understand and appreciate the benefits of Singleton objects over static methods. Let's rephrase my comment to what I should've said in the first place :) The USE of the Singleton class is still no less global than using static methods. Foo.getInstance().bar(); // vs. Foo.bar(); Huge difference... -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Use of Static Methods
Of course they do. That is not the point. Care does not mean exclusion.You have stated some limited uses, which is what I said. So, you are not disagreeing with what I said. The problem is that many programmers do not really understand the nature of polymorphic behavior and its critical nature in OO programming. I also, by the way, use other languages, but that does not make them, or static methods, OO programming. At 04:31 PM 7/9/03 -0500, you wrote: I have to disagree that static methods do not somehow fit into an OO environment. They are integral parts of the FactoryMethod, Singleton,and ServiceLocator.Also as convenience methods for conversions from one type to another they are particularly handy. Not using static methods where appropriate because of a mistaken belief that they are somehow not OO will limit your programming. On Wed, 2003-07-09 at 15:48, Micael wrote: I have to agree philosophically with the care that should be taken in using static methods. They really have limited use in an OO environment. They are like doing procedural code. You can run an entire Java program, by the way, without using the main(String [] params) method. A lot of people don't realize this. You just use all static methods and data. I have a half hour program I run doing all sorts of things, including some snappy graphics, math, etc., with no main method. But, this is certainly not OO programming. At 11:30 AM 7/9/03 -0700, you wrote: --- Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: I and a lot of other developers would disagree with the statement Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). 1) Whenever you write a method that only accesses static data of a class, you should declare the method as static. Yes you could declare it static; however, accessing static data isn't a sufficient condition for making a method static. 2) It is not correct to say that static methods can't be overriden. They can be overridden with another static method. You can't override a static method to be non-static, however. That's incorrect. Static methods cannot be overridden. 3) There are many cases where using the static modifier on a method is totally appropriate. Typically, they are used on methods that provide a very specific functionality that will never change. How can you possibly judge that functionality will never change in a particular method? Except in very limited circumstances you can never assume that. Just look at the assumption used in designing RequestUtils as static methods for an example. Using the static modifier on such methods also reduces the overall memory footprint of an application. That's a red herring argument. The class is loaded regardless of static or non-static method calls. A basic Java object is 8 bytes of memory. Are you going to give up on design principles for 8 lousy bytes? OO programs should be made up of objects passing messages to other objects, not calling global functions. David Regards, Richard -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:22 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the question is, in a web application, can common code be factored out to a helper class and marked as 'static'? Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). You should use a Singleton class with non-static methods. Struts' RequestUtils class is a good example of why you should never use static methods. Developers want to override their behavior but can't because everything is static. David Are there any major problems with doing this? I should know the answer, but just can't put my thumb on it right now 8) TIA! Jerry Jalenak Team Lead, 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
Re: Accessing database in java and jsp?
This is probably more of an additional question than a help, but why do you want to do something other than create the datasource in your web.xml? At 01:31 PM 7/8/03 +0200, you wrote: Hello I have created a datasource in my struts-config.xml. But I cant find out how to use it. Creating my datasource in my web.xml works fine. Any tips? - Terje struts-config.xml: ... data-sources data-source set-property value=true property=autoCommit / set-property value=My database property=description / set-property value=com.sybase.jdbc2.jdbc.SybDriver property=driverClass / set-property value=10 property=maxCount / set-property value=2 property=minCount / set-property value= property=user / set-property value=x property=password / set-property value=jdbc:sybase:Tds:mycomputer:4000/mydatabase property=url / /data-source /data-sources ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: db connection pooling
Use a plugin. At 10:09 AM 7/7/03 +0530, you wrote: Hi, Is there any ways to achieve db connection pooling and access of such pooled connection though jndi in struts action classes. Regards, Jailani.S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ok is it just me?
S! Mark is sleeping. At 01:33 PM 7/4/03 -0400, you wrote: Or did this discussion group just get very very very quiet.. ? ( must be all those americans enjoying there day off :P ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could not parse deployment descriptor: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library
This usually is because prior to reading the tld address in the xml file, there is another parsing problem. Check right before the tld in the xml file and you will probably find the problem. At 06:19 PM 7/1/03 +0200, you wrote: Sorry, I don't understand if you are asking something. PREETAM Balijepalli wrote: weblogic.servlet.jsp.JspException: (line 2): Could not parse deployment descript or: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 6:25 PM To: Struts Users Mailing List Subject: Re: Could not parse deployment descriptor: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library I presume you have corrupted your struts-bean.tld somehow. Adam PREETAM Balijepalli wrote: kindly guide me when does this error come - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died
If you go to google and put in Sadly the cat dies. you will see our beloved Ted is a truth teller. LOL. I am unaware of Red Dwarf. Sounds interesting. That is high enough praise to get a person interested all right. At 07:49 AM 6/28/03 -0600, you wrote: You're talking of one of the greatest books of all time... Red Dwarf. Lister bought the cat to annoy Rimmer. Cat dies eventually of old age in the cargo hold before starting the race of cats which brought on the Cat character we all know and really dig. If you say it's not, you're lying or you haven't read the book. If not, do so. too funny. :P The Cat is mentioned on the dust jacket, but his mum, who dies, isn't. I think you're lying to the user group and should come clean. :) Arron. I'm pleased to report that a unanimous majority of the Struts Committers have voted to release Struts 1.1 on or after Sunday June 29, 2003. =:) !!! But, sadly, my elderly cat has died of liver failure. =:( Unsurprisingly, this news is a thinly veiled segue to ... [Yet Another Quote Trivia Contest] Which of our favorite Science Fiction authors wrote a novel in which a key character was a cat that, sadly, died? A signed Struts in Action goes to the first lucky subscriber to email the corrected title and author to me directly at [EMAIL PROTECTED] -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.1
Struts is a mature framework with its own schedule. At 09:44 AM 6/2/03 -0500, you wrote: OK, let's look at it another way. If Struts 1.1 is ready for prime time, why don't the authors trust it enough to release it? If the authors don't trust it enough to give it their stamp of approval (bugs or no bugs), why should our company? I know I'm not going to convince you of their decision, but at least our company lets us use open source software in development. Lots of companies don't even have that freedom. I think that using only software that is actually released isn't a bad compromise. It hasn't been a problem for 95% of the code we've wanted to use. There have only been two exceptions: Struts and JDOM. So, my question was, why do they think the code isn't good enough for a release? Now it seems that Struts 1.1 is ready, some other component isn't ready. If that's the case, can that component be removed, then added in a 1.2 release? If it's another jar, it's extremely simple to add a jar when it's ready. On Sun, 1 Jun 2003, Steve Raeburn wrote: Jay, I know it's not your fault, but I can't understand why companies insist on waiting for the official release. Like that's going to magically mean there are no bugs in it. If your company had written some software, say a web-application framework, in-house, would they a) wait for some external source to give the software a stamp of approval or b) use normal in-house testing procedures to verify that it works well enough for you to trust it in your production applications? Encourage the decision makers to think of it as in-house code. You still have to verify it works for you, but the hourly rate to your company for the developers was $0. Nada. Zilch. Free. It's just a big pool of free code, written by some damn good programmers, that they don't have to pay for. Try getting a consulting firm to quote to develop your own custom framework that's as powerful as Struts. It's gonna hurt =:-( To put it another way, if you told your boss that you had several top class Java developers and hundreds (thousands?) of testers who were all willing to come and work for you for free, would he really turn that down? In the time that you have been waiting for the 1.1 release, seven books have been written *and* you've probably wasted a whole lot of man-hours reinventing framework code that is *less* well written and tested that the development code in Struts. (No disrespect intended to you and your team, but a lot of people have been through this code base with a fine-toothed comb!) And that's a real cost, as opposed to an perceived risk. And the end of the day, the more people that are reviewing the code and using the software for real, the more bugs will have already been found and the less risk there will be in using it. I would guess that Struts has been reviewed more thoroughly than *any* in-house software project and probably more than most commercial products. And if you do come across a bug then you can easily ask for help, or fix it yourself. Have you ever tried calling any large Redmond based companies and asking them to send over their source code because you want to track down a bug? There has been a delay in releasing 1.1, but that's largely because it's not a *minor* upgrade from 1.0, but a biggy. There probably should have been lots of little 1.x releases. But there weren't and here we are. Finally, to answer your question. I believe the only outstanding issue is a dependency on the commons fileupload component that is nearly ready and that the Struts release is planned to be real soon now ;-) Steve -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: June 1, 2003 4:39 PM To: [EMAIL PROTECTED] Subject: Re: Struts 1.1 Struts RC 2 should be coming out this week. After that, people will have a chance to test their apps with it and we'll incorporate any show stopping bug fixes. Struts 1.1 final is not far off after that :-). David I'm not going to ask when Struts 1.1 will be released because I know the stock answer. I'm going to ask what we need to do to get it released as soon as possible? Our company has a policy of not using software that hasn't had a final release, therefore we've been stuck with Struts 1.0. We can't switch to 1.1 in development, because we don't know how many months (or years) it will be before it's done. We can't hold up our production dates because of Struts 1.1. So, my question is, what exactly are we waiting for for the Struts 1.1 release? What can we do to get it there as soon as possible? We'd be willing to put some time into it to get it released. Using it in our production applications is out of the question though. I know this is a little harsh, but I have lost count of how long we've been waiting. At least 7 Struts books have been released since Struts 1.1 beta was
Re: [OT] slackers
I'm a lumberjack and I'm OKAY! At 03:06 PM 6/2/03 +0900, you wrote: On Monday, June 2, 2003, at 03:03 PM, Brandon Goodin wrote: Oh, yeah, an African swallow maybe, but not a European swallow. That's my point. Brandon Goodin Well, I never wanted to be a Java programmer anyway. I wanted to be a Lumberjack! jsp:include page=segueToLumberjackSong flush=right-away / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] RE: test
Not true! Oddly enough, there are some on the southwestern tip of Ireland, where the Gulf Stream dips in and makes for oddities like that. At 09:21 AM 5/30/03 -0400, you wrote: There are no coconuts in Europe. -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:18 AM To: Struts Users Mailing List Subject: Re: [OT] RE: test Is it a laden swallow? José Ventura wrote: Well that depends. Would that be an european or an african swallow? - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 4:30 PM Subject: [OT] RE: test Okay. What's maximum velocity of a swallow? -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:04 PM test - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Calculating distance using Longitude/Latitude
Just so I understand the problem, why would a city not want to have a service? That makes no sense to me. At 01:46 PM 5/27/03 -0700, you wrote: Micael, Thanks for your input. My problem is limited to how far one is willing to travel to provide a service. The way I have it setup now is one can specify up to five locations (cities). But if someone wants to provide service to more than five cities they have no way of specifiying this. It is a bit more cumbersome to specify individual cities. On the other hand specifying a distance would require immediate feedback to the person providing the service so they can realize what cities they have specified (through distance). Another problem is a city that is included in the distance may want to be excluded. A solution that comes to mind is to allow the user to enter the number of cities they want to provide service in. But what is reasonable. 5, 10,100. That would be a pain in the neck to enter and may utilize an unnecessary amount of the database (would allow random cities not located adjacent to each other). Barry - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, May 23, 2003 5:20 PM Subject: Re: [OT] Calculating distance using Longitude/Latitude Part of the answer is inevitably tied to your problem. If it is one kind of a problem, then distance is crucial. If it is another, then popluation is critical. Ten miles to a hotel in N.Y. is not ten miles to a hotel in the Mojave Desert. Know what I mean? Usually people approach these problems as distance problems when the actual area in which such solutions will usually be employed make them into topographical problems. I am not sure if that is relevant to you. If not, sorry for bothering you. Micael At 05:11 PM 5/23/03 -0700, you wrote: At 16:10 -0700 5/23/03, Barry Volpe spoke thusly: Hi, I don't know if there is anything particular to struts on this subject What I want to do: I have a geo database with city,state and corresponding longitude,lattitude. I want to allow a specific city/state location to be specified and a distance to be selected. Then all locations (in my database) within that distance (square miles I guess) can be displayed. The equations, for the simple assumptions (see below) do not require more then 10 lines of Java. You'd spend more time finding an implementation than just coding you equations. The simple assumption is to compute a box around the source location with sides equal to half the allowed distance. This will give you a min and max long and latitude that you could query against. Theoretically you should check against a circle around your source point, so this will include too many results in the query output. If you really need precision, you could also computed the square inscribed within the circle and if query results are inside the outer box, but outside the inner box, you could run additional filtering in Java do to the precise calculation. Off course the earth is not flat and the larger the distance, the more error is introduced. Also, the circle above, is not really a circle for the same reason. A possible modification is to compute the width of the box (longitude) based on the latitude closest to the equator. This would compensate for locations further away from the equator, but is still not 100% precise. The trick, in the absence of even smarter approaches, is to do the quick math such that it includes at least all known good answers, so you can do some more filtering in code if necessary. --dolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use
Re: [OT] I'm tired of restarting tomcat!
You using a modem with a possibility of losing connections to your ISP? You running by any chance on Win98? At 05:59 PM 5/27/03 +0200, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, this is somewhat off-topic but I don't know why I have this behaviour. I deployed my struts application on tomcat 4.1.18 and randomly, it stops serving requests (it waits forever on index.jsp). In the log files I always notice an exception: 003-05-27 16:30:09 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Connection reset at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuff ... The only way to restore the normal behaviour is to restart tomcat. Does anyone know why I get this behaviour? A presto, Fabio - -- - --- Fabio Mancinelli, PhD student EMail : [EMAIL PROTECTED] Dipartimento di Informatica WWW : http://www.di.univaq.it/~mancinel Universita' dell'Aquila - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Made with pgp4pine 1.75-6 iD8DBQE+04t76dsQbk2R3cMRAgHrAKCjXY+NqIChZrIhZsCNw7/923Fb+ACghEFq +/DiCrnBlm2xQCZarq9gr+A= =Yu0y -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: time to do action
Mother of All Frameworks? THAT is a hoot! At 01:02 PM 5/30/03 -0700, Craig R. McClanahan wrote: On Fri, 30 May 2003, Mike Whittaker wrote: Date: Fri, 30 May 2003 19:09:47 +0100 From: Mike Whittaker [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: time to do action Maybe I'm wrong, but this is how I understand the way filters work. You are probably right, my brain hurts, it's Friday. I want the Struts way, I'm learning struts. I didn't realize there was a Struts way. Filters are filters, aren't they? There must be a struts way to do it surely. You could certainly create a custom RequestProcessor that includes timing if you wanted to, but filters are a much more elegant mechanism to accomplish this particular thing (timing a request). We shouldn't assume that Struts (or any other framework) is going to meet 100% of your needs. After all, Struts doesn't try to solve your persistence-tier problems; it comfortably integrates with anything you would like to use. In the same way, you can easily integrate non-Struts tag libraries, non-Struts XML parsing and processing, non-Struts servlets, non-Struts filters ... we should enjoy the synergy of using these things together instead of hoping for a mother of all frameworks solution that satisfies every single need in one package. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSF and Struts Actions
This is so cool. I was hoping for this sort of thing. This is getting close to grown up. I wish I could see this stuff now. Man! At 06:22 PM 5/29/03 -0700, you wrote: On Thu, 29 May 2003, Vic Cekvenich wrote: [snip] Simple to make formbeans emit XML of properties via reflection, and then a servlet that emits XML, and then action script (designed in a movie screen per jsp) that has a html ui component that CRUDS XML. I have a version working, if you know how baseBeans uses Struts formBeans on Resin to display HTML content stored in DB Now: http://basebeans.com/indexFlash.html Same site, Struts formbeans, etc. same content, DB, only instead of emiting JSP, I emit an XML. Result is that it is simple to convert plain JSP/JSTL Struts site to rich UI that executes on browser and is light and scalable. JavaOne attendees who like this approach (lightweight XML output from the server that is converted into a rich UI on the client) will be very interested in attending my session on Thursday at 4:00: TS-2058: Combining JavaServer Faces Interface and Scalable Vector Graphics Vincent Hardy (Sun's representative on the SVG technical committee) and I will be demonstrating a JavaServer Faces implementation of a RenderKit that actually writes out a high level XML description of the components to be rendered. All the fancy stuff is done client side by your SVG viewer, so it can leverage all the fun things that SVG can do. Don't forget that JavaServer Faces has a two-level architecture -- user interface components that are render-independent, and renderers that construct a particular markup language. HTML is only one possbile output format, unlike Struts tags where (in JavaServer Faces terms) the rendering markup is baked in to the UI component tags themselves. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 12 month contract - Toronto - immediate start
Why would anyone be offended because they have special requirements. What they need, clearly, is a very well trained and affable Java enterprise coder. They are being clear that you should not waste your time if you are not qualified. I like that. I am sort of peripherally qualified for this position and have appreciated the candor. Micael At 10:13 AM 4/4/03 -0500, apachep2 wrote: One thing offends me the most is Excellent communication skills, both oral and written (10/10 essential) Looks like they are looking for Winston Churchill. -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED] Sent: April 3, 2003 11:16 PM To: Struts Users Mailing List Subject: Re: 12 month contract - Toronto - immediate start Thats because being males, we can only do one thing at a time!! Scott www.exergonic.com.au On Fri, 2003-04-04 at 13:22, Kwok Peng Tuck wrote: I'll be 46 years old before I qualify for that job :) . Andrew Hill wrote: I see no struts here. And their minimum required experience adds up to 21 years... -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday, 4 April 2003 10:19 To: [EMAIL PROTECTED] Subject: Re: 12 month contract - Toronto - immediate start Does this have anything to do with Struts? .V Jack Nodel wrote: Hi All, My name is Jack Nodel, I work with ARES consulting. Recently one of my clients has asked me to locate contractors for a Toronto based 12 month contract. The following is the list of required technical skills. Excellent communication is an absolute must. We are searching for a subject matter expert with extensive knowledge of BEA WLI to assist and provide guidance. To qualify, the candidate must have: £ 5+ years experience in the information technology industry £ 3 years of development experience on J2EE platform £ Hands on experience with E-Commerce design and application design £ Expert technical knowledge of the BEA workflow product £ Good technical architecture £ Good Java programming skills £ Experience with BEA Weblogic and Commerce Server exposure (nice to have) £ Excellent communication skills, both oral and written (10/10 essential) MUST HAVE SKILLS: … J2EE development experience (Min. Experience 2-5yrs) … Enterprise Java Bean Development (Min. Experience of 2-5 yrs) … Oracle 9i (Min. Experience of 2-5 yrs) … WLI (Min. Experience of 1-2 yrs) … SQL (Min. Experience of 2-5 yrs) … XMLSpy (Min. Experience of 2-5 yrs) … CVS (Min. Experience of 1-2 yrs) … Java IDE: Eclipse (Min. Experience of 1-2 yrs) If you are interested PLEASE FORWARD RESUMES TO [EMAIL PROTECTED] I can also be reached at 416.480.2700 ext224. Thanks, Jack - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 12 month contract - Toronto - immediate start
No, so I did not waste my time trying to fit into the wrong shaped hole. That is what I meant. I don't mean you guys and gals are being silly, but you might see that there is a plus to what they are asking. At 02:31 PM 4/4/03 -0500, Daniel Jaffa wrote: So you have been working with Oracle 9i for 5 years. - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts Users Mailing List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:41 PM Subject: RE: 12 month contract - Toronto - immediate start Why would anyone be offended because they have special requirements. What they need, clearly, is a very well trained and affable Java enterprise coder. They are being clear that you should not waste your time if you are not qualified. I like that. I am sort of peripherally qualified for this position and have appreciated the candor. Micael At 10:13 AM 4/4/03 -0500, apachep2 wrote: One thing offends me the most is Excellent communication skills, both oral and written (10/10 essential) Looks like they are looking for Winston Churchill. -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED] Sent: April 3, 2003 11:16 PM To: Struts Users Mailing List Subject: Re: 12 month contract - Toronto - immediate start Thats because being males, we can only do one thing at a time!! Scott www.exergonic.com.au On Fri, 2003-04-04 at 13:22, Kwok Peng Tuck wrote: I'll be 46 years old before I qualify for that job :) . Andrew Hill wrote: I see no struts here. And their minimum required experience adds up to 21 years... -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday, 4 April 2003 10:19 To: [EMAIL PROTECTED] Subject: Re: 12 month contract - Toronto - immediate start Does this have anything to do with Struts? .V Jack Nodel wrote: Hi All, My name is Jack Nodel, I work with ARES consulting. Recently one of my clients has asked me to locate contractors for a Toronto based 12 month contract. The following is the list of required technical skills. Excellent communication is an absolute must. We are searching for a subject matter expert with extensive knowledge of BEA WLI to assist and provide guidance. To qualify, the candidate must have: £ 5+ years experience in the information technology industry £ 3 years of development experience on J2EE platform £ Hands on experience with E-Commerce design and application design £ Expert technical knowledge of the BEA workflow product £ Good technical architecture £ Good Java programming skills £ Experience with BEA Weblogic and Commerce Server exposure (nice to have) £ Excellent communication skills, both oral and written (10/10 essential) MUST HAVE SKILLS: . J2EE development experience (Min. Experience 2-5yrs) . Enterprise Java Bean Development (Min. Experience of 2-5 yrs) . Oracle 9i (Min. Experience of 2-5 yrs) . WLI (Min. Experience of 1-2 yrs) . SQL (Min. Experience of 2-5 yrs) . XMLSpy (Min. Experience of 2-5 yrs) . CVS (Min. Experience of 1-2 yrs) . Java IDE: Eclipse (Min. Experience of 1-2 yrs) If you are interested PLEASE FORWARD RESUMES TO [EMAIL PROTECTED] I can also be reached at 416.480.2700 ext224. Thanks, Jack - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: 12 month contract - Toronto - immediate start
Well, actually, in 1965 I worked in Fortran in a white smock at James Ford Bell Research Center in Golden Valley, MN, for General Mills, Inc. We brought that baby through (reels, and cards, and everything else) with a lot of stick-to-it-ive-ness. Once, when we made a million dollar mistake by making an incremental search on something that could not be incremented, e.g. 1/3, we saved our butt by figuring out a new sort of algebra to solve the problem ourselves. LOL. My first job was driving a stagecoach for new service stations on the brand new Interstate highways, built by that President not much mentioned anymore, Dwight David Eisenhower. There are people out there with a lot more qualifications than you might think. Prior to SQL being invented, I was writing papers internationally on the First Order Predicate Calculus without Identity, which as you know, is the basis for SQL. (All SQL is, you know, is multiple files instead of one.) I think that clarity in what you want, especially when others are wasting their time, is a good thing. Peace. At 02:32 PM 4/4/03 -0500, you wrote: Ye, cool. Maybe you know how java developed from stone age (2 mln year B.C.)? And your university diploma is 'web development in renaissance epoch'? ~nn - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts Users Mailing List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:41 PM Subject: RE: 12 month contract - Toronto - immediate start Why would anyone be offended because they have special requirements. What they need, clearly, is a very well trained and affable Java enterprise coder. They are being clear that you should not waste your time if you are not qualified. I like that. I am sort of peripherally qualified for this position and have appreciated the candor. Micael At 10:13 AM 4/4/03 -0500, apachep2 wrote: One thing offends me the most is Excellent communication skills, both oral and written (10/10 essential) Looks like they are looking for Winston Churchill. -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED] Sent: April 3, 2003 11:16 PM To: Struts Users Mailing List Subject: Re: 12 month contract - Toronto - immediate start Thats because being males, we can only do one thing at a time!! Scott www.exergonic.com.au On Fri, 2003-04-04 at 13:22, Kwok Peng Tuck wrote: I'll be 46 years old before I qualify for that job :) . Andrew Hill wrote: I see no struts here. And their minimum required experience adds up to 21 years... -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED] Sent: Friday, 4 April 2003 10:19 To: [EMAIL PROTECTED] Subject: Re: 12 month contract - Toronto - immediate start Does this have anything to do with Struts? .V Jack Nodel wrote: Hi All, My name is Jack Nodel, I work with ARES consulting. Recently one of my clients has asked me to locate contractors for a Toronto based 12 month contract. The following is the list of required technical skills. Excellent communication is an absolute must. We are searching for a subject matter expert with extensive knowledge of BEA WLI to assist and provide guidance. To qualify, the candidate must have: £ 5+ years experience in the information technology industry £ 3 years of development experience on J2EE platform £ Hands on experience with E-Commerce design and application design £ Expert technical knowledge of the BEA workflow product £ Good technical architecture £ Good Java programming skills £ Experience with BEA Weblogic and Commerce Server exposure (nice to have) £ Excellent communication skills, both oral and written (10/10 essential) MUST HAVE SKILLS: . J2EE development experience (Min. Experience 2-5yrs) . Enterprise Java Bean Development (Min. Experience of 2-5 yrs) . Oracle 9i (Min. Experience of 2-5 yrs) . WLI (Min. Experience of 1-2 yrs) . SQL (Min. Experience of 2-5 yrs) . XMLSpy (Min. Experience of 2-5 yrs) . CVS (Min. Experience of 1-2 yrs) . Java IDE: Eclipse (Min. Experience of 1-2 yrs) If you are interested PLEASE FORWARD RESUMES TO [EMAIL PROTECTED] I can also be reached at 416.480.2700 ext224. Thanks, Jack - 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
MVC - not!
Wouldn't it be better if we stopped talking about MVC patterns when they really are not MVC patterns? The patterns usually called MVC are not because they have no event structure. We use, as a rule, a pattern that really is just based on minimal coupling, i.e., coupling only to contiguous operations. Isn't that right? The Model 2 maybe should be called the CD pattern, for Contiguous Dependencies? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MVC - not!
I know, David, and I admire your work. But, look at the design pattern. Ted Husted is right, I think, that it is not what we normally talk about. At 03:16 PM 4/4/03 -0700, David Graham wrote: I don't see an E (for events) in MVC. David From: Micael [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: MVC - not! Date: Fri, 04 Apr 2003 14:09:24 -0800 Wouldn't it be better if we stopped talking about MVC patterns when they really are not MVC patterns? The patterns usually called MVC are not because they have no event structure. We use, as a rule, a pattern that really is just based on minimal coupling, i.e., coupling only to contiguous operations. Isn't that right? The Model 2 maybe should be called the CD pattern, for Contiguous Dependencies? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MVC - not!
What you say makes sense, until you look at the actual pattern used that is called MVC. It was not until I tried stopping fitting what people were doing into what they said they were doing that I began to understand the pattern actually used, David. So, I have to respectfully disagree. I think the opposite in fact is true. I don't see anything like in the actual pattern, but just in the desired outcome. A pattern is not defined by its problem (the hoped for outcome) but by the solution. The MVC problem is the same in both cases, but the MVC solution is not what we use. Some, like Barracuda, come closer to the MVC. At 05:25 PM 4/4/03 -0700, David Graham wrote: Web MVC doesn't match conventional MVC from desktop GUI apps but I still consider them the same pattern. You have the same separation of concerns but with a slightly different message system between the components. IMO, calling it something other than MVC consuses the issue and is not helpful for a person trying to learn the pattern. David From: Micael [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: MVC - not! Date: Fri, 04 Apr 2003 15:22:07 -0800 I know, David, and I admire your work. But, look at the design pattern. Ted Husted is right, I think, that it is not what we normally talk about. At 03:16 PM 4/4/03 -0700, David Graham wrote: I don't see an E (for events) in MVC. David From: Micael [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: MVC - not! Date: Fri, 04 Apr 2003 14:09:24 -0800 Wouldn't it be better if we stopped talking about MVC patterns when they really are not MVC patterns? The patterns usually called MVC are not because they have no event structure. We use, as a rule, a pattern that really is just based on minimal coupling, i.e., coupling only to contiguous operations. Isn't that right? The Model 2 maybe should be called the CD pattern, for Contiguous Dependencies? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
Re: MVC - not!
I understand that, Craig, if you are talking to veterans, but like some of the choices in naming in applications, it just continues to confuse every new arrival until we finally use the right words. So, I appreciate your pragmatic approach, but the problem is still real. It is not just a matter of words, if you are new and trying to get things. There really are two very different patterns, and we use the same name for both of them and do not even mention, as a rule, that there is a huge difference in the underlying class architecture. But, I digress, and digress, and digress. At 06:30 PM 4/4/03 -0800, you wrote: On Fri, 4 Apr 2003, Micael wrote: Date: Fri, 04 Apr 2003 16:49:55 -0800 From: Micael [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: MVC - not! What you say makes sense, until you look at the actual pattern used that is called MVC. It was not until I tried stopping fitting what people were doing into what they said they were doing that I began to understand the pattern actually used, David. So, I have to respectfully disagree. I think the opposite in fact is true. I don't see anything like in the actual pattern, but just in the desired outcome. A pattern is not defined by its problem (the hoped for outcome) but by the solution. The MVC problem is the same in both cases, but the MVC solution is not what we use. Some, like Barracuda, come closer to the MVC. The traditional GUI folks have long objected to the web folks co-opting the term MVC, usually along the grounds that Micael is arguing. My response is that a term means what people think it means -- and web app developers think MVC means frameworks like Struts. It's about two-three years too late for this discussion. It's time to move on to things that are more interesting. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]Credit card processing
If you are not going to process the card, your client is better not knowing what it is. At 11:08 PM 3/31/03 -0500, you wrote: The folks at PlugNPay (plugnpay.com) have a nice Java API for doing processing, I've used with with good success. James -Original Message- From: P Dunham [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:48 PM To: 'Struts Users Mailing List' Subject: RE: [OT]Credit card processing Ok, thanks. What about credit card processing services? Any recommendations there? -Philip -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 8:17 PM To: [EMAIL PROTECTED] Subject: Re: [OT]Credit card processing The Struts validator has a credit card validation option. You can do some initial validation with that before sending it to your card processor. David From: P Dunham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT]Credit card processing Date: Mon, 31 Mar 2003 20:13:53 -0600 Hi all, Anyone here have recommendations on credit card processing services? As well as any resources for implementing credit card processing with struts/java. Thank you, Philip Dunham _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MyCart MyButt MyBCentral
What is up with the MyCart application that is supposed to be a Struts example but seems only to lead to Microsoft's bCentral? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Do Struts increase developer productivity?
If you have a good lead person on your team, that makes all the difference. Someone has to know what they are doing, and then everyone speeds up. That is especially true if you are using the pluses of the Xtremists. There are lots of good people out there to take these positions. I understand James Mitchell is looking for work and I would hire him at the drop of a hat, if I had a position, which I don't. My sense is that there are a lot of good people that can take Struts out the door, today, anywhere. Struts is not the problem. Struts is the solution. There are other simpler frameworks, like Maverick. You can even build your own framework. Struts is a pretty good framework (I take pretty good to be very good) that you can also tweak. I personally wish that the Struts people would just take the bull by the horns and make a big shift in the framework, using all the things that have been learned since its inception. I probably am not as smart as they are in this respect. There is a pretty huge change, however, in 1.1 which is really welcomed. At 01:54 AM 3/29/03 -0600, you wrote: I think you can do the kid in a candy store thing with Struts all too easily. As with any project, make sure you set your goals in a design doc, just because struts can do it, doesn't mean you should do it. I had a project hit a wall because my boss kept asking if I could do this and that, yeah, struts can allow me to do that... Okay, why don't we add that then... -Jacob | -Original Message- | From: Navjot Singh [mailto:[EMAIL PROTECTED] | Sent: Friday, March 28, 2003 9:51 PM | To: Struts Users List | Subject: Re: Do Struts increase developer productivity? | | here are my 2 cents to this discussion ;-) | | Initially, the development with struts can be slow. I won't say Struts is | complex, it is easy but to create a simple form submission you got to have | quite a number of files in set up. But slowly the things get sunk into | your | mind and then it's real fast process. | However, the speed can be increased with tools like Easystruts and IDEs | giving extensive support to Struts. | | - navjot singh | | - Original Message - | From: Igor Shabalov [EMAIL PROTECTED] | To: Struts Users Mailing List [EMAIL PROTECTED] | Sent: Saturday, March 29, 2003 4:26 AM | Subject: Re: Do Struts increase developer productivity? | | | | I 100% agree, Struts is good staff for use by the end of the day, but it | can slow development process. So, can we do something to reduce that | “backslash”? My answer is  yes, by introducing tools that helps | developers | to “fight” with Struts complexity. Can Struts be better from functional | prospective? Of course yes, however, it can increase complexity even | more, | so we see more demand for good tools. | | Once again, I do not to offend anybody. | | Thank you for answer, | Igor. | | On Fri, 28 Mar 2003 17:30:20 -0500, Mark Zeltser | [EMAIL PROTECTED] wrote: | | Plus all QA work each of us does by testing struts in different | environments. | | Igor, | | In our experience, struts will decrease initial productivity due to | the | learning | curve. However, this will be time well spent, assuming you will be | getting | maintainable application, plus struts is widely used, so there is a | good | chance you | will be able to find talent if needed. | | Re. individual components. Start with well defined directory structure | for your | source, images, etc. and ant based build script. Keep adding | functionality as you | feel that there is a need for it. (E.g.: need to authenticate users. | Before | implementing your own authentication search the archives, you will | find | that a lot | of problems were already discussed and solved) | | Mark. | | David Graham wrote: | | I don't have real numbers but thousands of hours of work from many | highly | paid software engineers has gone into Struts. Say an average | developer | gets | $50/hour * 2000 hours (probably low) = $100,000. | | Does your company or your clients want to pay that much to develop | their | own | framework? | | David | | From: Igor Shabalov [EMAIL PROTECTED] | Reply-To: Struts Users Mailing List struts- | [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Subject: Do Struts increase developer productivity? | Date: Fri, 28 Mar 2003 14:00:00 -0800 | | | Hello, all! | Do anybody have any data how using Struts can increase (or | decrease) | developer productivity. I mean, for example, â??using Strutsâ?? can | save up | to xx% of development cost. Or save up to xx% of development effort | (in | terms of number of lines of code) etc. | And, if Struts really help, what portion of struts technolody | helps more | â?? tag libraries, controller with actions, tiles or anything else. | I | understand that depends too much from specific project â?? but I | need | just |
Re: Loading properties from a file and keeping them in session
So, you probably would want to do that at application scope, rather than session scope? If you are just storing the properties information, why transfer it to an object? Just put the properties object at application level. But, as James asked, why would you do this? Why not use a database? If you want speed, just hook in a little standalone hsqldb app, which has a really small footprint and would give you all the info you needed to put into application (or session) scope? At 10:56 AM 3/27/03 -0500, you wrote: On Thu, 2003-03-27 at 10:37, Pingili, Madhupal wrote: I am thinking of a mechanism to load properties (name=value pairs) from a properties file and store them in an object and finally store that object in session for using it later in the web application. Can anyone share their experience doing this kind of tasks? I haven't tried that yet, but it sounds like that would be a pretty cool (and quick) way to run my server out of memory. Of course that depends on number of users and a few other factors, but heck, if that's what we want. me:mode serious=true/ I wouldn't do that if I were you. Why would you need a different set of bundle values for each user? Besides the obvious memory overhead, what is it that you are trying to accomplish? Thanks Reddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Test
Test LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 1.1 and PlugIn Interface: Has anyone used it successfully?
I am getting the following difficulty loading a class that implements the PlugIn interface. I have property implement the interface (it compiles) and I have added the equivalent of the following to the struts-config.xml: plug-in className=com.mySite.MyClass/ Anyone know what I am doing wrong? 2003-03-27 13:34:29 StandardWrapper[/mySite:action]: Marking servlet action as unavailable 2003-03-27 13:34:29 StandardContext[/michaelmcgrady]: Servlet /mySite threw load() exception javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:997) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) ... at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Contract Work: Going Rate?
I have been offered a contract job and asked what I wanted per hour. I am in Washington state and the client (a web development company) is in California. I am an experienced Java (certified) programmer that knows the general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, scripting, various databases, etc.). What would a reasonable request be? Thanks. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Contract Work: Going Rate?
You the man, James. Thanks. At 10:02 PM 3/26/03 -0500, you wrote: On Wed, 2003-03-26 at 21:28, Micael wrote: I have been offered a contract job and asked what I wanted per hour. I am in Washington state and the client (a web development company) is in California. I am an experienced Java (certified) programmer that knows the general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, scripting, various databases, etc.). What would a reasonable request be? Thanks. $50/hr LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Contract Work: Going Rate?
Sorry, James, you the man, Jeff. LOL. Thanks to both of you for your input. At 09:12 PM 3/26/03 -0600, you wrote: That seems pretty low to me... On Wednesday, March 26, 2003, at 09:02 PM, James Mitchell wrote: On Wed, 2003-03-26 at 21:28, Micael wrote: I have been offered a contract job and asked what I wanted per hour. I am in Washington state and the client (a web development company) is in California. I am an experienced Java (certified) programmer that knows the general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, scripting, various databases, etc.). What would a reasonable request be? Thanks. $50/hr LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Contract Work: Going Rate?
This is funny. Price fixing! Fire that lawyer. I AM a lawyer. That is ridiculous. At 10:03 PM 3/26/03 -0700, you wrote: I never thought we'd have lawyers telling use what we can and can't discuss on *our* mailing list. David From: Tammy Cravit [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [OT] Contract Work: Going Rate? Date: Wed, 26 Mar 2003 20:49:31 -0800 general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, scripting, various databases, etc.). What would a reasonable request be? Thanks. First of all, I would caution about asking questions like this on a mailing list, as the discussion of hourly rates and stuff came up on another list I belong to and the moderators there obtained an opinion from a lawyer that discussing pricing in terms of specific dollar amounts in a group like this could be deemed price-fixing by the courts, which is illegal. That having been said, one common rule of thumb seems to be to divide your annual salary as an employee by 1000, and using that as a starting point for figuring out your hourly rate. Obviously you'd need to adjust that for your local market, but that's not a bad starting point. Tammy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Contract Work: Going Rate?
I hope you know that my prior response that the lawyer should be fired was not aimed at you, Tammy. I appreciate your assistance. I think it is really funny, however, that a lawyer would actually associate what we are doing with antitrust behavior. Heck, I feel bigger and better now. LOL! That lawyer needs to get the tune to match the lyrics. At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote: general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, scripting, various databases, etc.). What would a reasonable request be? Thanks. First of all, I would caution about asking questions like this on a mailing list, as the discussion of hourly rates and stuff came up on another list I belong to and the moderators there obtained an opinion from a lawyer that discussing pricing in terms of specific dollar amounts in a group like this could be deemed price-fixing by the courts, which is illegal. That having been said, one common rule of thumb seems to be to divide your annual salary as an employee by 1000, and using that as a starting point for figuring out your hourly rate. Obviously you'd need to adjust that for your local market, but that's not a bad starting point. Tammy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] Microsoft
Right! Good products transcend platforms! So, .NET has an intentional problem. No sense denying it. At 12:45 PM 3/21/03 -0500, you wrote: From a developers viewpoint, I'd say it's all moot. Developers develop. Pascal, SmallTalk, Java, C# -- a language is a language. I've been through half a dozen platforms so far, and, God willing, I'll go through a half dozen more before I'm done. =:0) The trick is to keep bringing your favorite tools along for the ride. They hand you .NET, you come back with maverick.net (or struts.net for that matter). What I see in .NET is the opportunity to make our favorite tools, like Struts and Hibernate and Velocity and Lucene, cross platform. So, no matter what the suits come up with next, for us, it's still business as usual =:-) The Apache Software Foundation is about community-driven open source. Whether it's in Java or C# or PHP or Python or Ruby doesn't matter. Good products transcend languages and platforms. -T. Sterin, Ilya wrote: Here is the issue. The industry is greatly adopting the Linux platform, for servers and currently even workstations. This is a major move, as we have fortune 500 clients who are planning on switching the full infrastructure to Linux. Which means replacing Unix (Solaris, HP-UX, and AIX) as well as NT, to all run Linux. With these advancements, and Microsoft surely loosing the battle on the **server side**, .NET is not really looked at as a serious solution at many enterprises, though they'll have to adapt Windows as their server side platform, which is rare, especially in bigger companies, who currently run on Unix/Linux. --- Ted Husted, Struts in Action http://husted.com/struts/book.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Meeting in Paris this Saturday
Confusion? Rancor? -- BAD (I advise against these) Clarity? Harmony? -- GOOD (I suggest these as helpful) Let us agree that none of us are perfect. The foibles I see here, including my own, are within the bounds of acceptable conduct, even if they could not be endorsed. Let's celebrate our differences if we can. If you want to piss people off, then say that they are not okay. Mark does that, and people get into the towel snapping with him. One of Mark's imperfections is that he is just not a very nice person. He does not mind hurting people's feelings. That is not admirable. He is also a bit sensitive about his own shortcomings, and has some apparent ego problems. He probably was a bit agitated by Cedric being the expert at the French bookstore. He also has many considerable good qualities. He's a lot of fun. He is quite often helpful. You can read his own posts to get the rest. LOL. All in all, I like Beer Boy and hope that one day he will see that treating other people with kindness is a good thing for yourself as well as them. Anyway, that is my pompous ass offering for the day. Let It Be! At 04:31 PM 3/20/03 +, you wrote: Who gives a (word removed) if Cedric is going to be in a bookstore this Saturday? I was being sarcastic, not inflammatory, in the traditional hacker sense. I do - and probably some others who subscribe to this list - who will be in Paris and who may be interested in having a face-to-face discussion with the author of tiles - arguably a very important component of struts. Perhaps he will be dipping his freedom fries in freedom dressing sitting by the freedom doors before ordering freedom toast? I presume this is a reference to French President Chirac's stance on the imminent war to disarm Iraq - and the American 'humour' cited at the French people as a whole. In my view - this comment is very inflamatory and I think it has previously been agreed that prejudiced (and potentially racist) comments such as this have no place on this list - in my view whether they are marked as '[OT]' or not. Personally, I have a view on Chirac's stance also - but do not feel this list is the appropriate medium on which to voice it. Neither would I, as you seemed to have - presumed to know Cedric's personal stance on this. Alternatively, you may view that - Cedric is French and all French people will share the same view and traits - and can be insulted and mocked - this then would definitely be racist, in my personal view, of course. And I've been helping people on this list since 1.0 beta, though got preoccupied for a couple of months on my last project. Great - technologies like struts can only survive with list such as these and useful input from individuals such as yourself. I hope your project was completed successfully. Don't like my posts? Can you spell f-i-l-t-e-r? I think everyone is entitled to their own views and some of the [OT] posts *are* amusing - but when they may cause personal offence or voice prejudiced views then I think we all have a personal duty to voice our dissatisfaction with the sender. Whether in the sender's view they were meant to be 'humourous' or not or were posted merely to provoke a reaction - I still think they are inappropriate. Dissatisfaction voiced. Yes, I appreciate that Mark's comments should be taken with a 'ladleful of salt' but I do *not* think Mark has '... earned the privilege to flame who he wishes ...' - so, pretty please, Mark - apologise - I believe you have overstepped the mark on this occasion. H. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 15:16 To: 'Struts Users Mailing List' Subject: RE: [OT] Meeting in Paris this Saturday Who gives a shit if Cedric is going to be in a bookstore this Saturday? I was being sarcastic, not inflammatory, in the traditional hacker sense. Perhaps he will be dipping his freedom fries in freedom dressing sitting by the freedom doors before ordering freedom toast? And I've been helping people on this list since 1.0 beta, though got preoccupied for a couple of months on my last project. Don't like my posts? Can you spell f-i-l-t-e-r? Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:52 AM Why do you always bait people with inflamatory OT posts? It would be interesting to compare the number of your helpful posts vs. OT. David From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [OT] Meeting in Paris this Saturday Date: Thu, 20 Mar 2003 09:09:53 -0500 Gee, and I was just looking for an excuse to go to FranceNOT. Mark -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:00 AM For those interested to discuss with me about Struts and Tiles, I will be this Saturday 22 march in Paris at the bookstore
RE: html:frame
I gave up on the frame tags. At 11:49 AM 3/12/03 +1100, you wrote: If your tag is rendering as frameborder=0/ it seems likely that you don't have the taglib definition in your jsp. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 11:35 AM To: Struts Users Mailing List Subject: html:frame can anyone tell me for certain if this is a bug or a problem of mine I use: marginheight=0 marginwidth=0 frameborder=0/ and the code that gets rendered for the browser is: frameborder=0/ and the code in the tag:\ is: if (marginheight 0) { results.append( marginheight=\); results.append(marginheight); results.append(\); } if (marginwidth 0) { results.append( marginwidth=\); results.append(marginwidth); results.append(\); } Not allowing me to have a zero width margin for my frame. 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Learning Curve Management or Confusions of a Newbie
No, you are right. This is an ongoing problem. The truth is, however, I think, that there is no easy solution. Java is easy enough to learn and open enough to all that there is just a lot there. No way to change that. At 01:05 AM 3/7/03 -0700, you wrote: I have to confess, I'm a newbie. I've been a C/C++ programmer for 20 years, but after dinking around for a few months with ASP, VBScript, PHP and a few other technologies, I decided that Java was the language to build my web apps in. A month ago I was completely cold. Didn't know the first thing about any of this stuff. But I knew I wanted to learn it, so off I went, marching into the high weeds. First I had to learn Java. Then came servlets and JSPs and Tomcat. And along that path I also had to absorb Ant. And JUnit. And Log4J. And then there was a bunch of time lost exploring NetBeans/Eclipse/WebSphere before settling on JEdit as my environment of choice. Then came Struts, and all the various taglibs. An experiment with Cayenne. And Cactus. And god-knows what else I've explored. And through it all, I am continually amazed at the strength and breadth of the resources and support available. And equally frustrated by it. I can never remember where I saw a particular bit of information. So when I finally learn enough to understand what Ted was talking about in his monograph on Connection Pooling, I can't remember where I saw it. And when I want to learn enough about EJBs to figure out if I need to care about them, or if they are relevant to my planned project, I have to wade through another day of voluminous coverage before I have enough of a handle on what they are to make some intelligent guesses about where to look next. My point is that I believe the Apache/Java/Struts/... universe is quickly reaching a point where its very breadth is becoming a barrier to entry for people who don't have a couple of months to devote to bootstrapping themselves. Is there any thought being given to creating a higher-level resource interface that could serve as a single point of reference for all things Apache? (I realize that all things java would be going way too far.) As a simple solution, if every document in the Apache infrastructure had a meta tag that listed the questions answered by the document, then a very powerful, automated FAQ could be maintained. And such a system would make it much easier (I believe) to find things quickly than simply searching the site for key words. This may not be the best (or only) solution, but I do believe that for all the very specific support and discussions there are, there is really very little over-view material to assist newcomers or people looking for information outside of their core area. Or maybe I'm the only one who feels overwhelmed by it all. :-) Jefficus LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
Just put the locale and other choices in the same form. At 12:45 PM 3/5/03 +0100, you wrote: - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:38 PM Subject: Re: Localisation ok simon.. thanks one more question, what happens to text entry fields tat havent been submited if the user clicks to alter his locale.. when the page is loaded his entries will be lost.. how can i stop this? Good question. Something I have not come up against yet. But what you could do is have the language buttons go via an action class that will rebuild the page for the new language, which means that the entered info will still be in the request in the formBean you are filling (could cause problems if the bean is validated, as *I think* that the validation will occur when the new request for language change happens. You'll have to check this out), you then just extract it and repopulate the page with this aswell as the change of language. Off the top of my head I wouldn't know how to code this, but when the good old US wakes up I expect help will be plentyfull ;-) Cheers Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
In my opinion the message solution works and this solution is messy. At 01:52 PM 3/5/03 +0200, you wrote: You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ Does this mean that someone has to implement a different .jsp for each language? I need to implement something similar and I'm not sure that I understand the answer. Don't you use the bean:message to display text in different languages? I'm I missing something here? James what is exactly the solution you are going to follow? Cheers Simon Thank you in advance Konstantina - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Localisation
Chinese? At 08:02 PM 3/5/03 +0800, you wrote: So... if they click on say , the flag for Belgium, what language will they get? -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 03:12 To: [EMAIL PROTECTED] Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Localisation
This is effectively unreadable in my email. At 06:06 PM 3/5/03 +, you wrote: This what I did: ++ In the homepage page: % pageContext.setAttribute(URLPath, request.getRequestURL()); % ++ or ++ In Struts Config: ++ In the SetLocaleAction: String language = httpServletRequest.getParameter(lg); String urlInput = httpServletRequest.getParameter(url); Locale locale = (Locale) httpServletRequest.getSession().getAttribute(org. apache.struts.Globals.LOCALE_KEY); httpServletRequest.getSession(true).setAttribute( org.apache.struts.Globals.LOCALE_KEY, new Locale(language)); Locale newlocale = (Locale) httpServletRequest.getSession().getAttribute(org. apache.struts.Globals.LOCALE_KEY); int index = urlInput.indexOf(httpServletRequest.getContextPath()) + httpServletRequest.getContextPath().length(); return (new ActionForward( urlInput.substring(index), true)); -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 20:28 To: [EMAIL PROTECTED] Subject: Re: Localisation i'm not sure at the moment our current ' work around' is to only display the flags on the 'home' page which can be accessed via the menu. This way no data entry is lost.. but i would prefer a way of doing it from any page and returning to the same page, preferably with no data entry loss (or validation).. Konstantina Stamopoulou wrote in message news:[EMAIL PROTECTED] You could set a group of forwards up, based on the locale ie within Does this mean that someone has to implement a different .jsp for each language? I need to implement something similar and I'm not sure that I understand the answer. Don't you use the to display text in different languages? I'm I missing something here? James what is exactly the solution you are going to follow? Cheers Simon Thank you in advance Konstantina- Original Message -From: JamesTo:Sent: Wednesday, March 05, 2003 8:11 PMSubject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specifyit to forward to the page they changed locale on (i.e their original page). James - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
Don't know about other people, James, but you don't give me enough information. Why you would care what page they changed locale on is a mystery. But, I assume somehow that the flags are built into your layout, so they can change locale on any page or many pages. Why you would wnat to specify it to forward to the page they changed locale on in the struts-config.xml is also a mystery. But, why don't you do it with a changed_locale instead of a success or failure and so on? It would be relatively easy to include that functionality, where it belongs, in the logic passed on to the forward in the action for the form. If you wanted to get fancy, you could even use a registration/notification scheme in an event context. There are many, many ways to do this. Why do you want to do it hardcoded in the struts-config.xml? I cannot see why you would go that direction for a solution. Configuration is for configuration. This does not seem to be a configuration issue to me. Micael At 11:11 AM 3/5/03 -0800, you wrote: I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
This assumes that you want to write a new page for each locale. Is that true? Why not use messages? At 12:28 PM 3/5/03 +0100, you wrote: You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ And you can then dynamically create the name from the selected action by the client. Or, better still, you could create a generic jsp, which calls all text by tagged resources, and have a collection of resources for that page with all the differing languages in. Allowing for easier updating of the page and page content. I use xslt, so I can't give you a jsp example, but there are some examples of this in Programming Jakata Strus and a few on the web. Cheers Simon - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mixing currencies and locales
The parameters that messaging resources take are diverse enough, and beyond what is normally needed, that you can tack a lot of unintended functionality into using the usually unused stuff. We do this often with files like: messages_en_currency.properties, for example. At 07:09 PM 2/24/03 -0500, you wrote: Hi, Can java.util.Currency in JDK 1.4 help you out here, perhaps in combination with java.text.NumberFormat.getCurrencyInstance()? Cheers, -Steve -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:19 PM To: 'Struts Users Mailing List' (E-mail) Subject: Mixing currencies and locales Here's a puzzler: We need to be able to mix displaying different languages and different currencies. For example: A user comes in with a locale of es_MX, but they wish to view the price of their results in Yen. We have the I18N functionality in place, but I haven't seen a way to handle this kind of mapping. This would, of course, need to be applicable to non-western character sets, as well. One way that I have considered doing this is with simple resource keys, viz: [in resources_es_MX.properties] currency.jp=\u00A5{0}.{0} and repeat this for each langauge/country combination. This would be incredibly tedious, however. If there is a library or API available I would certainly prefer to use that route. -= J - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mixing currencies and locales
You just have to make sure that the right things get the right locale string is all. You can mix anyway you like. At 07:09 PM 2/24/03 -0500, you wrote: Hi, Can java.util.Currency in JDK 1.4 help you out here, perhaps in combination with java.text.NumberFormat.getCurrencyInstance()? Cheers, -Steve -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:19 PM To: 'Struts Users Mailing List' (E-mail) Subject: Mixing currencies and locales Here's a puzzler: We need to be able to mix displaying different languages and different currencies. For example: A user comes in with a locale of es_MX, but they wish to view the price of their results in Yen. We have the I18N functionality in place, but I haven't seen a way to handle this kind of mapping. This would, of course, need to be applicable to non-western character sets, as well. One way that I have considered doing this is with simple resource keys, viz: [in resources_es_MX.properties] currency.jp=\u00A5{0}.{0} and repeat this for each langauge/country combination. This would be incredibly tedious, however. If there is a library or API available I would certainly prefer to use that route. -= J - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: No Redirects in Struts 1.1
X-Server-Uuid: 77EBEC63-E6AD-49BA-924C-CB5276DAA9C7 From: Hossfeld, Frank [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED], '[EMAIL PROTECTED]' [EMAIL PROTECTED], '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: No Redirects in Struts 1.1 Date: Fri, 21 Feb 2003 11:12:07 +0100 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 124B240463827-01-01 Hi, I don't know why, but I am not able to post messages in the list, so I 'll send you my response directly. Perhaps somebody can post it. Thanks Frank I think, this is a problem in Struts. If you use the struts token-solution to avoid double-clicks, you have to check the token in every action. When redirecting from one action to another, it is necessary, that the token is part of the redirected URL. Maybe I didn't see it, but if you look in the RequestProcessor-Class and examine the processActionForward-Method, there is no work done with the Token. (Means, the token is not part of the redirected URL) If you overwrite the processForwardConfig-Method by adding the token to the redirected URL, it works fine. Thats the coding: protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException { if (forward == null) { return; } if (log.isDebugEnabled()) { log.debug(processForwardConfig( + forward + )); } String uri = RequestUtils.forwardURL(request, forward); if (forward.getRedirect()) { // Patch Start if (request.getSession(false).getAttribute(Globals.TRANSACTION_TOKEN_KEY) != null) { if (uri.indexOf(org.apache.struts.taglib.html.Constants.TOKEN_KEY) 0) { if (uri.indexOf(?) = 0) { uri += ; } else { uri += ?; } uri += org.apache.struts.taglib.html.Constants.TOKEN_KEY + = + request.getSession(false).getAttribute(Globals.TRANSACTION_TOKEN_KEY); } } // Patch End response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + uri)); } else { doForward(uri, request, response); } } } I don't know, if this is the right way to solve it, but it works .. :-) If there is anybody out there who has a better idea, I would like to read it. Regards Frank -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic Forwards Offsite
How does one do a dynamic forward offsite, e.g. http://www.somewhere.com/index.htm;, within the context of the struts framework? This does not work with ActionForward, apparently, because the forwards there have a context of the application root in the container. I know how to do these with html, of course. I know, for example, how to use an action forward to a jsp page which will then forward to another website. I need to know, if possible, how to do this within the struts framework. Also, if we get by that aspect, the address to forward to must be dynamic. Thanks for any assistance. I have tried four books and the struts user archives without being able to find the answer to this. Thanks. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic Forwards Offsite
Thanks for responding, however, I try the following: StringBuffer sb = new StringBuffer(); sb.append(http://www.somewhere.com/message;); ActionForward forward = new ActionForward(sb.toString(), false); return forward; or: StringBuffer sb = new StringBuffer(); sb.append(http://www.somewhere.com/message;); ActionForward forward = new ActionForward(sb.toString(), true); return forward; and I get: type Status report message /application/http://www.somewhere.com/message description The requested resource (/application/http://www.somewhere.com/message) is not available. com At 04:08 PM 2/20/03 -0500, you wrote: The javadoc for ActionForward state you can use an absolute URI for the path parameter. I've never tried it though. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 3:47 PM To: [EMAIL PROTECTED] Subject: Dynamic Forwards Offsite How does one do a dynamic forward offsite, e.g. http://www.somewhere.com/index.htm;, within the context of the struts framework? This does not work with ActionForward, apparently, because the forwards there have a context of the application root in the container. I know how to do these with html, of course. I know, for example, how to use an action forward to a jsp page which will then forward to another website. I need to know, if possible, how to do this within the struts framework. Also, if we get by that aspect, the address to forward to must be dynamic. Thanks for any assistance. I have tried four books and the struts user archives without being able to find the answer to this. Thanks. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No Redirects in Struts 1.1?
Is there no way to redirect to an offsite url in Struts 1.1? If so, I am not sure that the new features are much better than a bug. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Redirects in Struts 1.1?
How does that work, David? I take it that we need to build the framework from scratch with a nightly? Are each of the nightlies such that they will work? Or, is it catch as catch can? Do you have any idea when the beta will be updated to include this fix? At 02:49 PM 2/20/03 -0700, you wrote: There was a bug with absolute url redirects but it has been fixed. Try one of the recent nightlies. David From: Micael [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: No Redirects in Struts 1.1? Date: Thu, 20 Feb 2003 13:38:51 -0800 Is there no way to redirect to an offsite url in Struts 1.1? If so, I am not sure that the new features are much better than a bug. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic Forwards Offsite
Thanks, David. You the man! LOL. At 09:34 PM 2/20/03 +, you wrote: Micael You might try this: StringBuffer sb = new StringBuffer(); sb.append(http://www.somewhere.com/message;); response.sendRedirect(sb.toString()); return null; db -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 21:30 To: Struts Users Mailing List Subject: RE: Dynamic Forwards Offsite Thanks for responding, however, I try the following: StringBuffer sb = new StringBuffer(); sb.append(http://www.somewhere.com/message;); ActionForward forward = new ActionForward(sb.toString(), false); return forward; or: StringBuffer sb = new StringBuffer(); sb.append(http://www.somewhere.com/message;); ActionForward forward = new ActionForward(sb.toString(), true); return forward; and I get: type Status report message /application/http://www.somewhere.com/message description The requested resource (/application/http://www.somewhere.com/message) is not available. com At 04:08 PM 2/20/03 -0500, you wrote: The javadoc for ActionForward state you can use an absolute URI for the path parameter. I've never tried it though. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 3:47 PM To: [EMAIL PROTECTED] Subject: Dynamic Forwards Offsite How does one do a dynamic forward offsite, e.g. http://www.somewhere.com/index.htm;, within the context of the struts framework? This does not work with ActionForward, apparently, because the forwards there have a context of the application root in the container. I know how to do these with html, of course. I know, for example, how to use an action forward to a jsp page which will then forward to another website. I need to know, if possible, how to do this within the struts framework. Also, if we get by that aspect, the address to forward to must be dynamic. Thanks for any assistance. I have tried four books and the struts user archives without being able to find the answer to this. Thanks. LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 1.1: File Structure for Modules???????
Just about everything you want to know about modules is around except what file structure is being talked about. I find nothing on that. Can someone direct me to something on this. There is nothing in the struts book or the manuals that I can see. I find nothing anywhere on this. Does someone have an example of a file structure for two sub-applications using Struts 1.1? Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rendering alternate rows of a table in Struts
That is, as they say, WAY COOL. Someone is thinking. At 12:28 PM 2/7/03 -0800, you wrote: On Fri, 7 Feb 2003, Mark Galbreath wrote: Date: Fri, 7 Feb 2003 14:35:18 -0500 From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Rendering alternate rows of a table in Struts Oh, and cutting and pasting tags is better? With scriptlets, you need to know one thing: Java. With taglibs you must expand and juggle knowledge by an order of magnitude. Anybody who knows Java can understand a scriptlet; the converse cannot be said of taglibs. You are correct that designing correct tags in JSP 1.1/1.2 isn't all that easy. However, folks will *really* like what is coming up in JSP 2.0 in this area -- in particular two interesting features: * A new tag invocation protocol (SimpleTag) that is so simple :-) you almost can't get it wrong -- a single method call to implement, and no worries about tag pooling or instance reuse. * Tag files, which allow a page author to point at a chunk of JSP code (which might itself have tag invocations insode) and say, in effect, treat this chunk of stuff as a custom tag. Now, page authors can create and reuse presentation-ish stuff just as easily as Java programmers can reuse classes. Mark Craig -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:25 PM Taglibs aren't just useful to people working with HTML, they are a great way to reuse logic in JSP's. Cutting and pasting scriplets IMO is not. -Dave -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:07 PM Well, let's be honest, dude. The great idea behind taglibs in the first place was to allow non-developers such as HTMLers and graphic artists to be able to manipulate content without understanding a programming language and keep real programmers (yes, I have a definition, if you are interested) from having to maintain the presentation layer. Now, from that perspective, look and my example and look at yours. Which is going to be clearer to a non-programmer? Otherwise, look how complex using a taglib is to integrate into an application, to say nothing of what it takes to develop a custom taglib (I've done it). I may sound like a heretic, but in my mind, SIMPLE scriptlets are better than a tag to do the same thing - from development, integration, and maintenance perspectives. Mark (they don't call me Chief Eating Crow for nothing) Galbreath -Original Message- From: Rob Kischuk [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 11:13 AM That's all well and good but what happens when the author no longer supports it, technology moves on, and somebody behind you has got to maintain it? Doing it with scriptlets is as easy as % int count = 0 % logic:iterate . . . % if( count % 2 == 0 ) { % tr bgcolor=coral td/td % } else { % tr bgcolor=fuscia td/td % } % /tr % count++ % /logic:iterate What could be simpler and clearer? This methodology is much easier to maintain than some esoteric third-party tags. c:forEach var=currItem items=${myCollection} varStatus=info c:if test=${info.count % 2 == 0} tr bgcolor=coral /c:if c:if test=${info.count % 2 == 1} tr bgcolor=fuschia /c:if tdblah blah/td /tr /c:forEach Simple. Clear. Standard. The logic is plain, JSTL isn't going to have the maintenance issues you mention, and there's no nasty scriptlet delimiters muddling the mix. -Rob - 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] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how do people work in project with one server for development
Hi, James, okay, I will tell I do the whole thing with programs that allow me to write and to execute scripts on a target machine over the web. There isn't anything you cannot do with product development that way. You can really do any kind of distributed programming you want through port 80 and servlets. As a bit of an aside, a great deal of my programming is just two servlets talking to each other from different websites where a graphic never appears. This, I assume, is fairly normal. I am sort of self taught in computing, coming from a background in mathematical logic, so I am not completely aware of what is normal and what is not. Certainly Jason Hunter provides all the details needed to do this in his book on servlets. Are we on the same wave length? Micael At 02:04 PM 2/6/03 -0500, you wrote: Do tell! -- James Mitchell - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 1:29 PM Subject: Re: [OT] how do people work in project with one server for development If you have the time, you can set up an environment in which you can do everything through port 80 that you want to do. At 01:11 PM 2/6/03 -0500, you wrote: Recently, I have been wondering if there are any sourceforge like environments that can be used on a temporary basis for doing proprietary development. Ya know... to sort of get around roadblocks with corporate resources. :) Well, it won't matter if you are stuck behind a firewall that gives you port 80 and 21 only If I seem a bit upset, I have just cause. I hate having to wait till I get home before I can get anything really important done. -- James Mitchell - Original Message - From: Tony Baity [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 12:56 PM Subject: RE: [OT] how do people work in project with one server for development For those folks that have a little extra personal time to spare... and a laptop... and a way to transfer files from your work PC to your laptop Then freedom is just around the corner. In the last year, I was cut loose from a very strictly controlled environment where the developers had to wait months while upper management tried to squeeze App Server and IDE Vendors down to lower and lower prices before someone finally would make a decision a buy something. So I understand the choking affect of code development decisions that are routed through the accounting department and upper management. But with Java and current open source efforts, anyone should be able to start development or work from home using open source and migrate over to vendor supplied products later. I am now a consultant and have become used to carrying a laptop around. In fact, due to a recent client's development environment issues, I did the first month's development completely on the laptop and shared files at work through a network drive. The only problem I had was converting an Oracle schema to Pointbase (don't laugh... it got me through unit testing) Recently, I have been wondering if there are any sourceforge like environments that can be used on a temporary basis for doing proprietary development. Ya know... to sort of get around roadblocks with corporate resources. :) -Tony Mark Galbreath [EMAIL PROTECTED] wrote:You read into it what you will, but the topic was software innovation in corporate America. I was making an extreme point. If this offends you, perhaps you take yourself too seriously. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:13 PM To: [EMAIL PROTECTED] Subject: RE: [OT] how do people work in project with one server for development Now we're onto Hitler? This is way too off topic even for posts designated [OT]. David From: Mark Galbreath Reply-To: Struts Users Mailing List To: 'Struts Users Mailing List' Subject: RE: [OT] how do people work in project with one server for development Date: Thu, 6 Feb 2003 11:44:27 -0500 That is way too simplistic, dude. Creativity is the catalyst for innovation. Stifle developers' ability to be creative and you lose innovation. American innovation have been so great over the centuries because business owners realized the value in RD and being the first to patent a new innovation. That's what drove productivity and profits from the invention of the power loom to the cotton gin, interchangeable parts, Taylorism (scientific management), robotics, and software. What Simon is talking about are companies (or divisions) run by short-sighted people interested more often than not with their immediate personal welfare and/or the blind enforcement of a theoretical policy. Even a fascist
s2s -- sending responses to servers without a request.
Is there any reason why I could not send a response to another server without a request by having a background servlet do something akin to the following? String str = key=value; URL url = new URL(http://www.otherserver.com/dowacka.do;); URLConnection conn = url.openConnection(); conn.setDoOutput(true); conn.setRequestProperty(Content-Type,application/x-www-form-urlencoded); PrintWriter pw = new PrintWriter(conn.getOutputStream()); pw.println(str); pw.close(); Thanks for any response. Micael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Responses without Requests
Is there any reason why I could not send a response to another server without a request by having an automated background servlet do something akin to the following when something happened? Could this be part of the business logic of a action in Struts, so that more than one response could be sent to a request? String str = key=value; URL url = new URL(http://www.otherserver.com/dowacka.do;); URLConnection conn = url.openConnection(); conn.setDoOutput(true); conn.setRequestProperty(Content-Type,application/x-www-form-urlencoded); PrintWriter pw = new PrintWriter(conn.getOutputStream()); pw.println(str); pw.close(); I take it, also, if I am not mistaken, that I could do this securely with https? And, lastly, I assume that I could then get a confirmation of receipt, or whatever, with something like: BufferedReader in = new BufferedReader( new InputStreamReader(conn.getInputStream())); String results = in.readLine(); in.close(); That right? Please correct anything, make any suggestions, etc. Micae LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put ApplicationResources when deploying app as a jar
Putting them in a jar file is not mandatory, and I cannot tell why you would like that requirement. You can though. The jar versus non-jar issue is not the issue about where to put them. You put them the same place in a jar as you would outside the jar. You can put them anywhere inside classes (they have to be reached on a classpath is the essential point) you want. The bottom line is that the where to put them is not relevant to the jar issue. Same inside as outside a jar. There is a structure inside a jar. Maybe I don't get what you are saying. My experience is that when I reply to messages like this and try to help the questioner inevitably flames me big time. I hope this is the exception. At 09:44 PM 2/1/03 +0100, you wrote: So far I have placed the ApplicationResources in the class' structure at the same level as the web components using struts. But I now want to deploy the application as a .jar and I cant find out where to put the language files. I hope that placing them in the jar file is mandatory. Thanks in advance. Med venlig hilsen / Best regards Søren Dalby LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Pet Store rewritten with Flash Remoting Front End
I went to your website, celeste, and could not see the flash component you are talking about. Have I got it mixed up? At 03:34 PM 1/27/03 -0500, you wrote: But wouldn't the world be better off if someone shut JRun down? Dear God will some one stop it. BAL - Original Message - From: Haseltine, Celeste [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, January 27, 2003 3:16 PM Subject: Java Pet Store rewritten with Flash Remoting Front End For all those who are considering Flash remoting as another GUI alternative to HTML, here is the URL to the Java pet store that Macromedia reworked with a Flash remoting front end. You can download the code and run it on your local machine also, if you are interested. The second link is for FAQ http://www.macromedia.com/desdev/mx/blueprint/ http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html#pm_accessibl e We been using Macromedia JRUN server as our application server for the past two years, and have used some of the macromedia products in our shop, along with Eclipse 2.02, for our JSP, Servlet, EJB development. I did look at using Flash remoting for our current project when it came out a year ago, but decided to give it some time in the market place before actually using it. My main concern with Flash remoting at that time was how long it would take for someone on a modem (vs a T1 or cable modem) to navigate and use our web site. If anyone does actually use it in their apps instead of HTML, I would be interested in knowing how it worked out for both you and your customers. One last note. It is rumored in the DFW, TX area that Microsoft is considering a hostile takeover of Macromedia, and that if this does happen, that Flash remoting would be bundled with .NET, and would not continue to support J2EE applications. Since we use JRUN as our application server, I've been keeping my ear to the ground regarding these rumors, as JRUN is another one of the Macromedia suite of products that MS would probably kill, if a hostile takeover was successful. That is something that probably should be taken into consideration if you choose to utilize this technology in any new application. I don't know about any of the rest of you, but I have been burned by using proprietary code in previous apps, and been left holding the bag and no source code, when the company went bankrupt. I now utilize and advocate open source code whenever possible. Celeste -Original Message- From: Eric Rizzo [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 1:09 PM To: Struts Users Mailing List Subject: Re: Flash+Struts how? Mark Galbreath wrote: Only a weenie programmer would use Flash with Struts...] Nice attitude. I hope I misunderstood that reply... Anyway, to answer the original inquiry: A part of the UI of our app is a flash movie, and we chose to integrate it using XML. The Flash sends requests to our struts actions (they look like any other URL to Flash), but these particular actions return XML instead of HTML. The Flash parses the XML and applies it to the UI appropriately. Works quite well and with no noticeable CPU usage on the client - a problem we had with the previous, complicated HTML interface for this part of the app. There is also a relatively new feature of Flash MX that provides integration between Flash and J2EE apps without using XML in between. Although I haven't looked at it in detail, I bet it can be used with Struts as well as ordinary servlets. See http://www.javaworld.com/javaworld/jw-01-2003/jw-0117-flash_p.html HTH, Eric -- Eric Rizzo Software Architect Jibe, Inc. http://www.jibeinc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Image References From JSP Pages inside WEB-INF
How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Image References From JSP Pages inside WEB-INF
Okay! I'm with you. How do you do that? What about includes? Frames? Can you give me a bit of an overview of what the mechanism here are? Sort of like learning how to fish rather than getting a fish? Thanks, Jim. Micael At 04:17 PM 1/24/03 -0500, you wrote: 3 words..don't do that. If you must secure images, css, etc, then a filter is your best bet. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Image References From JSP Pages inside WEB-INF How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Image References From JSP Pages inside WEB-INF
Can you expand on this a bit? I am not sure what you are doing here. I use Tomcat out of the box. What I want to do is to avoid any access from the outside to any resource without having to go through WEB-INF. At 04:17 PM 1/24/03 -0500, you wrote: I have found that the best way to do this is to let Apache handle image access using the DocumentRoot in the httpd.conf file. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Image References From JSP Pages inside WEB-INF How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Image References From JSP Pages inside WEB-INF
I take it that the filter solution here, which Jim Mitchell has also suggested, is different from the virtual host solution? At 04:34 PM 1/24/03 -0500, you wrote: When you set up a Virtual Host in Apache you can do the following: VirtualHost IP_Address:Port_No ServerAdmin [EMAIL PROTECTED] DocumentRoot Path to Images ServerName servername /VirtualHost You could set up a filter in your web.xml doing the following: filter filter-name='ImageFilter' filter-class='com.companyname.applicationname.filters.ImageFilter'/ -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:28 PM To: Struts Users Mailing List Subject: RE: Image References From JSP Pages inside WEB-INF Can you expand on this a bit? I am not sure what you are doing here. I use Tomcat out of the box. What I want to do is to avoid any access from the outside to any resource without having to go through WEB-INF. At 04:17 PM 1/24/03 -0500, you wrote: I have found that the best way to do this is to let Apache handle image access using the DocumentRoot in the httpd.conf file. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Image References From JSP Pages inside WEB-INF How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Image References From JSP Pages inside WEB-INF
What does this have to do with my question, Vinay? Am I missing something, or did you just ask another question using the same Subject I have used? If so, that is just confusing, and probably not a good idea. If no, then I am not seeing the relationship. Thanks. At 04:56 PM 1/24/03 -0500, you wrote: How do I use collections in html:options i want to get rid of big list of html:option's . Help appreciated Thanks in advance Vinay - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 24, 2003 4:42 PM Subject: RE: Image References From JSP Pages inside WEB-INF I take it that the filter solution here, which Jim Mitchell has also suggested, is different from the virtual host solution? At 04:34 PM 1/24/03 -0500, you wrote: When you set up a Virtual Host in Apache you can do the following: VirtualHost IP_Address:Port_No ServerAdmin [EMAIL PROTECTED] DocumentRoot Path to Images ServerName servername /VirtualHost You could set up a filter in your web.xml doing the following: filter filter-name='ImageFilter' filter-class='com.companyname.applicationname.filters.ImageFilter'/ -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:28 PM To: Struts Users Mailing List Subject: RE: Image References From JSP Pages inside WEB-INF Can you expand on this a bit? I am not sure what you are doing here. I use Tomcat out of the box. What I want to do is to avoid any access from the outside to any resource without having to go through WEB-INF. At 04:17 PM 1/24/03 -0500, you wrote: I have found that the best way to do this is to let Apache handle image access using the DocumentRoot in the httpd.conf file. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Image References From JSP Pages inside WEB-INF How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic
Re: Image References From JSP Pages inside WEB-INF
Okay, thanks. No worries. At 05:16 PM 1/24/03 -0500, you wrote: Sorry Miceal , It was not intended to be in this topic, my mistake .Please ignore this I sent another new question. Thanks vinay - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 24, 2003 5:13 PM Subject: Re: Image References From JSP Pages inside WEB-INF What does this have to do with my question, Vinay? Am I missing something, or did you just ask another question using the same Subject I have used? If so, that is just confusing, and probably not a good idea. If no, then I am not seeing the relationship. Thanks. At 04:56 PM 1/24/03 -0500, you wrote: How do I use collections in html:options i want to get rid of big list of html:option's . Help appreciated Thanks in advance Vinay - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 24, 2003 4:42 PM Subject: RE: Image References From JSP Pages inside WEB-INF I take it that the filter solution here, which Jim Mitchell has also suggested, is different from the virtual host solution? At 04:34 PM 1/24/03 -0500, you wrote: When you set up a Virtual Host in Apache you can do the following: VirtualHost IP_Address:Port_No ServerAdmin [EMAIL PROTECTED] DocumentRoot Path to Images ServerName servername /VirtualHost You could set up a filter in your web.xml doing the following: filter filter-name='ImageFilter' filter-class='com.companyname.applicationname.filters.ImageFilter'/ -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:28 PM To: Struts Users Mailing List Subject: RE: Image References From JSP Pages inside WEB-INF Can you expand on this a bit? I am not sure what you are doing here. I use Tomcat out of the box. What I want to do is to avoid any access from the outside to any resource without having to go through WEB-INF. At 04:17 PM 1/24/03 -0500, you wrote: I have found that the best way to do this is to let Apache handle image access using the DocumentRoot in the httpd.conf file. -Original Message- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Image References From JSP Pages inside WEB-INF How do you reference images, or other resources, from JSP pages inside WEB-INF if you want the images inside WEB-INF too? LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained