RE: [OT] test mail - please ignore
I wondered how he knows the email is not for him if he is not allowed to read it! ;b -Original Message- From: C. Struts [mailto:struts;cmbsystems.com] Sent: Thursday, November 14, 2002 02:09 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: test mail - please ignore ha! - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:45 AM Subject: RE: test mail - please ignore I had a friend that used to for Ernst Young. They fired him because he read, printed, retained, copied, disseminated, and worsedistributed, an email that was sent to him, but wasn't for him (or any part thereof). James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Andrew Hill [mailto:andrew.david.hill;gridnode.com] Sent: Thursday, November 14, 2002 12:43 AM To: Struts Users Mailing List Subject: RE: test mail - please ignore snip If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof /snip Uhhh does that include the to field and the legal discalaimer as well? Oops. Sorry. Plese dont sue me. rofl! -Original Message- From: Saini, Deepank [mailto:deepank.saini;cgey.com] Sent: Thursday, November 14, 2002 13:33 To: '[EMAIL PROTECTED]' Subject: test mail - please ignore This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Button Tag
Hi, Which Tag should be used to create a input type=button in STRUTS? My requirement is I want to call different actions based on different Button click. Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Servlet Context ..
Hi, Every now then I keep getting this following error. I have installed my application on Oracle 9iAS , OC4J. The application server is running on Unix (Sun Solaris..). The application is working fine otherwise.. I mean in the way its designed. We havent been able to get a definite sequence when this error pops out. Do u think it has got something to do with server configuration ? Has any one come across this error before ? Any information in the direction of solving the problem will be of great help. Regards, Divakar 500 Internal Server Error java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(Compiled Code) at org.apache.struts.action.RequestProcessor.doForward(Compiled Code) at org.apache.struts.action.RequestProcessor.processActionForward(Compiled Code) at org.apache.struts.action.RequestProcessor.process(Compiled Code) at org.apache.struts.action.ActionServlet.process(Compiled Code) at org.apache.struts.action.ActionServlet.doGet(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(Compiled Code) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Mascot Systems Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED] Before opening attachments, please scan for viruses. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Exception Handling with Struts 1.02
I've just read Chuck's Chapter about Exception Handling (O'reilly Struts Book). Now I am trying to accomplish what he suggested. Unfortunately I am forced to used Struts 1.02. return mapping.getInput(); didn't work - it gives back a String, but my Action class needs to return an ActionForward. (Struts 1.02). So I tried it that way: return mapping.findForward(mapping.getInput() ); But this neither worked. Now I am using: return mapping.findForward(error); and in my struts-config I got a forward to the input page. This works, but the error(s) don't get thrown, it just forwards to the same page, but doesn't print the error(s). Someone with an appropiate example using Struts 1.02 or any suggestions how to solve this ? thx in advance, marcus Attached is my code: public class MyAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ [...] [...] [...] catch (SQLException e){ System.err.println(e); e.printStackTrace(); System.err.println(SQLState: + e.getSQLState()); System.err.println(ErrorCode: + e.getErrorCode()); ActionErrors errors = new ActionErrors(); if (e.getErrorCode()==1){ errors.add(SQLException, new ActionError(error.group.exists) ); } else { errors.add(SQLException, new ActionError(error.fatal.SQLException) ); } return mapping.findForward(error); [...] [...] [...] -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Servlet Context ..
Hi, Every now then I keep getting this following error. I have installed my application on Oracle 9iAS , OC4J. The application server is running on Unix (Sun Solaris..). The application is working fine otherwise.. I mean in the way its designed. We havent been able to get a definite sequence when this error pops out. Do u think it has got something to do with server configuration ? Has any one come across this error before ? Any information in the direction of solving the problem will be of great help. Regards, Divakar 500 Internal Server Error java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(Compiled Code) at org.apache.struts.action.RequestProcessor.doForward(Compiled Code) at org.apache.struts.action.RequestProcessor.processActionForward(Compiled Code) at org.apache.struts.action.RequestProcessor.process(Compiled Code) at org.apache.struts.action.ActionServlet.process(Compiled Code) at org.apache.struts.action.ActionServlet.doGet(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(Compiled Code) at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(Compiled Code) DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Mascot Systems Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED] Before opening attachments, please scan for viruses. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Exception Handling with Struts 1.02
2002. november 14. 10:02 dátummal Marcus Biel ezt írtad: return mapping.getInput(); didn't work - it gives back a String, but my Action class needs to return an ActionForward. (Struts 1.02). So I tried it that way: return mapping.findForward(mapping.getInput() ); return new ActionForward(mapping.getInput()); just like in the struts-example.war Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Button Tag
Take a look at the RequestDispatcher. A good example can be found in Chucks book at theserverside.com - Original Message - From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 10:57 AM Subject: Button Tag Hi, Which Tag should be used to create a input type=button in STRUTS? My requirement is I want to call different actions based on different Button click. Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Button Tag
2002. november 14. 09:57 dátummal Savantraj, Chennamakal Subramanian ezt írtad: Hi, Which Tag should be used to create a input type=button in STRUTS? My requirement is I want to call different actions based on different Button click. Read this: http://husted.com/struts/tips/003.html Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
logic-match/compare multiple values
Hi, We need to match a report ID from one of the scopes with a set of integers. Now logic-match example compares with single values. Do I have to use struts-el for this ? Are there examples of logic-match to do this ? The JSTL code that doesn't seem to work is c:if test= ${sessionScope.reportBean.reportID 39 and sessionScope.reportBean.reportID 60} /c:if reportBean is the variable name put in one of the scopes. reportID has a matching getter method. Thanks, Mohan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Button Tag
Oops I meant the DispatchAction not the RequestDispatcher. Sorry - need more sleep! Take a look at Chapter 5 in Chucks book, the heading in ch 5 is The org.apache.struts.actions.DispatchAction Regards, Karim - Original Message - From: Karim Saloojee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 11:10 AM Subject: Re: Button Tag Take a look at the RequestDispatcher. A good example can be found in Chucks book at theserverside.com - Original Message - From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 10:57 AM Subject: Button Tag Hi, Which Tag should be used to create a input type=button in STRUTS? My requirement is I want to call different actions based on different Button click. Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: logic-match/compare multiple values
Hi, Answering my own question. logic:greaterThan name=reportBean property=reportID value=39 logic:lessThan name=reportBean property=reportID value=60 /logic:lessThan /logic:greaterThan Now I am using the above. Is this right ? Is there an and ? Thanks, Mohan -Original Message- From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in] Sent: Thursday, November 14, 2002 3:08 PM To: 'Struts Users Mailing List' Subject: logic-match/compare multiple values Hi, We need to match a report ID from one of the scopes with a set of integers. Now logic-match example compares with single values. Do I have to use struts-el for this ? Are there examples of logic-match to do this ? The JSTL code that doesn't seem to work is c:if test= ${sessionScope.reportBean.reportID 39 and sessionScope.reportBean.reportID 60} /c:if reportBean is the variable name put in one of the scopes. reportID has a matching getter method. Thanks, Mohan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Exception Handling with Struts 1.02
Works fine! Thanks! marcus [EMAIL PROTECTED] schrieb: 2002. november 14. 10:02 dátummal Marcus Biel ezt írtad: return mapping.getInput(); didn't work - it gives back a String, but my Action class needs to return an ActionForward. (Struts 1.02). So I tried it that way: return mapping.findForward(mapping.getInput() ); return new ActionForward(mapping.getInput()); just like in the struts-example.war Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: StrutsTestCase + overriding setUp without calling super.setUp()ERROR
You need to call super.setUp() before super(testname) . I found that adding the following code: public void setUp() { try{ super.setUp(); } catch(Exception e){ } } made it work correctly. Il gio, 2002-11-14 alle 11:58, Maarten Volders ha scritto: Hi, i'm just starting to use the wonderfull world of extra work :) using the StrutsTestCase. But when I try the test a rather basic program then I get the error (see at the end of the page) that I'm overriding the setUp methode and, but I'm NOT overriding it??? I have tried to override the setUp methode, including the super.setUp() method, but he still gives the same error??? Has anyone had this problem before? Thx using JUnit 3.7 and Tested it on StrutsTestCase v1.8 and 1.9, but the same problem on each of the versions. - Begin code - import servletunit.struts.MockStrutsTestCase; public class SearchXtantActionTest extends MockStrutsTestCase { public SearchXtantActionTest(String testName) { super(testName); } public void testLogonSuccess() { System.out.println(test 123); } public static void main(String[] args) { junit.textui.TestRunner.run(SearchXtantActionTest.class); } } - end code - - Begin error - warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError : Exception in constructor: testLogonSuccess (junit.framework.AssertionFailedError: You are overriding the setUp() method without calling super.setUp(). You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization. at servletunit.struts.MockStrutsTestCase.init(MockStrutsTestCase.java:91) at servletunit.struts.MockStrutsTestCase.setConfigFile(MockStrutsTestCase.j ava:337) at be.milieuinfo.cbb.ui.SearchXtantActionTest.init(SearchXtantActionTest. java:9) at java.lang.reflect.Constructor.newInstance(Native Method) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) ) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) - End error - -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
calsspath
I am trying to deploy ear file in weblogic6.1. The ear file contains - war file - with all jsp/action etc and all struts jars in web-inf/lib but, when i try to run it requires all struts lib in classpath. If I gives that it works fine, Please help.
RE: Upgrading to STRUTS 1.1
I don't believe struts 1.0 is 'binary' compatible with 1.1. Try deleting all your object files and rebuilding. Edgar -Original Message- From: Savantraj, Chennamakal Subramanian [mailto:Savant.Rcs;ap.sony.com] Sent: Wednesday, November 13, 2002 11:31 PM To: 'Struts Users Mailing List' Subject: Upgrading to STRUTS 1.1 Hi, I had written a small sample DB application with STRUTS1.0. But when I tried to just copy the 1.1 STRUTS.jar and run the application, I got the error servlet not found. What should I do to make my application run? Is there any place I can look for resources for upgrade? Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Check log-in status
You could also write a filter to check for a valid session. This gives you more control over quite a few issues. This is my particular filter. Edgar -Original Message- From: Andrew Hill [mailto:andrew.david.hill;gridnode.com] Sent: Thursday, November 14, 2002 12:37 AM To: 'Struts Users Mailing List' Subject: RE: Check log-in status Best practice is to make used of the Container Managed Authentication provided by your servlet container. -Original Message- From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in] Sent: Thursday, November 14, 2002 13:23 To: 'Struts Users Mailing List' Subject: Check log-in status Hi, Do you usually check if the user is logged-in in every action ? I can think of two ways to do this 1. Check the status in every action 2. Block the /context/xxx.action where 'xxx' is anything but 'login' Am I right ? Thanks, Mohan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org checkLogon.java Description: Binary data -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Upgrading to STRUTS 1.1
You must also upgrade all libraries used by struts : jakarta commons beanutils, collections, ... And you must rebuild your web app. Arnaud -Message d'origine- De : edgar [mailto:edgar;blue-moose.net] Envoye : jeudi 14 novembre 2002 12:24 A : 'Struts Users Mailing List' Objet : RE: Upgrading to STRUTS 1.1 I don't believe struts 1.0 is 'binary' compatible with 1.1. Try deleting all your object files and rebuilding. Edgar -Original Message- From: Savantraj, Chennamakal Subramanian [mailto:Savant.Rcs;ap.sony.com] Sent: Wednesday, November 13, 2002 11:31 PM To: 'Struts Users Mailing List' Subject: Upgrading to STRUTS 1.1 Hi, I had written a small sample DB application with STRUTS1.0. But when I tried to just copy the 1.1 STRUTS.jar and run the application, I got the error servlet not found. What should I do to make my application run? Is there any place I can look for resources for upgrade? Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Validation in Nightly Build 20021105
Robert, Robert Leland wrote: Ok, it looks like it isn't the same bug, though the error is occuring in the iterator of the FastHashMap. I remember being hit by this a couple of weeks ago, while looking at a different problem. I don't think its the same problem I believe you said it was also happening in the Struts example/struts-validator program. Indeed. Except it failed for both the locale settings we tried, but we're not sure why. Be sure to mention the application server you're using. It was tomcat 4.0.4 in both cases. I'll add it to the bug report I'm about to write. I'll raise it on the commons-validator, as it appears to be the ValidatorResources object thats at fault here. I haven't had to worry about the locale being different being a Yank, but would like to be able to test this. How can I set the locale in my browser ? Is it the same as setting the language in the Mozilla preferences ? For Mozilla, yes. Edit - Preferences - Navigator - Languages. Hit Add, then select a language. Then move the new entry up above the en-us setting. For IE, it takes the setting from the whole machine. ControlPanel - Regional settings - somewhere. On changing, the value gets reflected in the session-scope attribute org.apache.struts.action.LOCALE, to be either en_US or en_GB (When debugging, we tend to include an extra JSP into the output, that renders all the application, session request-scope attributes, plus a button to display them in a pop-up. Very useful...) Cheers, Mike -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Back button without getting Page expired
Hi, I've tried I don't know how many things but everytime something goes wrong. Main question is: how can I get back from an errorpage to a previous page (that results from a POST) without getting a Page expired? I have to set nocache to true, because some of my Actions aren't executed because they or their URL's are cached. The consequence is that the back-button on my errorpage results in a Page expired. This because it a javascript:history.back(). I cannot use GET instead of POST, because then I lose my parameters and have to do a lot of coding to fix that and I don't have time. How can I code the back button? I really would appreciate it if someone could help me out with this. L. Teitsma _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl/worldwide.asp -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Back button without getting Page expired
2002. november 14. 12:56 dátummal L Teitsma ezt írtad: I have to set nocache to true, because some of my Actions aren't executed because they or their URL's are cached. The consequence is that the back-button on my errorpage results in a Page expired. This because it a javascript:history.back(). I cannot use GET instead of POST, because then I lose my parameters and have to do a lot of coding to fix that and I don't have time. How can I code the back button? Why would you lose parameters w/ GET? Do not put history.back() to the errorpage, but any other link which takes you to an action. On the other hand I try to avoid errorpage as good as I can, and handle my errors with ActionError and Exception. I get my errorpage only in development time and in extreme exceptional cases (eg db was shut down). Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
My Tile-Jsp needs to know the FormBean name...
Hello, the FormBean Name is accessed via tiles:getAsString name=formName/ in the layout_content.jsp. But it is not available in the tiles is there a way to do this? I need it for a logic:iterate tag: logic:iterate id=bg type=Gen_bg_Fb name=%= formName % property=bgListe (I have an FormBean containing the Property bgListe, an array of Gen_bg_Fb) tia Andreas -- Dipl. Ing. (BA) Andreas Langmann Software Developer ISB AG Karlstr. 52-54 76133 Karlsruhe Telefon: +49 (0)721/82800-0 Telefax: +49 (0)721/82800-82 Email: [EMAIL PROTECTED] Internet: http://www.isb-ag.de -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
ClassCastException - Using TreeMap
Hello All, I am getting a ClassCastException when using a TreeMap in a logic iterate. I am reproducing part of the error below. java.lang.ClassCastException: java.util.TreeMap$Entry at _web_22dinf._jsp._mycraft__jsp._jspService(/WEB-INF/jsp/mycraft.jsp:26) I understand that while using a TreeMap, the values returned are part of the Inner class Entry. But why should this give me an error here? My logic iterate looks like: snip logic:iterate id=bookmark name=user property=bookmarks type=java.util.TreeMap tr td bean:define id=bookmarkID name=bookmark property=bookmark.key/ /snip where user is the bean that contains a TreeMap property of bookmarks. Any help appreciated. Regards, Vikram -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
NEWBIE-Quesion? add a querystring to html:form
Hi, How can i add a received querystring - not through STRUTS action - to the html:form attribut action. like this html:form action=organization.do?%= request.QueryString() % if i do thhis in the source i see: form name=organizationForm method=POST action=/PCX/organization.do?%= request.getQueryString()% id=organizationForm what do i do wrong. I do not want to create for each paramter an hidden input field. can somebody help? thanks mit freundlichen Grüßen Georg XL. Mouratidis Web Application Developer Heiler|Software AG Mittlerer Pfad 9 D-70499 Stuttgart Tel: 0711-139 84-265 Fax: 0711-866 63 01 Email: [EMAIL PROTECTED] Connecting Buyer and Supplier http://www.heiler.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: ClassCastException - Using TreeMap
try this... bean:define id=bookmarkID name=bookmark property=key/ -Original Message- From: Vikram Goyal [mailto:tech;craftbits.com] Sent: Thursday, November 14, 2002 7:52 AM To: Struts Users Mailing List Subject: ClassCastException - Using TreeMap Hello All, I am getting a ClassCastException when using a TreeMap in a logic iterate. I am reproducing part of the error below. java.lang.ClassCastException: java.util.TreeMap$Entry at _web_22dinf._jsp._mycraft__jsp._jspService(/WEB-INF/jsp/mycraft.jsp:26) I understand that while using a TreeMap, the values returned are part of the Inner class Entry. But why should this give me an error here? My logic iterate looks like: snip logic:iterate id=bookmark name=user property=bookmarks type=java.util.TreeMap tr td bean:define id=bookmarkID name=bookmark property=bookmark.key/ /snip where user is the bean that contains a TreeMap property of bookmarks. Any help appreciated. Regards, Vikram -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Back button without getting Page expired
I use ActionError but I want to show errors (that are no validation errors) thrown by a backoffice on a separate errorpage. Since I don't know which Action results in an error to the errorpage, I cannot redirect to that Action. At least I don't know how. That's why I try to send them back to the previous page from where they can correct the error. I lose parameters with GET, because when I ask request.getParameter(..) it gives me null. Isn't there a way to redirect to the previous page, without doing history.back()? L.Teitsma From: Gemes Tibor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Back button without getting Page expired Date: Thu, 14 Nov 2002 13:02:56 +0100 2002. november 14. 12:56 dátummal L Teitsma ezt írtad: I have to set nocache to true, because some of my Actions aren't executed because they or their URL's are cached. The consequence is that the back-button on my errorpage results in a Page expired. This because it a javascript:history.back(). I cannot use GET instead of POST, because then I lose my parameters and have to do a lot of coding to fix that and I don't have time. How can I code the back button? Why would you lose parameters w/ GET? Do not put history.back() to the errorpage, but any other link which takes you to an action. On the other hand I try to avoid errorpage as good as I can, and handle my errors with ActionError and Exception. I get my errorpage only in development time and in extreme exceptional cases (eg db was shut down). Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Surf voor nieuws, fileinformatie entertainment naar MSN http://www.msn.nl/intmap/default.asp -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: ClassCastException - Using TreeMap
Thanks for your help, but I figured out the problem. The problem was that I was explicitly declaring the type to be java.util.TreeMap. Removing that solves the problem. Regards, Vikram - Original Message - From: Vinh Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 11:03 PM Subject: RE: ClassCastException - Using TreeMap try this... bean:define id=bookmarkID name=bookmark property=key/ -Original Message- From: Vikram Goyal [mailto:tech;craftbits.com] Sent: Thursday, November 14, 2002 7:52 AM To: Struts Users Mailing List Subject: ClassCastException - Using TreeMap Hello All, I am getting a ClassCastException when using a TreeMap in a logic iterate. I am reproducing part of the error below. java.lang.ClassCastException: java.util.TreeMap$Entry at _web_22dinf._jsp._mycraft__jsp._jspService(/WEB-INF/jsp/mycraft.jsp:26) I understand that while using a TreeMap, the values returned are part of the Inner class Entry. But why should this give me an error here? My logic iterate looks like: snip logic:iterate id=bookmark name=user property=bookmarks type=java.util.TreeMap tr td bean:define id=bookmarkID name=bookmark property=bookmark.key/ /snip where user is the bean that contains a TreeMap property of bookmarks. Any help appreciated. Regards, Vikram -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: NEWBIE-Quesion? add a querystring to html:form
2002. november 14. 13:54 dátummal Mouratidis, Georg ezt írtad: if i do thhis in the source i see: form name=organizationForm method=POST action=/PCX/organization.do?%= request.getQueryString()% id=organizationForm what do i do wrong. I do not want to create for each paramter an hidden input field. can somebody help? RT expressions must start with %= and end with %, so write html:form method='POST' action='%= /PCX/organization.do? + request.getQueryString()%' Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: NEWBIE-Quesion? add a querystring to html:form
thanx a lot. thats it! -Original Message- From: Gemes Tibor [mailto:gemes;regens.hu] Sent: Donnerstag, 14. November 2002 14:34 To: Struts Users Mailing List Subject: Re: NEWBIE-Quesion? add a querystring to html:form 2002. november 14. 13:54 dátummal Mouratidis, Georg ezt írtad: if i do thhis in the source i see: form name=organizationForm method=POST action=/PCX/organization.do?%= request.getQueryString()% id=organizationForm what do i do wrong. I do not want to create for each paramter an hidden input field. can somebody help? RT expressions must start with %= and end with %, so write html:form method='POST' action='%= /PCX/organization.do? + request.getQueryString()%' Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Validation in Nightly Build 20021105
Mike Wilcox wrote: It was tomcat 4.0.4 in both cases. I'll add it to the bug report I'm about to write. I'll raise it on the commons-validator, as it appears to be the ValidatorResources object thats at fault here. There is already a bug reported, still state NEW, #14398 that covers this issue. I applied the patch in that bug to the 1.0 source, and rebuilt commons-validator.jar. Hey presto, all works fine. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14398 Next time, I'll remember to look in the buglist as well as the mailing list :) Thanks for the help, Mike -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Validation in Nightly Build 20021105
Mike Wilcox wrote: I'll raise it on the commons-validator, as it appears to be the ValidatorResources object thats at fault here. Too quick on the send button there. The bug was actually #14384 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14384 Mike -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: struts concerns
What is the advantage of using struts taglib to declare Form and other presentation related tags over std. Html?? I'm not familiar with STD (not in this context, anyway :-). But a couple of the benefits of the Struts HTML taglib over straight HTML are: 1) Form element repopulation - If you have an error occur after your form is submitted -- validation, exception, whatever -- Struts will repopulate the original form with the values entered in by the user. 2) MVC - Struts is an MVC implementation, and a good one. The benefits of this should, IMHO, be obvious. 3) I18N - Using the Struts HTML taglibs allows for your web app to easily be internationalized. Don't get me wrong, though. There are cases where using Struts would be overkill. But by an large it is incredibly useful whenever you are dealing with dynamic content. -= James -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: struts concerns
There are cases where using Struts would be overkill. Hello World? ;-) -Original Message- From: James Childers [mailto:jchilders;hotels.com] Sent: Thursday, November 14, 2002 22:21 To: Struts Users Mailing List Subject: RE: struts concerns What is the advantage of using struts taglib to declare Form and other presentation related tags over std. Html?? I'm not familiar with STD (not in this context, anyway :-). But a couple of the benefits of the Struts HTML taglib over straight HTML are: 1) Form element repopulation - If you have an error occur after your form is submitted -- validation, exception, whatever -- Struts will repopulate the original form with the values entered in by the user. 2) MVC - Struts is an MVC implementation, and a good one. The benefits of this should, IMHO, be obvious. 3) I18N - Using the Struts HTML taglibs allows for your web app to easily be internationalized. Don't get me wrong, though. There are cases where using Struts would be overkill. But by an large it is incredibly useful whenever you are dealing with dynamic content. -= James -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Button Tag
See the user's guide section on html tags. David From: Savantraj, Chennamakal Subramanian [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Button Tag Date: Thu, 14 Nov 2002 16:57:06 +0800 Hi, Which Tag should be used to create a input type=button in STRUTS? My requirement is I want to call different actions based on different Button click. Rgds --- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: [OT] Where can I find a Struts / J2EE Jobs?
Khalid, This is all just common sense really, but it helped me when I was laid off at the end of June (BTW, I was working again in five weeks, and as much as I'd like to think that I'm a rock star, I think I was monumentally lucky)... However, if it can help you or someone else on the list... I live in Colorado and as I said, I was laid off from a telecom company at the end of June... I found my new job through a Yahoo job board (specifically the Rocky Mountain Internet Users' Group Job board - which you won't care about given that you live in the UK...). Anyway, here's what I learned: - There seem to be a lot of job bots out there. My current employer didn't post the opening on the board where I found it. They posted it on Dice from where it was eventually scraped. I personally didn't have much luck with the big job sites (Monster, Dice, etc.). There didn't seem to be very many postings there, and they seemed to be fairly stale/stagnant. OTOH, smaller, more informal job boards seemed to have a steady trickle of new postings. - Keywords, keywords, keywords! My employer received 800 resumes (or for those of you across the pond, CVs) for my position. They eliminated 90% of those without even looking at them (they used keyword search software). Companies are having to do this because of the ratio of available positions to available candidates. They then did phone pre-screenings with the remaining 80 people, and eventually met about 10 of those 80 in person. The second page of my resume contains all my technical skills, and is very keyword rich. You're up against a lot of other candidates, so make sure you can get through the filtering software by including everything you know on your resume (all the acronyms, tools, etc.). - Observe protocol. You're right, its an employer's market right now, and employers can be picky, so observe all the courtesies, etc. I learned this in the so you've been shitcanned class that my previous employer most graciously sent us to after having us vacate the building in 45 minutes or less (The politically correct term was Career transition class... :-) ), and the people who interviewed me at my new employer told me that they were impressed by it. If you get an interview, send personalized thank you letters (good paper, etc.) to everyone you talk to, etc. It just helps you stand out. As I said, its all common sense, but if it helps... Best of luck... Dave -Original Message- From: Haseltine, Celeste [mailto:CHaseltine;magticket.com] Sent: Wednesday, November 13, 2002 11:58 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Where can I find a Struts / J2EE Jobs? Khalid, I am assuming by across the Atlantic you are referring to the United States. The job market/outlook in the US for high tech/software/hardware is still pretty poor. There are some pockets where jobs can be found in the US, but overall, our unemployment rate nationally is still sitting just under 7%, with some harder hit local areas, such as Dallas, TX, sitting closer to 8%. That doesn't sound high until you take into consideration before the high tech job fallout in 2000, our unemployment rate was below 3%. Also, unless you are currently a green card holder or US citizen, you would need to find an employer to sponsor you for an H1-B visa, which is the US equivalent of a work permit. It's not something you can obtain yourself, you must have an employer who has agreed to hire you apply for you. Right now, few US employers are sponsoring H1-B visa applicants, due to both the higher unemployment rate, and the legal requirements an employer is required to comply with to demonstrate that no US citizen was qualified/available for the position. And that is not taking into account the heightened sensitivity many companies have to bringing non-US citizens into the US after the events of Sept 11, 2001. I guess things are pretty slow no matter where you reside now. I understand Japan's high tech area has also been hard hit, along with most of Europe. Celeste -Original Message- From: Khalid Aslan [mailto:sheik_ya_bootie;yahoo.co.uk] Sent: Wednesday, November 13, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: [OT] Where can I find a Struts / J2EE Jobs? Hi y'all My name is Khalid. I was made redundant a couple weeks ago in London. I was working for a big investment bank. I was kinda looking for leads to work in London, or elsewhere in Europe maybe. I did so me Struts development several months ago for a client and want to get back to server side Java work. I had being working with Swing client side work. It is really pretty slow in the UK right now, it is not a great look, but I'm still hanging out here hoping on a rope. How is the Struts Job market holding up in across the atlantic? Is Cali still in the bottom slopes? Or is the East Coast the best place to be? rgds /Khalid/ __ Do You Yahoo!? Everything you'll
Fetching Data Using Struts!!!
Though struts is good MVC framework. But guys correct me if i am wrong. The data fetching mechanism works only for simple screens, for complex screens it goes for a toss. eg Consider following screen, where user enter multiple data. EmpId NameGender Married? textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox Save button Please elaborate as whats the best way to fetch this data using struts!! Yadnesh -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: struts concerns
2002. november 14. 15:29 dátummal Andrew Hill ezt írtad: There are cases where using Struts would be overkill. Hello World? What about i18n'd Hello word? Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Struts Tags vs. JSTL
My team is interested in using the JSTL as it offers several advantages (standardization, container optimization, expression language, potential future tools, etc.). Until now, we've strictly been using the Struts custom tags (and a few that we extended). These are the guidelines I want to setup for our developers: 1) If a tag's functionality is duplicated in both the JSTL and Struts, use the JSTL version. In the long run, it will probably deprecate the Struts tag. 2) For tags tied directly to the Struts framework (e.g. html:errors, html:javascript, etc.), use the Struts version (for obvious reasons). Does this make sense? Have others done this? One thing I was hoping to put together for our team was a cross-reference of tags between the JSTL and the Struts tag libraries. This cross-reference would contain information about which tags provide duplicate functionality, which tags are tied to the Struts framework, etc. Has anyone seen something like this? Thanks, JOHN -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
The nightly build has exactly what you are looking for in the contrib folder. Here is the readme: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- cookie c:set, EL define c:set, EL header c:set, EL include c:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqualc:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThanc:if, c:when, EL notEmptyc:if, c:when, EL notEqualc:if, c:when, EL notPresent c:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL -- None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:58 AM To: Struts-Help (E-mail) Subject: Struts Tags vs. JSTL My team is interested in using the JSTL as it offers several advantages (standardization, container optimization, expression language, potential future tools, etc.). Until now, we've strictly been using the Struts custom tags (and a few that we extended). These are the guidelines I want to setup for our developers: 1) If a tag's functionality is duplicated in both the JSTL and Struts, use the JSTL version. In the long run, it will probably deprecate the Struts tag. 2) For tags tied directly to the Struts framework (e.g. html:errors, html:javascript, etc.), use the Struts version (for obvious reasons). Does this make sense? Have others done this? One thing I was hoping to put together for our team was a cross-reference of tags between the JSTL and the Struts tag libraries. This cross-reference would contain information about which tags provide duplicate functionality, which tags are tied to the Struts framework, etc. Has anyone seen something like this? Thanks,
RE: Fetching Data Using Struts!!!
Use a form with a nested form. -Original Message- From: Yadnesh Chonkar [mailto:ychonkar;NEXGENIX.com] Sent: Thursday, November 14, 2002 10:31 AM To: 'Struts Users Mailing List' Subject: Fetching Data Using Struts!!! Though struts is good MVC framework. But guys correct me if i am wrong. The data fetching mechanism works only for simple screens, for complex screens it goes for a toss. eg Consider following screen, where user enter multiple data. EmpId NameGender Married? textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox Save button Please elaborate as whats the best way to fetch this data using struts!! Yadnesh -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Dynamic Tiles xml definitions
I've just started to use Tiles and Struts together. I have a question regarding the xml definitions loaded into memory. My question is would it be possible to parse / modify the definition file at runtime To say switch the template ? Mark
help needed with DynaActionForm
I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
xXxx property
Hello! I have a little problem with a class that have properties on the form xXxx (perhaps I shoud learn regular expressions) ... mPhone, hPhone, wPhone. I'm using forte to build my access method that looks like this setMPhone, setWPhone, setHPhone. The problem is that it seems to me that OJB doesn't like this and since it is old classes I can't easily change the names without affecting other systems that i rather doesn't touch if I can avoid this. Is there a way to keep my propertiesname in the current form so that I can reuse the classes as the are? The error message is last in the message. Thanks in advance Roland Carlsson -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: help needed with DynaActionForm
from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: xXxx property
Sorry .. wrong list... Regards Roland - Original Message - From: Roland Carlsson [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 4:30 PM Subject: xXxx property Hello! I have a little problem with a class that have properties on the form xXxx (perhaps I shoud learn regular expressions) ... mPhone, hPhone, wPhone. I'm using forte to build my access method that looks like this setMPhone, setWPhone, setHPhone. The problem is that it seems to me that OJB doesn't like this and since it is old classes I can't easily change the names without affecting other systems that i rather doesn't touch if I can avoid this. Is there a way to keep my propertiesname in the current form so that I can reuse the classes as the are? The error message is last in the message. Thanks in advance Roland Carlsson -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
file upload + WebSphere 4.0 - IOException while reading file element
I apologize if this is answered elsewhere in the list. I couldn't find a similar entry. I am using WebSphere 4.0 with Struts 1.0.2. I am trying to upload files (multiple files per request) and am having problems. Very small files seem to work fine (10k). However, large files (50k) fail - before it reaches any code in my Action class. The following are the messages that are thrown in the servlet log. [Servlet LOG]: action: Populating bean properties from this request Servlet Error: IOException while reading file element: Premature end of stream while reading multipart request: java.io.IOException: Premature end of stream while reading multipart request Is there a known defect that is causing this problem, or a setting that I have missed? If file upload isn't working in this configuration, is there a known work-around where I could implement my own DiskMultipartRequestHandler and simply avoid the File elements, and use another approach to handle the uploaded files (such as Marsh?). Any help would be appreciated. Thanks. David Purcell [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: Fetching Data Using Struts!!!
Hey Yadnesh, that's pretty easy. You just keep a List in your form bean, containing the java beans, which keep the data for each line. In the JSP you just iterate over that List, accessing the beans. I'm doing that all the day... Did you take a look in the tutorials? Regards, Bernhard -Ursprüngliche Nachricht- Von: Yadnesh Chonkar [mailto:ychonkar;NEXGENIX.com] Gesendet: Donnerstag, 14. November 2002 16:31 An: Struts Users Mailing List Betreff: Fetching Data Using Struts!!! Though struts is good MVC framework. But guys correct me if i am wrong. The data fetching mechanism works only for simple screens, for complex screens it goes for a toss. eg Consider following screen, where user enter multiple data. EmpId NameGender Married? textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox Save button Please elaborate as whats the best way to fetch this data using struts!! Yadnesh -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE still a problem: RE: StrutsTestCase + overriding setUp without calling super.setUp() ERROR
Still the same problem here, he's still complaining that i'm overriding setUp() but that I have to implement super.setUp(), but you can see clearly in my code that I implement that method. Anyone with other suggestions??? I'm using Intellij 3.0 to run my unit test, but al my other unit tests run fine with it so I don't see the problem here. Thx --- code --- package be.milieuinfo.cbb.ui; import servletunit.struts.MockStrutsTestCase; public class SearchXtantActionTest extends MockStrutsTestCase { public void setUp() { try { super.setUp(); // !!! } catch(Exception e) {} } public SearchXtantActionTest(String testName) { super(testName); setConfigFile(E:/CBB/xml/web/UI); } public void testLogonSuccess() { System.out.println(test); } public static void main(String[] args) { junit.textui.TestRunner.run(SearchXtantActionTest.class); } } -- You need to call super.setUp() before super(testname) . I found that adding the following code: public void setUp() { try{ super.setUp(); } catch(Exception e){ } } made it work correctly. --- Hi, i'm just starting to use the wonderfull world of extra work :) using the StrutsTestCase. But when I try the test a rather basic program then I get the error (see at the end of the page) that I'm overriding the setUp methode and, but I'm NOT overriding it??? I have tried to override the setUp methode, including the super.setUp() method, but he still gives the same error??? Has anyone had this problem before? Thx using JUnit 3.7 and Tested it on StrutsTestCase v1.8 and 1.9, but the same problem on each of the versions. - Begin code - import servletunit.struts.MockStrutsTestCase; public class SearchXtantActionTest extends MockStrutsTestCase { public SearchXtantActionTest(String testName) { super(testName); } public void testLogonSuccess() { System.out.println(test 123); } public static void main(String[] args) { junit.textui.TestRunner.run(SearchXtantActionTest.class); } } - end code - - Begin error - warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError : Exception in constructor: testLogonSuccess (junit.framework.AssertionFailedError: You are overriding the setUp() method without calling super.setUp(). You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization. at servletunit.struts.MockStrutsTestCase.init(MockStrutsTestCase.java:91) at servletunit.struts.MockStrutsTestCase.setConfigFile(MockStrutsTestCase.j ava:337) at be.milieuinfo.cbb.ui.SearchXtantActionTest.init(SearchXtantActionTest. java:9) at java.lang.reflect.Constructor.newInstance(Native Method) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) ) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) - End error - -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: help needed with DynaActionForm
I don't know too much about this, and I was currently looking down the same route, but how would a configuration class fit into all this? I was under the assumption that a configuration class would let you configure the form prior to it being rendered on the page. Or is that not correct thinking? Any direction or pointers are welcome. -a -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 AM To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: help needed with DynaActionForm
Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Opening PDF file: Problem and Solution
Has anyone had any difficulties with opening a PDF file byte stream in a browser using sub-apps? We got it working but are still unclear as to exactly the reason. Up front I'll mention that we are using sub-applications. We had an action which places a PDF file in the form of a byte[] out on the ServletOutputStream. For some reason the file would not display in the Acrobat plugin. The IE dialog to open or save the file would instead appear. At this point we were able to save the PDF to the client machine, but still remained with the problem of not being able to view the PDF in IE. Now trying this same thing using just a default app worked fine. But we had to make it work using a sub-app. Now comes the confusing part. Streaming out JPEG and Word files worked just fine in our sub-app. Of course, for all three files we are setting the appropriate contentType on the response. We then thought that there might be a problem with the sub-app's configuration. We noticed that in the struts config file, through the controller element, we were setting the contentType to text/html. For some reason, removing the contentType allowed the stream to be opened in Acrobat. It seems that the contentType setting in the sub-app was overriding that for application/pdf but not for image/jpeg or application/msword. Does anyone know why this would be the case? Best of luck, Neil Carusetta CGC Scottsdale, AZ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: struts concerns
Andrew Hill wrote: There are cases where using Struts would be overkill. Hello World? ;-) I started out thinking this too, and was first using Struts more to build a skill set than because I thought it was going to actually help me get a project done faster. Now my first step of any project is to copy over struts-blank.war. It seems that no matter how simple the project at some point I'm going to be writing least two struts features myself if I don't use it. Even if I were doing a site with no forms at all I'd want Tiles. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: help needed with DynaActionForm
...I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? actually, i found some documentation about this on the web. You can subclass DynaActionForm and add your own attributes, but it sort of defeats the purpose of having a DynaForm. You'll sort of have a half and half form and im not sure how i feel about that. for the DynaForms, you can put ANY object into the form, because it stores all objects in a HashMap. However, when you get to validation and returning objects to the form on submit, it gets messy. The DynaForms still need some time to mature... dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: help needed with DynaActionForm Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
Great! Thanks for the info. One problem, I can't seem to find this on the Struts site. Can you send me a URL? Thanks, JOHN -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 9:03 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The nightly build has exactly what you are looking for in the contrib folder. Here is the readme: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- cookie c:set, EL define c:set, EL header c:set, EL include c:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqualc:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThanc:if, c:when, EL notEmptyc:if, c:when, EL notEqualc:if, c:when, EL notPresent c:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL -- None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:58 AM To: Struts-Help (E-mail) Subject: Struts Tags vs. JSTL My team is interested in using the JSTL as it offers several advantages (standardization, container optimization, expression language, potential future tools, etc.). Until now, we've strictly been using the Struts custom tags (and a few that we extended). These are the guidelines I want to setup for our developers: 1) If a tag's functionality is duplicated in both the JSTL and Struts, use the JSTL version. In the long run, it will probably deprecate the Struts tag. 2) For tags tied directly to the Struts framework (e.g. html:errors, html:javascript, etc.), use the Struts version (for obvious reasons). Does this make sense? Have others done this? One thing I was
RE: Opening PDF file: Problem and Solution
Neil I wonder if your image/jpeg files displayed ok in Netscape? Its a couple of years ago, nothing to do with struts, but I had a servlet, serving up images, that was not setting the image type correctly. I was serving jpegs, giff etc. but the servlet had hardcoded image/gif. Internet explorer somehow just coped with it and displayed the images. IE seemed either very lax about it or really smart depending on your point of view. Netscape 4.7 just wouldn't display anything. Regards Quentin -Original Message- From: Neil Carusetta [mailto:ncarusetta;computer-guidance.com] Sent: 14 November 2002 15:47 To: [EMAIL PROTECTED] Subject: Opening PDF file: Problem and Solution Has anyone had any difficulties with opening a PDF file byte stream in a browser using sub-apps? We got it working but are still unclear as to exactly the reason. Up front I'll mention that we are using sub-applications. We had an action which places a PDF file in the form of a byte[] out on the ServletOutputStream. For some reason the file would not display in the Acrobat plugin. The IE dialog to open or save the file would instead appear. At this point we were able to save the PDF to the client machine, but still remained with the problem of not being able to view the PDF in IE. Now trying this same thing using just a default app worked fine. But we had to make it work using a sub-app. Now comes the confusing part. Streaming out JPEG and Word files worked just fine in our sub-app. Of course, for all three files we are setting the appropriate contentType on the response. We then thought that there might be a problem with the sub-app's configuration. We noticed that in the struts config file, through the controller element, we were setting the contentType to text/html. For some reason, removing the contentType allowed the stream to be opened in Acrobat. It seems that the contentType setting in the sub-app was overriding that for application/pdf but not for image/jpeg or application/msword. Does anyone know why this would be the case? Best of luck, Neil Carusetta CGC Scottsdale, AZ -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: NEWBIE-Quesion? add a querystring to html:form
maybe you should use a form with session scope instead of request scope so the data edited in the fields which are not in the present form will be still stored in the session without repeat it in the parameters -Message d'origine- De : Mouratidis, Georg [mailto:GMouratidis;heiler.com] Envoyé : jeudi 14 novembre 2002 13:54 À : [EMAIL PROTECTED] Objet : NEWBIE-Quesion? add a querystring to html:form Hi, How can i add a received querystring - not through STRUTS action - to the html:form attribut action. like this html:form action=organization.do?%= request.QueryString() % if i do thhis in the source i see: form name=organizationForm method=POST action=/PCX/organization.do?%= request.getQueryString()% id=organizationForm what do i do wrong. I do not want to create for each paramter an hidden input field. can somebody help? thanks mit freundlichen Grüßen Georg XL. Mouratidis Web Application Developer Heiler|Software AG Mittlerer Pfad 9 D-70499 Stuttgart Tel: 0711-139 84-265 Fax: 0711-866 63 01 Email: [EMAIL PROTECTED] Connecting Buyer and Supplier http://www.heiler.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: [OT] Where can I find a Struts / J2EE Jobs?
--- Davide Bruzzone [EMAIL PROTECTED] wrote: Khalid, This is all just common sense really, but it helped me when I was laid off at the end of June (BTW, I was working again in five weeks, and as much as I'd like to think that I'm a rock star, I think I was monumentally lucky)... However, if it can help you or someone else on the list... I live in Colorado and as I said, I was laid off from a telecom company at the end of June... I found my new job through a Yahoo job board (specifically the Rocky Mountain Internet Users' Group Job board - which you won't care about given that you live in the UK...). Anyway, here's what I learned: - There seem to be a lot of job bots out there. My current employer didn't post the opening on the board where I found it. They posted it on Dice from where it was eventually scraped. I personally didn't have much luck with the big job sites (Monster, Dice, etc.). There didn't seem to be very many postings there, and they seemed to be fairly stale/stagnant. OTOH, smaller, more informal job boards seemed to have a steady trickle of new postings. Hi Davide Thank you sir! I presume you are talking about DICE.com You said that you didn't find it on Dice, but it was found somewhere else. You didn't where you found the informal job boards. - Keywords, keywords, keywords! My employer received 800 resumes (or for those of you across the pond, CVs) for my position. They eliminated 90% of those without even looking at them (they used keyword search software). Companies are having to do this because of the ratio of available positions to available candidates. Bloody hell! That is a huge ratio 800 to 1! I had a suspicion about search keyword software but I didn't realize. I will definitely update my CV to be completely keyword specific. You know this is so similar to static web design with META tags. My CV is two pages long, and it is rather concise, but I have had a request from an agency a couple of weeks ago to include my technologies and buzz word keywords that increased to three pages. Most of the agents said I have good looking CV. I have had interviews with many agencies, but I got the feeling that they were just to polite sometimes. When they had me in for the interview I felt they were being a little cynical, and maybe that were trawling the web for talent. I can understand, because they are so few jobs and lots of agency trying to change the commission for the candidate who can exactly fit the required job specification. pre-screenings with the remaining 80 people, and eventually met about 10 of those 80 in person. The second page of my resume contains all my technical skills, and is very keyword rich. You're up against a lot of other candidates, so make sure you can get through the filtering software by including everything you know on your resume (all the acronyms, tools, etc.). I know of one other former colleague who has had to do a telephone interview with a contact that she had two months ago. It is very easy to get depressed, and miserable. However, I very grateful for advice. You did n't by any chance have a hand in writing this keyword search software, did you? ;-) - Observe protocol. You're right, its an employer's market right now, and employers can be picky, so observe all the courtesies, etc. I learned this in the so you've been shitcanned class that my previous employer most graciously sent us to after having us vacate the building in 45 minutes or less Oh wee! It is so sad. I was called to boardroom in our law / human resources at exactly 9:10 in the morning. They didn't even give me time to clear my desk, the f***ing b**ds! (The politically correct term was Career transition class... :-) ), and the people who interviewed me at my new employer told me that they were impressed by it. If you get an interview, send personalized thank you letters (good paper, etc.) to everyone you talk to, etc. It just helps you stand out. Yes I am English, I was born in London, my parents came from abroad. So I should be the one with the English manners and politeness ;-) As I said, its all common sense, but if it helps... Best of luck... Dave Where can I find a list of these informal job boards? And thanks again rgds /Khalid/ __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
http://jakarta.apache.org/builds/jakarta-struts/nightly/ Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 11:08 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL Great! Thanks for the info. One problem, I can't seem to find this on the Struts site. Can you send me a URL? Thanks, JOHN -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 9:03 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The nightly build has exactly what you are looking for in the contrib folder. Here is the readme: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- cookie c:set, EL define c:set, EL header c:set, EL include c:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqualc:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThanc:if, c:when, EL notEmptyc:if, c:when, EL notEqualc:if, c:when, EL notPresent c:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL -- None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:58 AM To: Struts-Help (E-mail) Subject: Struts Tags vs. JSTL My team is interested in using the JSTL as it offers several advantages (standardization, container optimization, expression language, potential future tools, etc.). Until now, we've strictly been using the Struts custom tags (and a few that we extended). These are the guidelines I want to setup for our developers: 1) If a tag's functionality is duplicated in both the JSTL and
RE: help needed with DynaActionForm
I'm speaking at the edge of understanding here, but... If BeanUtils is underlying this whole thing, then you should be able to create the user-objects instead of defaulting them to null (using the JavaBean no-arg ctor). And following on that you could use the property referencing struture used by the rest of Struts (e.g. object.field or object[0].object.field) to handle the validation. At first at least, one could implement this by handling user-objects but requiring that the last value in the property referencing be a primitive or Strings (for validation and returning objects to the form). Then I guess it could be expanded to user-objects using a Validatable interface (similar to the Comparable interface used by Arrays.sort). -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:00 To: 'Andy Kriger'; 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm ...I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? actually, i found some documentation about this on the web. You can subclass DynaActionForm and add your own attributes, but it sort of defeats the purpose of having a DynaForm. You'll sort of have a half and half form and im not sure how i feel about that. for the DynaForms, you can put ANY object into the form, because it stores all objects in a HashMap. However, when you get to validation and returning objects to the form on submit, it gets messy. The DynaForms still need some time to mature... dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: help needed with DynaActionForm Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). Can anyone who has done this successfully point me in the right direction? thx andy -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Using Javascript submit(), how can I tell what did the submitin an action?
I have a form with multiple drop downs that do a Javascript submit() when they are changed. (This is so that they can change other drop downs.) The problem is that once I get into the action, how can I tell which drop down's onchange event caused the submit? I can't find any request parameters that are set. Any ideas? Thanks, Ryan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: logic-match/compare multiple values
Actually, you don't have to use struts-el for this, your c:if expression should work, but you might try changing the and to lt and gt. -Original Message- From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in] Sent: Thursday, November 14, 2002 1:38 AM To: 'Struts Users Mailing List' Subject: logic-match/compare multiple values Hi, We need to match a report ID from one of the scopes with a set of integers. Now logic-match example compares with single values. Do I have to use struts-el for this ? Are there examples of logic-match to do this ? The JSTL code that doesn't seem to work is c:if test= ${sessionScope.reportBean.reportID 39 and sessionScope.reportBean.reportID 60} /c:if reportBean is the variable name put in one of the scopes. reportID has a matching getter method. Thanks, Mohan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: [OT] Where can I find a Struts / J2EE Jobs?
I just want to observe that I have never used a job website. I'm not saying that they don't or can't work, but I've received 100% of my employment so far from either word of mouth or using a technical recruiter. This has worked both sides of the pond. I started in the industry in 1990 when I graduated from Plymouth University (England) and I remember that you had to be thankful for anything that paid money. There was no annoying the boss back then, or you'd be picking up your P45 (pink slip for the Yankees on the list). Make friends with your local recruiters, be prepared to move anywhere in the country and be certain to have an HTML version of your CV/resume on a website. And, yes, make certain that it is FULLY BUZZWORD COMPLIENT. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Khalid Aslan [mailto:sheik_ya_bootie;yahoo.co.uk] Sent: Thursday, November 14, 2002 10:17 AM To: Struts Users Mailing List Subject: RE: [OT] Where can I find a Struts / J2EE Jobs? --- Davide Bruzzone [EMAIL PROTECTED] wrote: Khalid, This is all just common sense really, but it helped me when I was laid off at the end of June (BTW, I was working again in five weeks, and as much as I'd like to think that I'm a rock star, I think I was monumentally lucky)... However, if it can help you or someone else on the list... I live in Colorado and as I said, I was laid off from a telecom company at the end of June... I found my new job through a Yahoo job board (specifically the Rocky Mountain Internet Users' Group Job board - which you won't care about given that you live in the UK...). Anyway, here's what I learned: - There seem to be a lot of job bots out there. My current employer didn't post the opening on the board where I found it. They posted it on Dice from where it was eventually scraped. I personally didn't have much luck with the big job sites (Monster, Dice, etc.). There didn't seem to be very many postings there, and they seemed to be fairly stale/stagnant. OTOH, smaller, more informal job boards seemed to have a steady trickle of new postings. Hi Davide Thank you sir! I presume you are talking about DICE.com You said that you didn't find it on Dice, but it was found somewhere else. You didn't where you found the informal job boards. - Keywords, keywords, keywords! My employer received 800 resumes (or for those of you across the pond, CVs) for my position. They eliminated 90% of those without even looking at them (they used keyword search software). Companies are having to do this because of the ratio of available positions to available candidates. Bloody hell! That is a huge ratio 800 to 1! I had a suspicion about search keyword software but I didn't realize. I will definitely update my CV to be completely keyword specific. You know this is so similar to static web design with META tags. My CV is two pages long, and it is rather concise, but I have had a request from an agency a couple of weeks ago to include my technologies and buzz word keywords that increased to three pages. Most of the agents said I have good looking CV. I have had interviews with many agencies, but I got the feeling that they were just to polite sometimes. When they had me in for the interview I felt they were being a little cynical, and maybe that were trawling the web for talent. I can understand, because they are so few jobs and lots of agency trying to change the commission for the candidate who can exactly fit the required job specification. pre-screenings with the remaining 80 people, and eventually met about 10 of those 80 in person. The second page of my resume contains all my technical skills, and is very keyword rich. You're up against a lot of other candidates, so make sure you can get through the filtering software by including everything you know on your resume (all the acronyms, tools, etc.). I know of one other former colleague who has had to do a telephone interview with a contact that she had two months ago. It is very easy to get depressed, and miserable. However, I very grateful for advice. You did n't by any chance have a hand in writing this keyword search software, did you? ;-) - Observe protocol. You're right, its an employer's market right now, and employers can be picky, so observe all the courtesies, etc. I learned this in the so you've been shitcanned class that my previous employer most graciously sent us to after having us vacate the building in 45 minutes or less Oh wee! It is so sad. I was called to boardroom in our law / human resources at exactly 9:10 in the morning. They didn't even give me time to clear my desk, the f***ing b**ds! (The politically correct term was Career transition class...
RE: Using Javascript submit(), how can I tell what did the submit in an action?
I see several strategies for this: 1. Design your page and your Action so you don't need to know. Your request parameters will indicate the current settings. This will allow your page to work even if javascript is disabled (an unfortunate consideration). 2. Put each drop down into its own form. 3. Make the onchange handler also use dhtml to set the value of a hidden field. -Original Message- From: Ryan Cornia [mailto:RCORNIA;utah.gov] Sent: Thursday, November 14, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: Using Javascript submit(), how can I tell what did the submit in an action? I have a form with multiple drop downs that do a Javascript submit() when they are changed. (This is so that they can change other drop downs.) The problem is that once I get into the action, how can I tell which drop down's onchange event caused the submit? I can't find any request parameters that are set. Any ideas? Thanks, Ryan -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: [Struts Tip] #14 Use optional forwarding to extend Actions
Ted Husted wrote: Many times you will find that two Actions are very similar but need one small behavior to change. One good way to handle this is to subclass one Action from the other and change the behavior that way. Though, in the case of an Action, the behavior may buried in the perform (or execute) method. It may also not really seem worth a hotspot method of its own. [more ... http://husted.com/struts/tips/014.html] -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org Are all these cool tips in the book? (Which I have ordered from Amazon) :) -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1
Hi all- we have an application originally written to struts 1.1b2 and J2SDK 1.3.1_03 that was working fine. Recently, we've been given the signal to upgrade to J2SDK 1.4.1. Fine, but now we're finding that our form posts are failing with IndexOutOfBoundsException. I've traced through the Struts source with a debugger and found the problem in this block of PropertyUtils code: // Call the property getter and return the value Object value = readMethod.invoke(bean, new Object[0]); if (!value.getClass().isArray()) { if (!(value instanceof java.util.List)) { throw new IllegalArgumentException(Property ' + name + ' is not indexed); } else { //get the List's value return ((java.util.List) value).get(index); } } else { //get the array's value return (Array.get(value, index)); } It seems to me that the line: return ((java.util.List) value).get(index) fails because the form bean just got created by Struts and hasn't been populated yet. However, it works just fine when I switch back to JDK 1.3.1. Anyone got any suggestions as to what might be happening? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
optionsCollection error Failed to obtain specified collectionafter unsuccessful validate()
I'm using the Struts nightly build from nov. 13. Initially I populate an ArrayList in a Validator form in an Action with authentication types for a login screen. In the jsp page, the authentication types are displayed with an optionsCollection tag: html:select property=authType html:optionsCollection property=authSchemes value=value label=shortName/ /html:select These are displayed successfully when the screen is diasplayed. When I submit and purposefully leave out a required field (like username) from the login form and submit, the screen should redisplay with appropriate messages (it does without the optoinsCollection and select tags). It doesn't. I get the message: javax.servlet.jsp.JspException: Failed to obtain specified collection at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:233) So where is the collection going? It is in the form instantiation because I 'set' it in the form in the initial action. Does the form reset() and get rid of every attribute, including the array list? Any help is appreciated. Thanks, Adam K. p.s. I got the same problem with putting the Array List in the request object after an unsuccessful validation. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: help needed with DynaActionForm
interesting idea, but i dont think beanUtils is driving the whole dynaforms thing. I think its just a big HashMap they stick stuff into (for the moment). The big problem is that DynaForms requires you to specify the initial values in the form-property as that initial value. So, with complex value objects and Collections, its not smart enough (yet) to instantiate even an empty object. It only knows how to create Wrapper classes with values in them. That's why i started toying with the direct DynaActionForm.set() in the action class. As far as i explored, that was the only way to get around this. And if you are using the XML validation in conjuction, it gets even messier my friend. dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 11:19 AM To: Struts Users Mailing List Subject: RE: help needed with DynaActionForm I'm speaking at the edge of understanding here, but... If BeanUtils is underlying this whole thing, then you should be able to create the user-objects instead of defaulting them to null (using the JavaBean no-arg ctor). And following on that you could use the property referencing struture used by the rest of Struts (e.g. object.field or object[0].object.field) to handle the validation. At first at least, one could implement this by handling user-objects but requiring that the last value in the property referencing be a primitive or Strings (for validation and returning objects to the form). Then I guess it could be expanded to user-objects using a Validatable interface (similar to the Comparable interface used by Arrays.sort). -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:00 To: 'Andy Kriger'; 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm ...I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? actually, i found some documentation about this on the web. You can subclass DynaActionForm and add your own attributes, but it sort of defeats the purpose of having a DynaForm. You'll sort of have a half and half form and im not sure how i feel about that. for the DynaForms, you can put ANY object into the form, because it stores all objects in a HashMap. However, when you get to validation and returning objects to the form on submit, it gets messy. The DynaForms still need some time to mature... dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: help needed with DynaActionForm Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not
RE: help needed with DynaActionForm
If only there were time on my current project to explore this and get it done right by extending the existing Struts architecture. For the while I'll have to go back to Strings and convert them to objects in the Action. -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:36 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm interesting idea, but i dont think beanUtils is driving the whole dynaforms thing. I think its just a big HashMap they stick stuff into (for the moment). The big problem is that DynaForms requires you to specify the initial values in the form-property as that initial value. So, with complex value objects and Collections, its not smart enough (yet) to instantiate even an empty object. It only knows how to create Wrapper classes with values in them. That's why i started toying with the direct DynaActionForm.set() in the action class. As far as i explored, that was the only way to get around this. And if you are using the XML validation in conjuction, it gets even messier my friend. dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 11:19 AM To: Struts Users Mailing List Subject: RE: help needed with DynaActionForm I'm speaking at the edge of understanding here, but... If BeanUtils is underlying this whole thing, then you should be able to create the user-objects instead of defaulting them to null (using the JavaBean no-arg ctor). And following on that you could use the property referencing struture used by the rest of Struts (e.g. object.field or object[0].object.field) to handle the validation. At first at least, one could implement this by handling user-objects but requiring that the last value in the property referencing be a primitive or Strings (for validation and returning objects to the form). Then I guess it could be expanded to user-objects using a Validatable interface (similar to the Comparable interface used by Arrays.sort). -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:00 To: 'Andy Kriger'; 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm ...I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? actually, i found some documentation about this on the web. You can subclass DynaActionForm and add your own attributes, but it sort of defeats the purpose of having a DynaForm. You'll sort of have a half and half form and im not sure how i feel about that. for the DynaForms, you can put ANY object into the form, because it stores all objects in a HashMap. However, when you get to validation and returning objects to the form on submit, it gets messy. The DynaForms still need some time to mature... dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: help needed with DynaActionForm Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: Struts Users Mailing List Subject: help needed with DynaActionForm I am trying to set
RE: help needed with DynaActionForm
I hear you, I had the same problem with time constraints. We ended up going for traditional forms to save time/hassle. dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 11:44 AM To: Struts Users Mailing List Subject: RE: help needed with DynaActionForm If only there were time on my current project to explore this and get it done right by extending the existing Struts architecture. For the while I'll have to go back to Strings and convert them to objects in the Action. -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:36 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm interesting idea, but i dont think beanUtils is driving the whole dynaforms thing. I think its just a big HashMap they stick stuff into (for the moment). The big problem is that DynaForms requires you to specify the initial values in the form-property as that initial value. So, with complex value objects and Collections, its not smart enough (yet) to instantiate even an empty object. It only knows how to create Wrapper classes with values in them. That's why i started toying with the direct DynaActionForm.set() in the action class. As far as i explored, that was the only way to get around this. And if you are using the XML validation in conjuction, it gets even messier my friend. dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 11:19 AM To: Struts Users Mailing List Subject: RE: help needed with DynaActionForm I'm speaking at the edge of understanding here, but... If BeanUtils is underlying this whole thing, then you should be able to create the user-objects instead of defaulting them to null (using the JavaBean no-arg ctor). And following on that you could use the property referencing struture used by the rest of Struts (e.g. object.field or object[0].object.field) to handle the validation. At first at least, one could implement this by handling user-objects but requiring that the last value in the property referencing be a primitive or Strings (for validation and returning objects to the form). Then I guess it could be expanded to user-objects using a Validatable interface (similar to the Comparable interface used by Arrays.sort). -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 11:00 To: 'Andy Kriger'; 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm ...I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? actually, i found some documentation about this on the web. You can subclass DynaActionForm and add your own attributes, but it sort of defeats the purpose of having a DynaForm. You'll sort of have a half and half form and im not sure how i feel about that. for the DynaForms, you can put ANY object into the form, because it stores all objects in a HashMap. However, when you get to validation and returning objects to the form on submit, it gets messy. The DynaForms still need some time to mature... dz -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Thursday, November 14, 2002 10:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: help needed with DynaActionForm Currently the first action in my webapp is an ForwardAction that takes you to the JSP. So, if I understand you right, I could make this work by replacing that with an Initalization action that creates the objects for use in the form. I'll try that and report back. I'm guessing it wouldn't be that hard to extend the form to handle any old Object, maybe someone more in the know with the src can comment on this? thx andy -Original Message- From: Drew Zimber [mailto:drew.zimber;shaws.com] Sent: Thursday, November 14, 2002 10:35 To: 'Struts Users Mailing List' Subject: RE: help needed with DynaActionForm from: http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act ion_form_classes The list of types supported by DynaActionForm beans includes: java.lang.BigDecimal java.lang.BigInteger boolean and java.lang.Boolean byte and java.lang.Byte char and java.lang.Character java.lang.Class double and java.lang.Double float and java.lang.Float int and java.lang.Integer long and java.lang.Long short and java.lang.Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp now, with that being said. I have used my own classes in the DynaForms, but they wil lbe initialized to null UNLESS you do the following: 1) in the Action class, cast the form to a DynaActionForm 2) do an explicit myForm.set(myProperty, new myObject()) type call all in all, i did alot of research on dynaforms and they are pretty useful, but in my opinion they arent versatile enough
RE: [ANNOUNCE] Tiles and Validator Support in ObjectAssembler 2.5
If anyone had trouble getting to the download or support site, please try again. We've cleared up some bandwidth issues. Regards, Bill -Original Message- From: Bill Willis [mailto:bwillis;objectventure.com] Sent: Wednesday, November 13, 2002 11:19 PM To: [EMAIL PROTECTED] Subject: [ANNOUNCE] Tiles and Validator Support in ObjectAssembler 2.5 ObjectAssembler 2.5 Pro is now available: http://www.objectventure.com/objectassembler.html New Struts features in this release: - Full support for Tiles definitions - Full support for Validator 1.0 configurations - Jump from any element in our visual editor to its associated XML - Two-way development. Changes made to XML are immediately reflected in the visual editor and vice versa - Two additional component types: Struts Exception and Validator (allows the implementation of Validator rules). For each of these components that are created, their use is automated in the Struts, Tiles, and Validator configuration editor - Updated all Struts support to the latest 1.1 builds. ObjectAssembler doesn't just help you generate configuration files. It is a component-based Struts development environment that assists you in building both Struts components and configuration files. It also automates the process of packaging them in a WAR and generating the WAR itself. ObjectAssembler is currently supported in Jbuilder, Netbeans, Sun ONE Studio, and as a standalone IDE. We are working on the next supported IDE (the most popular requests being IDEA and Eclipse). I invite you to take ObjectAssembler for a spin. The User Manual, which is provided with the installation, explains how to make use of ObjectAssembler's Struts support. We also have some simple Struts Viewlets available here if you aren't quite up to downloading yet: http://www.objectventure.com/demos.html. If you have any questions/problems/feedback, please contact me directly or join me here: http://support.objectventure.net. Thanks to all of you who have already done so and provided valuable feedback! Best Regards, Bill Willis ObjectVenture Inc. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: help needed with DynaActionForm
On Thu, 14 Nov 2002, Andy Kriger wrote: Date: Thu, 14 Nov 2002 10:24:55 -0500 From: Andy Kriger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: help needed with DynaActionForm I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that DynaActionForm is not initializing the CreditCard object, but I don't know why (I thought that was the point of DynaActionForm - to be able to use any object and initialize it from the form automatically). You can auto-initialize primitives (and things like that) by using the initial attribute on the form-property element. But initializing a property that is an object requires an *instance* of that object to be available. It's not appropriate for a general purpose framework to just go and try to create such things, and hope that it's OK. A couple of strategies to consider: * Create the form bean in a separate Action that can pre-initialize all of the necessary properties for you. This will often be the best course of action when you are creating edit forms for modifying existing database data. * Create a custom subclass of DynaActionForm with a reset() method that, among other things, instantiates your credit card object and stores it: put(creditCard, new my.package.CreditCard()); Struts calls the reset() method for you when *it* creates the form bean instance. If you create one yourself, you'll need to remember to call this method. Can anyone who has done this successfully point me in the right direction? thx andy Craig -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: RE still a problem: RE: StrutsTestCase + overriding setUpwithout calling super.setUp() ERROR
On Thu, 2002-11-14 at 10:38, Maarten Volders wrote: Still the same problem here, he's still complaining that i'm overriding setUp() but that I have to implement super.setUp(), but you can see clearly in my code that I implement that method. Anyone with other suggestions??? I'm using Intellij 3.0 to run my unit test, but al my other unit tests run fine with it so I don't see the problem here. public void setUp() { try { super.setUp(); // !!! } catch(Exception e) {} } public SearchXtantActionTest(String testName) { super(testName); setConfigFile(E:/CBB/xml/web/UI); } I'm pretty sure you need to move setConfigFile() to setUp() (after super.setUp()) rather than putting it in the constructor. Chris -- Chris Winters ([EMAIL PROTECTED]) Java Developer -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: file upload + WebSphere 4.0 - IOException while reading file element
David, This *may* be a WebSphere issue. We were working on a non-Struts web app over this past Summer in which we had problems uploading large files (anything over 15K, I think). I believe we resorted to using a program one of our iSeries developers created as our work-around for uploading larger files. Susan Bradeen Purcell, Dave [EMAIL PROTECTED] 11/14/2002 10:36 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:file upload + WebSphere 4.0 - IOException while reading file element I apologize if this is answered elsewhere in the list. I couldn't find a similar entry. I am using WebSphere 4.0 with Struts 1.0.2. I am trying to upload files (multiple files per request) and am having problems. Very small files seem to work fine (10k). However, large files (50k) fail - before it reaches any code in my Action class. The following are the messages that are thrown in the servlet log. [Servlet LOG]: action: Populating bean properties from this request Servlet Error: IOException while reading file element: Premature end of stream while reading multipart request: java.io.IOException: Premature end of stream while reading multipart request Is there a known defect that is causing this problem, or a setting that I have missed? If file upload isn't working in this configuration, is there a known work-around where I could implement my own DiskMultipartRequestHandler and simply avoid the File elements, and use another approach to handle the uploaded files (such as Marsh?). Any help would be appreciated. Thanks. David Purcell [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
still a problem: RE: StrutsTestCase + overriding setUp without callingsuper.setUp() ERROR
On Thu, 2002-11-14 at 10:38, Maarten Volders wrote: Still the same problem here, he's still complaining that i'm overriding setUp() but that I have to implement super.setUp(), but you can see clearly in my code that I implement that method. Anyone with other suggestions??? I'm using Intellij 3.0 to run my unit test, but al my other unit tests run fine with it so I don't see the problem here. public void setUp() { try { super.setUp(); // !!! } catch(Exception e) {} } public SearchXtantActionTest(String testName) { super(testName); setConfigFile(E:/CBB/xml/web/UI); } Rewrite it like: public void setUp() { try { super.setUp(); // !!! setConfigFile(E:/CBB/xml/web/UI); } catch(Exception e) {} } public SearchXtantActionTest(String testName) { super(testName); } The reason you're getting the exception is that you're trying to set the config file in the constructor - which is called before setUp has been called. You cant set the config file (or do anything really) until after super.setUp() has been called. AndNowForSomethingCompletelyDifferent While we're talking about it, I've been thinking of submitting a patch to StrutsTestCase to allow you to override having the Struts environment reset between test methods. I'm pretty sure I could make the change in just one or two classes. This is really against the JUnit philosophy - but it would be really useful and convenient. Would anyone else support this? /AndNowForSomethingCompletelyDifferent Best of luck, Kevin http://www.strutskickstart.com --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
I'm still getting up to speed with the JSTL. How come the iterate is still in the Struts-EL library. Does it contain something specific to the Struts framework? Thanks! JOHN -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 10:19 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL http://jakarta.apache.org/builds/jakarta-struts/nightly/ Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 11:08 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL Great! Thanks for the info. One problem, I can't seem to find this on the Struts site. Can you send me a URL? Thanks, JOHN -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 9:03 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The nightly build has exactly what you are looking for in the contrib folder. Here is the readme: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- cookie c:set, EL define c:set, EL header c:set, EL include c:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqualc:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThanc:if, c:when, EL notEmptyc:if, c:when, EL notEqualc:if, c:when, EL notPresent c:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL -- None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:58 AM To: Struts-Help (E-mail) Subject: Struts Tags vs. JSTL My team is interested in
RE: [OT] Where can I find a Struts / J2EE Jobs?
Khalid, This is all just common sense really, but it helped me when I was laid off at the end of June (BTW, I was working again in five weeks, and as much as I'd like to think that I'm a rock star, I think I was monumentally lucky)... However, if it can help you or someone else on the list... I live in Colorado and as I said, I was laid off from a telecom company at the end of June... I found my new job through a Yahoo job board (specifically the Rocky Mountain Internet Users' Group Job board - which you won't care about given that you live in the UK...). Anyway, here's what I learned: - There seem to be a lot of job bots out there. My current employer didn't post the opening on the board where I found it. They posted it on Dice from where it was eventually scraped. I personally didn't have much luck with the big job sites (Monster, Dice, etc.). There didn't seem to be very many postings there, and they seemed to be fairly stale/stagnant. OTOH, smaller, more informal job boards seemed to have a steady trickle of new postings. Thank you sir! I presume you are talking about DICE.com Yes. You said that you didn't find it on Dice, but it was found somewhere else. You didn't where you found the informal job boards. Word of mouth. I started going to every career fair, Internet Chamber of Commerce meeting, other meetings where unemployed IT people would congregate, etc. I was officially unemployed for four weeks, and during that time I managed to put together quite a collection of business cards. I also had a layoff buddy (another guy from my team who was laid off when I was) with whom I exchanged information, swapped leads, etc. Its just a matter of knocking on every door you can think of. What I think really sucks are the pay sites that are preying on people who are in a situation where they don't have a lot of extra disposable income. Interestingly, although these sites claim that their Fuzzy logic, neural net, AI-based systems will find postings that you won't find anywhere else, I found this not to be true. The free teaser posting titles that the pay sites would e-mail me were exactly the same as those that I would find on the free boards. - Keywords, keywords, keywords! My employer received 800 resumes (or for those of you across the pond, CVs) for my position. They eliminated 90% of those without even looking at them (they used keyword search software). Companies are having to do this because of the ratio of available positions to available candidates. Bloody hell! That is a huge ratio 800 to 1! I had a suspicion about search keyword software but I didn't realize. I will definitely update my CV to be completely keyword specific. You know this is so similar to static web design with META tags. My CV is two pages long, and it is rather concise, but I have had a request from an agency a couple of weeks ago to include my technologies and buzz word keywords that increased to three pages. Most of the agents said I have good looking CV. I have had interviews with many agencies, but I got the feeling that they were just to polite sometimes. When they had me in for the interview I felt they were being a little cynical, and maybe that were trawling the web for talent. I can understand, because they are so few jobs and lots of agency trying to change the commission for the candidate who can exactly fit the required job specification. One of my colleagues here mentioned something that I thought was a good idea. Since resumes are supposed to be no more than two pages long, but IT people frequently have a difficult time keeping theirs that short, he said that he has one version where he adds everything that he does (Its five pages long), and one abridged two page version. And yes, Web-based resumes are a good place to put your long resume. I had even toyed with the idea of putting together a fancy Web-based resume with collapsible sections so that it could serve both purposes and could showcase my HTML skills, etc. Then I found a job and got lazy... :-/ As far as employment agencies are concerned, I found that the ones that I talked to here in the States are fairly hungry. Times are lean for them too. The problem they're having is a) There are so many candidates out there, and so many other avenues that companies and candidates can take that companies don't need them any more, and b) I found that when companies do use them, they go to multiple agencies and pit them against each other. pre-screenings with the remaining 80 people, and eventually met about 10 of those 80 in person. The second page of my resume contains all my technical skills, and is very keyword rich. You're up against a lot of other candidates, so make sure you can get through the filtering software by including everything you know on your resume (all the acronyms, tools, etc.). I know of one other former colleague who has had to do a telephone interview with a
deferring an action
This is something I haven't seen discussed before. Our web application has a large, dynamically built tree in its own frame by which users navigate to input screens. ( They can also click on menu options -- slightly different but raises the same issue for us.) Data entry is freeform -- users can navigate anywhere at any time. So far, no big deal. The unusual part is, when a user finishes entering data on a screen, then clicks to go to another screen, we automatically save the screen they're leaving. In a sense, we have to defer the page load action to do a save action on the prior page. So we're trying to come up with a clean way to fit this into Struts. The sequence is: Click link - save current page - respond with reassuring message in another frame (i.e. screen has been saved) - go to clicked link We haven't come up with any designs we like yet. One example of something we don't like: 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Ideas, anyone? (Sure, we could do away with the auto-save to make our app more webbish -- if it weren't a business requirement. Besides, it really is nice for the users.) Thanks, Alayne -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
The indexed tags feature, for one. I don't remember what else. -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:23 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL I'm still getting up to speed with the JSTL. How come the iterate is still in the Struts-EL library. Does it contain something specific to the Struts framework? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
JSP Debug / IDE's
I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. What am I missing? Thanks Edgar -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
Nested objects in combination with html tags. -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:26 PM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The indexed tags feature, for one. I don't remember what else. -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:23 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL I'm still getting up to speed with the JSTL. How come the iterate is still in the Struts-EL library. Does it contain something specific to the Struts framework? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: JSP Debug / IDE's
At least parts of this can be accomplished using Cactus. It allows you to run tests and log information while the code is actually deployed in the container. It's not the same as attaching to a container and setting breakpoints, etc. but I think it will help to avoid the need for that work anyway. Why set a break point and visually inspect a variable when you can write a Cactus test that inspects all the variables you want while only flagging you when it finds one that's not what it expects? In addition, with Cactus tests, you can leave them in the codebase and rerun them periodically (or even with every build/deploy cycle during development and testing) and use them to perform ongoing regression testing of all your code. StrutsTestCase makes writng Cactus tests for struts pretty straightforward. I provide sample code along with instructions and a copy of Catus in my book. Kevin http://www.strutskickstart.com edgar [EMAIL PROTECTED] on 11/14/2002 12:36:20 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:'Struts Users Mailing List' [EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:JSP Debug / IDE's I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. What am I missing? Thanks Edgar -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: JSP Debug / IDE's
I don't debug jsps because I've never had the need to. If your jsp is that complicated then you've probably got scriptlets/business logic in there :-(. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: JSP Debug / IDE's Date: Thu, 14 Nov 2002 12:36:20 -0500 I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. What am I missing? Thanks Edgar -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
Why would you ever want to debug a JSP. I see the need to debug action classes and back end components, but not JSPs. -Original Message- From: edgar [mailto:edgar;blue-moose.net] Sent: Thursday, November 14, 2002 12:58 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Visually Developing Struts Pages
Hi, I'm a web developer used to building sites/applications with DreamweaverMX and the older Ultradev. I'm now involved in building Struts applciations and would like to know what that best tools/methods are for visually building Struts applications? Any feedback is welcomed. Cheers, Jim -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: deferring an action
I would enforce the workflow. When the user wants to leave an editable form, if any fields were changed (dirty), then prompt to save changes. If no, then proceed as normal. But if yes, then call the normal save action (with either 'changes successful' page or 'error' page, however you are doing it) which keeps them in the workflow (e.g. validation of fields) and then provide some JavaScript to go to the originally selected URL (you'll need to store this prior to submitting the original form. So, the only difference between hitting save and clicking to go somewhere else is the location.href='somepage.do' somewhere. Of course, if there were errors, then you need to handle that as well. I'm guessing that hitting cancel at this point will let them escape the forced workflow/validation. This is also one good example of the reasons I don't like (or use) frames. If you are using a tree view script that displays something equivalent to an open folder (to visually show the user where they are in the app). Then, in cases like the above, you are constantly sending script back in the moving (target) frame to update the static (menu) one. Ack!!! James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Alayne Wartell [mailto:alayne.wartell;towers.com] Sent: Thursday, November 14, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: deferring an action This is something I haven't seen discussed before. Our web application has a large, dynamically built tree in its own frame by which users navigate to input screens. ( They can also click on menu options -- slightly different but raises the same issue for us.) Data entry is freeform -- users can navigate anywhere at any time. So far, no big deal. The unusual part is, when a user finishes entering data on a screen, then clicks to go to another screen, we automatically save the screen they're leaving. In a sense, we have to defer the page load action to do a save action on the prior page. So we're trying to come up with a clean way to fit this into Struts. The sequence is: Click link - save current page - respond with reassuring message in another frame (i.e. screen has been saved) - go to clicked link We haven't come up with any designs we like yet. One example of something we don't like: 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Ideas, anyone? (Sure, we could do away with the auto-save to make our app more webbish -- if it weren't a business requirement. Besides, it really is nice for the users.) Thanks, Alayne -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. I've debugged web applications with Netbeans 3.4/Weblogic 7.0 using the same way. It works fine.
RE: JSP Debug / IDE's
I finally found the Resin specific debug startup command to make the whole thing work. Much better. Thanks Edgar -Original Message- From: edgar [mailto:edgar;blue-moose.net] Sent: Thursday, November 14, 2002 12:58 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: deferring an action
I'm typing too fast today. So, the only difference between hitting save and clicking to go somewhere else is the location.href='somepage.do' somewhere that appears after the 'changes saved' or 'error' page is rendered. Of course, if there were errors, then you need to handle that as well. Meaning that they would need to fix them or hit cancel. I'm guessing that hitting cancel at this point will let them escape the forced workflow/validation. So a cancel will take them to the link they clicked on before they were prompted to save changes. Sorry, hope I got it right this time. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: James Mitchell [mailto:jmitchtx;telocity.com] Sent: Thursday, November 14, 2002 1:08 PM To: Struts Users Mailing List Subject: RE: deferring an action I would enforce the workflow. When the user wants to leave an editable form, if any fields were changed (dirty), then prompt to save changes. If no, then proceed as normal. But if yes, then call the normal save action (with either 'changes successful' page or 'error' page, however you are doing it) which keeps them in the workflow (e.g. validation of fields) and then provide some JavaScript to go to the originally selected URL (you'll need to store this prior to submitting the original form. So, the only difference between hitting save and clicking to go somewhere else is the location.href='somepage.do' somewhere. Of course, if there were errors, then you need to handle that as well. I'm guessing that hitting cancel at this point will let them escape the forced workflow/validation. This is also one good example of the reasons I don't like (or use) frames. If you are using a tree view script that displays something equivalent to an open folder (to visually show the user where they are in the app). Then, in cases like the above, you are constantly sending script back in the moving (target) frame to update the static (menu) one. Ack!!! James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -Original Message- From: Alayne Wartell [mailto:alayne.wartell;towers.com] Sent: Thursday, November 14, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: deferring an action This is something I haven't seen discussed before. Our web application has a large, dynamically built tree in its own frame by which users navigate to input screens. ( They can also click on menu options -- slightly different but raises the same issue for us.) Data entry is freeform -- users can navigate anywhere at any time. So far, no big deal. The unusual part is, when a user finishes entering data on a screen, then clicks to go to another screen, we automatically save the screen they're leaving. In a sense, we have to defer the page load action to do a save action on the prior page. So we're trying to come up with a clean way to fit this into Struts. The sequence is: Click link - save current page - respond with reassuring message in another frame (i.e. screen has been saved) - go to clicked link We haven't come up with any designs we like yet. One example of something we don't like: 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Ideas, anyone? (Sure, we could do away with the auto-save to make our app more webbish -- if it weren't a business requirement. Besides, it really is nice for the users.) Thanks, Alayne -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: deferring an action
Alayne, Would a time requirement mess things up? If not, your actions could simply place the forms into session scope. Most of our clients don't spend all day at their machines, so 30 minutes or so is too much of a constraint... Just a wild thought :o) Brian - Original Message - From: Alayne Wartell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:25 PM Subject: deferring an action This is something I haven't seen discussed before. Our web application has a large, dynamically built tree in its own frame by which users navigate to input screens. ( They can also click on menu options -- slightly different but raises the same issue for us.) Data entry is freeform -- users can navigate anywhere at any time. So far, no big deal. The unusual part is, when a user finishes entering data on a screen, then clicks to go to another screen, we automatically save the screen they're leaving. In a sense, we have to defer the page load action to do a save action on the prior page. So we're trying to come up with a clean way to fit this into Struts. The sequence is: Click link - save current page - respond with reassuring message in another frame (i.e. screen has been saved) - go to clicked link We haven't come up with any designs we like yet. One example of something we don't like: 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Ideas, anyone? (Sure, we could do away with the auto-save to make our app more webbish -- if it weren't a business requirement. Besides, it really is nice for the users.) Thanks, Alayne -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
templates: cant access request in included files???
hey all, im trying to get a template implementation going and none of the my html:text tags can find the form in one of the templated files: body ... form !-- in this file i cant see the request!!! -- template:get name=foo ... /form /body what is the deal with that!!! -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Need advice on implementing a view
I am builing a sort of reservation system using struts. I have all the components in place for CRUD and all is fine. The bosses, however, also want a big overview app. Basically it will be a big grid with a visual representaion of the reserved objects and the current population for each object. The overview does not need to tell you _who_ is resevered, just _how many_ people are curently occupying the obect. I already have views for the oject level operations. If there were 30-40 object this would be no big deal to me but we are talking about 250 objects and I am wondering how I represent all of them on the same web page. My other thought was that this might be a job for a dedicated swing app that could poll/refresh the data via an Action class. I figured it would be easier because you could zoom in and pan without the shock of refeshing a web page. What do you guys think? -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Visually Developing Struts Pages
I don't know how much help this is to you, but ObjectVenture does provide a GUI for Struts; however in the demo that I played with, it was little more than wizard-based adding of form elements and properties; the real meat and potatoes work was still hand coding. For us, we basically have a someone draft up the page in homesite / dreamweaver and then we just throw in the form elements as we see fit ( if they're advanced enough, we can even have them write up the form elements ) . we do the maintenance of the config file via James Holmes' excellent Struts Console. ObjectVenture's home page is ( unsurprisingly ) : http://www.objectventure.com. -Original Message- From: Jim Alemany [mailto:jalemany;descartes.com] Sent: Thursday, November 14, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: Visually Developing Struts Pages Hi, I'm a web developer used to building sites/applications with DreamweaverMX and the older Ultradev. I'm now involved in building Struts applciations and would like to know what that best tools/methods are for visually building Struts applications? Any feedback is welcomed. Cheers, Jim -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Struts Tags vs. JSTL
My team is interested in using the JSTL Has anyone seen something like this? I tried JSTL for 2 hours and I thrown away struts custom tags at once! Of course you should still use the HTML tags (or better HTML-EL) to render forms but you can use JSTL for anything else and is much *MUCH* clean, standard and powerful The only thing I miss is the function support which will be added in the servlet specs v2.0 regards -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: deferring an action
We can't prompt the users to save when they leave the page. We used to (back when life was simpler!) but it's too annoying -- they've got a huge set of data covering a huge number of screens, and do lots of moving around. 99% of the time they'd say yes anyway. We now have a rollback feature; much more pleasant for the users. (Read Alan Cooper if you want to know more about why minimal bothering of users is a good thing.) Incidentally, we don't do any page validation either. Users can enter any damn thing they please until such time as they choose a Validate feature, either for a page or the entire data set. Sounds strange, I know, but it makes sense for this application. And yeah, frames suck, but there they are anyway. Our navigation tree has the potential to be huge. We can't download it with every page hit. So all that aside...it sounds like your suggestion is quite like my original example. Would you agree? 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Maybe there isn't a better way. How sad that would be. From: James Mitchell [EMAIL PROTECTED] Date: Thu Nov 14, 2002 1:16 pm Subject: RE: deferring an action I'm typing too fast today. So, the only difference between hitting save and clicking to go somewhere else is the location.href='somepage.do' somewhere that appears after the 'changes saved' or 'error' page is rendered. Of course, if there were errors, then you need to handle that as well. Meaning that they would need to fix them or hit cancel. I'm guessing that hitting cancel at this point will let them escape the forced workflow/validation. So a cancel will take them to the link they clicked on before they were prompted to save changes. Sorry, hope I got it right this time. James Mitchell
RE: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1
Been doing some research since my last post. Here's the setup, same application code, same struts jars, same app server switching between JDK 1.3.1 and 1.4.1: When processing a submit, in the PropertyUtils the following check is made in the getIndexedProperty method on or around line 468: if (descriptor instanceof IndexedPropertyDescriptor) { With JDK 1.3.1 running descriptor is indeed an IndexedPropertyDescriptor, but with JDK 1.4.1 I get a java.beans.PropertyDescriptor, so the code passes by the block that should handle the property I've passed an onto a block of code that results in the IndexOutOfBoundsException. This seems like a 1.4.1 induced bug. Should I log it in Bugzilla? Has anyone else seen this bug? -Original Message- From: Jim Krygowski [mailto:james.krygowski;shaws.com] Sent: Thursday, November 14, 2002 11:32 AM To: Struts Users Mailing List Subject: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1 Hi all- we have an application originally written to struts 1.1b2 and J2SDK 1.3.1_03 that was working fine. Recently, we've been given the signal to upgrade to J2SDK 1.4.1. Fine, but now we're finding that our form posts are failing with IndexOutOfBoundsException. I've traced through the Struts source with a debugger and found the problem in this block of PropertyUtils code: // Call the property getter and return the value Object value = readMethod.invoke(bean, new Object[0]); if (!value.getClass().isArray()) { if (!(value instanceof java.util.List)) { throw new IllegalArgumentException(Property ' + name + ' is not indexed); } else { //get the List's value return ((java.util.List) value).get(index); } } else { //get the array's value return (Array.get(value, index)); } It seems to me that the line: return ((java.util.List) value).get(index) fails because the form bean just got created by Struts and hasn't been populated yet. However, it works just fine when I switch back to JDK 1.3.1. Anyone got any suggestions as to what might be happening? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
The Struts-el tags are great except there is no role parameter for the c:if ... tage? logic:present / was not ported. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: flare [mailto:flare;flare.it] Sent: Thursday, November 14, 2002 1:39 PM To: Struts Users Mailing List Subject: Re: Struts Tags vs. JSTL My team is interested in using the JSTL Has anyone seen something like this? I tried JSTL for 2 hours and I thrown away struts custom tags at once! Of course you should still use the HTML tags (or better HTML-EL) to render forms but you can use JSTL for anything else and is much *MUCH* clean, standard and powerful The only thing I miss is the function support which will be added in the servlet specs v2.0 regards -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
Can Struts-EL be used with Struts 1.0.2? Of course, assuming I pull the necessary files from the nightly. Sri -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 10:03 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The nightly build has exactly what you are looking for in the contrib folder. Here is the readme: Struts-EL extension === Introduction This subproject is an extension of the Struts tag library. Each JSP custom tag in this library is a subclass of an associated tag in the Struts tag library. One difference is that this tag library does not use rtexprvalues, it uses the expression evaluation engine in the JSP Standard Tag Library (version 1.0) to evaluate attribute values. In addition, some of the Struts tags were not ported to this library, as it was determined that their functionality was entirely supplied by the JSTL. These particular Struts tags, and the reason for their non-porting will be described in the documentation for this library. In order to fully understand the correct utilization of this library, you must understand the use and operation of the Struts tag library, and the use and operation of the JavaServer Pages Standard Tag Library (hereafter called the JSTL), along with the expression language (sometimes called the EL) used for evaluating attribute values. Tag Mapping --- In implementing the Struts-EL library, every Struts tag that provides a feature that is not covered by the JSTL (1.0) library is mapped into the Struts-EL library. This section reviews which Struts tags are NOT implemented in the Struts-EL library, and which JSTL tags provide that feature. Many of the non-porting decisions were based on the fact that the JSTL expression language itself provides the same functionality. In those cases, in addition to a possible JSTL tag name, the symbol EL will be listed. Bean Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- cookiec:set, EL define c:set, EL headerc:set, EL includec:import parameter c:set, EL write c:out Logic Tag Library Tags NOT Implemented in Struts-EL -- Struts TagJSTL Tag -- empty c:if, c:when, EL equal c:if, c:when, EL greaterEqual c:if, c:when, EL greaterThan c:if, c:when, EL lessEqual c:if, c:when, EL lessThan c:if, c:when, EL notEmpty c:if, c:when, EL notEqual c:if, c:when, EL notPresentc:if, c:when, EL present c:if, c:when, EL Html Tag Library Tags NOT Implemented in Struts-EL -- None (all of them were ported). Attribute Mapping - At this point of the implementation, there is only one change (to two similar tags) to the set of attributes between the Struts tags, and the Struts-EL tags. The logic:match and logic:notMatch tags have an additional attribute named expr, which can take any value, and will be used as the value to compare against, in addition to the choices of cookie, header, name/property, and parameter. Usage Requirements -- The Struts-EL tag library requires the use of the Struts tag library, and the Java Server Pages Standard Tag Library. It is not necessary for JSP pages using the Struts-EL tag library to also use the Struts tags or the JSTL tags, but the Struts and JSTL tag libraries need to be part of the application utilizing the Struts-EL tag library. This is because the Struts-EL tag classes are all subclasses of Struts tag classes, and their implementation uses classes provided by the JSTL. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: Hohlen, John [mailto:JHohlen;erac.com] Sent: Thursday, November 14, 2002 9:58 AM To: Struts-Help (E-mail) Subject: Struts Tags vs. JSTL My team is interested in using the JSTL as it offers several advantages (standardization, container optimization, expression language, potential future tools, etc.). Until now, we've strictly been using the Struts custom tags (and a few that we extended). These are the guidelines I want to setup for our developers: 1) If a tag's functionality is duplicated in both the JSTL and Struts, use the JSTL version. In the long run, it will probably deprecate the Struts tag. 2) For tags tied directly to the
Re: deferring an action
As a matter of fact, our users are chained to their desks. Ok, I'm lying. But your suggestion may have merit -- the form would be in session scope but not for very long -- just long enough to be put there when the user clicks a link, then saved, then it could go away. But would you mind explaining how putting the form in session scope would solve the issue at hand? In some nice clean struts-like way? The issue being 1) click for action #1 ; 2) perform action #2; 3) perform action #1 where actions 1 and 2 are arbitrary, not known ahead of time. Thanks, Alayne To: Struts Users Mailing List [EMAIL PROTECTED] Brian Hickey cc: (bcc: Alayne Wartell/Towers Perrin) bhickey@r-effectSubject: Re: deferring an action s.com 11/14/2002 01:21 PM Please respond to Struts Users Mailing List Alayne, Would a time requirement mess things up? If not, your actions could simply place the forms into session scope. Most of our clients don't spend all day at their machines, so 30 minutes or so is too much of a constraint... Just a wild thought :o) Brian - Original Message - From: Alayne Wartell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:25 PM Subject: deferring an action This is something I haven't seen discussed before. Our web application has a large, dynamically built tree in its own frame by which users navigate to input screens. ( They can also click on menu options -- slightly different but raises the same issue for us.) Data entry is freeform -- users can navigate anywhere at any time. So far, no big deal. The unusual part is, when a user finishes entering data on a screen, then clicks to go to another screen, we automatically save the screen they're leaving. In a sense, we have to defer the page load action to do a save action on the prior page. So we're trying to come up with a clean way to fit this into Struts. The sequence is: Click link - save current page - respond with reassuring message in another frame (i.e. screen has been saved) - go to clicked link We haven't come up with any designs we like yet. One example of something we don't like: 1) user fills out form, call it currentPage 1) user clicks to go to somePage.do 2) javascript puts somePage.do in hidden field on currentPage, and then initiates a submit of currentPage 3) submit to currentPageSave.do 3) action forwards to jsp with hidden form -- 'somePage.do' is the form action (also, javascript puts confirmation message in header frame) 4) immediately submit that form using javascript Ideas, anyone? (Sure, we could do away with the auto-save to make our app more webbish -- if it weren't a business requirement. Besides, it really is nice for the users.) Thanks, Alayne -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: Struts Tags vs. JSTL
Actually, I added logic-el:present and logic-el:notPresent after the initial checkin of the library (a month later). -Original Message- From: Madel,Kurt [mailto:kmadel;csmi.com] Sent: Thursday, November 14, 2002 10:45 AM To: 'Struts Users Mailing List' Subject: RE: Struts Tags vs. JSTL The Struts-el tags are great except there is no role parameter for the c:if ... tage? logic:present / was not ported. Kurt Madel Programmer, CSMi (703) 823-4300 ext. 170 -Original Message- From: flare [mailto:flare;flare.it] Sent: Thursday, November 14, 2002 1:39 PM To: Struts Users Mailing List Subject: Re: Struts Tags vs. JSTL My team is interested in using the JSTL Has anyone seen something like this? I tried JSTL for 2 hours and I thrown away struts custom tags at once! Of course you should still use the HTML tags (or better HTML-EL) to render forms but you can use JSTL for anything else and is much *MUCH* clean, standard and powerful The only thing I miss is the function support which will be added in the servlet specs v2.0 regards -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org