Re: 2 PROBLEMs-Please Help
Looks like you don't have the error string correct (ie you may have a misspelling) errors.cartIsEmtpy Check your properties file. However, usually you'll get an error saying cannot find bean error in any scope if that was the case... did you have any more console output? this sometimes sounds to novices as though there are no errors saved when actually there are. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. f f [EMAIL PROTECTED] 12/02/2004 01:55 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:2 PROBLEMs-Please Help Hi gurus, I have 2 problems(or may be 2 bug reports) : 1. The point is IT CAN'T SAVE ERRORS ! Here is some relevant codes(some of them are simplified) === from TrySubmitOrderAction.java(on execute method) : // if object under the name found so use it, otherwise create one, and put it on // session. ShoppingCartLocal cart=ShoppingCartUtilWeb.getObjectOnSession(session); /// alternative 1. CODE BELOW IS THE BUG if(cart.isEmpty()){ System.out.println(Cart is Empty); errors.add(ActionErrors.GLOBAL_ERROR,new ActionError(errors.cartIsEmtpy)); } if(!errors.isEmpty()){ saveErrors(request,errors); System.out.println(errors saved); return mapping.findForward(failure); // forward to /common/error.jsp } CODE ABOVE IS THE BUG alternative 2. IF ALTERNATIVE 1 can't save errors ! /** if(cart.isEmpty()){ return mapping.findForward(failureCartIsEmpty); // forward to /common/error.jsp } */ from /common/error.jsp : %@ taglib uri=/WEB-INF/struts-html.tld prefix=h % h:errors / %-- more jsp html tags --% from console : INFO [TilesRequestProcessor] Tiles definition factory found for request processor ''. INFO [STDOUT] Cart is Empty LOOK A THIS INFO [STDOUT] errors savedAND THIS TOO INFO [PropertyMessageResources] Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true from server.log : DEBUG [org.apache.struts.action.RequestProcessor] Processing a 'GET' for path '/trySubmitOrder' DEBUG [org.apache.struts.action.RequestProcessor] Setting user locale 'en' DEBUG [org.apache.struts.util.RequestUtils] Looking for ActionForm bean instance in scope 'request' under attribute key 'SubmitOrderForm' DEBUG [org.apache.struts.util.RequestUtils] Creating new ActionForm instance of type 'proj.web.form.SubmitOrderForm' DEBUG [org.apache.struts.util.RequestUtils] -- {SubmitOrderForm : } DEBUG [org.apache.struts.action.RequestProcessor] Storing ActionForm bean instance in scope 'request' under attribute key 'SubmitOrderForm' DEBUG [org.apache.struts.action.RequestProcessor] Populating bean properties from this request DEBUG [org.apache.struts.action.RequestProcessor] Looking for Action instance for class proj.web.action.TrySubmitOrderAction DEBUG [org.apache.struts.action.RequestProcessor] Creating new Action instance INFO [STDOUT] Cart is Empty INFO [STDOUT] errors saved DEBUG [org.apache.struts.tiles.TilesRequestProcessor] processForwardConfig(/common/error.jsp, false) DEBUG [org.apache.struts.tiles.xmlDefinition.I18nFactorySet] Can't open file '/WEB-INF/tiles-config_en.xml' DEBUG [org.apache.struts.tiles.TilesRequestProcessor] '/common/error.jsp' - processed as uri DEBUG [org.apache.struts.action.RequestProcessor] processForwardConfig(ForwardConfig[name=failure,path=/common/error.jsp,redirect=false,contextRelative=false]) from struts-config.xml I don't specify the input attribute because It needs no validation. action path=/trySubmitOrder type=proj.web.action.TrySubmitOrderAction name=SubmitOrderForm scope=request unknown=false validate=false forward name=success path=/order/orderPage.jsp redirect=false / forward name=failure path=/common/error.jsp redirect=false / forward name=failureCartIsEmtpy path=/failureCartIsEmtpyInserter.jsp // indirectly insert /common/error.jsp, redirect=false / /action === fortunately threre is only one strange Action like this. note : don't criticize my
RE:[OT]Looking for junior Java/Struts developers ENOUGH!
Okay, OT is okay as far as it goes but lets not turn the struts mailing list into a forum for the great Sydney/Melbourne rivalry. Please. Anyway, everyone knows that Canberra is best. :-) Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay [EMAIL PROTECTED] 05/02/2004 12:53 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE:[OT]Looking for junior Java/Struts developers hi! thanks for the suggestion. that is pretty much what i had decided to do ie write something and try and market it. however i'd beg to differ on the weather. i dont think cold, grey, wet, clammy, uncertain weather qualifies as good weather esp compared to the sunny predictable weather down here. Quoting [EMAIL PROTECTED]: ajay, The best way to demonstrate you skills is to look for an idea and write something and sell it, you end up as your own boss and you gain the experience. You seem to think the no-experience vs employeers want experience issue is new, but it was the same 15 years or so ago when I started out. You can sit around and frett about it or just get on with it yourself. If you want to work for someone else, that is fine, you just need to work hard and you'll do fine, there are so many lazy programmers out in the market these days that there is a shortage of dedicated professional graduates. Thirdly, move down to Melbourne, the weather is nicer down here:) Chris On Thu, 5 Feb 2004, ajay wrote: when: 2004 where: sydney citizenship: australian the problem though is that most people here thesedays want some level of experience before they are willing to hire you, the trend is a lot towards contract/temp jobs. the problem ofcourse is where to get that elusive experience, and uni project experience doesn't count for anything. so you have this cycle where you are looking to get some experience and most companies want only experienced personnel. and when it comes to tax i believe australia has one of the world's highest tax rate, and sydney is way too pricey. but what i would like to know is whats the scenario outside, like int he states, singapore, UK etc. is there a good demand for qualified but inexperienced IT graduates. would a move abroad be good? Quoting [EMAIL PROTECTED]: Jiin-Her hits the nail on the head I certainly wouldn't want to make 50K while living in Boston or New York City... Here's the cost of living for Herndon VA http://realestate.yahoo.com/re/neighborhood/search.html?sa=c=Herndons=VAz= Cost of living (taxes, expenses, insurance, etc...) can change from town to town even. As the add says you need to move to Herndon VA to live on that 50K. ;) -R^3 On Wed, 4 Feb 2004, Jiin-Her Lu wrote: Depends on when, where, and what is your citizenship. It can be up to $ 85000+ in US. Jiin-Her Lu (816) 926-2145 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ajay --- Who Dares Wins - This mail sent through IMP: www-mail.usyd.edu.au - 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] -- ajay --- Who Dares Wins - This mail sent through IMP: www-mail.usyd.edu.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
Re: error- no getter method for property of bean
You will need to change your getter method to getGroup_name() Struts uses the name of the field when it looks for a getter or setter method. It will assume that the first letter of the field name is capitalised after the get (as per general JavaBean standards). getGroupName will not be recognized as the getter for your property group_name (although it would match a property called groupName Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Frank Nguyen [EMAIL PROTECTED] 04/02/2004 08:53 AM Please respond to Struts Users Mailing List To:Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:error- no getter method for property of bean Hi, I'm experimenting a simple form, adding a group (3 fields) to a simple, one group table database, following some examples from the Struts book by James Turner. All classes built (with Torque and mysql) and deployed. I couldn't bring up the form and kept getting the error below. I think something is wrong w/ my struts setup. Attached are struts config, my jsp, and some simple java files. Could someone help me on this ? I really appreciate it. -Frank Error: 500 Location: /infolink/users/edit_group.jsp Internal Servlet Error: javax.servlet.ServletException: No getter method for property group_name of bean org.apache.struts.taglib.html.BEAN at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:460) at users.edit_group_1._jspService(edit_group_1.java:550) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:536) Root cause: javax.servlet.jsp.JspException: No getter method for property group_name of bean org.apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:742) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193) at users.edit_group_1._jspService(edit_group_1.java:241) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:536) This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: error- no getter method for property of bean
There is a reason why people choose field names like group_name with underscore and no CamelCase: it is to mirror the column names in the database. I personally agree with you in general terms but if DBAs insist on their of notation (the underscore means of or something syntactically similar, so the field means name of group) then if we want to keep our code aligned with the database we will have to use underscrores in the field names... Of course, it is not essential to do this and we could stick to the much more bean-standard groupName, getGroupName and setGroupName. In Frank's case I think the easiest solution would be to change the accessors though because there are less changes to make... saves tracking down references to this field in the jsp and possibly in validation.xml (if using struts validator forms) . The main thing is to understand the reason why the method call was not recognized. Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Wendy Smoak [EMAIL PROTECTED] 04/02/2004 09:08 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:RE: error- no getter method for property of bean From: Frank Nguyen [mailto:[EMAIL PROTECTED] javax.servlet.ServletException: No getter method for property group_name of bean org.apache.struts.taglib.html.BEAN I didn't look at anything you attached, but based on this message I'd encourage you to stick to property names like 'groupName' and get rid of the underscores. You should then have getGroupName() and setGroupName() methods with exactly the same type (and no other similarly named methods with different signatures). For the rest of the rules, read the JavaBeans specification. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
Re: Re-populating form after validate fails
Just set up an forward for validation failure. You can do this in your struts-config.xml file, in fact you can have as many forwards as you like, but for practical purposes most people prefer to have at most three or four forwards per Action. For example, you might have a SaveAction that forwards to the next screen in a sequence if validation succeeds, an error page if it fails, a login page if the session becomes invalidated, and a query action if you had a delete button to delete a record. Just say you query a database to populate your form fields. Then you can edit the form and hit Save. In the Form's validate method you fill an ActionErrors object. Then in the SaveAction you will have something like: // If a message is required, save the specified key(s) // into the request for use by the struts:errors tag. if (!errors.isEmpty()) { saveErrors(request, errors); // Forward control to the appropriate 'failure' URI forward = mapping.findForward(failure); } else { // Forward control to the appropriate 'success' URI if no errors forward = mapping.findForward(success); } return forward; and in your struts-config you will have something like: action path=/saveAction type=myproject.actions.SaveAction name=somethingForm validate=true forward name=success path=nextForm/ forward name=failure path=somethingForm/ /action I hope you can figure out your answer from that... I can't give you a real example from my project because of confidentiality so I have to try and make it generic. Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Paul Barry [EMAIL PROTECTED] 04/02/2004 09:48 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re-populating form after validate fails I feel bad asking this question because I know it has been asked 1 million times in this group, but I still haven't found the answer so I am asking it again. How do you get a form to re-populate if validation fails? Here is what I am trying. I have 2 actions: action path=/myaccount/login type=myapp.struts.actions.ForwardAction scope=request name=LoginForm validate=false parameter=/WEB-INF/jsp/myaccount/login.jsp / action path=/myaccount/loginAction type=myapp.struts.actions.LoginAction scope=request name=LoginForm validate=true input=/myaccount/login.do / So, the user goes to /myaccount/login.do, and they are presented with a form. The code for that looks like this: html:html body html:form method=POST action=/loginAction.do Username:nbsp;html:text property=username/br / Password:nbsp;html:password property=password /br / html:submit/ /html:form /body /html:html The code for the LoginForm is simple, getters and setters with a validate method like this: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); Object form; if(StringUtil.isEmpty(getUsername())) { if(log.isDebugEnabled()) { log.debug(No username was entered.); } errors.add(message, new ActionError(myaccount.login.error.missingUsername)); errors.add(username, new ActionError(myaccount.login.error.label)); return errors; } if(StringUtil.isEmpty(getPassword())) { if(log.isDebugEnabled()) {
Re: Validator-How to put the fields value in the resulting error message?
I think you have to do this in code in your form's validate method. errors.add(new ActionError(errors.email), emailAddress); I could be wrong but this is the way that I do it anyway... I'm not sure if the struts validator can do this using an expression like you have tried to do. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. David Erickson [EMAIL PROTECTED] 04/02/2004 10:56 AM Please respond to Struts Users Mailing List To: Struts Mailing List [EMAIL PROTECTED] cc: Subject:Validator-How to put the fields value in the resulting error message? Hey all, still new with the validator.. I'm using the emailAddress validator and I just want it to put the value of the field in the error message if its not valid.. ie: blah!blah.com is not a valid email address. however I can't seem to make that happen.. here's what I've tried: form name=/getPassword field property=userName depends=required arg0 key=User Name resource=false/ /field field property=emailAddress depends=required,email arg0 key=${emailAddress} resource=false/ /field /form and in my properties file errors.email=li{0} is an invalid e-mail address./li Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
Re: Re-populating form after validate fails
oops, you could be right. I left that out when I was genericising my action tag... just trying to make it more generic. However, my point is still that when validate fails then the errors will not be empty... that is where your action tells struts to forward as: forward = mapping.findForward(failure); and in your struts entry you can see (in my example) that failure is defined as the same form (but it could be anything) an example of this is in the sample struts project in the struts tutorial where the login screen forwards to welcome if login was okay, or back to login if it failed. so I'm not sure if the input parameter is responsible for the forward... it could be the default? Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Paul Barry [EMAIL PROTECTED] 04/02/2004 12:38 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re: Re-populating form after validate fails I can't test this right now, but if I have an ActionMapping with validate=true and no input, won't that result in an error when validate fails? My understanding is that if validate fails, the request processor forwards the request to the input. Subject: Re: Re-populating form after validate fails From: [EMAIL PROTECTED] Date: Wed, 4 Feb 2004 10:59:35 +1100 To: Struts Users Mailing List [EMAIL PROTECTED] Just set up an forward for validation failure. You can do this in your struts-config.xml file, in fact you can have as many forwards as you like, but for practical purposes most people prefer to have at most three or four forwards per Action. For example, you might have a SaveAction that forwards to the next screen in a sequence if validation succeeds, an error page if it fails, a login page if the session becomes invalidated, and a query action if you had a delete button to delete a record. Just say you query a database to populate your form fields. Then you can edit the form and hit Save. In the Form's validate method you fill an ActionErrors object. Then in the SaveAction you will have something like: // If a message is required, save the specified key(s) // into the request for use by the struts:errors tag. if (!errors.isEmpty()) { saveErrors(request, errors); // Forward control to the appropriate 'failure' URI forward = mapping.findForward(failure); } else { // Forward control to the appropriate 'success' URI if no errors forward = mapping.findForward(success); } return forward; and in your struts-config you will have something like: action path=/saveAction type=myproject.actions.SaveAction name=somethingForm validate=true forward name=success path=nextForm/ forward name=failure path=somethingForm/ /action I hope you can figure out your answer from that... I can't give you a real example from my project because of confidentiality so I have to try and make it generic. Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looking for junior Java/Struts developers
I looked up client/server programmer on Monster.com and got the average for Vermont: Client/Server Programmer I Burlington, VT 25th%ileMedian 75th%ile $42,973 $48,589 $55,303 Programmer I Burlington, VT 25th%ile Median 75th%ile $40,892$45,231$51,272 So there you go. I am a grad myself (Australian) but I can't tell you what I earn. I can probably get away with saying that it is a lot less that that... mind you that is an average and not for a graduate. I would say that about 50k for one year experience is probably only slightly higher than the median. Did anyone actually go to the website for this company and look for the supposed job posting on their careers site? coz it isn't there. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay [EMAIL PROTECTED] 04/02/2004 03:34 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:RE: Looking for junior Java/Struts developers whats a graduate programmer worth? i'm told to accept 45k, which i believe in the states would be 30k or roundabouts. *sniff* US 50k *sniff* i wonder how many years i'll have to slave for before i see money like that. 50k US??? Thats like 85k over here - which is a *lot* more than even a very senior programmer is worth nevermind a junior. 85k for a JUNIOR programmer. Wow! You could buy a car with that! (Which unlike junior programmers are distinctly not cheap over here. sigh/) so... whats the tax rate like over in the States these days? ;-) -- ajay --- Who Dares Wins - This mail sent through IMP: www-mail.usyd.edu.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
RE: Looking for junior Java/Struts developers
Hey! Did you read my resume? Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Andrew Hill [EMAIL PROTECTED] 04/02/2004 04:42 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Looking for junior Java/Struts developers snip Did anyone actually go to the website for this company and look for the supposed job posting on their careers site? coz it isn't there. /snip Id say sending the info to the struts list was very well targeted on their part. If they post it on the site they are just inviting resume spam from a million unqualified people whos uncle's friends pet monkey once saw a JSP and thus think that makes them a struts expert... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 February 2004 13:12 To: Struts Users Mailing List Subject: RE: Looking for junior Java/Struts developers I looked up client/server programmer on Monster.com and got the average for Vermont: Client/Server Programmer I Burlington, VT 25th%ileMedian 75th%ile $42,973 $48,589 $55,303 Programmer I Burlington, VT 25th%ile Median 75th%ile $40,892$45,231$51,272 So there you go. I am a grad myself (Australian) but I can't tell you what I earn. I can probably get away with saying that it is a lot less that that... mind you that is an average and not for a graduate. I would say that about 50k for one year experience is probably only slightly higher than the median. Did anyone actually go to the website for this company and look for the supposed job posting on their careers site? coz it isn't there. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay [EMAIL PROTECTED] 04/02/2004 03:34 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:RE: Looking for junior Java/Struts developers whats a graduate programmer worth? i'm told to accept 45k, which i believe in the states would be 30k or roundabouts. *sniff* US 50k *sniff* i wonder how many years i'll have to slave for before i see money like that. 50k US??? Thats like 85k over here - which is a *lot* more than even a very senior programmer is worth nevermind a junior. 85k for a JUNIOR programmer. Wow! You could buy a car with that! (Which unlike junior programmers are distinctly not cheap over here. sigh/) so... whats the tax rate like over in the States these days? ;-) -- ajay --- Who Dares Wins - This mail sent through IMP: www-mail.usyd.edu.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
Re: Regarding Client side Validations
The cancel button's value will be placed on the request iff it was clicked... so you will test for its presence with something like: if(request.getParameterValues(cancel) != null) { // set your cancel forward mapping eg. clear the form. } else { // set your submit forward mapping. } Hope that helps you. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Ramachandran [EMAIL PROTECTED] 03/02/2004 05:30 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Regarding Client side Validations Hi All, I am performing Cleint side validation in an Add Employee form. Here if i click the cancel button it should goes to the previous page which list employees. Here on click of sumbit button, i am calling my java script. But even when i am clicking the cancel button, it is asking me the validations that i am performed. For example if i give the text field for no it asks to enter. But i want to goes to the list employees page with out performing the validation by clicking the Cancel button. Here I am Callin the Script: html:form action=AddEmployeeAction name=EmployeeForm type=com.summit.EmployeeForm onsubmit=return FinalCheck(); html:cancel/ button is also inside this form. In My Action: if ( isCancelled(request) ) { // Cancel pressed back to employee list return (mapping.findForward(cancelemp)); } What i have to do for this one. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
Re: deleted ApplicationResources_de.properties ghost
This is one of those wild crazy ideas that you asked for... I know you grepped but maybe didn't grep properly? There are usually two copies of your resources files, one under your source directory and that is copied to your classes directory by Tomcat. The one in classes is actually read by the server, but the one in source is the one you edit because it should replace the classes one. Just check manually rather than grepping and see if you find the ghost file. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Adam Hardy [EMAIL PROTECTED] 20/01/2004 06:12 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: deleted ApplicationResources_de.properties ghost Does anybody have any ideas on this? Even wild, stupid, ridiculous ideas. Anything? On 01/19/2004 07:02 PM Adam Hardy wrote: Actually I just did get access to a third server and did a complete fresh install of java tomcat and my app.war, and the ghost German strings came up. So the German strings must be in the war file. But there is only the one ApplicationResources.properties file there in the war file! I just checked. Again, deleting or adding the German locale to the browser settings makes the strings change, so it is definitely the resource bundles. On 01/19/2004 06:17 PM Adam Hardy wrote: Yes, unfortunately it does. On my dev machine and my future production server. But I had them both running earlier with the German .properties, so it would be the same problem. I don't have a third server to test it on. On 01/19/2004 05:54 PM Tim Kettering wrote: Does the same thing happen when you build/run the webapp on a different computer? Not sure what to tell you here, but that should at least narrow the scope to something in the source or some ghost file on your dev machine. -tim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:35 AM To: Struts Users Mailing List Subject: deleted ApplicationResources_de.properties ghost I'm having a nightmare with the ApplicationResources_de.properties resource bundle in my webapp. I asked a colleague to look at it and he's baffled too. I had my resource bundle in an English and also a German .properties file, for testing purposes, but then decided to ditch the German version until it's completely finished. Even though I deleted the German xxx_de.properties file, shutdown tomcat, deleted the whole webapp and redeployed and deleted the cache in $CATALINA_HOME/work/ , the German strings are still being cached somewhere. I have run a grep on a German string to find it in any file in the whole of the tomcat, and the whole of my dev-env, but haven't found it. In the HTTP headers, I have set pragma=no-cache, cache-control=no-cache expires=Thu, 01 Jan 1970 00:00:00 GMT I have cleared the cache from my browser and done refreshes a thousand times. This is now about a month afterwards and the ghost German text is still coming up. If I set the browser locale to en, then I get the correct English version, but if I then set it back to de, somehow, somewhere it is finding the deleted German resource bundle. Any advice much appreciated. :( Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com
RE: PLEASE HELP!!!!
your properties file should be called ApplicationResources.properties according to your config file. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
RE: ActionForm is not automatically popluated.
Are you casting the ActionForm in to your own form in your save action? like: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { MyForm myForm = (MyForm) form; } Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Richard Hightower [EMAIL PROTECTED] 15/01/2004 03:14 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: ActionForm is not automatically popluated. -Original Message- Hi, I have a tomcat/struts/velocity application that uses a fairly standard ActionForm bean to validate user input. My problem is that none of the fields in the ActionForm bean become populated when the user submits the form. I can retrieve the values from the form in the pRequest parameter to the ActionForm.validate() method. The name of the get/setFoo() methods in the ActionForm bean matches the names of the fields in the submitted form. What could be the problem? JDK version 1.4.2_02 Tomcat version 4.0.6 Struts version 1.1 -- Regards André Risnes - 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: converting a href with variable target into html:link
I like to avoid putting javascript logic in the JSP tag itself (although you can usually do it if you get the syntax right). I usually pull the script out of the tag like this: script function deleteEvent() { if (confirm('Do you want to delete this event?')) { location = '/EventDelete.do?e=' + document.all(eventId).value; } } /script html-el:form name=eventForm html-el:hidden property=eventId value=${requestScope.eventForm.eventId}/ html-el:link href=javascript:deleteEvent(); styleClass=eventheaderlink/ /html-el:form I know that's a bit different to what you are doing but that is how I would do it and your javascript is nice and clear (you can even put it in a separate file). Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Ricky Purnomo [EMAIL PROTECTED] 14/01/2004 02:00 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:converting a href with variable target into html:link I am converting a pure JSP page into Struts, and am having problem converting links which calls a javascript and has dynamically specified target. The particular line is below: a href=javascript:if (confirm('Do you want to delete this event?')) location = 'delete.jsp?e=%= EventId %' class=eventheaderlinkDelete/a My current converted line reads: a href=javascript:if (confirm('Do you want to delete this event?')) location = '/EventDelete.do?e=bean:write name=EventForm property=eventId/' class=eventheaderlink but I cannot find an equivalent using html:link, problem being I cannot add the closing single quote back (or more generally stated, I cannot have constant+variable+constant in the link). My attempt: html:link href=javascript:if (confirm('Do you want to delete this event?')) location = '/EventDelete.do paramId=e paramName=EventForm paramProperty=eventId styleClass=eventheaderlink is missing the last ' and causes error. So is there a way to do this in html:link? And is there a need to convert all a to html:link in the first place? Because I am also having problem converting a href=mailto:%= htmlescape(contactemail) % class=eventemaillink%= htmlescape(evcontactemail) %/a into html:link, since there is no paramId that I can specify, and using paramId always automatically add a ? to the created link. Thanks in advance on any pointers, Ricky Purnomo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: messages
An easy way would be to have a field in the JSP that corresponds to a field in your ActionForm. The you just put your message into the form field. For instance I often display debugging information using a hidden field and I set write=true when I want to debug eg I am running database queries and the record's id is not displayed on the JSP but I can display it for debugging with a line like: html-el:hidden property=id value=${requestScope.myForm.id} write=true/ You could do something similar, and if you stick to using the form in this way you won't have messy parameters on the request. HTH. Heya Otávio Augusto [EMAIL PROTECTED] 07/01/2004 02:47 AM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:messages I'm able to send error messages to my jsp whenever needed. but how to i send confirmation messages (for instance Your mail has been sent) ? is there a way similar to the ActionErrors method? thanks Otávio Augusto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error:null property value please HELP
Hi Ajay I am doing something similar... I have a Tree class and a Node class to represent either branches or leaves of the tree. The Tree class has a field called treeRoot that represents the root Node. I ha ve an action that creates the tree and puts it on the request then in the JSP I have something like: %-- Loop through the array list of trees to display each root node. Note that 'myTree' was placed on the request by an Action --% logic:present name=myTree nested:root name=currentTree nested:nest property=treeRoot div class=root jsp:include page=treenode.jsp / /div /nested:nest /nested:root /logic:present Actually my jsp is slightly different because I can have multiple root nodes and I also iterate through each root node to display each tree. I have chopped those bits out to make the code more readable. So it seems that you are trying to reference a field functions that isn't declared in your tree class. Hope that helps. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay brar [EMAIL PROTECTED] 22/12/2003 12:55 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:error:null property value please HELP hi! i am getting an error when i submit a form. briefly i have a tree stucture that gets displayed, along with checkboxes to select a particular node. the tree structure is of the type: class TreeStructure{ private ArrayList children;} //the ArrayList children contains objects of type //TreeStructure the structure includes a property 'selected' of type boolean. My ActionForm includes the tree as a property called 'functions'. i display them as html:form action=/saveUserConfig nested:nest property=functions jsp:include page=treenode.jsp/ /nested:nest html:submit value=Submit/ /html:form //treenode.jsp is nested:root nested:checkbox property=selected value=true/ nested:write property=nodeName/br nested:iterate property=children jsp:include page=treenode.jsp / /nested:iterate /nested:root the error i get is exception javax.servlet.ServletException: BeanUtils.populate org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254) org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.IllegalArgumentException: Null property value for 'functions' org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:755) org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801) org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:796) org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729) org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) please help thanks Ajay _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error:null property value please HELP
Hi Ajay, Sorry, I didn't realise the problem had to do with checkboxes. I can offer a clue or two perhaps but you would be best off reading the struts doco on checkboxes. clue 1: checkbox values are stored as Strings. clue 2: only selec ted checkbox values are submitted, not unselected ones. you probably knew that already, hence my suggestion to read the struts doco. Cheers, Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay brar [EMAIL PROTECTED] 22/12/2003 01:42 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re: error:null property value please HELP hi! 'functions' is the name of the tree structure in the form class, as class SomeForm extends ActionForm { private TreeStructure functions;} this form class also includes some String attributes. The whole display works fine, i have some text boxes for the String fields in the form, the tree structure gets displayed with the corresponding checkboxes. the problem arises when i select a particular checkbox and submit. thats when i get the error i mentioned earlier. however if i just fill the text boxes and do not select and checkbox the form submits fine. any clues? thanks Ajay From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: error:null property value please HELP Date: Mon, 22 Dec 2003 13:28:17 +1100 Hi Ajay I am doing something similar... I have a Tree class and a Node class to represent either branches or leaves of the tree. The Tree class has a field called treeRoot that represents the root Node. I ha ve an action that creates the tree and puts it on the request then in the JSP I have something like: %-- Loop through the array list of trees to display each root node. Note that 'myTree' was placed on the request by an Action --% logic:present name=myTree nested:root name=currentTree nested:nest property=treeRoot div class=root jsp:include page=treenode.jsp / /div /nested:nest /nested:root /logic:present Actually my jsp is slightly different because I can have multiple root nodes and I also iterate through each root node to display each tree. I have chopped those bits out to make the code more readable. So it seems that you are trying to reference a field functions that isn't declared in your tree class. Hope that helps. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay brar [EMAIL PROTECTED] 22/12/2003 12:55 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:error:null property value please HELP hi! i am getting an error when i submit a form. briefly i have a tree stucture that gets displayed, along with checkboxes to select a particular node. the tree structure is of the type: class TreeStructure{ private ArrayList children;} //the ArrayList children contains objects of type //TreeStructure the structure includes a property 'selected' of type boolean. My ActionForm includes the tree as a property called 'functions'. i display them as html:form action=/saveUserConfig nested:nest property=functions jsp:include page=treenode.jsp/ /nested:nest html:submit value=Submit/ /html:form //treenode.jsp is nested:root nested:checkbox property=selected value=true/ nested:write property=nodeName/br
RE: Please Help With This Error Message
Maybe they can tell you a fancy -el/JSTL way to do it. :) yes, if you use html-el:text instead then you should be able to use an el expression a'la: html-el:text property=creator value=${author}/ size=82 maxlength=25 tabindex=1/ you'll need something like this at the top of your jsp %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Barett McGavock [EMAIL PROTECTED] 18/12/2003 10:58 AM Please respond to Struts Users Mailing List To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: 'Caroline Jen' [EMAIL PROTECTED] Subject:RE: Please Help With This Error Message C, You can't nest tags as you did in the value attribute. bean:define ... value=bean:write name=author/ / The rest of the list will croak when I recommend that you use %= author % instead of bean:write name=author/ Maybe they can tell you a fancy -el/JSTL way to do it. :) B -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:46 PM To: Struts Users Mailing List Subject: Re: Please Help With This Error Message Hi, I tried and tried. I cannot figure out the error. I need your sharp eyes and experience. I keep getting this error message in the browser: ServletException in:/article/content/postForm.jsp] /article/content/postForm.jsp(32,67) equal symbol expected' This postForm.jsp had worked find before I inserted: bean:define id=author name=cr scope=session type=java.lang.String/ html:text property=creator value=bean:write name=author/ size=82 maxlength=25 tabindex=1/ And the error message points at the bean:define ... tag. The statements are in ONE line (they do not wrapped around) in my file. cr is passed to the postForm.jsp in a session object this way: c:set var=cr value=${articleForm.creator} scope=session/ Thanks a lot. -C --- Firat TIRYAKI [EMAIL PROTECTED] wrote: maybe you don't have a space character between creator and scope... try to write the tag in one line, not multiple lines. F. - Original Message - From: fredatwork [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:53 AM Subject: RE: Please Help With This Error Message Your statement is OK. It comes from the surrounding quote. The only idea I have is to check double-quotes correctly. Fred -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: mercredi 17 décembre 2003 07:41 To: [EMAIL PROTECTED] Subject: Please Help With This Error Message Please help me to figure out this error message that I got in the browser: equal symbol expected. The error complains about this statement in my JSP: bean:define id=author name=creator scope=session type=java.lang.String/ and the above statement is intended to retrieve the string creator from a session object. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: Please Help With This Error Message
Sorry, shouldn't have copy/pasted. I meant html-el:text property=creator value=${author} size=82 maxlength=25 tabindex=1/ Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. [EMAIL PROTECTED] 18/12/2003 01:05 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Please Help With This Error Message Maybe they can tell you a fancy -el/JSTL way to do it. :) yes, if you use html-el:text instead then you should be able to use an el expression a'la: html-el:text property=creator value=${author}/ size=82 maxlength=25 tabindex=1/ you'll need something like this at the top of your jsp %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Barett McGavock [EMAIL PROTECTED] 18/12/2003 10:58 AM Please respond to Struts Users Mailing List To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: 'Caroline Jen' [EMAIL PROTECTED] Subject:RE: Please Help With This Error Message C, You can't nest tags as you did in the value attribute. bean:define ... value=bean:write name=author/ / The rest of the list will croak when I recommend that you use %= author % instead of bean:write name=author/ Maybe they can tell you a fancy -el/JSTL way to do it. :) B -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:46 PM To: Struts Users Mailing List Subject: Re: Please Help With This Error Message Hi, I tried and tried. I cannot figure out the error. I need your sharp eyes and experience. I keep getting this error message in the browser: ServletException in:/article/content/postForm.jsp] /article/content/postForm.jsp(32,67) equal symbol expected' This postForm.jsp had worked find before I inserted: bean:define id=author name=cr scope=session type=java.lang.String/ html:text property=creator value=bean:write name=author/ size=82 maxlength=25 tabindex=1/ And the error message points at the bean:define ... tag. The statements are in ONE line (they do not wrapped around) in my file. cr is passed to the postForm.jsp in a session object this way: c:set var=cr value=${articleForm.creator} scope=session/ Thanks a lot. -C --- Firat TIRYAKI [EMAIL PROTECTED] wrote: maybe you don't have a space character between creator and scope... try to write the tag in one line, not multiple lines. F. - Original Message - From: fredatwork [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:53 AM Subject: RE: Please Help With This Error Message Your statement is OK. It comes from the surrounding quote. The only idea I have is to check double-quotes correctly. Fred -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: mercredi 17 décembre 2003 07:41 To: [EMAIL PROTECTED] Subject: Please Help With This Error Message Please help me to figure out this error message that I got in the browser: equal symbol expected. The error complains about this statement in my JSP: bean:define id=author name=creator scope=session type=java.lang.String/ and the above statement is intended to retrieve the string creator from a session object. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected output ????
Why are you using a page parameter in the html:link tag instead of a href attribute? try html:link href=/index.jsp?tab=4id=1Eric Chow/html:link Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Eric Chow [EMAIL PROTECTED] 18/12/2003 01:56 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Unexpected output Hello, I have used Struts(Tiles) since 1.0. Recently, I found some problem in using Struts+Tomcat4/5. In one of the JSP, there is a line as following. html:link page=/index.jsp?tab=4id=1Eric Chow/html:link In my home page, that is consist with different JSP and defined in Tiles. One of the page is dynamic generated by JSP Customer Tag, it just select some data from the database and output. The problem is that, Problem: - If there isn't any matching data in the database (select nothing) at the very first time loading. - Load again or reload a thousand times . NO PROBLEM. - Add some records to the database, it will automatic load those data in the page, CORRECT. *** DELETE all the records, the problem APPEAR !,In the original data display area, it should be display nothing but it always display Eric Chow Strange !!? Un-clever solution: - Finally, I changed html:link page=/index.jsp?tab=4id=1Eric Chow/html:link to a href=index.jsptab=4id=1Eric Chow/a NO PROBLEM NOW -- And also, not only this, if I did the same steps in other similar functions. It also will display some strange and unexpected output text. Those strange output text are always be the BODY TAG contents !! I am not sure if it is the Struts problem or Tomcat problem. Eric == If you know what you are doing, it is not called RESEARCH! == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected output ????
hmm ... not sure why that is... I rememeber reading something by Ted Husted where he recommended using html:link forward= instead of html:link page= but I didn't follow it up, you could do a google search for this thread and might get some help there. you could also try using html-el:link instead and see if you get the same error %@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el % html-el:link href=yourURL Your Link Text /html-el:link other than that... don't know. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Eric Chow [EMAIL PROTECTED] 18/12/2003 04:01 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Unexpected output Hi all, This also happen on using html:submit styleClass=btn bean:message key=msg.add/ /html:submit Those BODY TAGS Eric - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:01 AM Subject: Re: Unexpected output Why are you using a page parameter in the html:link tag instead of a href attribute? try html:link href=/index.jsp?tab=4id=1Eric Chow/html:link Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 -- -- This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. -- -- Eric Chow [EMAIL PROTECTED] 18/12/2003 01:56 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Unexpected output Hello, I have used Struts(Tiles) since 1.0. Recently, I found some problem in using Struts+Tomcat4/5. In one of the JSP, there is a line as following. html:link page=/index.jsp?tab=4id=1Eric Chow/html:link In my home page, that is consist with different JSP and defined in Tiles. One of the page is dynamic generated by JSP Customer Tag, it just select some data from the database and output. The problem is that, Problem: - If there isn't any matching data in the database (select nothing) at the very first time loading. - Load again or reload a thousand times . NO PROBLEM. - Add some records to the database, it will automatic load those data in the page, CORRECT. *** DELETE all the records, the problem APPEAR !,In the original data display area, it should be display nothing but it always display Eric Chow Strange !!? Un-clever solution: - Finally, I changed html:link page=/index.jsp?tab=4id=1Eric Chow/html:link to a href=index.jsptab=4id=1Eric Chow/a NO PROBLEM NOW -- And also, not only this, if I did the same steps in other similar functions. It also will display some strange and unexpected output text. Those strange output text are always be the BODY TAG contents !! I am not sure if it is the Struts problem or Tomcat problem. Eric == If you know what you are doing, it is not called RESEARCH! == - 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: Check-boxes and formbeans
The trick is to have a hidden field with the same property as the checkboxes... then you have an array of checkbox ids that you can iterate through. I had a form where I wanted to delete a bunch of rows from a table... the user has to select which row to delete by checking a checkbox and then when they click submit I iterate through the checkbox array and remove any values I find there from the IDs array... this gives me an array (well, a Collection in this case, an ArrayList to be precise) of unchecked checkboxes. Understand what I mean? Hope so. Something like: // get the rows that have not been selected for deletion // first get all of the ids on the form Collection allRows = new ArrayList(); for(int i = 0; i form.getRowIds.length; i++) { allRows.add(form.getRowIds()[i]); } // next remove the selected ids for (int i = 0; i form.getCheckedIds().length; i++) { allRows.remove(form.getCheckedIds()[i]); } Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Amit Kumar Sharma [EMAIL PROTECTED] 18/12/2003 05:07 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Check-boxes and formbeans what is the solution for that than ?we can't keep two array to maintain the values attachedbecause of this limitation I had to change the complete logic of the page... If anybody also has encountered the same problem please do share and the solution too. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:27 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Check-boxes and formbeans that's correct...you won't be able to get unchecked checkboxes -Original Message- From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:57 AM To: Struts Users Mailing List Subject: RE: Check-boxes and formbeans I had the same problemwhen we do request.getParameterValues(ARRAY_OF_CHECKBOX) the unchecked checkboxes didnt appeared in the new array...only the checked ones were there. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:47 AM To: Struts Users Mailing List Subject: RE: Check-boxes and formbeans you will be able to access fields with same name as an array... -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: Check-boxes and formbeans Hi All, I have many checkboxes with the same name in my html form. I use struts framework. When i submit the form, will i be able to access the checkboxes as an array in the form bean? Or should i have a seperate field for each checkbox in the formbean? Regards Vasudevrao gupta Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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: Passing Parameters from Action to JSP's
You should use an ActionForm to store parameters. Your hidden fields can get the value from the request like this: %-- hidden field (mode is one of create, edit, or view) --% html-el:hidden property=myParameter value=${requestScope.myForm.myParameter}/ Of course there are other ways to do it but once you have more than your two params you won't want to be juggling them around on the request Struts even puts the form on the request for you so you don't have to do it yourself. Hope that helps Samanth Athrey [EMAIL PROTECTED] 10/12/2003 04:11 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Passing Parameters from Action to JSP's Hello All, I have a issue here. Any help would be of great help. I have an action class - Action_A which forwards the request to A.jsp. A.jsp has 2 query parameters that are displayed correctly. The two parameters are stored in hidden variables within the form tag. Now, when this page is submitted, it calls Action_B which again forwards the request back to A.jsp. But this time, the query parameters are lost! Is there a way to send these two parameters from the Action class back to JSP? Is it legal to do something like this? Or is there a better way to achive this.? Regards Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT - what is a blonk
Nottingham Forest beat Luton 2 -1 I tried that and it worked. oh and yes to your other blonk. Cheers, Heya Mark Lowe [EMAIL PROTECTED] 06/11/2003 08:04 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: OT - what is a blonk Nottingham Forest beat Luton 2 -1 I assume the rest of your question was an attempt at humor. Cheers Mark On Thursday, November 6, 2003, at 05:03 AM, [EMAIL PROTECTED] wrote: This is off topic but I couldn't wait til casual friday... I have the following problem in my web-app. When I try and get a blonk off of the bloon-arg processor my ding-dong crashes and I get a knack-trace that says unable to agnagle blonk in any rope - what is a blonk? I have the following line in my struts-config: insist find=blonk or=die/ My question is: Who won the FA cup in 1959? Thanks for all your help. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 --- - This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT - what is a blonk
This is off topic but I couldn't wait til casual friday... I have the following problem in my web-app. When I try and get a blonk off of the bloon-arg processor my ding-dong crashes and I get a knack-trace that says unable to agnagle blonk in any rope - what is a blonk? I have the following line in my struts-config: insist find=blonk or=die/ My question is: Who won the FA cup in 1959? Thanks for all your help. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
Re: element type null
I don't know if that's right - I had a similar problem though until I put this in my web.xml But I assumed that your properties file is, like mine, in WEB-INF/classes/resources/ApplicationResources.properties sorry, I should have been more explicit in what I meant. init-param param-nameapplication/param-name param-valueresources.ApplicationResources/param-value /init-param maybe you need this: init-param param-nameapplication/param-name param-valueresources.ApplicationResources/param-value /init-param Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay brar [EMAIL PROTECTED] 21/10/2003 02:15 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re: element type null hi! tried that but didn't work i dont know about the reserved word, all struts-examples seem to use it :-) the error i posed is what i get in the log file, when i try to deploy it. after deploying(successfully?) i get the error cant find bean message resource any ideas. i know its something with the deployment descriptor, but cant figure out what. the web.xml below looks fine to me thanks cheers ajay From: Martin Gainty [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: element type null Date: Mon, 20 Oct 2003 20:26:52 -0400 my web-app has a id e.g. web-app id=WebApp Also is it wise to call servlet action I thought action was a reserved name? -M - Original Message - From: ajay brar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 20, 2003 8:18 PM Subject: element type null hi! i am getting the following error, when i try to deploy my application Element type null must be followed by either attribute specification or / could anyone help please. my web.xml looks like this ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Action Servlet Configuration -- servlet servlet-nameview/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameview/servlet-name url-pattern*.view/url-pattern /servlet-mapping servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-tiles.tld/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib /web-app thanks cheers Ajay _ ninemsn Premium transforms your e-mail with colours, photos and animated text. Click here http://ninemsn.com.au/premium/landing.asp -
Re: Form Question
You could do this using JavaScript using the same form... I used the display property of form elements (set to 'none' they disappear, or set to '' they reappear) in the onChange handler of a select box, that worked fine. You could put one in the onClick of your submit button if you have to do it like that. Hope that helps. Hello, I am new to struts and kind of working on my first struts project. One of my requirement is that based on a user input on a user form, the same form is displayed but with additional/different input field. These input fields are kind of conditional fields. Based on the value of the previous displayed field, the next appropriate field should be displayed and so on till the list of the conditional attributes are exhausted (I already have a list of these conditional attributes, their count and type can vary based on a configurable XML file). The User just clicks continue/continue on the form to get to these new fields. I am not sure how to implement this. Do I create different forms for the different clicks (but then I loose the dynamic way of adding input fields to the form). Is this at all doable with the same form. Any input would be appreciated. TIA Shishir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: element type null
maybe you need this: init-param param-nameapplication/param-name param-valueresources.ApplicationResources/param-value /init-param Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ajay brar [EMAIL PROTECTED] 21/10/2003 02:15 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject:Re: element type null hi! tried that but didn't work i dont know about the reserved word, all struts-examples seem to use it :-) the error i posed is what i get in the log file, when i try to deploy it. after deploying(successfully?) i get the error cant find bean message resource any ideas. i know its something with the deployment descriptor, but cant figure out what. the web.xml below looks fine to me thanks cheers ajay From: Martin Gainty [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: element type null Date: Mon, 20 Oct 2003 20:26:52 -0400 my web-app has a id e.g. web-app id=WebApp Also is it wise to call servlet action I thought action was a reserved name? -M - Original Message - From: ajay brar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 20, 2003 8:18 PM Subject: element type null hi! i am getting the following error, when i try to deploy my application Element type null must be followed by either attribute specification or / could anyone help please. my web.xml looks like this ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Action Servlet Configuration -- servlet servlet-nameview/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameview/servlet-name url-pattern*.view/url-pattern /servlet-mapping servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-tiles.tld/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib /web-app thanks cheers Ajay _ ninemsn Premium transforms your e-mail with colours, photos and animated text. Click here http://ninemsn.com.au/premium/landing.asp - 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] _ Chat via SMS. Simply send 'CHAT' to 1889918. 33c per message sent.
Re: Object mapping..
Why object mapping? It is a design pattern that helps with separation of concerns in the database application. Look up Data Access Object in google for more information. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401 611779 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.