Problem with formatKey using java.lang.Double that works with primitive double
I have been using Struts extensively in my applications for several years and recently noticed some strange behavior. I format numbers and dates as follows: This is used in hundreds of places throughout my application and works fine if the value is java.lang.Double, but recently this started acting strangely for no reason. It will not format some values unless I declare them as primitive values. As soon as I change numTons on the release object it formats fine. I do not understand what is going on as I always use java.lang.Double and never use the primitive type in my objects. Why all of a sudden would this work in some places and not in others? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com
Is session.setAttribute unique for all sessions?
In an Action, an attribute is set by session.setAttribute("Privileges", userPrivileges); If another session logins and the same Action is called again, will the two sessions share the same attribute? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question regarding ActionForm
Niall, I am using Struts 1.2.7. Tomcat 5.5.9 OS - Window XP professional (with Service Pack 2) I tried what you suggested me: ProgramGroupForm pgForm = (ProgramGroupForm)request.getAttribute(mapping.getAttribute()); pgForm.getType();//same problem, returned "null" pgForm.getDescription(); //same problem, returned "null" If I commented out the Http client call (and hard coded the result instead), everything worked fine again. I switched on the "debug" mode for log4j. The BeanUtils seemed to work fine, it did copy the value correctly. Is it possible that Struts get the wrong reference of the ActionForm object and assigns it to both the Action's execute method and JSP page? (since the debugging info showed the correct values). Thanks, Vince -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Sunday, October 02, 2005 5:30 PM To: Struts Users Mailing List Subject: Re: question regarding ActionForm Firstly what version of Struts are you using? It probably doesn't make a difference, but its always useful to know. Could that call (or anything else) be affecting the attribute under which the ActionForm is stored in the request? What happens if you retrieve the ActionForm from the request after the service call [i.e. request.getAttribute(mapping.getAttribute())] - is the ActionForm there and OK? One thing you might try is to "comment out" the call to your service in your "SelectProgramGroupItem" action and replace it with something hard coded. That way you can verify that it is actually the service call thats causing the problem and not something else. Have you checked your logs to see if anything is going wrong? Another suggestion is to switch on logging in debug mode - the RequestProcessor's processActionForm() method (which creates and stores the ActionForm) logs what it does (in debug mode) - it should tell you the scope/key that the ActionForm has been stored under. Also Commons BeanUtils (which populates the ActionForm) logs every property that is set (in "trace" mode) - would be useful to see if it is populating the description/type properties OK there. Niall - Original Message - From: "Vince Law" <[EMAIL PROTECTED]> Sent: Monday, October 03, 2005 12:00 AM > I am having a problem with ActionForm. Please help me out, because I have > been trying to resolve this problem for the past 4 days without getting any > solution for it. Thank you so much! > > I defined the form in the struts-config.xml as: > > > type="xmps.presentation.action.form.ProgramGroupForm"/> > > > The 3 actions that use the form-bean are: > > type="xmps.presentation.action.EditProgramGroup" > name="programGroupForm" > scope="request" > validate="false"> > > > > > type="xmps.presentation.action.SaveProgramGroup" > name="programGroupForm" > scope="request" > validate="false"> > > > > > type="xmps.presentation.action.SelectProgramGroupItem" > name="programGroupForm" > scope="request" > validate="false"> > > > > > Everthing works perfectly fine, until a call was made to connect to another > webserver to retrieve some pages in one of the action's execute() method. > For instance: > > in action SelectProgramGroupItem > public ActionForward ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse response) > { > . > ProgramGroup[] groups = > ProgramGroupService.getService().search(searchText)); //this is a HTTP > client call to another web-server to retrieve the program groups for a > searchText > . > } > > After this point, all the returned values from calling the ProgramGroupForm > getter methods are "null" (regardless whatver action it was in). It seems > like the way Struts handling the ActionForm got messed up. Such as: > > in action EditProgramGroup > public ActionForward ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse response) > { > ProgramGroupForm pgForm = (ProgramGroupForm)form; > pgForm.getType(); //returned null > pgForm.getDescription(); //returned null > > //however, if I tried to access the parameter value directly, the > values are there. > request.getParameter("type"); //returned correct value > request.getParameter("description") //returned correct value > . > > //I tried to work around this by setting the values in the > ProgramGroupForm manually. > pgForm.setType(request.getParameter("type")); > pgForm.setDescription(pgForm.getDescription()); > > . > return mapping.findForward("success"); > > } > > Despite that I set the values in the setter methods manually, in the JSP > pages that it forwarded to, when I tried to access the properties, the > returned values are still null > > > cols="50" />
RE: Is session.setAttribute unique for all sessions?
it won't share until you have "userPrivileges" as global variable in your action class. Regards Kathir. From: ??? [mailto:[EMAIL PROTECTED] Sent: Mon 10/3/2005 1:32 PM To: Struts Users Mailing List Subject: Is session.setAttribute unique for all sessions? In an Action, an attribute is set by session.setAttribute("Privileges", userPrivileges); If another session logins and the same Action is called again, will the two sessions share the same attribute? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
Re: Is session.setAttribute unique for all sessions?
well, I just make use of session.setAttribute(), How will it become global variable? 2005/10/3, Murugesan, Kathiresan (Cognizant) <[EMAIL PROTECTED]>: > > it won't share until you have "userPrivileges" as global variable in your > action class. > > Regards > Kathir. > > > > From: ??? [mailto:[EMAIL PROTECTED] > Sent: Mon 10/3/2005 1:32 PM > To: Struts Users Mailing List > Subject: Is session.setAttribute unique for all sessions? > > > > In an Action, an attribute is set by > session.setAttribute("Privileges", userPrivileges); > > If another session logins and the same Action is called again, > will the two sessions share the same attribute? > > Thanks > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, printing > or copying of this email or any action taken in reliance on this e-mail is > strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is session.setAttribute unique for all sessions?
In that case the scope of the variable is only to that particular session. If some one else logins and the same action is getting called then the data will be available in a separate session. If there is a concurrent access then you need to check how you are creating the session object also. very first time you need to create the session object by passing the "true" parameter and in all other cases you need to fallow "false". From: ??? [mailto:[EMAIL PROTECTED] Sent: Mon 10/3/2005 2:13 PM To: Struts Users Mailing List Subject: Re: Is session.setAttribute unique for all sessions? well, I just make use of session.setAttribute(), How will it become global variable? 2005/10/3, Murugesan, Kathiresan (Cognizant) <[EMAIL PROTECTED]>: > > it won't share until you have "userPrivileges" as global variable in your > action class. > > Regards > Kathir. > > > > From: ??? [mailto:[EMAIL PROTECTED] > Sent: Mon 10/3/2005 1:32 PM > To: Struts Users Mailing List > Subject: Is session.setAttribute unique for all sessions? > > > > In an Action, an attribute is set by > session.setAttribute("Privileges", userPrivileges); > > If another session logins and the same Action is called again, > will the two sessions share the same attribute? > > Thanks > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, printing > or copying of this email or any action taken in reliance on this e-mail is > strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
Re: Structs
Please visit http://www.roseindia.net/struts "Pentareddy, Marreddy (US - Hyderabad)" <[EMAIL PROTECTED]> wrote:I am new to struts .. Please give idea abt setting paths and war files to copy. Marreddy.p -Original Message- From: Tamas Szabo [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 5:36 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Serializable Hi, But (this is OT): how do you stop Tomcat from doing so? I looked in the > Tomcat 5.0.x doc and just found nothing really helpful. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html If you want to stop Tomcat doing this for a webapp only put a META-INF/context.xml in your WAR with the following content: If you want to stop Tomcat doing this for all webapps you can do the same in ${CATALINA_HOME}/conf/context.xml In this file you even have a comment: Uncomment this to disable session persistence across Tomcat restarts --> - --> Tamas This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
RE: logic:redirect w/ query string
Please bear with me - I'm new to struts. I've been to the link provided by Kishore, but this implies I have to obtain my parameters from a Java bean. I want to create the message in my JSP, with i18n, similar to the following: And without the use of scriplets, as in: <% String myMsg = "Server disconnect -Your work to this point has been saved.Please re-login."; request.setAttribute("msg",myMsg); %> Is this possible? -Original Message- From: Kishore Senji [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 6:28 PM To: Struts Users Mailing List Subject: Re: logic:redirect w/ query string You could specify paramId, paramName, paramProperty attributes in the exact similar way to . Please take a look at http://struts.apache.org/userGuide/struts-logic.html#redirect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Hibernate] Who owns the problem?
Good Morning Murray- At first glance The query parameter in the session.createQuery method does not seem to be formulated properly and appears not to be SQL92 compliant based upon the example provided here http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/worked-example.html Anyone else ? M- - Original Message - From: "Murray Collingwood" <[EMAIL PROTECTED]> To: Sent: Sunday, October 02, 2005 11:30 PM Subject: [Hibernate] Who owns the problem? Hi guys I'm getting exceptions with some Hibernate code and when I post on the Hibernate forum they are claiming it is a Struts issue. I've read lots of stuff from almost everywhere and continue to struggle with this implementation. Please check out the background (and config/code) at: http://forum.hibernate.org/viewtopic.php?p=2264278 Please let me know if this is a Struts problem or a Hibernate problem. Maybe there's a simple solution I'm missing? Kind regards mc FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]OLAP web frontend in Java
Hi everyone. Sorry for the OT question, but I just tried to google a web frontend to OLAP in java, and it always return just JPivot and openI. Did you guys know other web frontends for BI, that returns BSC like monitors and decision cubes? Thanks in advance Rafael Mauricio Nami - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts action forms crossing sessions? Any idea why thisishappening?
Sorry about the top-posting. I need to get GroupWise figured out so I can have it act like other email clients. Anyway, yes, I'm sure of this. There are no instance variables in our actions. I test my arraylist on my Form Bean to make sure it's not empty, then I iterate through it. So for example... Preston >>> [EMAIL PROTECTED] 9/30/2005 6:19:26 PM >>> On 10/1/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > > We have a problem. We're working on an application and we have some > forms in session scope. The strange thing is if someone changes state on > their form, users on other computers on other browsers hitting the same > exact page see the state change that was made to the form on another > computer. I have no idea why this is happening. Problem with the JVM? > With struts? Something we're doing. Anyone ever seen this? Are you sure that the JSPs are displayed only by using ActionForms. This would happen for example if you use instance variables in your Actions to store some state. Tamas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts action forms crossing sessions? Any idea why thisishappening?
Don't really have any instance variables in the actions. Just the logger and some static member fields brought in via an interface that aren't used for this example. Preston >>> [EMAIL PROTECTED] 9/30/2005 7:52:29 PM >>> If the ActionForms are truly in session scope then the shared state isn't in the ActionForm. It's probably a problem with instance variables in your Actions. On 9/30/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > > We have a problem. We're working on an application and we have some > forms in session scope. The strange thing is if someone changes state on > their form, users on other computers on other browsers hitting the same > exact page see the state change that was made to the form on another > computer. I have no idea why this is happening. Problem with the JVM? > With struts? Something we're doing. Anyone ever seen this? > > Preston > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Virtually, Andre Van Klaveren Architect III, SCP Global Public Sector Unisys Corporation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Polls,Surveys
Hey guys, I'm looking for any Poll/Survey systems. Do u know any system about how to create polls/surveys??? Thanks in advance -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
Re: question regarding ActionForm
From: "Vince Law" <[EMAIL PROTECTED]> Sent: Monday, October 03, 2005 9:09 AM > Niall, > > I am using Struts 1.2.7. > Tomcat 5.5.9 > OS - Window XP professional (with Service Pack 2) > > I tried what you suggested me: > ProgramGroupForm pgForm = > (ProgramGroupForm)request.getAttribute(mapping.getAttribute()); > pgForm.getType();//same problem, returned "null" > pgForm.getDescription(); //same problem, returned "null" Did you do this after the Http client call? One thought I had was that somehow that call was messing with the request and I wondered if trying to retrieve the ActionForm from the request would return null? > If I commented out the Http client call (and hard coded the result instead), > everything worked fine again. I guess the question then is how your Http client call is working - what could it be doing thats messing up struts? > I switched on the "debug" mode for log4j. The BeanUtils seemed to work > fine, it did copy the value correctly. > > Is it possible that Struts get the wrong reference of the ActionForm object > and assigns it to both the Action's execute method and JSP page? (since the > debugging info showed the correct values). Its hard to see how this could happen - its such a core part of Struts that if it wasn't working I think we would be inundated with issues. From the bits of code you've posted, everything looks fine, although you'll forgive me from being skeptical - but people don't always post exactly the code they're running. If its a Struts issue its more likely that the ActionForm you're mapping is configured to use is different from the the action mapping used by the element in the jsp. Other things that could cause trouble include "Action Chaining" or a custom RequestProcessor thats messing with the default behaviour. I would concentrate of what the http client call is doing though - that is where the issue seems to be caused. One last suggestion, and I'm not sure why I'm saying it, but can you deploy this on Tomcat 5.0 rather than 5.5 and see if it still occurs? > Thanks, > Vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Hibernate] Who owns the problem?
Murray, I'm with Martin. I'd be more likely to skip your call to createQuery(): session.createQuery("from com.pancakes.website.controller.form.SectionForm order by seq").list(); And instead use something like this: session.find("from SectionForm s order by s.seq").list(); Why? You shouldn't need the full name and createQuerys are best used if you have to do things like set parameters, choose min or max results, and so forth. Since I'm not seeing that in your query, I recommend using find(). Plus, you shouldn't need the full class name unless you have two object classes named SectionForm but in different packages. On top of that, I recommend putting your query in an XML file as a "Named Query" so you can update it without having to recompile your java code, should the need ever arise. Also, you should probably re-read the Hibernate 2.0 (still relevant in 2.1 and 3.0) tutorial chapter on manipulating data which covers gets, saves, updates, and the various query types at the url: http://www.hibernate.org/hib_docs/reference/en/html/manipulatingdata.html Regards, David -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 9:42 AM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: [Hibernate] Who owns the problem? Good Morning Murray- At first glance The query parameter in the session.createQuery method does not seem to be formulated properly and appears not to be SQL92 compliant based upon the example provided here http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/worked-example. html Anyone else ? M- - Original Message - From: "Murray Collingwood" <[EMAIL PROTECTED]> To: Sent: Sunday, October 02, 2005 11:30 PM Subject: [Hibernate] Who owns the problem? > Hi guys > > I'm getting exceptions with some Hibernate code and when I post on the > Hibernate > forum they are claiming it is a Struts issue. I've read lots of stuff > from almost > everywhere and continue to struggle with this implementation. > > Please check out the background (and config/code) at: > http://forum.hibernate.org/viewtopic.php?p=2264278 > > Please let me know if this is a Struts problem or a Hibernate problem. > Maybe there's a > simple solution I'm missing? > > Kind regards > mc > > > FOCUS Computing > Mob: 0415 24 26 24 > [EMAIL PROTECTED] > http://www.focus-computing.com.au > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts action forms crossing sessions? Any idea why thisishappening?
Preston CRAWFORD wrote: Don't really have any instance variables in the actions. Just the logger and some static member fields brought in via an interface that aren't used for this example. Servlets? Filters? There's (essentially) zero way for a session-scoped data to get injected into somebody else's session w/o something being seriously hosed. I would also examine how you populating and save your form data. Did you post code/configs/etc? I don't have the original post handy. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Datasource not found by Plugin on startup
Hi, I have written a plugin for a Struts app which accesses a DB connection via a datasource. The datasource is defined in the Tomcat server.xml file, and is loaded via a library we wrote. I know the datasource works fine because I can access if from other classes in the app. But when I start up Tomcat, I get the following exception thrown: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Is there something I need to do to make the DS available to my Plugin? -Faisal -- http://www.quidprocode.com
Re: Struts action forms crossing sessions? Any idea why thisishappening?
Is the myArrayList on the ActionForm that's causing the problem? If so, Assuming that other users make changes to that ArrayList when they change the state in their form, I would check and make sure that the "myArrayList" is not static or is not getting populated from a singleton source. On 10/3/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > > Sorry about the top-posting. I need to get GroupWise figured out so I > can have it act like other email clients. > > Anyway, yes, I'm sure of this. There are no instance variables in our > actions. I test my arraylist on my Form Bean to make sure it's not > empty, then I iterate through it. > > So for example... > > > varStatus="loop"> > > > > > Preston >
RE: Polls,Surveys
Try VTSurvey at http://vtsurvey.sourceforge.net J. -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 12:10 PM To: Struts List Subject: Polls,Surveys Hey guys, I'm looking for any Poll/Survey systems. Do u know any system about how to create polls/surveys??? Thanks in advance -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" -- This transmission is intended only for use by the addressee(s) named herein and may contain information that is proprietary, confidential and/or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
database design
Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
Excel Download - Multilingual Data
Hi, In one of our STRUTS Application, we provide excel download for the users in worldwide. We get all the data from data layer and write that string-buffer into the client using the content type as follows. response.setContentType("application/ms-excel;"); response.setHeader( "Content-Disposition", "attachment; filename=\"Sample.xls\";"); BufferedWriter out = new BufferedWriter(response.getWriter()); out.write(dataBuffer.toString()); out.close(); The issue is some of the German users having the regional settings for decimal numbers as comma and they set the browser locale also as German. When we send the locale-formatted-data to the client side (excel), everything looks good. Other side, some of the German users has the control-panel -> regional-settings for decimal numbers as comma but they set the browser locale as English. So when we send the browser-based-locale-formatted-data to the client side (excel), data getting screwed up. Because we send English numbers and the excel expects the German data. Question is, is there anyway we can detect the client Regional setting in our STRUTS server side? Other question is, can we set the data-category for the excel columns when we send the response to the client side (always the data going as Number-General) I know that this is not cent percent related with STRUTS, but as we have many gurus in this forum with multi-lingual app background, I thought of getting the advice. Thanks in advance.
Re: Problem with formatKey using java.lang.Double that works with primitive double
> It will not format some values unless I declare them as primitive values. > As soon as I change numTons on the release object it formats fine. > Interesting. The tag will use the PropertyUtils.getProperty() to the value for that property and then format it. The getProperty() of PropertyUtils returns a java.lang.Object and so even if the property is defined as a primitive the corresponding Object wrapper will be given back for formatting. The will format unless the value from the getProperty() is resolved to a java.lang.String. So, I think it should behave the same if you use java.lang.Double or a primitive double. I would try from a test-case what the type of the object that is being returned from the call PropertyUtils.getProperty(inventoryStatusForm, "released.numTons"); when a java.lang.Double and a primitive double is used for numTons. And if they are different from java.lang.Double, there should be something which should be confusing PropertyUtils. Just curious. What version of beanutils and JDK do you use?
Re: logic:redirect w/ query string
> /> > > Is this possible? Yes, If you use and tags as in
Re: Datasource not found by Plugin on startup
Mahmoud- If your webapp is called foo, create a file $TOMCAT_HOME/conf/Catalina/localhost/foo.xml You will need to match the exact name of the identified resource contained within foo.xml later on you will reference Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); if(envCtx == null ) throw new Exception("Boom - No Environment Context"); // the following matches the resource name defined in foo.xml DataSource ds = (DataSource) envCtx.lookup("jdbc/sampdb"); http://forums.devshed.com/archive/t-120081 Please dont hesitate to contact me if you need any help, Marty Gainty (US) 001-617-852-7822 - Original Message - From: "Faisal Mahmoud" <[EMAIL PROTECTED]> To: Sent: Monday, October 03, 2005 1:09 PM Subject: Datasource not found by Plugin on startup Hi, I have written a plugin for a Struts app which accesses a DB connection via a datasource. The datasource is defined in the Tomcat server.xml file, and is loaded via a library we wrote. I know the datasource works fine because I can access if from other classes in the app. But when I start up Tomcat, I get the following exception thrown: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Is there something I need to do to make the DS available to my Plugin? -Faisal -- http://www.quidprocode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
Rafael Taboada on 03/10/05 18:22, wrote: Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? microsoft visio. would use a linux tool but haven't found one. i prefer the way visio allows you to route the connections between the tables which is important for clarity with lots of tables. oracle's bundled ERD software is pants. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
Rafael- I assume you have looked at E/R Studio? http://www.embarcadero.com/downloads/downloaderstudio.jsp?Tracking_ID=409&Tracking_Code=Google2 Saludos, Martin- - Original Message - From: "Rafael Taboada" <[EMAIL PROTECTED]> To: "Struts List" Sent: Monday, October 03, 2005 1:22 PM Subject: database design Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple modules/ forward prefix module name
Solution found. Starting Struts 1.2, contextRelative attribute is no longer used. Instead, I had to use "module" attribute to define context root of where jsp file is. > Hello, > > I need help with struts forward with contextRelative set to false. Whan > ran, the struts prefixes module name in front of the path before > forwarding to a jsp page. > > struts-test.xml (test submodule) > > type="com.test.common.BaseAction" validate="false"> > /> > > > When /test.do is ran, the /test/root/test.jsp is accessed instead of > /root/test.jsp. With contextRelative set to "false", I am expecting the > file to be found in /root/test.jsp. The tiles definitions are correctly > resolved. > > Thanks, > Scott > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database design
Adam, Does Visio work with MySQL? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 1:31 PM To: Struts Users Mailing List Subject: Re: database design Rafael Taboada on 03/10/05 18:22, wrote: > Hi folks. When u design a database... What soft do u use?? What's the > best?? I use Embarcadero E/R... Is there any program better than > embarcadero? > microsoft visio. would use a linux tool but haven't found one. i prefer the way visio allows you to route the connections between the tables which is important for clarity with lots of tables. oracle's bundled ERD software is pants. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
Hey fellows, Here at my work we use Sybase PowerDesigner. I like it very much. My 2 cents, Daniel Silva. On 10/3/05, Barnett, Brian W. <[EMAIL PROTECTED]> wrote: > Adam, > Does Visio work with MySQL? > > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Monday, October 03, 2005 1:31 PM > To: Struts Users Mailing List > Subject: Re: database design > > > Rafael Taboada on 03/10/05 18:22, wrote: > > Hi folks. When u design a database... What soft do u use?? What's the > > best?? I use Embarcadero E/R... Is there any program better than > > embarcadero? > > > > microsoft visio. would use a linux tool but haven't found one. i prefer > the way visio allows you to route the connections between the tables > which is important for clarity with lots of tables. oracle's bundled ERD > software is pants. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts action forms crossing sessions? Any idea whythisishappening?
No. What information would be useful and relevant? Struts-config? The form bean itself? The action, the JSP? I didn't want to overload the list, obviously. Preston >>> [EMAIL PROTECTED] 10/3/2005 9:40:37 AM >>> Preston CRAWFORD wrote: >Don't really have any instance variables in the actions. Just the logger >and some static member fields brought in via an interface that aren't >used for this example. > > Servlets? Filters? There's (essentially) zero way for a session-scoped data to get injected into somebody else's session w/o something being seriously hosed. I would also examine how you populating and save your form data. Did you post code/configs/etc? I don't have the original post handy. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting at exceptions in Action Classes when forwarded fromweb.xml?
I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. Preston - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
loosing style sheet, when reloading or visiting the jsp page again
Hello I have a jsp page where in i have defined a style sheet, when i reload the page, or revisit the page from some other link i loose the style sheet, and the page looks ugly does anyone know why this happens, and how to resolve this It happens in IE and mozilla browser Ashish __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maxFileSize validation
I'm just wondering if anyone has a workaround or suggestion for the following "bug": http://issues.apache.org/bugzilla/show_bug.cgi?id=36687 Properties, request params, request attributes are all null when the file submitted in the file field is greater than the maxFileSize setting in the struts config controller element. (default 250Mb). So that when the form bounces back with the validation error for exceeding the max file size, the other required properties (like text fields that were filled in) are not refilled and erroneously giving validation errors.
Re: database design
Hmm. Good question. Last time I looked, mysql uses ansi sql, right? In that case, it should work. Barnett, Brian W. on 03/10/05 20:34, wrote: Adam, Does Visio work with MySQL? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 1:31 PM To: Struts Users Mailing List Subject: Re: database design Rafael Taboada on 03/10/05 18:22, wrote: Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? microsoft visio. would use a linux tool but haven't found one. i prefer the way visio allows you to route the connections between the tables which is important for clarity with lots of tables. oracle's bundled ERD software is pants. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwarded fromweb.xml?
Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. I don't think you can. The response object is write-only, so there is no way to tell. I might be grossly mistaken but I guess you would have to have seperate error-pages for each type of exception. Haven't tried it myself but will need to soon. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate domain / DTOs in JSPs.....
Has anybody got any experience of using Hibernate pojos with nesting & lazy loading in their JSPs in an enterprise app? Are there any caveats? I have always transfered the data from Hibernate beans into my own form beans or bespoke view DTOs in my actions, until now. It seems nice and easy to develop especially with JSTL & EL, but I'm still slightly worried about coupling the view so closely to the domain model, and potential scalability / robustness issues. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate domain / DTOs in JSPs.....
At 10:37 PM +0100 10/3/05, Adam Hardy wrote: Has anybody got any experience of using Hibernate pojos with nesting & lazy loading in their JSPs in an enterprise app? Are there any caveats? Yes, you must be quite careful to preserve an open session throughout the entire view, or to use Hibernate.initialize() on everything which might otherwise not be initialized. If you're used to transferring data, then calling initialize() might not be so bad, but really, most people use the "Open Session in View" pattern to manage a session using a ServletFilter (or equivalent, google will turn up all the necessary info on that). In my experience, there can be some kinks to work out within your mappings and your access patterns, but so far, I'm happy (of course, the closer the deadlines come, the more annoyed I may be at the usually pleasant challenge of solving some new technical puzzles!) But in my application, I have a very rich object model, and the labor of copying everything around instead of using it directly seems extremely tedious. (Note that my typical design strategy would not have led me to as much concern as you have already demonstrated by posting this, so YMMV.) It seems nice and easy to develop especially with JSTL & EL, but I'm still slightly worried about coupling the view so closely to the domain model, and potential scalability / robustness issues. If you use the lazy loading correctly, you probably deal with most all of the scalability and robustness issues, but again, there is definitely learning required along the way, so budget time accordingly or save it for a project when you can. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwarded fromweb.xml?
What version of Struts are you using? Have a look at this: http://struts.apache.org/userGuide/building_controller.html#exception_handler That's probably the way you want to go, might save you some trouble. I'm not sure when it was introduced though, so if your a ways behind in Struts version it might not be available. Frank Adam Hardy wrote: Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. I don't think you can. The response object is write-only, so there is no way to tell. I might be grossly mistaken but I guess you would have to have seperate error-pages for each type of exception. Haven't tried it myself but will need to soon. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shale]Newbie question
Hi, after long time of scepticism I decided to try out Shale. I downloaded the shale nightly and installed it on my tomcat 5.0.28. Somehow it was not very satisfying. The struts-shale-usecases runs (or I suppose it to run) with a lot of warnings, but dont give the example, an application developer need. Are there other example applications? One thing I noticed, every link (in the resulting html) is a form submition. Is there a way to configure it? Because, if not, it would be an absolute NOGO, since it would make the site uncrawlable (at least for modern search engines). Where is the best place to start with Shale? regards Leon P.S. Sorry for not WiKiing, but it has been a very long day, so asking was easier :-( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loosing style sheet, when reloading or visiting the jsp page again
I can't imagine why that would happen, but, do you define the stylesheet in the page or link/include it? Frank Ashish Kulkarni wrote: Hello I have a jsp page where in i have defined a style sheet, when i reload the page, or revisit the page from some other link i loose the style sheet, and the page looks ugly does anyone know why this happens, and how to resolve this It happens in IE and mozilla browser Ashish __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?
Even then, is there any way to get at the exception at self so it gets printed? The problem is that when you setup web.xml to send it to an action (I can't figure out a different way to do this that is fairly simple) it's almost like the app server swallows it for the most part and passes little information to the action. I can do things like pass along the number of the error in the querystring... 404 /error.do?exception=404 But other than that I can't figure out how to get at the actual exception so I can log that. Preston >>> [EMAIL PROTECTED] 10/3/2005 2:33:16 PM >>> Preston CRAWFORD on 03/10/05 21:47, wrote: > I'm trying to setup global exception handling. I have web.xml sending > 404 and 500 exceptions to /error.do. In that action I should be able to > get at the exception, shouldn't I? Or do I have to do that earlier in > the process? I simply want to get at the exception and log it. > I don't think you can. The response object is write-only, so there is no way to tell. I might be grossly mistaken but I guess you would have to have seperate error-pages for each type of exception. Haven't tried it myself but will need to soon. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?
Is this what I have to do? All I want to do is throw up a default error page that looks like the rest of the site, but ALSO log the error, no matter what kind it is. Nothing more. Preston >>> [EMAIL PROTECTED] 10/3/2005 3:09:05 PM >>> What version of Struts are you using? Have a look at this: http://struts.apache.org/userGuide/building_controller.html#exception_handler That's probably the way you want to go, might save you some trouble. I'm not sure when it was introduced though, so if your a ways behind in Struts version it might not be available. Frank Adam Hardy wrote: > Preston CRAWFORD on 03/10/05 21:47, wrote: > >> I'm trying to setup global exception handling. I have web.xml sending >> 404 and 500 exceptions to /error.do. In that action I should be able to >> get at the exception, shouldn't I? Or do I have to do that earlier in >> the process? I simply want to get at the exception and log it. >> > > I don't think you can. The response object is write-only, so there is no > way to tell. > > I might be grossly mistaken but I guess you would have to have seperate > error-pages for each type of exception. Haven't tried it myself but will > need to soon. > > Adam > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loosing style sheet, when reloading or visiting the jsp page again
Don't use relative address for stylesheet or use or on the JSP page. On 10/3/05, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hello > I have a jsp page where in i have defined a style > sheet, when i reload the page, or revisit the page > from some other link i loose the style sheet, and the > page looks ugly > does anyone know why this happens, and how to resolve > this > It happens in IE and mozilla browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question regarding ActionForm
The Http client call is a third party software, unfortunately I don't have its source code to debug it. I tried to deploy the app in Tomcat 5.0, but it couldn't run due to some methods missing in the xml parsing library. My app is just a small part of the overall app, and they are all programmed to run in 5.5.9, therefore making it to run in 5.0 won't be useful. Is there any possible way in struts that I can make sure it assigns the right reference of the ActionForm object to the Action and JSP page? Under what circumstances, the Struts's handling of the ActionForm got messed up? I had already made sure there isn't any action-chaining used in the app. The only thing I can't make sure is, if the third party software that I used (which makes the http client call) changes RequestProcessor default behavior. It is not likely, since it is not a Struts based app. Thanks, Vince -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 9:14 AM To: Struts Users Mailing List Subject: Re: question regarding ActionForm From: "Vince Law" <[EMAIL PROTECTED]> Sent: Monday, October 03, 2005 9:09 AM > Niall, > > I am using Struts 1.2.7. > Tomcat 5.5.9 > OS - Window XP professional (with Service Pack 2) > > I tried what you suggested me: > ProgramGroupForm pgForm = > (ProgramGroupForm)request.getAttribute(mapping.getAttribute()); > pgForm.getType();//same problem, returned "null" > pgForm.getDescription(); //same problem, returned "null" Did you do this after the Http client call? One thought I had was that somehow that call was messing with the request and I wondered if trying to retrieve the ActionForm from the request would return null? > If I commented out the Http client call (and hard coded the result instead), > everything worked fine again. I guess the question then is how your Http client call is working - what could it be doing thats messing up struts? > I switched on the "debug" mode for log4j. The BeanUtils seemed to work > fine, it did copy the value correctly. > > Is it possible that Struts get the wrong reference of the ActionForm object > and assigns it to both the Action's execute method and JSP page? (since the > debugging info showed the correct values). Its hard to see how this could happen - its such a core part of Struts that if it wasn't working I think we would be inundated with issues. From the bits of code you've posted, everything looks fine, although you'll forgive me from being skeptical - but people don't always post exactly the code they're running. If its a Struts issue its more likely that the ActionForm you're mapping is configured to use is different from the the action mapping used by the element in the jsp. Other things that could cause trouble include "Action Chaining" or a custom RequestProcessor thats messing with the default behaviour. I would concentrate of what the http client call is doing though - that is where the issue seems to be caused. One last suggestion, and I'm not sure why I'm saying it, but can you deploy this on Tomcat 5.0 rather than 5.5 and see if it still occurs? > Thanks, > Vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?
Yes you could do that, or you could try 404 /error404.do 500 /error500.do and map them to the same action class with a useful parameter for mapping.getParameter() - perhaps slightly less coding. Preston CRAWFORD on 03/10/05 23:10, wrote: Even then, is there any way to get at the exception at self so it gets printed? The problem is that when you setup web.xml to send it to an action (I can't figure out a different way to do this that is fairly simple) it's almost like the app server swallows it for the most part and passes little information to the action. I can do things like pass along the number of the error in the querystring... 404 /error.do?exception=404 But other than that I can't figure out how to get at the actual exception so I can log that. Preston [EMAIL PROTECTED] 10/3/2005 2:33:16 PM >>> Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. I don't think you can. The response object is write-only, so there is no way to tell. I might be grossly mistaken but I guess you would have to have seperate error-pages for each type of exception. Haven't tried it myself but will need to soon. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes whenforwardedfromweb.xml?
Right, but even at this point, if I did this, how do I get at the Exception within the action? The actual exception thrown that lead to a 500 error? That's what I'm trying to figure out. Regardless of how I get there. Preston >>> [EMAIL PROTECTED] 10/3/2005 3:55:12 PM >>> Yes you could do that, or you could try 404 /error404.do 500 /error500.do and map them to the same action class with a useful parameter for mapping.getParameter() - perhaps slightly less coding. Preston CRAWFORD on 03/10/05 23:10, wrote: > Even then, is there any way to get at the exception at self so it gets > printed? The problem is that when you setup web.xml to send it to an > action (I can't figure out a different way to do this that is fairly > simple) it's almost like the app server swallows it for the most part > and passes little information to the action. I can do things like pass > along the number of the error in the querystring... > > > 404 > /error.do?exception=404 > > > But other than that I can't figure out how to get at the actual > exception so I can log that. > > Preston > > [EMAIL PROTECTED] 10/3/2005 2:33:16 PM >>> > > Preston CRAWFORD on 03/10/05 21:47, wrote: > >>I'm trying to setup global exception handling. I have web.xml > > sending > >>404 and 500 exceptions to /error.do. In that action I should be able > > to > >>get at the exception, shouldn't I? Or do I have to do that earlier > > in > >>the process? I simply want to get at the exception and log it. >> > > > I don't think you can. The response object is write-only, so there is > no > way to tell. > > I might be grossly mistaken but I guess you would have to have seperate > > error-pages for each type of exception. Haven't tried it myself but > will > need to soon. > > Adam > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?
I dont know if this is how you *have* to do it, but it's how I do it... I have the same requirements you enumerate here, and this is how I accomplished it. Works very well. What you have essentially is a class that looks a lot like an Action (but isn't actually one... look at the execute() signature... identical except for the Excepion being passed in too) that you can do whatever you like in. Then you forward to a JSP. Here's an example from one of my apps, cut down a bit... probably more than your really interested in, but it gives you an idea of what you can do... public class GlobalExceptionHandler extends ExceptionHandler { public ActionForward execute(Exception e, ExceptionConfig config, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException { if (log.isDebugEnabled()) { log.debug("GlobalExceptionHandler.execute(): " + e); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); e.printStackTrace(new PrintStream(baos)); HashMap attributes = AppHelpers.getRequestAttributes(request, true); HashMap parameters = AppHelpers.getRequestParameters(request, true); HashMap headers = AppHelpers.getRequestHeaders(request); HashMap sessionAttributes = AppHelpers.getSessionAttributes(request, true); request.setAttribute("error_attributes", attributes); request.setAttribute("error_parameters", parameters); request.setAttribute("error_headers", headers); request.setAttribute("error_session_attributes", sessionAttributes); HttpSession session = request.getSession(false); String userID = "Unknown"; String clientCode = "Unknown"; if (session != null) { HashMap userInfo = (HashMap)session.getAttribute("userInfo"); if (userInfo != null) { userID = (String)userInfo.get("userID"); } else { userID = "userInfo was null, could not retreive"; } HashMap activeClientInfo = (HashMap)session.getAttribute("activeClientInfo"); if (activeClientInfo != null) { clientCode = (String)activeClientInfo.get("clientCode"); } else { clientCode = "clientCode was null, could not retreive"; } } else { userID = "session was null, could not retrieve"; clientCode = "session was null, could not retrieve"; } String path = "Unknown"; if (mapping != null) { path = mapping.getPath(); } else { path = "mapping was null, could not retreive"; } String node = "Unknown"; try { InetAddress addr = InetAddress.getLocalHost(); node = addr.getHostName(); } catch (Exception ee) { node = "exception occurred, could not retrieve"; } StringBuffer sb = new StringBuffer(4096); sb.append("Exception in Action - Resequencing to exception page...\n"); sb.append("Date/Time: " + new java.util.Date() + "\n"); sb.append("userID: " + userID + "\n"); sb.append("path: " + path + "\n"); sb.append("node: " + node + "\n\n"); sb.append("Stack Trace: " + baos + "\n\n"); sb.append("\nRequest Attributes: " + attributes + "\n\n"); sb.append("\nRequest Parameters: " + parameters + "\n\n"); sb.append("\nRequest Headers: " + headers + "\n\n"); sb.append("\nSession Attributes: " + sessionAttributes + "\n"); log.error(sb); return mapping.findForward("exception"); } } The exception mapping is a global forward that winds me up in eception.jsp, which displays most of the information you see dumped to the log above (not all of it... some of it is potentially sensitive). You get the idea though. This will handle any exception on the server-side, except for JSP error. But, obviously you shouldn't ever get a JSP compile-time error in a production app, and if you've coded it half-way decently you should never get a runtime exception either (I can't remember the last time I saw a runtime JSP exception). Frank Preston CRAWFORD wrote: Is this what I have to do? All I want to do is throw up a default error page that looks like the rest of the site, but ALSO log the error, no matter what kind it is. Nothing more. Preston [EMAIL PROTECTED] 10/3/2005 3:09:05 PM >>> What version of Struts are you using? Have a look at this: http://struts.apache.org/userGuide/building_controller.html#exception_handler That's probably the way you want to go, might save you some trouble. I'm not sure when it was introduced though, so if your a ways behind in Struts version it might not be available. Frank Adam Hardy wrote: Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the proc
Re: question regarding ActionForm
Your previous answer seems to point to the culprit being the call to the third party software - as you don't have the source then maybe you should contact the third party to see if they can shed some light on this issue. I doubt the issue is Struts messing up the reference of the ActionForm passed to the Action's execute method or stored in the Request - it might be because of whats configured in your struts-config.xml or what you have in the element of your jsp not being right. But that wouldn't add up with what you say is happening after the http client call - and theres nothing to indicate any issue in the snipets of code you've posted. Sorry, I'm out of ideas. Niall - Original Message - From: "Vince Law" <[EMAIL PROTECTED]> Sent: Monday, October 03, 2005 11:51 PM > The Http client call is a third party software, unfortunately I don't have > its source code to debug it. I tried to deploy the app in Tomcat 5.0, but > it couldn't run due to some methods missing in the xml parsing library. My > app is just a small part of the overall app, and they are all programmed to > run in 5.5.9, therefore making it to run in 5.0 won't be useful. > > Is there any possible way in struts that I can make sure it assigns the > right reference of the ActionForm object to the Action and JSP page? Under > what circumstances, the Struts's handling of the ActionForm got messed up? > I had already made sure there isn't any action-chaining used in the app. > The only thing I can't make sure is, if the third party software that I used > (which makes the http client call) changes RequestProcessor default > behavior. It is not likely, since it is not a Struts based app. > > Thanks, > Vince > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Monday, October 03, 2005 9:14 AM > > > From: "Vince Law" <[EMAIL PROTECTED]> > Sent: Monday, October 03, 2005 9:09 AM > > Niall, > > > > I am using Struts 1.2.7. > > Tomcat 5.5.9 > > OS - Window XP professional (with Service Pack 2) > > > > I tried what you suggested me: > > ProgramGroupForm pgForm = > > (ProgramGroupForm)request.getAttribute(mapping.getAttribute()); > > pgForm.getType();//same problem, returned "null" > > pgForm.getDescription(); //same problem, returned "null" > > Did you do this after the Http client call? One thought I had was that > somehow that call was messing with the request and I wondered if trying to > retrieve the ActionForm from the request would return null? > > > If I commented out the Http client call (and hard coded the result > instead), > > everything worked fine again. > > I guess the question then is how your Http client call is working - what > could it be doing thats messing up struts? > > > I switched on the "debug" mode for log4j. The BeanUtils seemed to work > > fine, it did copy the value correctly. > > > > Is it possible that Struts get the wrong reference of the ActionForm > object > > and assigns it to both the Action's execute method and JSP page? (since > the > > debugging info showed the correct values). > > Its hard to see how this could happen - its such a core part of Struts that > if it wasn't working I think we would be inundated with issues. From the > bits of code you've posted, everything looks fine, although you'll forgive > me from being skeptical - but people don't always post exactly the code > they're running. > > If its a Struts issue its more likely that the ActionForm you're mapping is > configured to use is different from the the action mapping used by the > element in the jsp. Other things that could cause trouble > include "Action Chaining" or a custom RequestProcessor thats messing with > the default behaviour. > > I would concentrate of what the http client call is doing though - that is > where the issue seems to be caused. One last suggestion, and I'm not sure > why I'm saying it, but can you deploy this on Tomcat 5.0 rather than 5.5 and > see if it still occurs? > > > Thanks, > > Vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes whenforwardedfromweb.xml?
Oh I see, sorry. That would be a tomcat thing. I have a suspicion that there may never be an exception. Tomcat (or your appserver) is just creating an error - that doesn't mean that it actually threw a Java exception. I believe that it is merely a status for the http response packet. The text that appears in the browser is purely browser-dependent. So basically a real live java exception would tell you no more than you already know, except perhaps if there is one, a stacktrace from the guts of your appserver. Preston CRAWFORD on 03/10/05 23:57, wrote: Right, but even at this point, if I did this, how do I get at the Exception within the action? The actual exception thrown that lead to a 500 error? That's what I'm trying to figure out. Regardless of how I get there. Preston [EMAIL PROTECTED] 10/3/2005 3:55:12 PM >>> Yes you could do that, or you could try 404 /error404.do 500 /error500.do and map them to the same action class with a useful parameter for mapping.getParameter() - perhaps slightly less coding. Preston CRAWFORD on 03/10/05 23:10, wrote: Even then, is there any way to get at the exception at self so it gets printed? The problem is that when you setup web.xml to send it to an action (I can't figure out a different way to do this that is fairly simple) it's almost like the app server swallows it for the most part and passes little information to the action. I can do things like pass along the number of the error in the querystring... 404 /error.do?exception=404 But other than that I can't figure out how to get at the actual exception so I can log that. Preston [EMAIL PROTECTED] 10/3/2005 2:33:16 PM >>> Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. I don't think you can. The response object is write-only, so there is no way to tell. I might be grossly mistaken but I guess you would have to have seperate error-pages for each type of exception. Haven't tried it myself but will need to soon. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classeswhenforwardedfromweb.xml?
Well, that's what I would want. The stacktrace. Class that threw the exception. Exact exception type. Stacktrace. I thought I'd be able to get at those from within the action forwarded to by the web.xml. Preston >>> [EMAIL PROTECTED] 10/3/2005 4:34:06 PM >>> Oh I see, sorry. That would be a tomcat thing. I have a suspicion that there may never be an exception. Tomcat (or your appserver) is just creating an error - that doesn't mean that it actually threw a Java exception. I believe that it is merely a status for the http response packet. The text that appears in the browser is purely browser-dependent. So basically a real live java exception would tell you no more than you already know, except perhaps if there is one, a stacktrace from the guts of your appserver. Preston CRAWFORD on 03/10/05 23:57, wrote: > Right, but even at this point, if I did this, how do I get at the > Exception within the action? The actual exception thrown that lead to a > 500 error? That's what I'm trying to figure out. Regardless of how I get > there. > > Preston > > > [EMAIL PROTECTED] 10/3/2005 3:55:12 PM >>> > > Yes you could do that, or you could try > > > 404 > /error404.do > > > 500 > /error500.do > > > and map them to the same action class with a useful parameter for > mapping.getParameter() - perhaps slightly less coding. > > > Preston CRAWFORD on 03/10/05 23:10, wrote: > >>Even then, is there any way to get at the exception at self so it > > gets > >>printed? The problem is that when you setup web.xml to send it to an >>action (I can't figure out a different way to do this that is fairly >>simple) it's almost like the app server swallows it for the most > > part > >>and passes little information to the action. I can do things like > > pass > >>along the number of the error in the querystring... >> >> >>404 >>/error.do?exception=404 >> >> >>But other than that I can't figure out how to get at the actual >>exception so I can log that. >> >>Preston >> >> >> >[EMAIL PROTECTED] 10/3/2005 2:33:16 PM >>> >> >>Preston CRAWFORD on 03/10/05 21:47, wrote: >> >> >>>I'm trying to setup global exception handling. I have web.xml >> >>sending >> >> >>>404 and 500 exceptions to /error.do. In that action I should be able >> >>to >> >> >>>get at the exception, shouldn't I? Or do I have to do that earlier >> >>in >> >> >>>the process? I simply want to get at the exception and log it. >>> >> >> >>I don't think you can. The response object is write-only, so there > > is > >>no >>way to tell. >> >>I might be grossly mistaken but I guess you would have to have > > seperate > >>error-pages for each type of exception. Haven't tried it myself but >>will >>need to soon. >> >>Adam >> >> > > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting at exceptions in Action Classes whenforwardedfromweb.xml?
On 10/3/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > > Oh I see, sorry. > > That would be a tomcat thing. I have a suspicion that there may never be > an exception. Tomcat (or your appserver) is just creating an error - > that doesn't mean that it actually threw a Java exception. That's not completely true. Or, more properly, the servlet container *must* forward information about an exception it catches (from the servlet) in well known request attributes as described in Section SRV.9.9 of the servlet spec. In particular, the following request attributes get exposed: * java.servlet.error.status_code (java.lang.Integer) * java.servlet.error.exception_type (java.lang.Class) * java.servlet.error.message (java.lang.String) * java.servlet.error.exception (java.lang.Throwable) -- Servlet 2.3 or later * java.servlet.error.request_uri (java.lang.String) * java.servlet.error.servlet_name (java.lang.String) In short, if your error handling servlet is invoked, it may rely on request attributes with these names to gain access to information about the error that occurred. Craig
RE: [Shale]Newbie question
Leon, The point you made about Shale performing form submissions is more of a JSF (JavaServer Faces) issue to help it retain state information to properly generate, validate, and so forth the JSF pages. I don't believe Shale tries to make JSF navigation any different. I have seen some discussions on using simple urls (for bookmarking purposes, etc.) that are compatible with JSF over on the MyFaces user discussion list. I recommend you subscribe to that list or read their archives online such as at http://www.mail-archive.com/users%40myfaces.apache.org since MyFaces is an open source JSF implementation. Regards, David -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 6:10 PM To: Struts Users Mailing List Subject: [Shale]Newbie question Hi, after long time of scepticism I decided to try out Shale. I downloaded the shale nightly and installed it on my tomcat 5.0.28. Somehow it was not very satisfying. The struts-shale-usecases runs (or I suppose it to run) with a lot of warnings, but dont give the example, an application developer need. Are there other example applications? One thing I noticed, every link (in the resulting html) is a form submition. Is there a way to configure it? Because, if not, it would be an absolute NOGO, since it would make the site uncrawlable (at least for modern search engines). Where is the best place to start with Shale? regards Leon P.S. Sorry for not WiKiing, but it has been a very long day, so asking was easier :-( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Shale]Newbie question
> > after long time of scepticism I decided to try out Shale. I downloaded > the shale nightly and installed it on my tomcat 5.0.28. Somehow it was > not very satisfying. The struts-shale-usecases runs (or I suppose it > to run) with a lot of warnings, but dont give the example, an > application developer need. Are there other example applications? > The use-case application's purpose is to demo the requirements of a specific feature of Shale. We have not built an example using all the Shale features. Shale is a framework built on top of JSF. It provides value added features that are not in the vanilla API. If you are not fimillar with JSF, you will really have a hard time seeing the value added features of Shale. > One thing I noticed, every link (in the resulting html) is a form > submition. Is there a way to configure it? The commandLink component is used on the usecases entry point menu page. A outputLink could also be used which generates a HTML anchored tag. The one reason that the commandLink navigation was used in the usecase menu page was to demonstrate the use of the ContextRelativePathFilter. In this example, it restricts direct access to *.jsp and *.jspf resources. >Because, if not, it would > be an absolute NOGO, since it would make the site uncrawlable (at > least for modern search engines). > I would think that for most web applications, you wouldn't want a user to attempt to jump into the middle of a dynamic web application without a context within the flow of the application? > Where is the best place to start with Shale? > There is some information here: http://struts.apache.org/shale/index.html You might pick up one of the many books published on JSF. My favorite is coauthored by one of the Struts committers (David Geary - Core JavaServer Faces, ISBN 0-13-146305-5). > regards > Leon > Gary > P.S. Sorry for not WiKiing, but it has been a very long day, so asking > was easier :-( > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: Getting at exceptions in Action Classeswhenforwardedfromweb.xml?
This actually does get me some of the information. Unfortunately since I'm sticking another servlet (my action) in between, the exception acts like it's coming from my action. So it appears I may have to go the route of extending the ExceptionHandler. I was hoping there was a way to avoid that, but it doesn't appear so. Preston >>> [EMAIL PROTECTED] 10/3/2005 5:03:30 PM >>> On 10/3/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > > Oh I see, sorry. > > That would be a tomcat thing. I have a suspicion that there may never be > an exception. Tomcat (or your appserver) is just creating an error - > that doesn't mean that it actually threw a Java exception. That's not completely true. Or, more properly, the servlet container *must* forward information about an exception it catches (from the servlet) in well known request attributes as described in Section SRV.9.9 of the servlet spec. In particular, the following request attributes get exposed: * java.servlet.error.status_code (java.lang.Integer) * java.servlet.error.exception_type (java.lang.Class) * java.servlet.error.message (java.lang.String) * java.servlet.error.exception (java.lang.Throwable) -- Servlet 2.3 or later * java.servlet.error.request_uri (java.lang.String) * java.servlet.error.servlet_name (java.lang.String) In short, if your error handling servlet is invoked, it may rely on request attributes with these names to gain access to information about the error that occurred. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
Rafael Taboada wrote: Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" I use pen, paper, and brain power:-) When the first round of requirements discussions are complete I then use SQLyog (http://www.webyog.com/), MySQL Query Browser and MySQL Workbench. DBDesigner 4 was the old MySQL Workbench which is getting rewritten from the ground up. Haven't installed DBDesigner 4 before since Workbench just about works for me (at least to visualise and check I haven't missed any foreign keys). There is a Windoze and Mac OSX version of Workbench but no Linux yet. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
I think the smartest thing I ever did was this... I have an office at home... just one of the bedrooms that is my sanctuary of geekdom... about 6 months ago we were walking through Home Depot... no, sorry, Lowes... we were looking for some sort of paneling to spruce the place up a bit. What I found is a panel that is made out of whiteboard material. So, picture an entire 15'x16' room (is ' or " feet? I never remember!) where every single wall is whiteboard, floor to ceiling. *THIS* has become *THE* way I do most of my design work. It's great... any time I have an idea I simply find a blank area of wall and have at it! I put in a chair rail around the entire room and I keep various colored markers on it. My only problem is keeping the kids from scribbling all over my work :) I don't have this at work (yet... talking to the building manager!) but I still find a giant whiteboard to be the best for database design, or any other kind of design work. Once I have a fairly solid idea where everything is going, I usually break out Visio. As a general-purpose diagramming tool I find it to be second to none. I can create just about any UML diagram, flowchart or whatever else in it. True, I can't spit code out of it, but I don't generally like letting tools write my code for me anyway. But, forget all that... go buy that paneling and pick a room! :) Frank Graham Reeds wrote: Rafael Taboada wrote: Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" I use pen, paper, and brain power:-) When the first round of requirements discussions are complete I then use SQLyog (http://www.webyog.com/), MySQL Query Browser and MySQL Workbench. DBDesigner 4 was the old MySQL Workbench which is getting rewritten from the ground up. Haven't installed DBDesigner 4 before since Workbench just about works for me (at least to visualise and check I haven't missed any foreign keys). There is a Windoze and Mac OSX version of Workbench but no Linux yet. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database design
Frank: I agree with you in that a big whiteboard is the best place for data design. I had an old boss that used to tell me that if you can't do it on paper, you can't possibly hope to tell the computer how to do it. I think people nowadays are too impatient to design things well. They just start hacking stuff together and hope it will all work at the end. I think that is why there are so many crappy systems out there. Regarding you room - I think I would need a padded room next to it! Neil -- Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Monday, October 03, 2005 11:25 PM > To: Struts Users Mailing List > Subject: Re: database design > > > I think the smartest thing I ever did was this... > > I have an office at home... just one of the bedrooms that is my > sanctuary of geekdom... about 6 months ago we were walking > through Home > Depot... no, sorry, Lowes... we were looking for some sort of > paneling > to spruce the place up a bit. > > What I found is a panel that is made out of whiteboard material. So, > picture an entire 15'x16' room (is ' or " feet? I never remember!) > where every single wall is whiteboard, floor to ceiling. > > *THIS* has become *THE* way I do most of my design work. > It's great... > any time I have an idea I simply find a blank area of wall > and have at > it! I put in a chair rail around the entire room and I keep various > colored markers on it. > > My only problem is keeping the kids from scribbling all over > my work :) > > I don't have this at work (yet... talking to the building > manager!) but > I still find a giant whiteboard to be the best for database > design, or > any other kind of design work. Once I have a fairly solid idea where > everything is going, I usually break out Visio. As a general-purpose > diagramming tool I find it to be second to none. I can create just > about any UML diagram, flowchart or whatever else in it. > True, I can't > spit code out of it, but I don't generally like letting tools > write my > code for me anyway. > > But, forget all that... go buy that paneling and pick a room! :) > > Frank > > Graham Reeds wrote: > > Rafael Taboada wrote: > > > >> Hi folks. When u design a database... What soft do u use?? > What's the > >> best?? > >> I use Embarcadero E/R... Is there any program better than > embarcadero? > >> > >> -- > >> Rafael Taboada > >> Software Engineer > >> > >> Cell : +511-97753290 > >> > >> "No creo en el destino pues no me gusta tener la idea de > controlar mi > >> vida" > >> > > > > I use pen, paper, and brain power:-) > > > > When the first round of requirements discussions are > complete I then use > > SQLyog (http://www.webyog.com/), MySQL Query Browser and MySQL > > Workbench. DBDesigner 4 was the old MySQL Workbench which > is getting > > rewritten from the ground up. Haven't installed DBDesigner > 4 before > > since Workbench just about works for me (at least to > visualise and check > > I haven't missed any foreign keys). > > > > There is a Windoze and Mac OSX version of Workbench but no > Linux yet. > > > > G. > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading data into FormFile
Hi! Is there a way to load data (from database or file on the server) into org.apache.struts.upload.FormFile object? Cheers, Leo __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database design
+1 For a whiteboard, but how inferior do I feel next to Frank. Were not worthy... -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 04 October 2005 05:25 To: Struts Users Mailing List Subject: Re: database design I think the smartest thing I ever did was this... I have an office at home... just one of the bedrooms that is my sanctuary of geekdom... about 6 months ago we were walking through Home Depot... no, sorry, Lowes... we were looking for some sort of paneling to spruce the place up a bit. What I found is a panel that is made out of whiteboard material. So, picture an entire 15'x16' room (is ' or " feet? I never remember!) where every single wall is whiteboard, floor to ceiling. *THIS* has become *THE* way I do most of my design work. It's great... any time I have an idea I simply find a blank area of wall and have at it! I put in a chair rail around the entire room and I keep various colored markers on it. My only problem is keeping the kids from scribbling all over my work :) I don't have this at work (yet... talking to the building manager!) but I still find a giant whiteboard to be the best for database design, or any other kind of design work. Once I have a fairly solid idea where everything is going, I usually break out Visio. As a general-purpose diagramming tool I find it to be second to none. I can create just about any UML diagram, flowchart or whatever else in it. True, I can't spit code out of it, but I don't generally like letting tools write my code for me anyway. But, forget all that... go buy that paneling and pick a room! :) Frank Graham Reeds wrote: > Rafael Taboada wrote: > >> Hi folks. When u design a database... What soft do u use?? What's the >> best?? >> I use Embarcadero E/R... Is there any program better than embarcadero? >> >> -- >> Rafael Taboada >> Software Engineer >> >> Cell : +511-97753290 >> >> "No creo en el destino pues no me gusta tener la idea de controlar mi >> vida" >> > > I use pen, paper, and brain power:-) > > When the first round of requirements discussions are complete I then use > SQLyog (http://www.webyog.com/), MySQL Query Browser and MySQL > Workbench. DBDesigner 4 was the old MySQL Workbench which is getting > rewritten from the ground up. Haven't installed DBDesigner 4 before > since Workbench just about works for me (at least to visualise and check > I haven't missed any foreign keys). > > There is a Windoze and Mac OSX version of Workbench but no Linux yet. > > G. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Shale]Newbie question
Thanx David, Gary. On 10/4/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > The use-case application's purpose is to demo the requirements of a specific > feature of Shale. We have not built an example using all the Shale > features. > > Shale is a framework built on top of JSF. It provides value added features > that are not in the vanilla API. If you are not fimillar with JSF, you will > really have a hard time seeing the value added features of Shale. I was hoping to find an example application like the mailreader (I thought it has been rewritten for Shale, at least someone was announcing it on the list). Nevermind, I will start with myfaces, and move to shale afterwards :-) > > > One thing I noticed, every link (in the resulting html) is a form > > submition. Is there a way to configure it? > > >Because, if not, it would > > be an absolute NOGO, since it would make the site uncrawlable (at > > least for modern search engines). > > > > I would think that for most web applications, you wouldn't want a user to > attempt to jump into the middle of a dynamic web application without a > context within the flow of the application? You mean, coming in with a non-functional link with some parameters? That's not a problem, you can detect it pretty early in the base action (filter whatever). The problem is, that if all your links are posts, you will be considered as not-interesting content by the search engine (only one url, different context). In a B2C business it's a kind of death... > > > Where is the best place to start with Shale? > > > > There is some information here: > http://struts.apache.org/shale/index.html was my first try too :-) I thought there was a Wiki page? Didn't found any. > > You might pick up one of the many books published on JSF. My favorite is > coauthored by one of the Struts committers (David Geary - Core JavaServer > Faces, ISBN 0-13-146305-5). Hmm yes, but isn't David a RoR convert now? Anyway, thanx for your time :-) leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: database design
r u being sarcastic??? I hope u dont... Anyway... I USED my "whiteboard"... And I have to draw it on my PC in order to show it... In order to generate my SQL statements... In order to connect my DB and manage it... Just looking for somw tools... Just researching... Just learning... Thanks for ur help. -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"