Re: Another questions about checkboxes
Hi Alex! Have you solved your problem yet? I was facing the same situation a cuple of weeks ago. All values from your formbean are sent in the request as parameters when you press submit - but checkbox values are only in the request if they have the value on = they are checked. The reset method works like this: values are first set to false by the reset method and then, if they are present i the request they receive value true, otherwise the have the value false. Is your problem the following: when you come to your second page the values are correct but when you submit this page you go to an action class that forwards to the first page - is that correct or do you go via two action classes to reach the first page from the second page? Anyway, since the formbean values are present as parameters in scope request, they are not found the last time the reset method is called. First the reset method sets the checkbox values to false, after that no parameters are found in the request and thats way the final checkbox value is false, even though it was true on your second page. I solved this problem by checking the formbean's checkbox values in the first action class after my second page and when I forwarded to a second action class before my first page was shown again I added parameters to the requset manually if the checkbox value was on = true. When the reset method was called these parameters were found and the formbean was populated in a correct way. Good luck / Linnéa By the way: A while ago someone sent an alternative version of the doStartTag that should solve the checkbox problem: new version for doStartTag() method : public int doStartTag() throws JspException { // Create an appropriate hidden element to put it before the input element // with value false. This will force to uncheck in the ActionForm if the checkbox // is not checked StringBuffer resultsHidden = new StringBuffer(input type=\hidden\); // Create an appropriate input element based on our parameters StringBuffer results = new StringBuffer(input type=\checkbox\); resultsHidden.append( name=\); results.append( name=\); // Indexed properties handling if (indexed != null) { IterateTag iterateTag = (IterateTag) findAncestorWithClass(this, IterateTag.class); if (iterateTag == null) { // this tag should only be nested in iteratetag, if it's not, throw exception JspException e = new JspException(messages.getMessage(indexed.noEnclosingIterate)); RequestUtils.saveException(pageContext, e); throw e; } if (name != null) { results.append(name); resultsHidden.append(name); } results.append([); results.append(iterateTag.getIndex()); results.append(]); resultsHidden.append([); resultsHidden.append(iterateTag.getIndex()); resultsHidden.append(]); if (name != null) { results.append(.); resultsHidden.append(.); } } // End of Indexed properties handling results.append(this.property); results.append(\); resultsHidden.append(this.property); resultsHidden.append(\ value=\false\ /); if (accesskey != null) { results.append( accesskey=\); results.append(accesskey); results.append(\); } if (tabindex != null) { results.append( tabindex=\); results.append(tabindex); results.append(\); } results.append( value=\); if (value == null) results.append(on); else results.append(value); results.append(\); Object result = RequestUtils.lookup(pageContext, name, property, null); if (result == null) result = ; if (!(result instanceof String)) result = result.toString(); String checked = (String) result; if (checked.equalsIgnoreCase(true) || checked.equalsIgnoreCase(yes) || checked.equalsIgnoreCase(on)) results.append( checked=\checked\); results.append(prepareEventHandlers()); results.append(prepareStyles()); results.append(); // Print this field to our output writer ResponseUtils.write(pageContext, results.toString() + resultsHidden.toString()); // Continue processing this page this.text = null; return (EVAL_BODY_TAG); } Linnéa Ahlbeck - Software Engineer phone +46 40 664 29 70 fax +46 40 30 32 62 mobile +46 708 96 14 56 Appium AB - Adelgatan 5, SE-211 22 Malmö, Sweden www.appium.com - Original Message - From: Alex Colic [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 4:04 PM Subject: Another questions about checkboxes Hi, I have a form that has a Boolean property that in the form reset method is reset to false. This form is used over two pages. In the first page there is a checkbox that the user
Re: selecting a row in a table with a checkbox
Hi, There're basically two approaches to this problem. 1)Use Javascript on the client side: You may group each row of table including all its elements into a separate form without submit button, and then you can use an independent button in a dedicated form and inside its onclick() event, you can test the current state of checkboxes for each row. If it's checked, you can then submit its associated form. If you have to deal with the situation where multiple checkboxes can be checked at the same time. You would rather use the server side solution. 2)Use server side programming: You can first detect the values for checkbox and start to process the associated group of elements. Note that in this case, checkbox request parameter can have multiple values, I personally would rather use the j2ee standard request.getParameters() instead of Struts method. Hope this helps, - Original Message - From: l str [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:42 PM Subject: selecting a row in a table with a checkbox Hi, I have a question about usage of a checkbox. I have looked in the archive whether somebody already posted the problem, but I couldn't find anything. My problem is: I have a table where the rows contain information and some cells have to be filled in by a user. When the checkbox in the first cell of a row is checked, I need to get all the information in that row. But how do I do that? How do I know which row is selected? And how do I get the information that is filled in by the user? Any help would be welcome. Thanks a lot, Lilian Teitsma _ Meld je aan bij de grootste e-mailservice wereldwijd met MSN Hotmail: http://www.hotmail.com/nl -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Forwarding Data For A Form
According to my understanding of the problem, this is really a very typical requirement that the Action class needs to pass some information to its view (jsps). All you have to do is to set the userid as an attribute of request(or session) scope. And then in the login.jsp, you can use bean:write tag to pick up its value. Further, in your case, you may want to use this tag for both displaying and setting the value of a hidden element. Hope this helps, - Original Message - From: James Dasher [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 7:15 AM Subject: RE: Forwarding Data For A Form If I am not mistaken, the form is passed into the action.perform() as a parameter. You should be able to get/set your bean properties there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:51 PM To: Struts Users Mailing List Subject: Forwarding Data For A Form How can I get an action form to display data generated by an action? I have a Registration action that updates a database and generates a user id. The perform() method of that action forwards an ActionForward object mapped to a Login form. I want the Login form to display the generated user ID from the Registration action. I'm not sure how to pass along the user ID so it will automatically be picked up by the Login form and displayed in the proper input field. Thanks. Jack -- 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]
Re: Array of checkboxes in JSP - props in bean
Hi, I have successfully use String as type for property of checkbox. It works exactly the way I expected. That is it's initial value is null and when the checkbox is checked, it will have the value of on, which is the default of html:checkbox and the html input element will now have one more attribute called checked=checked. Hope this helps, - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 1:25 PM Subject: Re: Array of checkboxes in JSP - props in bean Shengmeng == Shengmeng Liu [EMAIL PROTECTED] writes: Shengmeng Hi, Shengmeng I agree with you that the property attribute for form element is overloaded to Shengmeng have two meanings. It determines both: Shengmeng 1)which getter method will be invoked on the form bean to obtain its initial value; Shengmeng 2)which setter method will be invoked on the form bean (or the name of the request Shengmeng parameter will be used for this element) to store its current value. Shengmeng Well, I aslo feel that handling situations where multiple checkboxes share the same Shengmeng name is quite confusing and complex in Struts, as the form-bean property refers to Shengmeng a SINGLE data row, but the request parameter can have an ARRAY of values. Shengmeng It seems to me that one straightforward workaround for this is to avoid multiple Shengmeng checkboxes sharing the same name, by using different names for all those fields. Shengmeng Such as: Shengmeng group_check1=ongroup_check2=on Shengmeng where value can only be on and parameter name now indicates its real value. And how do you vary the property names when you're populating the components from a bean collection in an iterate loop? It seems like html:multibox would be applicable here, but I can't see from the documentation exactly how it is used. The situation seems to be the same with html:radio. Ideally, when I have a set of radio buttons, and I'm using logic:iterate to iterate over them, I would want the name of the component to reflect the choice name I'm making, and the value should be the choice value, which is NOT on, off, true, or false. I would need an attribute of my bean to indicate whether the radio button is initially on or not. One point of confusion is that the documentation for html:checkbox mentions that property needs to be a boolean, but the doc for html:radio doesn't mention this. I would assume it also needs to be a boolean, but I'm not certain. When this form is submitted, I would want the request parameter to be the same as my choice name, and the value to be my choice value. For instance, if I have a page to allow a user to select a drink size of small, medium, or large, I would use a collection of SizeChoice beans, each of which has fields like this: String sizeId; String sizeDisplay; boolean enabled; So, I would want the button to be ON if enabled is true, but I want the submitted request parameter name to be drinkSize and a value of medium (or small or large). However, it appears that I can't do anything like this with html:radio. By specifying the property value of enabled, that sets the name of the request parameter to enabled. The resulting value will need to be a boolean string, like on or true. If I have more than one radio button in the group, then they'll all have the same name. I would assume I'm trying to use this in the wrong way. I would appreciate some guidance and examples on the proper way to use this component. I can't seem to find good examples using radio buttons or checkboxes. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Array of checkboxes in JSP - props in bean
Hi, I have successfully use String as type for property of checkbox. It works exactly the way I expected. That is it's initial value is null and when the checkbox is checked, it will have the value of on, which is the default of html:checkbox and the html input element will now have one more attribute called checked=checked. Hope this helps, - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 1:25 PM Subject: Re: Array of checkboxes in JSP - props in bean Shengmeng == Shengmeng Liu [EMAIL PROTECTED] writes: Shengmeng Hi, Shengmeng I agree with you that the property attribute for form element is overloaded to Shengmeng have two meanings. It determines both: Shengmeng 1)which getter method will be invoked on the form bean to obtain its initial value; Shengmeng 2)which setter method will be invoked on the form bean (or the name of the request Shengmeng parameter will be used for this element) to store its current value. Shengmeng Well, I aslo feel that handling situations where multiple checkboxes share the same Shengmeng name is quite confusing and complex in Struts, as the form-bean property refers to Shengmeng a SINGLE data row, but the request parameter can have an ARRAY of values. Shengmeng It seems to me that one straightforward workaround for this is to avoid multiple Shengmeng checkboxes sharing the same name, by using different names for all those fields. Shengmeng Such as: Shengmeng group_check1=ongroup_check2=on Shengmeng where value can only be on and parameter name now indicates its real value. And how do you vary the property names when you're populating the components from a bean collection in an iterate loop? It seems like html:multibox would be applicable here, but I can't see from the documentation exactly how it is used. The situation seems to be the same with html:radio. Ideally, when I have a set of radio buttons, and I'm using logic:iterate to iterate over them, I would want the name of the component to reflect the choice name I'm making, and the value should be the choice value, which is NOT on, off, true, or false. I would need an attribute of my bean to indicate whether the radio button is initially on or not. One point of confusion is that the documentation for html:checkbox mentions that property needs to be a boolean, but the doc for html:radio doesn't mention this. I would assume it also needs to be a boolean, but I'm not certain. When this form is submitted, I would want the request parameter to be the same as my choice name, and the value to be my choice value. For instance, if I have a page to allow a user to select a drink size of small, medium, or large, I would use a collection of SizeChoice beans, each of which has fields like this: String sizeId; String sizeDisplay; boolean enabled; So, I would want the button to be ON if enabled is true, but I want the submitted request parameter name to be drinkSize and a value of medium (or small or large). However, it appears that I can't do anything like this with html:radio. By specifying the property value of enabled, that sets the name of the request parameter to enabled. The resulting value will need to be a boolean string, like on or true. If I have more than one radio button in the group, then they'll all have the same name. I would assume I'm trying to use this in the wrong way. I would appreciate some guidance and examples on the proper way to use this component. I can't seem to find good examples using radio buttons or checkboxes. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Looking for a clean required-bean handler
Hi, definitely works. It is the way I recommend to our programmers. Makes it easy to prepopulate all the forms on jsp's. good luck Alexander -Original Message- From: Michael Sabitov [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 12:49 AM To: 'Struts Users Mailing List' Subject: RE: Looking for a clean required-bean handler This is exactly what I'm trying to implement in my current project. Although I want to use a little bit different approach for invoking next before action: Every after action would have a result (for example success, error etc.) and it would have an action mapping for these results in struts-config.xml. These mappings would forward not to the next .jsp page but to the next before action. This before action would have a regular action mapping to its corresponding .jsp page. Would it work? I don't know yet. I'll create a proof of concept in next couple of days and see... Thanks, Michael. -Original Message- From: Reid Pinchback [mailto:[EMAIL PROTECTED]] Sent: Monday, December 31, 2001 5:26 PM To: Struts Users Mailing List Subject: Re: Looking for a clean required-bean handler Thanks for the pointer, I'll check it out! I also had a few thoughts about a Struts solution on the train home. See if you think this makes sense. 1. Create before and after actions. 2. after actions look like what people are used to for processing forms in Struts, only a bit simpler. The job of an after action is to consume any form beans and generate appropriate side-effects *independent* of what the next page might be. So, in an EJB app you would make state changes, and in a login page you might stuff some kind of User javabean into the session context because you know all pages would go looking for it. Once done, the after action would look for a magic request parameter; if present that would provide the name of the next action (basically a return path), otherwise transition out in whatever way(s) would be normal for the action. 3. each before action only preps for the display of one particular JSP page and inherits from a base class that adds a bit of simple workflow support to the basic Action. All such subclasses provide lists of bean names to look for and the context in which they should be found. The parent class functionality iterates over those lists, and if anything is missing then the magic return parameter is set and an action is invoked to supply the missing bean. The action could be derived by applying a naming convention to the bean name (e.g. myBean - /before/myBean.do). Once you have the required beans, you do any other setup work required for the page, and then forward to the JSP page. Now, there is some complexity to that magic return value that I'm glossing over, but aside from that I think this would work. It results in an extra K before action classes, where K is the number of web pages in your application. It would also end up with another K action mapping entries in struts-config.xml. On the other hand, all the after action classes would be simpler and more independent of each other. - Do You Yahoo!? Send your FREE holiday greetings online at Yahoo! Greetings. -- 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]
Re: How to set Dynamic hyper link using html:link
Hi dennis - not sure - but try, html:link forward='bean:write name=menu property=menuAction/' (using single quote marks). Keith. --- Lee, Dennis [EMAIL PROTECTED] wrote: Hi , I would like to know the way to set a dynamic hyper link using Struts html: I am trying to do it as follows: html:link forward=bean:write name=menu property=menuAction/ bean:write name=menu property=menuDesc/ /html:link But it will return a JspParser Exception : org.apache.jasper.compiler.ParseException: C:\jakarta-tomcat-3.2.3\webapps\mpfs\mainMenu.jsp(28,47) Attribute menu has no value Thanks in advance, Regards, Dennis ** This message and any files transmitted with it are confidential and may be privileged and/or subject to the provisions of privacy legislation. They are intended solely for the use of the individual or entity to whom they are addressed. If the reader of this message is not the intended recipient, please notify the sender immediately and then delete this message. You are notified that reliance on, disclosure of, distribution or copying of this message is prohibited. Bank of Bermuda ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Creating reports in PDF format
The Keiuken package is within a larger project called cappucino. Unfortunately all the docs are in japanese but if you look at the code you can get the gist HTH - Original Message - From: Jin Bal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 10:00 AM Subject: Re: Creating reports in PDF format There's a fairly obscure but useful japanese package called keisuken that contains an excel reader/writer - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Creating reports in PDF format Hello, I have created a struts based web application which, among other things, allows users to create reports based on certain selection criteria. A new user requirement has come up which requires the reports to be displayed in PDF format (and Excel). Has anybody done anything similar in the past? I would greatly appreciate your help. I recall seeing emails regarding a simillar issue, but I can't find them in the mail archives! Please help. Thanks. Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.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] -- 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]
RE: How to set Dynamic hyper link using html:link
Hi, Thanks. But it still not work. I found that it works if I use %=menu.getMenuAction()%... e.g. logic:iterate id=menu indexId=i name=user property=menus type=MenuDataBean html:link forward=%=menu.getMenuAction()% bean:write name=menu property=menuDesc/ /html:link /logic:iterate Any suggestions ? Best Regards, Dennis Lee -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 6:13 PM To: Struts Users Mailing List Subject: Re: How to set Dynamic hyper link using html:link Hi dennis - not sure - but try, html:link forward='bean:write name=menu property=menuAction/' (using single quote marks). Keith. --- Lee, Dennis [EMAIL PROTECTED] wrote: Hi , I would like to know the way to set a dynamic hyper link using Struts html: I am trying to do it as follows: html:link forward=bean:write name=menu property=menuAction/ bean:write name=menu property=menuDesc/ /html:link But it will return a JspParser Exception : org.apache.jasper.compiler.ParseException: C:\jakarta-tomcat-3.2.3\webapps\mpfs\mainMenu.jsp(28,47) Attribute menu has no value Thanks in advance, Regards, Dennis ** This message and any files transmitted with it are confidential and may be privileged and/or subject to the provisions of privacy legislation. They are intended solely for the use of the individual or entity to whom they are addressed. If the reader of this message is not the intended recipient, please notify the sender immediately and then delete this message. You are notified that reliance on, disclosure of, distribution or copying of this message is prohibited. Bank of Bermuda ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.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]
Re: Another questions about checkboxes
Hi Alex! Have you solved your problem yet? I was facing the same situation a cuple of weeks ago. All values from your formbean are sent in the request as parameters when you press submit - but checkbox values are only in the request if they have the value on = they are checked. The reset method works like this: values are first set to false by the reset method and then, if they are present i the request they receive value true, otherwise the have the value false. Is your problem the following: when you come to your second page the values are correct but when you submit this page you go to an action class that forwards to the first page - is that correct or do you go via two action classes to reach the first page from the second page? Anyway, since the formbean values are present as parameters in scope request, they are not found the last time the reset method is called. First the reset method sets the checkbox values to false, after that no parameters are found in the request and thats way the final checkbox value is false, even though it was true on your second page. I solved this problem by checking the formbean's checkbox values in the first action class after my second page and when I forwarded to a second action class before my first page was shown again I added parameters to the requset manually if the checkbox value was on = true. When the reset method was called these parameters were found and the formbean was populated in a correct way. Good luck / Linnéa By the way: A while ago someone sent an alternative version of the doStartTag that should solve the checkbox problem: new version for doStartTag() method : public int doStartTag() throws JspException { // Create an appropriate hidden element to put it before the input element // with value false. This will force to uncheck in the ActionForm if the checkbox // is not checked StringBuffer resultsHidden = new StringBuffer(input type=\hidden\); // Create an appropriate input element based on our parameters StringBuffer results = new StringBuffer(input type=\checkbox\); resultsHidden.append( name=\); results.append( name=\); // Indexed properties handling if (indexed != null) { IterateTag iterateTag = (IterateTag) findAncestorWithClass(this, IterateTag.class); if (iterateTag == null) { // this tag should only be nested in iteratetag, if it's not, throw exception JspException e = new JspException(messages.getMessage(indexed.noEnclosingIterate)); RequestUtils.saveException(pageContext, e); throw e; } if (name != null) { results.append(name); resultsHidden.append(name); } results.append([); results.append(iterateTag.getIndex()); results.append(]); resultsHidden.append([); resultsHidden.append(iterateTag.getIndex()); resultsHidden.append(]); if (name != null) { results.append(.); resultsHidden.append(.); } } // End of Indexed properties handling results.append(this.property); results.append(\); resultsHidden.append(this.property); resultsHidden.append(\ value=\false\ /); if (accesskey != null) { results.append( accesskey=\); results.append(accesskey); results.append(\); } if (tabindex != null) { results.append( tabindex=\); results.append(tabindex); results.append(\); } results.append( value=\); if (value == null) results.append(on); else results.append(value); results.append(\); Object result = RequestUtils.lookup(pageContext, name, property, null); if (result == null) result = ; if (!(result instanceof String)) result = result.toString(); String checked = (String) result; if (checked.equalsIgnoreCase(true) || checked.equalsIgnoreCase(yes) || checked.equalsIgnoreCase(on)) results.append( checked=\checked\); results.append(prepareEventHandlers()); results.append(prepareStyles()); results.append(); // Print this field to our output writer ResponseUtils.write(pageContext, results.toString() + resultsHidden.toString()); // Continue processing this page this.text = null; return (EVAL_BODY_TAG); } Linnéa Ahlbeck - Software Engineer phone +46 40 664 29 70 fax +46 40 30 32 62 mobile +46 708 96 14 56 Appium AB - Adelgatan 5, SE-211 22 Malmö, Sweden www.appium.com
Where can I find html:messages ?
I want to customise the errors messages for invalid data entry. Where can I get my hands on the html:messages tag? This tag does not exists Struts 1.0 ? Or how can use the present tags to iterate through the error messages? -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ Mathematics is essentially the study of islands of === disparate subjects in a sea of ignorance. || ! || Andrew Wiles __/\/\__||_!_||__ -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Creating reports in PDF format
Both the options iText and FOP does not work so well for creating large PDF files. You will end up with getting an Out of memory error. These option are good if you want to create a few pages. If this is not the case you should look into the various third party tools available. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:00 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Creating reports in PDF format There's a fairly obscure but useful japanese package called keisuken that contains an excel reader/writer - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Creating reports in PDF format Hello, I have created a struts based web application which, among other things, allows users to create reports based on certain selection criteria. A new user requirement has come up which requires the reports to be displayed in PDF format (and Excel). Has anybody done anything similar in the past? I would greatly appreciate your help. I recall seeing emails regarding a simillar issue, but I can't find them in the mail archives! Please help. Thanks. Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.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] -- 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]
RE: Creating reports in PDF format
Just create an HTML table with the content you want, and set the mime-type to application/ms-excel (or something like that, don't know it by heart). Et voila, the browser opens excel and shows you the stuff. Won't work if the user doesn't have excel installed, but then again, he wouldn't be able to read the .xls file anyway. hth, tomK - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Creating reports in PDF format Hello, I have created a struts based web application which, among other things, allows users to create reports based on certain selection criteria. A new user requirement has come up which requires the reports to be displayed in PDF format (and Excel). Has anybody done anything similar in the past? I would greatly appreciate your help. I recall seeing emails regarding a simillar issue, but I can't find them in the mail archives! Please help. Thanks. Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- 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]
Parser error while testing struts-layout
Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method parse(Ljava/io/InputStream;L org/xml/sax/helpers/DefaultHandler;)V not found at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Do i have any issue with my xml parser witch is xerces 1.4.2? Need help please...! Alexandre Duprat SOPRA. Direction France Sud. Bordeaux tel : 05 57 26 00 91 [EMAIL PROTECTED] ++ | Ce courrier ainsi que les fichiers joints sont confidentiels. | | Si vous avez recu ce courrier par erreur, veuillez en informer | | l'administrateur du systeme : [EMAIL PROTECTED] | | - | | Ce message confirme que le courrier a passe le controle| | antivirus du relais de messagerie Internet avec succes.| ++ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please can someone post an example of there Environment setup 4 tomcat 4- Sorted Now
Geoffrey Mroz wrote: If I understood you right: The STARTUP script is in the C:\jakarta-tomcat-4.0.1\bin directory. If you are not directly in the \bin directory when you run it, you will need to include C:\jakarta-tomcat-4.0.1\bin somewhere in your path. Hope that helps. -- Geoff -Original Message- From: kuma.cra [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 9:09 AM To: Struts Users Mailing List Subject: Please can someone post an example of there Environment setup 4 tomcat 4 I have deleted the previous install of tomcat 3.2.3 I have installed tomcat 4 . Thus in my environment set-up i have the following Tomact unarchived and resides in C:\jakarta-tomcat-4.0.1 rem set %CATALINA_HOME%\bin\startup set CATALINA_HOME=C:\jakarta-tomcat-4.0.1 set ANT_HOME=C:\ant\jakarta-ant-1.3 set classpath=%ANT_HOME%\lib\ant.jar set PATH=%PATH%;%ANT_HOME%\bin set JAVA_HOME=C:\JDK1.3 Thus on running /DOUBLE-CLICK the script STARTUP get a Bad command or file nameon my Windows 98 Box. I have tiried various combo paths to no avail example below set TOMCAT_HOME=C:\jakarta-tomcat-4.0.1 set classpath=%TOMCAT_HOME%\bin set PATH=%PATH%;%TOMCAT_HOME%\bin set JAVE_HOME=C:\JDK1.3 Also tried and checked the three most common / likely reasons in the userguide . Nevertheless i assume it is my path any suggestions or can someone post an example of there Win98 Environment variable in Autoexec.bat Cheers Chuck Amadi Cheers 4 your reply i will try that when i get home . Nevertheles on my Win 98 Works Station i (rem the previous set paths in envirnment variables ) and just had set CATALINA_HOME=C:\ jakarta-tomcat-4.0.1 set JAVA_HOME=C:\JDK1.3 Thus works fine . Thank Chuck Amadi IT Systems Programmer -- 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]
button tag
Hi, I have a question about the html: button tag. The discription about the property attribute of that tag is the following: Name of the request parameter that will be included with this submission, set to the specified value.. And additionally the value attribute has the following description: Value of the label to be placed on this button. This value will also be submitted as the value of the specified request parameter. As far as I understand these descriptions I would expect the value of the specified parameter in the HttpServletRequest object. That means when I call the getParameter(String) method with the specified name of that button tag I would expect to retrieve the value specified in the tag. I tried to do this but it didn't work. Am I wrong with my assumption. Peter DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session Timeout question
How can one accurately detect that a session has timedout? I have a custom tag that is automatically included on every jsp page we have. Its job is to detect whether a session has timedout and if it has, to redirect the user to a different page to relogin or whatever. I think it is the case that when I call request.getSession(false) it is still creating a new session if the old one has expired. Any thoughts on how to approach this issue? I don't have access to the name of a login token for example because our sign-on functionality is just a drop in without the source code. Thanks, Todd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem using the logic:equal tag
Hi Struters, I have a problem using the logic:equal tag. I have a bean collection (Array List of value/label pairs of String's - used in an html:select) and I'm using the logic:iterate tag to iterate over the collection. Whilst looping over the collection, I want to test to see if the value of the collection matches the value of another bean (not a collection but just a single String value). If so, it will display the contents of that collection. I have coded the jsp as follows: logic:iterate id=projectCollection name=projectsList logic:equal name=projectCollection property=value value='bean:write name=projectCode/' bean:write name=projectCollection property=label/br / /logic:equal /logic:iterate However, this DOES NOT APPEAR TO WORK. If I replace value='bean:write name=projectCode/' with value=PH (i.e. a hardcoded value) then it works. Needless to say, if I display the contents of the bean using bean:write name=projectCode/ on it's own, it displays PH as expected (without quotes). It also seems odd that I tried playing around with declaring variables within JSP and using that within the logic:equal tag as follows but it also does not give the desired effect: % String pcode=PH; % logic:iterate id=projectCollection name=projectsList logic:equal name=projectCollection property=value value=% =pcode % bean:write name=projectCollection property=label/br / /logic:equal /logic:iterate I'm using version 1.0 of Struts and version 3.2.1 of Tomcat. Can anyone throw any light on this? Wilson
RE: Looking for a clean required-bean handler
This is how my application is setup. I have step 1-5 and there are before and after actions for every step. The only downsize is strut will update the form twice and struts-config.xml is longer. The action classes are simplier and independent. -Original Message- From: Michael Sabitov [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 3:49 PM To: 'Struts Users Mailing List' Subject: RE: Looking for a clean required-bean handler This is exactly what I'm trying to implement in my current project. Although I want to use a little bit different approach for invoking next before action: Every after action would have a result (for example success, error etc.) and it would have an action mapping for these results in struts-config.xml. These mappings would forward not to the next .jsp page but to the next before action. This before action would have a regular action mapping to its corresponding .jsp page. Would it work? I don't know yet. I'll create a proof of concept in next couple of days and see... Thanks, Michael. -Original Message- From: Reid Pinchback [mailto:[EMAIL PROTECTED]] Sent: Monday, December 31, 2001 5:26 PM To: Struts Users Mailing List Subject: Re: Looking for a clean required-bean handler Thanks for the pointer, I'll check it out! I also had a few thoughts about a Struts solution on the train home. See if you think this makes sense. 1. Create before and after actions. 2. after actions look like what people are used to for processing forms in Struts, only a bit simpler. The job of an after action is to consume any form beans and generate appropriate side-effects *independent* of what the next page might be. So, in an EJB app you would make state changes, and in a login page you might stuff some kind of User javabean into the session context because you know all pages would go looking for it. Once done, the after action would look for a magic request parameter; if present that would provide the name of the next action (basically a return path), otherwise transition out in whatever way(s) would be normal for the action. 3. each before action only preps for the display of one particular JSP page and inherits from a base class that adds a bit of simple workflow support to the basic Action. All such subclasses provide lists of bean names to look for and the context in which they should be found. The parent class functionality iterates over those lists, and if anything is missing then the magic return parameter is set and an action is invoked to supply the missing bean. The action could be derived by applying a naming convention to the bean name (e.g. myBean - /before/myBean.do). Once you have the required beans, you do any other setup work required for the page, and then forward to the JSP page. Now, there is some complexity to that magic return value that I'm glossing over, but aside from that I think this would work. It results in an extra K before action classes, where K is the number of web pages in your application. It would also end up with another K action mapping entries in struts-config.xml. On the other hand, all the after action classes would be simpler and more independent of each other. - Do You Yahoo!? Send your FREE holiday greetings online at Yahoo! Greetings. -- 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]
[DONT BOTHER] Re: Where can I find html:messages ?
I ripped the guts of the error tag to get at the final errors messages. This will allow me now to write customised error messages in my JSP %@ page import=java.util.* % %@ page import=java.io.* % %@ page import=org.apache.struts.action.* % ... ActionErrors errors = (ActionErrors)pageContext.findAttribute( Action.ERROR_KEY ); if ( errors != null !errors.empty() ) { List errorCollection = new ArrayList(); Iterator reports = errors.get(); while ( reports.hasNext() ) { ActionError report = (ActionError) reports.next(); String message = RequestUtils.message( pageContext, Action.MESSAGES_KEY, Action.LOCALE_KEY, report.getKey(), report.getValues()); errorCollection.add( message ); } request.setAttribute(errorCollection, errorCollection ); % ul logic:iterate id=oneError name=errorCollection indexId=counter type=java.lang.String bean:write name=oneError filter=false / /logic:iterate /ul There is a lot of Scriptlet code here. Looks like it will be a tiny custom tag action project somebody. pp:errorCollection id=oneError indexId=counter bean:write name=oneError filter=false / pp:errorCollection/ Let me know how you get on! -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ Mathematics is essentially the study of islands of === disparate subjects in a sea of ignorance. || ! || Andrew Wiles _ Message History From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 03/01/2002 12:15 Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Where can I find html:messages ? I want to customise the errors messages for invalid data entry. Where can I get my hands on the html:messages tag? This tag does not exists Struts 1.0 ? Or how can use the present tags to iterate through the error messages? -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ Mathematics is essentially the study of islands of === disparate subjects in a sea of ignorance. || ! || Andrew Wiles __/\/\__||_!_||__ -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Creating reports in PDF format
IMHO you should only look to iText if page generation times are under serious scrutiny or if you're expecting more than 15 pages per PDF file (a high end box might be able to handle more, I just know that there's a certain range of pages where FOP just starts becoming dog slow). FOP also is easier to work w/ because it's like like writing an HTML page in XSL (note i'm very much a newbie w/ XSL so hopefully that speaks to how much i dislike iText). Writing a PDF document in iText is like building an HTML document purely from javascript (document.write(html); document.write(...); etc) because you have to build everything from scratch at the Java code level. Also there are some bugs within iText that we still aren't sure what's going on. We just know it's coming from iText and some very goofy things had to be done to sidestep them. FOP doesn't have the best performance (or scalability), but it affords a rapid development environment. You can get better performance from iText, but you have to realize there's probably going to be a lengthier development time involved. - Original Message - From: Rajan, Jeffy [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 7:50 AM Subject: RE: Creating reports in PDF format Both the options iText and FOP does not work so well for creating large PDF files. You will end up with getting an Out of memory error. These option are good if you want to create a few pages. If this is not the case you should look into the various third party tools available. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:00 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Creating reports in PDF format There's a fairly obscure but useful japanese package called keisuken that contains an excel reader/writer - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Creating reports in PDF format Hello, I have created a struts based web application which, among other things, allows users to create reports based on certain selection criteria. A new user requirement has come up which requires the reports to be displayed in PDF format (and Excel). Has anybody done anything similar in the past? I would greatly appreciate your help. I recall seeing emails regarding a simillar issue, but I can't find them in the mail archives! Please help. Thanks. Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.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] -- 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]
Re: Creating reports in PDF format
Do any of these tools convert from RTF to PDF? To: Struts Users Mailing List [EMAIL PROTECTED] John M. Corro cc: (bcc: Will Spies/Towers Perrin) john.corro@corner Subject: Re: Creating reports in PDF format stone.net 01/03/02 09:47 AM Please respond to Struts Users Mailing List IMHO you should only look to iText if page generation times are under serious scrutiny or if you're expecting more than 15 pages per PDF file (a high end box might be able to handle more, I just know that there's a certain range of pages where FOP just starts becoming dog slow). FOP also is easier to work w/ because it's like like writing an HTML page in XSL (note i'm very much a newbie w/ XSL so hopefully that speaks to how much i dislike iText). Writing a PDF document in iText is like building an HTML document purely from javascript (document.write(html); document.write(...); etc) because you have to build everything from scratch at the Java code level. Also there are some bugs within iText that we still aren't sure what's going on. We just know it's coming from iText and some very goofy things had to be done to sidestep them. FOP doesn't have the best performance (or scalability), but it affords a rapid development environment. You can get better performance from iText, but you have to realize there's probably going to be a lengthier development time involved. - Original Message - From: Rajan, Jeffy [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 7:50 AM Subject: RE: Creating reports in PDF format Both the options iText and FOP does not work so well for creating large PDF files. You will end up with getting an Out of memory error. These option are good if you want to create a few pages. If this is not the case you should look into the various third party tools available. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:00 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Creating reports in PDF format There's a fairly obscure but useful japanese package called keisuken that contains an excel reader/writer - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original
Re: Session Timeout question
A new session is created before your JSP is serviced, so I think that's why you're always getting a session object there. session.isNew() is an indirect but pretty good way of knowing when a session has just been created, and thus could be because the old session timed out. You can also put some kind of token into the session and look for that; if it's not there then you know it's a new sesssion and the old one must have timed out. Sean --- TODD HARNEY [EMAIL PROTECTED] wrote: How can one accurately detect that a session has timedout? I have a custom tag that is automatically included on every jsp page we have. Its job is to detect whether a session has timedout and if it has, to redirect the user to a different page to relogin or whatever. I think it is the case that when I call request.getSession(false) it is still creating a new session if the old one has expired. Any thoughts on how to approach this issue? I don't have access to the name of a login token for example because our sign-on functionality is just a drop in without the source code. Thanks, Todd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Creating reports in PDF format
Ajay: For PDF Conversions we have used a commercial Software called as RasterMaster from Snowbound. It does a pretty good job converting formats to PDF, using API calls from Java. We did have some issues with memory errors using this tool, but after increasing our Heap memory when the VM was being started, we were able to handle it. For more information, check out the web site. http://www.snowbnd.com/Products/rm_native.htm HTH. -Original Message- From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 9:56 AM To: Struts Users Mailing List Subject: Re: Creating reports in PDF format Do any of these tools convert from RTF to PDF? To: Struts Users Mailing List [EMAIL PROTECTED] John M. Corro cc: (bcc: Will Spies/Towers Perrin) john.corro@corner Subject: Re: Creating reports in PDF format stone.net 01/03/02 09:47 AM Please respond to Struts Users Mailing List IMHO you should only look to iText if page generation times are under serious scrutiny or if you're expecting more than 15 pages per PDF file (a high end box might be able to handle more, I just know that there's a certain range of pages where FOP just starts becoming dog slow). FOP also is easier to work w/ because it's like like writing an HTML page in XSL (note i'm very much a newbie w/ XSL so hopefully that speaks to how much i dislike iText). Writing a PDF document in iText is like building an HTML document purely from javascript (document.write(html); document.write(...); etc) because you have to build everything from scratch at the Java code level. Also there are some bugs within iText that we still aren't sure what's going on. We just know it's coming from iText and some very goofy things had to be done to sidestep them. FOP doesn't have the best performance (or scalability), but it affords a rapid development environment. You can get better performance from iText, but you have to realize there's probably going to be a lengthier development time involved. - Original Message - From: Rajan, Jeffy [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 7:50 AM Subject: RE: Creating reports in PDF format Both the options iText and FOP does not work so well for creating large PDF files. You will end up with getting an Out of memory error. These option are good if you want to create a few pages. If this is not the case you should look into the various third party tools available. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:00 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Creating reports in PDF format There's a fairly obscure but useful japanese package called keisuken that contains an excel reader/writer - Original Message - From: Ajay Chitre [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 27, 2001 7:20 PM Subject: RE: Creating reports in PDF format Thank you both - Fang Robert - for the info. I will look at both options - iText FOP. Looks like if I want to use FOP, I will have to create the report using XSL, right? How about Excel? In the past I have used a product called Bridge2Java from IBM to create a report in the Excel format. But as far as I know it only works on Windows based servers. My current web app is deployed on Unix box, so I don't think I can use Bridge2Java. I know this is probably going to sound stupid, but I have to ask - Is there a platform independent product that will allow me to create a report in Excel format? Once the report is created on the server I can let the user download it via browser. Has anybody done anything like this? Thanks again! -- Original Message -- Depends upon how complex the report will be. I have done some of this kind of transformation before. One API is iText, which you can find from http://www.lowagie.com/iText/. My experience with iText is that it has some bugs to deal with table if the table needs to span several pages. Other than that, it is pretty good. Also from Apache XML project, you can find FOP. FOP allows you to transform a XML-based document, normally *.fo file, into a PDF file. Hope it help. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Creating reports in PDF format Hello, I have created a struts based web application which, among other things, allows users to create reports based on certain selection criteria. A new user requirement has come up which requires the
General design question
Hi, I have a general design question. Assume a web application that represents a use case over several sites. Each of these sites have form fields. Each site has a Next and Previous button except the last an the first which only have either a Next or a Previous button. Additionally there is a navigation bar where you can navigate to each site directly. In general I would appreciate design recommendations for this kind of application. More specifically I have the following questions. - Do I need to have an extention of the org.apache.struts.action.Action class for each site. - If so, how do I manage the handling of the different button events that are coming from a specific site. Peter DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Custom tag performance
Title: Custom tag performance For a workflow system, I've created a custom tag (extending the struts BaseInputTag) that combines the functionality of the following struts tags html:text bean:message messages:present The custom tag has a property attribute and a key attribute (for the field label), and I modified the base tag readonly attribute so that it outputs the value in a span element if readonly is true, and an input element if readonly is false. The tag looks like this: ims:tradefield readonly=true width=85 key=trade.securityinfo.instrumenttype property=instrumenttype/ and produces output like this: trtd class=label align=rightInstrument Type/tdtdspan class=val style=width:85;EQUITY/span/td/tr In addition, the tag checks the ActionMessages collection to see if there is a message relating to this field, and if there is, it outputs the label in red. The tag works great; the problem is that my form has about 60 fields on it, and it's a bit slow. It seems like the custom tag approach produces a *lot* or repeated code. For instance, it looks like the ActionMessages collection is created anew for each tag. Ditto with the Action.MESSAGES_KEY bundle. Is there any way to create these things once at the top of the .jsp page, then just call them from the custom tag? Any other performance enhancing suggestions? TradeTag.java Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[ANNOUNCE] Struts Console v1.3
Struts Console version 1.3 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.3.zip This release has a couple of small new features and most notably adds support for JBuilder 4. Changes with Struts Console v1.3 *) Added ability to close all open files in standalone version. *) Updated JBuilder plugin to work with JBuilder 4. *) Updated console.sh startup script to support Cygwin. Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parser error while testing struts-layout
Jean-Noel : I just tried replacing my digester 1.0 by 1.1.1 I got a different error : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:508) at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Maybe i could try digester 1.1 but...? I would be really happy if i could use tree menu of struts-layout. -Message d'origine- De: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 15:47 À: Struts Users Mailing List; [EMAIL PROTECTED] Objet: Re: Parser error while testing struts-layout At 15:01 03/01/2002, you wrote: Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.j a va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartu p Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method parse(Ljava/io/InputStream;L org/xml/sax/helpers/DefaultHandler;)V not found at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at
RE: Session Timeout question
Also if you are using a Servlet2.3/JSP 1.2 container (e.g. tomcat 4) (not sure about earlier versions) you can register listener(s) that will listen for all the session timeouts in the system or write an object into the session that implements HttpSessionAttributeListener which will be notified when it is unbound (e.g. when the session object is about to be destroyed) Luke -Original Message- From: Sean Owen [mailto:[EMAIL PROTECTED]] Sent: 03 January 2002 14:57 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Session Timeout question A new session is created before your JSP is serviced, so I think that's why you're always getting a session object there. session.isNew() is an indirect but pretty good way of knowing when a session has just been created, and thus could be because the old session timed out. You can also put some kind of token into the session and look for that; if it's not there then you know it's a new sesssion and the old one must have timed out. Sean --- TODD HARNEY [EMAIL PROTECTED] wrote: How can one accurately detect that a session has timedout? I have a custom tag that is automatically included on every jsp page we have. Its job is to detect whether a session has timedout and if it has, to redirect the user to a different page to relogin or whatever. I think it is the case that when I call request.getSession(false) it is still creating a new session if the old one has expired. Any thoughts on how to approach this issue? I don't have access to the name of a login token for example because our sign-on functionality is just a drop in without the source code. Thanks, Todd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.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]
Specify scope in tags..
Greetings: When using the logic tags, I like the Idea that it will access a collection from a specified scope OR check all the scopes starting with page scope and so on. When using the options tag, I get all my lists from the database and store them in different scopes depending on how specific they are to the user. (the province list will be global, user specific lists will be set to session at login, and others may be specific to the each request.) I use this code to access a list from application scope. html:select property=globalItem html:option value=0 key=select.required/ html:options collection=globalList property=value labelProperty=label/ /html:select My question is: This tag seems to check all the scopes and does NOT give you the option of indicating a specific scope. Am I correct in this? If this is so then I guess the only problem is naming. Has any body else dealt with this? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Javascript tag libs
I just started tinkering w/ the Javascript tag library package written by Tom Tessier on jspinsider.com. Basically, it's a tag lib that translates into some very neat and useful javascript functionality (dynamic color coding of required form sections, pulldown menus, etc). I was wondering if anybody knew of any other packages like this one. I know that some of the struts tag libs resolve down to javascript too, but i was interested in tags/packages (and opinions of them) that were specifically designed to abstract away the javascript layer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Parser error while testing struts-layout
At 15:01 03/01/2002, you wrote: Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method parse(Ljava/io/InputStream;L org/xml/sax/helpers/DefaultHandler;)V not found at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Do i have any issue with my xml parser witch is xerces 1.4.2? Need help please...! The issue is with the old digester jar ship with the actual struts-layout release. Could you try to use the latest digester available at http://jakarta.apache.org/builds/jakarta-commons/release/commons-digester/ ? HTH, Jean-Noel Alexandre Duprat SOPRA. Direction France Sud. Bordeaux tel : 05 57 26 00 91 [EMAIL PROTECTED] ++ | Ce courrier ainsi que les fichiers joints sont confidentiels. | | Si vous avez recu ce courrier par erreur, veuillez en informer | | l'administrateur du systeme : [EMAIL PROTECTED] | | - | | Ce message confirme que le courrier a passe le controle| | antivirus du relais de messagerie Internet avec succes.| ++ -- 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]
html:submit - how do I use the attribute accesskey?
Hi! I have several submit buttons on a jsp page and wants to use the accesskey attribute to decide which submit button that shoul be connected to the enter key! Can't get it rightAny suggestions??? Thanks in advance! /Linnéa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
pluggable validator not working
I'm trying to use my own pluggable validator. It gets called but the return to false doesn't make the error processing take place. Instead, it performs as though it succeeded. Here's the code snippet: public static boolean myTestValidate(Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request, ServletContext application) { String value = null; value = ValidatorUtil.getValueAsString(bean, field.getProperty()); System.out.println(value: + value); if (value.equals(test)) { System.out.println(in value equals test...); return false; } return false; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parser error while testing struts-layout
The digester still doesn't find Xerces as it tries to instanciate sun's parser. Could you make sure Xerces is in the WEB-INF/lib directory ? If not could you check if Struts alone is starting ok ? Jean-Noel At 16:29 03/01/2002, you wrote: Jean-Noel : I just tried replacing my digester 1.0 by 1.1.1 I got a different error : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:508) at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Maybe i could try digester 1.1 but...? I would be really happy if i could use tree menu of struts-layout. -Message d'origine- De: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 15:47 À: Struts Users Mailing List; [EMAIL PROTECTED] Objet: Re: Parser error while testing struts-layout At 15:01 03/01/2002, you wrote: Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.j a va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartu p Interceptor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser:
Values in to attribute values for XML JSP Docs?
Hi all. I am using the XML form of JSP (1.2) and wish to write the equivalent of the following. jsp:scriptlet int myvar = 1; /jsp:scriptlet input type=hidden value=%= myvar %/ However this doesn't work as the %= myvar % is only evaluated as an expression when being passed to custom tags. So for example the following is ok: html:hidden value=%= myvar %/ .. but I've tried everything I can think of (short of using println statements!) to output the value of any type of variable (not just scripting ones) to normal output tag attributes - but nothing works. NOTE: I cannot use %= myvar % or jsp:expression myvar /jsp:expression as these are not well formed XML and so the page will not compile. Help! I don't know if I am missing something obvious or if this is just not possible! Thanks Luke -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Field.getKey() not found
I'm writing my own Validator class and in it, I have the following line: errors.add(field.getKey(), ValidatorUtil.getActionError(application, request, va, field)); but my compiler complains that there is no such method: Field.getKey() 1. has this been deprecated? If so, what property do I put in there? I'm assuming its the field name but I don't want to put it in there statically. I'm using: struts-validator-200102072.jar thanks! ken -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parser error while testing struts-layout
I put xerces.jar in WEB-INF/lib but it doesn't change anything. Error appends when i start tomcat, not while running the webapp. Tomcat server can't start with struts-layout. It was starting with struts-example and our struts application... The first error was a ClassNotFoundException for org.xml.sax.helper.DefaultHandler. That's why i 've putted xerces.jar in \jakarta-tomcat-3.2.3\lib. Then the class is found but you know what appends next :-( It's the first time i have such a classpath problem with tomcat. I usually put all jars in WEB-INF\lib and it works... -Message d'origine- De: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 16:57 À: Struts Users Mailing List; [EMAIL PROTECTED] Objet: RE: Parser error while testing struts-layout The digester still doesn't find Xerces as it tries to instanciate sun's parser. Could you make sure Xerces is in the WEB-INF/lib directory ? If notc ould you check if Struts alone is starting ok ? Jean-Noel At 16:29 03/01/2002, you wrote: Jean-Noel : I just tried replacing my digester 1.0 by 1.1.1 I got a different error : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.j a va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:508) at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartu p Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartu p Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Maybe i could try digester 1.1 but...? I would be really happy if i could use tree menu of struts-layout. -Message d'origine- De: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 15:47 À: Struts Users Mailing List; [EMAIL PROTECTED] Objet: Re: Parser error while testing struts-layout At 15:01 03/01/2002, you wrote: Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.j a va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at
RE: Struts IDE
Please explain how to configure the window's explorer file extension. Thanks -Original Message- From: Chen, Yong [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:16 PM To: 'Struts Users Mailing List' Subject: RE: Struts IDE By combining the opentool external browser support http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17071 and set your windows explorer's file extension .jsp with Dreamweaver UltraDev, you can easily edit the page in dreamweaver from Jbuilder. Yong Chen -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 11:39 AM To: 'Struts Users Mailing List' Subject: RE: Struts IDE Check out Macromedia's Dreamweaver Ultradev. It has a nifty live data mode that lets you see the output and work on the source at the same time. It's also extensible. I heard that someone wrote an extension for Struts tags in particular or for jsp tags in general, I can't remember which. That might help out too. One more thing. Borland offers a package that somehow integrates Utradev into JBuilder, so that might be something else to consider. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 6:25 AM To: Struts Users Mailing List Subject: Struts IDE Hi, Are there any IDE which helps the designer to view HTML pages having struts tags incorporated in it? (i.e For brevity's sake, only a snippet of the HTML code is given below html:select property=type html:options collection=collection1 property=value labelProperty=label/ /html:select TIA, Jerome ** * Any opinions expressed in this email are those of the individual and not necessarily those of GamCom Solutions Ltd (herein after GamCom) and/or its subsidiaries. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from GamCom and/or its subsidiaries, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited; please notify us immediately and do not disclose, distribute, or retain this email or any part of it. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. GamCom and/or its subsidiaries reserve the right to monitor all email communications through their networks. If you have received this email in error please notify GamCom by telephone on +44 (0)20 8838 5441 or via email to [EMAIL PROTECTED] , including a copy of this message. ** * -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
WAS 3.5.3 and Struts problem (Jasper)
Hi, I am trying to run Struts application on WAS3.5.3 and facing following problem. stdout.txt does not show any errors during the startup; all action mapping are OK. However, when I am trying to load JSP page with form on it, it gives this error. Did anybody face with this problem before? --Alexei __ Error 500 An error has occured while processing request:http://192.168.132.39/profile/jsp/ProfileAdminHome.jsp Message: Server caught unhandled exception from servlet [JSP 1.1 Processor]: (class: org/apache/jasper/compiler/JspUtil, method: parseXMLDoc signature: (Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Docu ment;) Incompatible object argument for function call Target Servlet: JSP 1.1 Processor StackTrace: Root Error-1: (class: org/apache/jasper/compiler/JspUtil, method: parseXMLDoc signature: (Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Docu ment;) Incompatible object argument for function call java.lang.VerifyError: (class: org/apache/jasper/compiler/JspUtil, method: parseXMLDoc signature: (Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Docu ment;) Incompatible object argument for function call at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Parser.java:1036) at org.apache.jasper.compiler.Parser.parse(Parser.java:1032) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:943) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:321) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:357) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled Code) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled Code) at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled Code) at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compiled Code) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled Code) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(C ompiled Code) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled Code) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:138) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:77) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ EventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL istenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Com piled Code) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu nnable.notifyService(Compiled Code) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu nnable.run(Compiled Code) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run (Compiled Code) at java.lang.Thread.run(Thread.java:479) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts IDE
make the .jsp page extention default action is Open by dreamweaver Yong Chen -Original Message- From: Thompson, Darryl [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:09 AM To: Struts Users Mailing List Subject: RE: Struts IDE Please explain how to configure the window's explorer file extension. Thanks -Original Message- From: Chen, Yong [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:16 PM To: 'Struts Users Mailing List' Subject: RE: Struts IDE By combining the opentool external browser support http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17071 and set your windows explorer's file extension .jsp with Dreamweaver UltraDev, you can easily edit the page in dreamweaver from Jbuilder. Yong Chen -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 11:39 AM To: 'Struts Users Mailing List' Subject: RE: Struts IDE Check out Macromedia's Dreamweaver Ultradev. It has a nifty live data mode that lets you see the output and work on the source at the same time. It's also extensible. I heard that someone wrote an extension for Struts tags in particular or for jsp tags in general, I can't remember which. That might help out too. One more thing. Borland offers a package that somehow integrates Utradev into JBuilder, so that might be something else to consider. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 6:25 AM To: Struts Users Mailing List Subject: Struts IDE Hi, Are there any IDE which helps the designer to view HTML pages having struts tags incorporated in it? (i.e For brevity's sake, only a snippet of the HTML code is given below html:select property=type html:options collection=collection1 property=value labelProperty=label/ /html:select TIA, Jerome ** * Any opinions expressed in this email are those of the individual and not necessarily those of GamCom Solutions Ltd (herein after GamCom) and/or its subsidiaries. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from GamCom and/or its subsidiaries, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited; please notify us immediately and do not disclose, distribute, or retain this email or any part of it. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. GamCom and/or its subsidiaries reserve the right to monitor all email communications through their networks. If you have received this email in error please notify GamCom by telephone on +44 (0)20 8838 5441 or via email to [EMAIL PROTECTED] , including a copy of this message. ** * -- 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] -- 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]
javascript functions for required()
I'm wondering where the source for the client-side validation is for required(), integer(). thanks. ken -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG?
hi, the stange think is, that I have two applications in my container, both on struts. But only in the second one is the failure. When I start the server with java 1.3 both work fine. When I start the server with only the first application (on java 1.4), it works fine, too. ??!?!?!?? Had someone a similar error? thank you, juraj -Ursprüngliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 31. Dezember 2001 15:20 An: Struts Users Mailing List Betreff: Re: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? It looks like there are some mis-matched JARs. Try replacing the ones in the WEB-INF/lib with fresh copies from the struts-example application (assuming that one works for you). Lenharcik Juraj wrote: Hi, I have tried to run a simple struts web-app with this configuration (above). I get then this exception: $ Resin 2.0.0 (built Fri Jun 8 12:04:24 PDT 2001) Copyright(c) 1998-2001 Caucho Technology. All rights reserved. Starting Resin on Sat, 22 Dec 2001 08:44:50 +0100 (CET) Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils. java:825) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils. java:756) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:7 82) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:541) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule. java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:498) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java :1301) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:212 7) at com.caucho.server.http.Application.loadServlet(Application.java:2091) at com.caucho.server.http.Application.initServlets(Application.java:1347 ) at com.caucho.server.http.Application.init(Application.java:1303) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:446) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:480 ) at com.caucho.server.http.ServletServer.init(ServletServer.java:386) at com.caucho.server.http.ServletServer.init(ServletServer.java:214) at com.caucho.server.http.ResinServer.init(ResinServer.java:289) at com.caucho.server.http.ResinServer.main(ResinServer.java:871) at com.caucho.server.http.HttpServer.main(HttpServer.java:93) http listening to *:8080 srun listening to 127.0.0.1:6802 When I run it with java 1.3.0._02 it works fine. Can someone explain me, waht happend? Thank you Juraj plz do as CC - [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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts IDE
Open Explorer Click View-Options-File Types-New Type Enter a Description and jsp for the file extension Click New... under Actions Enter open for descripton for the Action and enter the path to Ultradev in the Application used to perform action box Click Ok Select open and click Set Default I'm using Win NT 4, so the menu might be different for you. Dan -Original Message- From: Chen, Yong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 10:45 AM To: 'Struts Users Mailing List' Subject: RE: Struts IDE make the .jsp page extention default action is Open by dreamweaver Yong Chen -Original Message- From: Thompson, Darryl [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:09 AM To: Struts Users Mailing List Subject: RE: Struts IDE Please explain how to configure the window's explorer file extension. Thanks -Original Message- From: Chen, Yong [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:16 PM To: 'Struts Users Mailing List' Subject:RE: Struts IDE By combining the opentool external browser support http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17071 and set your windows explorer's file extension .jsp with Dreamweaver UltraDev, you can easily edit the page in dreamweaver from Jbuilder. Yong Chen -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 11:39 AM To: 'Struts Users Mailing List' Subject: RE: Struts IDE Check out Macromedia's Dreamweaver Ultradev. It has a nifty live data mode that lets you see the output and work on the source at the same time. It's also extensible. I heard that someone wrote an extension for Struts tags in particular or for jsp tags in general, I can't remember which. That might help out too. One more thing. Borland offers a package that somehow integrates Utradev into JBuilder, so that might be something else to consider. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 6:25 AM To: Struts Users Mailing List Subject: Struts IDE Hi, Are there any IDE which helps the designer to view HTML pages having struts tags incorporated in it? (i.e For brevity's sake, only a snippet of the HTML code is given below html:select property=type html:options collection=collection1 property=value labelProperty=label/ /html:select TIA, Jerome ** * Any opinions expressed in this email are those of the individual and not necessarily those of GamCom Solutions Ltd (herein after GamCom) and/or its subsidiaries. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from GamCom and/or its subsidiaries, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited; please notify us immediately and do not disclose, distribute, or retain this email or any part of it. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. GamCom and/or its subsidiaries reserve the right to monitor all email communications through their networks. If you have received this email in error please notify GamCom by telephone on +44 (0)20 8838 5441 or via email to [EMAIL PROTECTED] , including a copy of this message. ** * -- 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] -- 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]
Java/STRUTS Consulting assignment immediately availble in Boston
Please review the requirment below if anyone knows of a person who might be interested in this position please forward this e-mail to them. The position is going to last at least 6 months and probably for the balance of the year. It will pay between $55 per hour give or take a little. Sorry did not mean to spam...just trying to provide an opportunity in a bad market. Regards, Shahan Avedian Direct Line 732-744-3119 |--| |Position Description/Responsibilities:| | | |--| | | | | |Major financial/brokerge firm in downtown Boston. | | | | | |Sr Java Dev AOS | | | | | | | |Job Description | | | |This individual will be responsible for designing and implementing a WMC | |Intranet application to manage our Account Opening process. This system | |will utilize the STRUTS framework and run on the BEA Weblogic server. It | |will be deployed on Unix and interface to an Oracle database. | | | | | |Tools/Technologies SkillRequired/DesirableNumber of years| |JavaRequired 3 years! | |JDBC Required 3 years!| |JSP front-end is Required 2-3 years! | |SQL (Oracle) Required 3 Development in an Oracle environment ( some | |PL/SQL) . | |BEA Weblogic Required 2 | |STRUTS Desirable at least 1 year is heavily desired! | | | | | |Daily Activities | |Author Design Documentation | |Construct prototypes in HTML | |Develop JSP pages and Java Beans | |Work with the business analysts to qualify functional specifications | | | | | |Education/Experience | |Bachelor's degree in Computer Science or a related discipline | | | | | |Other Duration: 6-12 Months | |Start Date:1/15/02| | | | | |--| -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG?
I get a similar thing under Tomcat (4.0.1 4.0.2-b1). If I have multiple applications in my webapps dir, then they break, but each works when in there on it's own. I am using RedHat Linux and Java 1.4.0-beta3 and W2KPro w/ Cygwin ... same problem in both places. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Lenharcik Juraj [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:01 PM To: Struts Users Mailing List Subject: AW: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? hi, the stange think is, that I have two applications in my container, both on struts. But only in the second one is the failure. When I start the server with java 1.3 both work fine. When I start the server with only the first application (on java 1.4), it works fine, too. ??!?!?!?? Had someone a similar error? thank you, juraj -Ursprüngliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 31. Dezember 2001 15:20 An: Struts Users Mailing List Betreff: Re: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? It looks like there are some mis-matched JARs. Try replacing the ones in the WEB-INF/lib with fresh copies from the struts-example application (assuming that one works for you). Lenharcik Juraj wrote: Hi, I have tried to run a simple struts web-app with this configuration (above). I get then this exception: $ Resin 2.0.0 (built Fri Jun 8 12:04:24 PDT 2001) Copyright(c) 1998-2001 Caucho Technology. All rights reserved. Starting Resin on Sat, 22 Dec 2001 08:44:50 +0100 (CET) Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils. java:825) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils. java:756) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:7 82) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:541) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule. java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:498) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java :1301) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:212 7) at com.caucho.server.http.Application.loadServlet(Application.java:2091) at com.caucho.server.http.Application.initServlets(Application.java:1347 ) at com.caucho.server.http.Application.init(Application.java:1303) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:446) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:480 ) at com.caucho.server.http.ServletServer.init(ServletServer.java:386) at com.caucho.server.http.ServletServer.init(ServletServer.java:214) at com.caucho.server.http.ResinServer.init(ResinServer.java:289) at com.caucho.server.http.ResinServer.main(ResinServer.java:871) at com.caucho.server.http.HttpServer.main(HttpServer.java:93) http listening to *:8080 srun listening to 127.0.0.1:6802 When I run it with java 1.3.0._02 it works fine. Can someone explain me, waht
Cannot find ActionMappings or ActionFormBeans collection PROBLEM.
Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM. From: nutshell [EMAIL PROTECTED] === I have installed Struts Framework Tomcat 4.0 on RedHat 7.0 i386 and have deployed my web appplication. Does anyone know what might be the reason why this error appear? After I try to get to the welcome page I get this error: A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:1215) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source) at java.lang.Thread.run(Thread.java:539) Root Cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at org.apache.jsp.login$jsp._jspService(login$jsp.java:1001) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
[Fwd: [ANN] Struts + Velocity + Tools +...]
Original Message Subject: [ANN] Struts + Velocity + Tools +... Date: Thu, 03 Jan 2002 15:48:29 -0500 From: Geir Magnusson Jr. [EMAIL PROTECTED] Reply-To: Velocity Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED],Velocity Developer's List [EMAIL PROTECTED] Real Soon Now is Now. Thanks to Gabriel and Ted for this as well as everyone that contributed and supported the discussion. There is a new CVS repository called jakarta-velocity-tools It is where we can put together our tool project. I will add this (and -dvsl) to the jakarta cvs page, but you can go there directly : http://cvs.apache.org/viewcvs/jakarta-velocity-tools/ And of course, for those that use CVS clients, just cvs checkout jakarta-velocity-tools Currently, there are two parts : View = This is a general purpose servlet that does tool loading, and is meant to be used in place of (or along side of) JspServlet. The toolbox stuff is rudimentary and untested (I put it together today) and there are lots of refinements to be made. View includes an example that uses Gabriel's cool self-building war, so to see how this works, just go to exmaple/simple and type ant devwar And then deploy that war. You can see it work with the simple index.vm - so to test, just point the browser at the servlet engine, and suppose you called the war strutsvel.war http://localhost:8080/strutsvel/index.vm And you will hopefully see it work There are a a few cool things in View that will probably migrate into Velocity proper, namely the WebappLoader, which does template loading via letting the container return input streams, and a ServletLogger, which lets the velocity log stuff go to the servlet log file for convenience. These features depend on the current 1.3-dev jar, which is included. Struts == This is a package that contains the stuff needed to connect Struts and Velocity, and the overwhelming majority of the hard work was done by Gabriel Sidler and Ted Husted (from Struts-land). It has the same project structure as View, you can build the jar, but there is an excellent example WAR put together by Gabriel with major contributions by Ted that show three or so apps done using Struts both with JSP and Velocity, so you can compare and contrast. That too should be in the example/struts directory and a ant devwar should build it. Deploy and enjoy. There are a few tools in here that are going to come back out because they are generic and go live in View or Tools. I got sick of moving things around today :) One really cool thing is that no special Struts support is required for this, and it works with struts 1.0, the released version. Hats off to Gabriel for this (if you wear a hat...). Once this is reasonably tested and we do a release, we'll add Struts to our list of supported frameworks :) And coming : Tools = Not checked in yet, this will be a general tool space, where we can grab the stuff in commons-sandbox/rupert and give care and feeding VM == Not started. Need some ideas - basically a collection of VMs Sorry about the delay (but some things are worth waiting for). I'll add links from the Velocity site and make nightly's later today. Also, if someone has better ideas on how this might be organized and arranged, just speak up... -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting We will be judged not by the monuments we build, but by the monuments we destroy - Ada Louise Huxtable -- 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]
RE: Cannot find ActionMappings or ActionFormBeans collection PROBLEM.
It might be that tomcat is unable to find struts-config.xml. Mine is in the WEB-INF directory. -Original Message- From: Struts Newsgroup [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:40 PM To: [EMAIL PROTECTED] Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM. Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM. From: nutshell [EMAIL PROTECTED] === I have installed Struts Framework Tomcat 4.0 on RedHat 7.0 i386 and have deployed my web appplication. Does anyone know what might be the reason why this error appear? After I try to get to the welcome page I get this error: A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at org.apache.jsp.login$jsp._jspService(login$jsp.java:1215) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source) at java.lang.Thread.run(Thread.java:539) Root Cause: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at org.apache.jsp.login$jsp._jspService(login$jsp.java:1001) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) at
NoClassDefFound Error in weblogic
Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy
RE: NoClassDefFound Error in weblogic
Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
check for jar files in $WLS_DIR\myserver\web-inf\_tmp_war_yourApp . if u find jar files in that folder it means jar files are loades and in WEBLOGIC_CLASSPATH, still u have problems use atleast SP10 (SP11) is also available Narendranatha R Sajjala, 1800flowers.com Ph:516-237-4881 -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
As I understand it, this directory will only be created if the webapps is a war file. If the webapp is unpacked this directory will not exist. Jeremy -Original Message- From: Narendranatha R Sajjala [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:31 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic check for jar files in $WLS_DIR\myserver\web-inf\_tmp_war_yourApp . if u find jar files in that folder it means jar files are loades and in WEBLOGIC_CLASSPATH, still u have problems use atleast SP10 (SP11) is also available Narendranatha R Sajjala, 1800flowers.com Ph:516-237-4881 -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The encoding Cp1252 is not supported.
Any one has idea about this error? FATAL: configuration error org.xml.sax.SAXParseException: The encoding Cp1252 is not supported. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:541) at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:317) at javax.xml.parsers.SAXParser.parse(SAXParser.java:260) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Thanks! Anna -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
We had something similar here. WL 6.0 doesn't support external jars - this is apparently available in 6.1 (we haven't migrated yet). Try putting the jars in the WL classpath as well as in the /lib directory. - JKL -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
Yeah - putting them in the weblogic classpath will definately work. However, I need to distribute this app, so it is not an option. Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:49 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic We had something similar here. WL 6.0 doesn't support external jars - this is apparently available in 6.1 (we haven't migrated yet). Try putting the jars in the WL classpath as well as in the /lib directory. - JKL -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound Error in weblogic
I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
There's a comment to that effect on the Struts Kickstart FAQ: http://jakarta.apache.org/struts/userGuide/kickstart.html#jar regards, Rob. -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
Jeremy, This problem can happen if you have left some other jar in the system classpath (the weblogic classpath) that calls struts. The classloader order is that the webapp classloader depends on the system classloader. Thus if a class is not found in the webapp classloader, the system classloader gets asked for it. But the other way round is not true : if a class is loaded from the system classloader and then this class uses struts (or indirectly uses some other class that uses struts), then the system classloader has no visibility of the webapp classloader and will throw a NoClassDefFoundError. In order to prevent this make sure you have nothing at all in your CLASSPATH environment variable nor in the weblogic classpath. The other possibility is that your application requires a jar (not struts jar) that it cannot find. It happens that the webapp classloader reports an error when loading a struts jar but actually it is not true ... What happens is that the webapp classloader chooses this time to check class dependencies and does not find a class, which is why it throws a NoClassDefFoundError and not a ClassNotFoundException BTW (or something like this - I'll let someone else, Craig ?, explain that better than me). I have had this issue with Tomcat but I don't know how the WL webapp classloader works. Not sure if it helps but at least it may give you some ideas ... :-) -Vincent -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: 03 January 2002 21:16 To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Debuging templates.
Does anyone have any advice on debugging jsp pages when using struts-templates? Here is a sample stack trace. It points to the InsertTag.doEndTag. And JSP page maintenance.jsp line 54, but maintenance.jsp has only 35 lines! Any advice on better exception throwing... or how I can find better error messages? Thanks Mark javax.servlet.jsp.JspException: com.telesoft.telmast.webmvc.LocationForm at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149) at _te._maintenance__jsp._jspService(/accountaccess/te/maintenance.jsp:54) at com.caucho.jsp.JavaPage.service(JavaPage.java:74) at com.caucho.jsp.Page.subservice(Page.java:485) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176) at com.caucho.server.http.Invocation.service(Invocation.java:278) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129) at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:847) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Debuging templates.
Mark, You might try going directly to the template-included page instead, to see what is happening on that page Change the URL in the browser to something like app url/accountaccess/te/maintenance.jsp. It might be that whatever the real problem is will still turn up outside of the context of the template Vaughan. -Original Message- From: Mark Gordon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:40 PM To: [EMAIL PROTECTED] Subject: Debuging templates. Does anyone have any advice on debugging jsp pages when using struts-templates? Here is a sample stack trace. It points to the InsertTag.doEndTag. And JSP page maintenance.jsp line 54, but maintenance.jsp has only 35 lines! Any advice on better exception throwing... or how I can find better error messages? Thanks Mark javax.servlet.jsp.JspException: com.telesoft.telmast.webmvc.LocationForm at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag .java:149) at _te._maintenance__jsp._jspService(/accountaccess/te/maintenanc e.jsp:54) at com.caucho.jsp.JavaPage.service(JavaPage.java:74) at com.caucho.jsp.Page.subservice(Page.java:485) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPag e.java:176) at com.caucho.server.http.Invocation.service(Invocation.java:278) at com.caucho.server.http.CacheInvocation.service(CacheInvocation .java:129) at com.caucho.server.http.ServletServer.serviceTop(ServletServer. java:847) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213) at com.caucho.server.http.HttpRequest.handleConnection(HttpReques t.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) -- 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]
RE: NoClassDefFound Error in weblogic
Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Debuging templates.
Hey, Thanks That helped... found my bug. I am still up for anymore good advice on debugging templates! -Mark Vaughan Jackson wrote: Mark, You might try going directly to the template-included page instead, to see what is happening on that page Change the URL in the browser to something like app url/accountaccess/te/maintenance.jsp. It might be that whatever the real problem is will still turn up outside of the context of the template Vaughan. -Original Message- From: Mark Gordon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:40 PM To: [EMAIL PROTECTED] Subject: Debuging templates. Does anyone have any advice on debugging jsp pages when using struts-templates? Here is a sample stack trace. It points to the InsertTag.doEndTag. And JSP page maintenance.jsp line 54, but maintenance.jsp has only 35 lines! Any advice on better exception throwing... or how I can find better error messages? Thanks Mark javax.servlet.jsp.JspException: com.telesoft.telmast.webmvc.LocationForm at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag .java:149) at _te._maintenance__jsp._jspService(/accountaccess/te/maintenanc e.jsp:54) at com.caucho.jsp.JavaPage.service(JavaPage.java:74) at com.caucho.jsp.Page.subservice(Page.java:485) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPag e.java:176) at com.caucho.server.http.Invocation.service(Invocation.java:278) at com.caucho.server.http.CacheInvocation.service(CacheInvocation .java:129) at com.caucho.server.http.ServletServer.serviceTop(ServletServer. java:847) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213) at com.caucho.server.http.HttpRequest.handleConnection(HttpReques t.java:158) at com.caucho.server.TcpConnection.run(TcpConnection.java:140) at java.lang.Thread.run(Thread.java:484) -- 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]
RE: Using Struts with XSLT
Hi Jan I'm relatively new to struts - but have come from a background of using XSLT with Servlet2.3 filters. Have to say this worked great, although as people have pointed out there is a performance hit. But I found with optimization I could reduce this to a nearly negligible amount (I also used SAXON - which is great and has improved quite a bit in recent releases performance wise.) I have a working site using XSLT, but it was written and maintained purely by me - so it was a nightmare for other people to support - as all the presentation stuff was in the XSL, i.e. raw XML data (from app server) driving XSLT sheets with embedded HTML/WML etc. This lead me to want to split out the data some more and have 2 XML streams - one describing the data and one describing the presentation (sounding familiar yet?) which I implemented myself using XSLT URIResolvers. Around this time I also discovered Cocoon and spent an interesting, but ultimately unfruitful, time evaluating and porting to it. It has a lot of nice features (many of which I'd already implemented for myself previously - annoyingly :), but I realized that what I was ultimately doing with my dual XML data flows was effectively implementing custom tags using XSLT. (Also see Cocoons XSP templating language) E.g. In your presentation XML you write something like sidebar entryusername//entry /sidebar And in your XSLT you have something like: xsl:template match=sidebar table !-- Write your entries here sort of thing -- /table /xsl:template You also find your self wanting to substitute data values for elements which may come from secondary XML streams or you may want to read values directly from Java classes. This becomes a lot more cumbersome. XSLT - Java bindings are non standard and mostly awkward to use. Then I (re-)found JSP and Struts. Taglibs have come a long way since I last looked at JSPs about 2 years ago and I realized I had the solution to my problem. Use JSP to generate the presentation layer (as it was meant to do) and use the taglibs provided by struts and Jakarta. The presentation is still separated out, using Java to access data is much simplified, and I can still bring in my XML data using the xtags library. Currently I am not planning on using XSLT at all for the moment (which makes me sad as I love it). Although I am considering that it may be useful in i18n, as I don't like all the properties files you get from the taglib. And it may be useful in defining on the fly look and feels by restructuring your XHTML etc. I'm still not ultimately convinced JSP/Struts is the 'best' way - and in general I liked cocoon. But now there are so many useful tag libraries (including support for XSLT) why go re-invent them yourself in XSLT? Plus ultimately when it comes to getting someone to support my pages when I want to move on to the next new thing ;-) I know I'm going to find it easier to find someone to support a JSP/Struts solution than my own bespoke XSLT one! Hope some of those ramblings were useful. Luke -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Forwarding Data For A Form
James, Isn't the Action's perform() called as a result of the Form's action being invoked and after the form's validate() method succeeds? What I'm wanting is the form input fields to be prepopulated with data sent by another Action so when the JSP form is displayed the fields are all filled in. I thought the jsp:useBean tag would work, but it didn't. (I didn't want to expose the class name of the bean to the JSP page anyway. I was hoping to stay in the Struts Model 2 framework to keep all the Java details abstracted away from the JSP developers.) Jack -Original Message- From: James Dasher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 PM To: 'Struts Users Mailing List' Subject: RE: Forwarding Data For A Form If I am not mistaken, the form is passed into the action.perform() as a parameter. You should be able to get/set your bean properties there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:51 PM To: Struts Users Mailing List Subject: Forwarding Data For A Form How can I get an action form to display data generated by an action? I have a Registration action that updates a database and generates a user id. The perform() method of that action forwards an ActionForward object mapped to a Login form. I want the Login form to display the generated user ID from the Registration action. I'm not sure how to pass along the user ID so it will automatically be picked up by the Login form and displayed in the proper input field. Thanks. Jack -- 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]
Nesting tags in JSP
What would be the syntax needed to cause the output of a bean:write tag to be written into the value property of an html:text tag? I tried the following, but it never made it past the compiler: html:text property=userId size=20 value=bean:write name=login property=userId/ / TIA. Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using Struts with XSLT
Hi, It's been quite a long way before I finally arrived at the same conclusion you guys have reached. That is use XSLT only for what it is designed for and what it is best at. According to my experience, XSLT is great for doing XML to XML transformation. But for complex XML to HTML transformation, or whenever you want to do complex logic in the stylesheet, you will find that the complexity of stylesheet really offsets the benefit of separation of content from presentation. My understanding is that using stylesheet is only hyperthetically ease the job of page designer. In fact it's hard to learn and use for page designers. Besides that, there's a performance penalty that can't be easily conciliated by using cache. Personally, I would like to use Struts for most of the web applications. As a true MVC framework, Struts inherently separates the view from control and model. Armed with a rich set of Taglibs, you can actually achieve most of the benefit of xsl and still get the power and ease of use of JSP. So if you've got Struts, who needs XSLT for view again? Well, On the other hand, XSLT may be useful in the future web services applications, where XML is used as an universal and platform-independent format for communication and then xslt can be used to process it. That's my forecast. For those sites that really need to support multiple languages or skins or platforms, and if they really want to use xslt and are ready to accept the complexity and overhead of stylesheet, I would suggest that they still use Struts as framework, but in the view part, the jsp pages will use XML instead of HTML as the native language and use Taglibs to do the transformation on the fly (or use XSLT Sevlet filter to do the transformation, for it readly supports caching locale). For those who are really worry about performance, I suggest that they use Servlet+XSLT, that is to do the xslt transformation in the ActionServlet, bypassing the JSP implemented views. Reference: http://www.onjava.com/pub/a/onjava/2000/12/15/xslt_servlets.html?page=2 Hope this helps, Shengmeng Liu * - Original Message - From: Lewis Lin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 04, 2002 5:26 AM Subject: RE: Using Struts with XSLT Hi, Todd, I 100% agree with you. We did a small project using pure XSL transformation with Struts. We had to overcome the combo box selection, form validation, and error handling issues that could be handled much easier with Struts directly. I am really debating with myself at this point. On one hand, it seems like the whole world is going with JSP/Struts, on the other hand, I really don't want to give up the beauty of the truely seperation of the data from the view. Are you still working on this topic? What area do you mean when you said to limit the usage of XSL only when it's neccessary? Regards, Lewis -Original Message- From: Todd Fulton [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 10:42 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Using Struts with XSLT Yeah, I did the rendering/presentation end for an entire application using XSLT. The application was a time tracking invoicing type app that we delivered as an ASP (i.e. failed .com). Spent 18 months with that stuff. We were using the Sun xml processor and the Saxon xslt compiler. It wasn't struts, but that shouldn't matter too much. I can imagine numerous ways one would eventually route the output through a XSL processor using struts -- including the method you mentioned. Some things I discovered. #1, the performance definitely was not what I could have wanted for the application. All that xml/xsl handling added a certain performance floor that simply could not be overcome. We calculated that the XSL rendering part of the application added somewhere between .5 and .75 seconds to all requests. Granted, we were doing pretty heavy rendering -- the xml objects were upwards of 30k or so. And we were getting somewhere around ~8000 page requests/hour. #2, we had to staff and train a cadre of XSL stylsheet designers. This was tough, because there were not (this was 1999/2000) alot of people with this kind of knowledge back then. The stuff is not rocket science, but still not the easiest thing in the world -- especially for interface designers. #3, the XSL syntax at the time was not standardized. We moved between the Lotus XSL processor and Saxon and had to do a complete rework of the interface layer. This may sound like a bashing, but it's not. The concept of XSL rendering is absolutely amazing. It gets one much close to that perfect separation of data and presentation. And things have progressed substantially since that time. HOWEVER, if I were to do
RE: Forwarding Data For A Form
I think this sounds like what I am doing. I have a form that performs an action, the goes to another form, either the same or different but a new form needs to be set. Pseudo code: Form formObject = new Form(); formObject.setId(1); formObject.setName(NEW); Request.setAttribute(formName, formObject); Return(new ActionForward(somewhere); Is this what you are trying to do? I use this because I get a form object that is partially populated and use it to look up and return a fully poplated form, I then just overwrite the request attribute with this new form. Or a form may have multiple possible actions some going to new forms of a different type, so I lookup and set some initial info and set that into the request. Hope this helps, Jake T. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 6:09 PM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form James, Isn't the Action's perform() called as a result of the Form's action being invoked and after the form's validate() method succeeds? What I'm wanting is the form input fields to be prepopulated with data sent by another Action so when the JSP form is displayed the fields are all filled in. I thought the jsp:useBean tag would work, but it didn't. (I didn't want to expose the class name of the bean to the JSP page anyway. I was hoping to stay in the Struts Model 2 framework to keep all the Java details abstracted away from the JSP developers.) Jack -Original Message- From: James Dasher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 PM To: 'Struts Users Mailing List' Subject: RE: Forwarding Data For A Form If I am not mistaken, the form is passed into the action.perform() as a parameter. You should be able to get/set your bean properties there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:51 PM To: Struts Users Mailing List Subject: Forwarding Data For A Form How can I get an action form to display data generated by an action? I have a Registration action that updates a database and generates a user id. The perform() method of that action forwards an ActionForward object mapped to a Login form. I want the Login form to display the generated user ID from the Registration action. I'm not sure how to pass along the user ID so it will automatically be picked up by the Login form and displayed in the proper input field. Thanks. Jack -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using Struts with XSLT
Hi, I can tell u the problems i faced using Xalan XSLT. It forcefully puts all attributes defined in XSL as tag attribute= even if they dont have a entry in the XML file. This feature created problem as HTML is not well formed and also in WML which wants perfect structured'ness. Thanks - Original Message - From: Shengmeng Liu [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 04, 2002 9:09 AM Subject: Re: Using Struts with XSLT Hi, It's been quite a long way before I finally arrived at the same conclusion you guys have reached. That is use XSLT only for what it is designed for and what it is best at. According to my experience, XSLT is great for doing XML to XML transformation. But for complex XML to HTML transformation, or whenever you want to do complex logic in the stylesheet, you will find that the complexity of stylesheet really offsets the benefit of separation of content from presentation. My understanding is that using stylesheet is only hyperthetically ease the job of page designer. In fact it's hard to learn and use for page designers. Besides that, there's a performance penalty that can't be easily conciliated by using cache. Personally, I would like to use Struts for most of the web applications. As a true MVC framework, Struts inherently separates the view from control and model. Armed with a rich set of Taglibs, you can actually achieve most of the benefit of xsl and still get the power and ease of use of JSP. So if you've got Struts, who needs XSLT for view again? Well, On the other hand, XSLT may be useful in the future web services applications, where XML is used as an universal and platform-independent format for communication and then xslt can be used to process it. That's my forecast. For those sites that really need to support multiple languages or skins or platforms, and if they really want to use xslt and are ready to accept the complexity and overhead of stylesheet, I would suggest that they still use Struts as framework, but in the view part, the jsp pages will use XML instead of HTML as the native language and use Taglibs to do the transformation on the fly (or use XSLT Sevlet filter to do the transformation, for it readly supports caching locale). For those who are really worry about performance, I suggest that they use Servlet+XSLT, that is to do the xslt transformation in the ActionServlet, bypassing the JSP implemented views. Reference: http://www.onjava.com/pub/a/onjava/2000/12/15/xslt_servlets.html?page=2 Hope this helps, Shengmeng Liu * - Original Message - From: Lewis Lin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 04, 2002 5:26 AM Subject: RE: Using Struts with XSLT Hi, Todd, I 100% agree with you. We did a small project using pure XSL transformation with Struts. We had to overcome the combo box selection, form validation, and error handling issues that could be handled much easier with Struts directly. I am really debating with myself at this point. On one hand, it seems like the whole world is going with JSP/Struts, on the other hand, I really don't want to give up the beauty of the truely seperation of the data from the view. Are you still working on this topic? What area do you mean when you said to limit the usage of XSL only when it's neccessary? Regards, Lewis -Original Message- From: Todd Fulton [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 10:42 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Using Struts with XSLT Yeah, I did the rendering/presentation end for an entire application using XSLT. The application was a time tracking invoicing type app that we delivered as an ASP (i.e. failed .com). Spent 18 months with that stuff. We were using the Sun xml processor and the Saxon xslt compiler. It wasn't struts, but that shouldn't matter too much. I can imagine numerous ways one would eventually route the output through a XSL processor using struts -- including the method you mentioned. Some things I discovered. #1, the performance definitely was not what I could have wanted for the application. All that xml/xsl handling added a certain performance floor that simply could not be overcome. We calculated that the XSL rendering part of the application added somewhere between .5 and .75 seconds to all requests. Granted, we were doing pretty heavy rendering -- the xml objects were upwards of 30k or so. And we were getting somewhere around ~8000 page requests/hour. #2, we had to staff and train a cadre of XSL stylsheet designers. This was tough, because there were not (this was 1999/2000) alot of people with this kind of knowledge back then. The stuff is not rocket science, but still not the easiest thing in the world -- especially for interface