Re: nested tags problem
Hi may be the scope request is not enough? why are you instantiating the ActionForm?, it is supposed to have struts doing it for you, any special reason? Lucas Koen Jans <[EMAIL PROTECTED]> escribió: Hi, i am trying to access nested properties on a jsp page like this: On my ActionFormY associated with this jsp, of course i have an instance Foo foo (which can be set and gotten by getFoo(), setFoo(..) ) and which has correct Foo.getBar() and Foo.setBar(..) methods. I prepopulate this form from an action like: ActionFormY actionForm = newActionFormY(); Foo foo = new Foo(); foo.setBar("bar"); actionForm.setFoo(foo); request.setAttribute("actionFormY", foo); So far so good, when i access the page, the correct prepopulated values are displayed. However, when i submit the page, i keep getting this error message: "javax.servlet.ServletException: BeanUtils.populate", "java.lang.IllegalArgumentException: No bean specified". Yes, my names and formbean-names in struts-config.xml are correct :) Any hints? thanks for your time. Koen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: Tiles: Unique body attributes for each part.
Hi, that sis a limitation of html. You con nota have more than one body in the same document. The only sokution u can see is using frames, or replacing de body t ag by a div tag, apllying a styke with the background settings... i wish it helps Lucas oracle411 <[EMAIL PROTECTED]> escribió: Sorry if this got posted twice. Hi I'm new to Struts and Tiles, but I was able to build a basic web application that worked fine. Tiles def was pretty standard with header, body, footer, etc My problem now is that I'm required to use a more advanced header. They gave me a header.jsp page to use and it has it's own body tag with a backgroud attribute assigned to an image. When I just replace my old header.jsp page with the new one, no background image is displayed on my header. Instead it seems to display on my body page instead. I think tiles is combining all my pages so that I can only have one body tag. IE: start a body tag in the header and end the body tag in the footer. Is their a way to assign unique body attributes for each part of my tiles? Thank You --- Broadband interface (RIA) + mail box saftey = Roomity.com *Your* clubs, no sign up to read, ad supported; try broadband internet. ~~1125615702048~~ --- - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Tag that uses tags
Hi guys... I need to do something like this: x = new SomeTag(); x.setContext(this.getContext()); x.doStarTag(); x.DoBody(); ... etc... I´m not sure the way i should do that, has anybody ben dealing wit this before?? Thanks Lucas __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: View side
Hi Rafael... I have been developing in a project with struts hibernate and JSP for front end... my experience was great, I think JSP is the best idea, sometimes I get surprised with the results you can see coupling differents cutsom tags. Velocity is a great technology, but, remember it is not web oriented, it is just a template engine, the disadvantage vs JSP is the community, you can find custom tags for whatever you want, even for Velocity!!! @see http://jakarta.apache.org/velocity/docs/veltag.html but, velocity tools are not so popular... Ajax may be very usefull and I have heard there is a tag lib for ajax so.. @see http://struts.sourceforge.net/ajaxtags/#overview Another choice is XML anf XSLT, it is very powerfull and there is an adapter for sturts @see http://stxx.sourceforge.net/... may be hard to mantain I think JSP is the best choice, first, you should design your specific tag libs for your project, including and customizing struts's tag libs and those you find interesting... good luck.. Lucas Rafael Taboada <[EMAIL PROTECTED]> escribió: Hi folks... I'm going to start a new project using my favorite framework: Struts. In my first project (it isn't finished yet) for VIEW side I used taglibs with a little JSTL (core). All work fine... But with the new topic I heard in this list about AJAX, JSF, VELOCITY... I'm confused how to start my new project... What is the best approach to use for the VIEW side... I mean... Right now, how can I start to program my "JSPs"??? Thanks a lot... -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida" - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Struts and Laszlo
Hia guys... I´would it be a nosense to integrate Laszlo with struts??? I think Laszlo is responsible for controlling the application, so, may be we can hav struts incharge of generating data in XML format so that Laszlo presentation server show it??? I´m thinking of extending struts so that its output be XML for laszlo (or who ever), abstracting it form HTML... am I making a mountain from a stone ... I mean, a servlet would be enough??? Luc __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: Cannot retrieve definition for form bean null disaster
I think the problem is the input attribute Try without this attribute.(you do not need it since validate=false) Think of the input attribute like the path of the action where to go when the validate method return errors. It is not the name of a forward, it is the request URI path like "/Survey.do" or "/pages/Survey.jsp" not "survey". Nevertheless, I do not understand the exception, I think it should be thrown form the html:form tag, when teh attribute "action" is wrong, but, in this case it should never work...as you say that the first time it works, we can think that the jsp is not the problem, so when the submit is performed the app crashes... and if you start form the begning it crashes again... -is it ok? wish it helps, make me know what happens Gareth Meyrick <[EMAIL PROTECTED]> escribió: hi, Lucas Bern wrote: > > Hi, I think the problem should be arround the SurveySubmit action... > Coul you paste that definition form struts-config??? type="com.w3elements.action.SurveyAction" name="surveyForm" input="survey" validate="false" parameter="dispatch"> > What is failing??, the load of the form, or the submit??? tomcat barfs about not finding a form bean for /Survey. note: and that survey is /SurveySubmit input source. it's a simple form display/submission pattern that i've used in a number of web applications (that has always worked). even wierder, it always works the _first_ time the app is depolyed.. after that, it's hosed. hosed in the sense that reoloading the original URI (that worked the first time) barfs. worse yet, the web.xml error-page directive is ignored and the exceptions are displayed on the browser. any ideas or thoughts greatly appreciated. cheers -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: Cannot retrieve definition for form bean null disaster
Hi, I think the problem should be arround the SurveySubmit action... Coul you paste that definition form struts-config??? What is failing??, the load of the form, or the submit??? waiting Lucas Gareth Meyrick <[EMAIL PROTECTED]> escribió: hi, i'm at a loss.. i've verified the usual suspects, checked the usual places, but still can't find an answer. background: /Login -> /LoginSubmit -> /Survey -> /SurveySubmit from struts-config.xml (IMHO unrelelated stuff elided): type="com.w3elements.form.SurveyForm"/> forward="/pages/Survey.jsp"/> the first time everything works. the next time tomcat bails with: - Root Cause - javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on action /Survey and won't work again unless you restart tomcat. well.. it's just a forward hiding a JSP. Survey.jsp contains a form that forwards to /SurveySubmit (which _is_ associated with a form bean.. yup.. also works the first time). software: tomcat 5.0.19 struts 1.2.6 i'm probably doing something incredibly stupid.. any comments or suggestions appreciated. TIA -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re:
Hi, i think it shuold work... I wish it helps Lucas Aleksandar Matijaca <[EMAIL PROTECTED]> escribió: Hi there, I am trying to use like to have it render the href="/myapp/[EMAIL PROTECTED]" > That is, I am not sure how to specify the html:link so that it takes par1 and [EMAIL PROTECTED] If you have a nice example, I would appreciate it. Cheers, Alex. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: Velocity Question
HI! I´m not sre what you mean... but StringUtils is not an abstract class, so you could put in the context of Velocity an instance of StringUtils velContext.put("StringUtils", new StringUtils() ); In your template... $StringUtils.leftPad( $car.id, 6, '0') $StringUtils.leftPad( $car.na000me, 15, ' ') wish it helps... Lucas Vinicius Caldeira Carvalho <[EMAIL PROTECTED]> escribió: Sorry for the OT. But since they're kinda related ... Does velocity provides a way to fill gaps on my variables? Translating... I have a pojo car, which has ID and Name Id must have size 6 with zero left padd, and Name 15 with with white spaces padding. Now let's suppose I have: Car beetle = new Car(1,"beetle"); When printing: $car.id $car.name I get 1 beetle When the desirable would be: 1 beetle This is for reporting purposes Thanks all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
forwarding out
Hi all I neeed to forwars form my action to a page out side my context... something like return new ActionForward("www.google.com"); does anybody know haw to do it?? thanks - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: Render an html button tag
Hello Gary, You can do: SearchYour Feelings SearchYour Feelings your form: public class SomeForm extends ActionForm{ public String darkSideButton = null; public String jedisSideButton = null; ... getters ... setters } So when de user clicks some button, the property asociated with that button will be setted with de value, not te ohter... In your action you can test the button with a not null value.. Note taht you will have to implement reset the method setting both properties to null... Salute Lucas Gary Cauthon <[EMAIL PROTECTED]> escribió: Using HTML, I can create a button using this syntax: remove * * * misc html * * * remove So if a user clicks on one of the buttons then I know which one they clicked because a value of 1 or 2 is sent. Notice how the 1 or 2 do not appear on the face of the button because that would look odd to the user. So how do I do this with the struts html:button tag? As far as I can tell, it just renders an tag of type "input" that does nothing when you click it. Do I need to write it myself via a taglib? -Gary ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: use boolean field as property
Hia Tony, it seems that your bean is not what his ckass name says to be I mean, mybean, is not a JavaBean because it does not implement the getter for isGood attribute in a correct way... it should be public class mybean{ boolean isGood; public boolean isIsGood(){ return isGood; } public void setIsGood(boolean good){ this.isGood = good; } } but, seeing your exception, it should not be your problem... I think your list has a null, so in one of the iterations over mylist, you get a null under obj key... Lucas The thig is that the bean Tony Smith <[EMAIL PROTECTED]> escribió: I have a class public class mybean{ boolean isGood; public boolean getIsGood(){ return isGood; } public void setIsGood(boolean good){ this.isGood = good; } } Suppose I have a list of mybean, can I do this: value="true"> xxxgood My app throws a exception saying: No bean found under attribute key obj I do not know why Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: varying targets
oh, I had to face this problem some weeks ago And no way my friend. The only solution us that the target attribute of the tag be a request time expression, like this: JSP > bla bla bla ACTION ... request.setAttribute("whereIsTheTarget", "_blank ") /*for example*/ ,... Be carefull with validate method, if the input page is the same, so the attribute "whereIsTheTarget", may be lost, because it is in request, luckyly, in the validate method we have the request as parameter, so you can set it again... It wish it helps you.. Lucas Nitish Kumar <[EMAIL PROTECTED]> escribió: I have a application which extensively uses iframes. On some of the submit buttons I have to change the parent frame, while on some actions, I have to just update the current frame. I use target = "_parent" or target = "_self" for this purpose. Till this point every thing works fine. The problem starts when some of the validation for the action where parent frame is to be updated fails. I get errors on the parent frame because I have specified target="_parent" , Is there any way, by which I can change the target through action class or from the server? Thanks and Regards, Nitish Kumar __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: ValidatorActionForm and java script validation....
Hi Lauren, I have benn trying to do that, but the java script code generated by validator framework seems to be tied to the name of the form... var formName = form.getAttributeNode("name"); oRequired = eval('new ' + formName.value + '_required()'); formName.value is the same as in the struts config name attribute of the action mapping... then, it calls the function _required(), but it does not exist, because, in validation.xml, the name of the form matches with the path of the action, so de function generated is _required()... I think, that the error is that part of the java script code is generated in order to what the validation.xml says, but some other parts of the java script code is generated in order to the HTML FORM entity result: inconsistent code... My be ( and I wish) I'm wrong... I need help... Lucas Laurie Harper <[EMAIL PROTECTED]> escribió: Yes, that's the point of ValidatorForm / ValidatorActionForm. The validation rules are looked up according to the action mapping 'name' or 'path' attribute, respectively. It shouldn't make any difference if the actions use the same form. L. Lucas Bern wrote: > Hi guys > > does anybody know if the java script validation of validator framework can be > used with ValidatorActionForm, I need to perform diferent validations in > diferent action that used the same form i would like these validations be > performed in the client... > > Thanks > > Lucas > > > > > - > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > Abrí tu cuenta aquí - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
ValidatorActionForm and java script validation....
Hi guys does anybody know if the java script validation of validator framework can be used with ValidatorActionForm, I need to perform diferent validations in diferent action that used the same form i would like these validations be performed in the client... Thanks Lucas - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: Displaytag and Struts problem
Hi Martin... I´ve been using display tag and struts for a long time, and, I can say that it works beautifull, no limitation in any functionality provided by both frameworks... I tell you this because if you think something can not be done, may be you are wrong... The problem with the checkboxes and the paginated lists is an old problem... When you click on a link to the next or previous page, yo are not submitting the information introduced by the user, so it is impossible to "remember" the checkboxes "checked" form a page to another. The best way to do this, is that the user submits his data before changing the page, or just do not paginate the list... These are not solutions, just ways to avoid the problem... The only solution is that when the user changes the page, the data should be sumbited... It is hard to do, because the pagination won`t work... Another way is that when the user checks a row tha page performs a submit so you keep in session scope the rows cheked, the problem is that when the user is, for example, at the page number 4, the submit must respond with the page number 4, to do that, you will have to build the "page parameters" that display tag uses for paginate, manually it is possible but very ugly from my point of view... that´s all I can say, wish it helps you... and if you find another solution, please tell me!... Lucas Martin Kindler <[EMAIL PROTECTED]> escribió: I have been introduced to the marvels of the displaytag (http://displaytag.sourceforge.net) by someone from this list and it is really worthwhile! Now I am encountering a problem where I need help. I have a rather large list of items to be shown in a table managed by displaytag using the automatic paging provided by it. The table is inside a form and the wanted operation is select some of the items to store them at submit time in some object. To select the items I am using the multibox tag. When I go to another page (using the previous/next links provided by displaytag) I am losing the information about the selected items in the page with the link on (as the ActionForm associated with the action is resetted). Is there an easy way to keep the information until finally the form is submitted? Martin --- cityExperience.net Dipl. Inf. Martin Kindler Kaulbachstr. 20a D-12247 Berlin Deutschland eMail [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: question
Hi Janek I'm new to tiles, but, as far as I'm concerned, the 'flush' attriubte, makes that the result of the page, component, definition or whatever you be inserting, by 'insert tag' will be displayed one by one when setted to true. Suppose you have: Suppose firstPage.jsp, just print 'Powered by Anakin' and seccondPage.jsp print a complicated, very lage html. May be you like to the user can see the 'Powered by Anakin' even when the seccondPage.jsp has not yet loaded. So when firstPage.jsp finished printing. it is flushed to the client so that he can see before the seccondPage.jsp finished loading. If you set flush to false, both pages has to finish writting the html code before all the resut be send to the client... Thats it.. I wish it helps you.. Lucas Setting the flush attriubte to true Janek Ziniewicz <[EMAIL PROTECTED]> escribió: http://struts.apache.org/userGuide/struts-tiles.html#insert I 've read here about 'flush' attribute. What does it exactly do and what is the practical difference between setting it to false or true? -- Pozdrawiam, Janek Ziniewicz gg:902858 irc.freenode.net: #gore, #dub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: ValidatorActionForm and JavaScript
Hi Martin... I can not understand what you mean, could you explain it deeply please?? What i need, is to validate a form with a different definition in validation.xml for each action. Thanks, and wait for your reply... Lucas Martin Gainty <[EMAIL PROTECTED]> escribió: Appears that either the generated ActionForm or DynaActionForm form name (as evideenced by by the validator. Take a look at your struts-config.xml to determine the form name and substitute for unknown 'myFormName_required' in other words has an entry "YourForm" in name='YourForm' type='com.arIsThePlaceToBe.struts.action.YourAction' ... Conoces? Martin- - Original Message - From: "Lucas Bern" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2005 3:04 PM Subject: ValidatorActionForm and JavaScript > Hi all > I have a problem with validator. I'm trying to validate a form depending > on the action, so I'm using the ValidatorActionForm as superclass of my > form... > I made everything as specified in the documentation, but, the java script > code generated by validator produces an error > > "myFormName_required undefined" > > I think that the java script code generated by validator is using the name > attirbute of the form html tag, but it shoud be the action attribute of > the form html tag... > > help?? > > Thanks > Lucas > > > Matthias Wessendorf escribió: > Hi all, > > perhaps this question has been asked allready, > but let me ask it again... > > Is anybody in Stuttgart (Germany) at ApacheCon Europe 18->22 July. > > Thanks, > Matthias > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > Abrí tu cuenta aquí - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.
Re: ValidatorActionForm and JavaScript
Hi Martin... I can not understand what you mean, could you explain it deeply please?? What i need, is to validate a form with a different definition in validation.xml for each action. Thanks, and wait for your reply... Lucas Martin Gainty <[EMAIL PROTECTED]> escribió: Appears that either the generated ActionForm or DynaActionForm form name (as evideenced by by the validator. Take a look at your struts-config.xml to determine the form name and substitute for unknown 'myFormName_required' in other words has an entry "YourForm" in name='YourForm' type='com.arIsThePlaceToBe.struts.action.YourAction' ... Conoces? Martin- - Original Message - From: "Lucas Bern" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2005 3:04 PM Subject: ValidatorActionForm and JavaScript > Hi all > I have a problem with validator. I'm trying to validate a form depending > on the action, so I'm using the ValidatorActionForm as superclass of my > form... > I made everything as specified in the documentation, but, the java script > code generated by validator produces an error > > "myFormName_required undefined" > > I think that the java script code generated by validator is using the name > attirbute of the form html tag, but it shoud be the action attribute of > the form html tag... > > help?? > > Thanks > Lucas > > > Matthias Wessendorf escribió: > Hi all, > > perhaps this question has been asked allready, > but let me ask it again... > > Is anybody in Stuttgart (Germany) at ApacheCon Europe 18->22 July. > > Thanks, > Matthias > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > 1GB gratis, Antivirus y Antispam > Correo Yahoo!, el mejor correo web del mundo > Abrí tu cuenta aquí - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
ValidatorActionForm and JavaScript
Hi all I have a problem with validator. I'm trying to validate a form depending on the action, so I'm using the ValidatorActionForm as superclass of my form... I made everything as specified in the documentation, but, the java script code generated by validator produces an error "myFormName_required undefined" I think that the java script code generated by validator is using the name attirbute of the form html tag, but it shoud be the action attribute of the form html tag... help?? Thanks Lucas Matthias Wessendorf <[EMAIL PROTECTED]> escribió: Hi all, perhaps this question has been asked allready, but let me ask it again... Is anybody in Stuttgart (Germany) at ApacheCon Europe 18->22 July. Thanks, Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Validator question
Hi all... I am trying to validate a form... public XForm extends ValidatorForm{ private YForm[] subForms; getters.. setters-- } public YForm extends ValidatorForm{ private String field; getters.. setters.. } I need to validate my XForm first validating each YForm in subForms... I made this overloading de validate method, iterating over subForms and calling de validate method of each YForm.. Now, i need to make this validation in the client, is there any way to declare in the validation.xml that my XForm sould delegate the validation to the subForms YForm??? thanks Lucas - 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
target attribute from server in html:link tag please Help!
Hi guys! i have a problem I need to configurate de "target" attribute of my form, but i have to do it from mi action Any idea? Thanks Lucas __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: DownLoad Action - exceptions
What I mean is, I have to implement a getStreamInfo method that returns an instance of an implementation of StreamInfo, if during the execution of this method some exception is thrown, what to do??? Should I override the "execute" method surrounding a call to "super.execute" with try catch??? I just want to know the best way to do it... Lucas "Frank W. Zammetti" <[EMAIL PROTECTED]> escribió: You mean as far as what the user sees goes? I wouldn't think you would handle it any differently than you would any other exception that might happen in an Action. I personally use the GlobalExceptionHandler mechanism in Struts... after the handler writes out some log info and such, I forward to a page to display my exception. As long as the user clicks the link that calls your DownloadAction rather than right-click and Save As, this should work. Is that what you meant though, or did I misunderstand the question? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Lucas Bern wrote: > Hello, I'm lookig for advise... > > How should be managed the exceptions by an acton that extends > DownLoadAction > > Thanks > > Lucas > > > - > A tu celular ¿no le falta algo? > Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. > Más información aquí. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
DownLoad Action - exceptions
Hello, I'm lookig for advise... How should be managed the exceptions by an acton that extends DownLoadAction Thanks Lucas - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.
test session expired HELP!
Hi guys! can anybody tellme how to know if a session is espired??? thanks! Lucas Brian McGovern <[EMAIL PROTECTED]> escribió: Thank you Mike. That was EXACTLY it. VERY appreciated. I was messing around all morning with this. -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 2:15 PM To: Struts Users Mailing List Subject: RE: [OT] RSS w/ JSTL On Fri, 2005-05-13 at 12:28, Brian McGovern wrote: > Following up. Ive gotten it rss reading to work using jstl/xml > > but > If you are using 1.1 version tags, make sure your web.xml DTD is for J2EE 2.4. I have seen the case where 1.1 tags in combination with web.xml DTD 2.3 produces odd results. Some of the tag functions work and others do not. Apparently you need a web.xml 2.4 DTD to get full JSTL 1.1 functionality. Mike - 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] - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.
RE: Best practice for redirecting on session timeout?[Scanned]
Hi, I need help too... How should I write the "if" that desires if the session is expired???/ thanks Lucas Adam Lipscombe <[EMAIL PROTECTED]> escribió: Folks Many thanks for all your input on this. I decided to go with the filter approach. My doFilter() method is below. I certainly traps the timeout. The problem now is that the redirect fails no matter if I use "/pages/SessionTimedOut.jsp" or a fully qualified URL (e.g "http://localhost:8080/ExpenSysWT/pages/SessionTimedOut.jsp";) The error message that is logged is: "failed to set redirect, msg = null" Any help much appreciated TIA -Adam -- public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { HttpServletRequest httpServletRequest = (HttpServletRequest) request; HttpServletResponse httpServletResponse = (HttpServletResponse) response; HttpSession httpSession = httpServletRequest.getSession(); boolean sessionTimedOut = false; try { if (false == httpServletRequest.isRequestedSessionIdValid()) { sessionTimedOut = true; } else { String requestedAction = httpServletRequest.getRequestURI(); if (false == requestedAction.endsWith(StrutsConstants.LOGIN_ACTION)) { if (null != httpSession) { if (null == httpSession.getAttribute(Constants.SESSION_CONTEXT)) { sessionTimedOut = true; } } } } if (true == sessionTimedOut) { logger.warning("session timed out"); httpServletResponse.sendRedirect("/pages/SessionTimedOut.jsp"); } chain.doFilter(request, response); } catch (Exception ex) { String msg = "failed to set redirect, msg = " + ex.getMessage(); logger.severe(msg); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.
Re: Problem using session var
Hi! bean write tag just takes a bean under "name" key form the scope where you indicates with "scope" or with findAttrinute searching in every scopes if you omit the "scope" attribute. Once the bean is found, the tag, takes the value of the "property" attribute as String and -first replace the first letter of this string by the same letter capitalized, -seccond concats this result to the String "get" -finally the result ys a String with the form "getXayz" if the ptoprty value of the tag were "xayz" So the tag has two elements, a bean, and the name of a method, a getter... Via reflection api the getter is executed over the bean, and the result is "printed in the screen"... all this work is done with common bean utils component so i recommend you visit the page finally the tag will be trying to execute the method getStrValue, on a Set, and this getter is never found so you get an exception i wish it hepls... Lucas Rafael Taboada <[EMAIL PROTECTED]> escribió: Yes, I used logic:iterate with getstrValor and setstrValor and it worked fine.. But I tried with logic:iterate and getStrValor and setStrValor and it worked too... So, what's the problem???... Is my Has it to be inside a iteration method??? Because lstTipoCambio is a collection Id tried withouth logic:iterate and getStrValor and setStrValor but it didn't worked... -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.
Re: [OT] Looking for a tree control tag library
check it... http://struts.application-servers.com/ it helps to create tabs, trees, several UI components integrated with struts... tell if it works... Lucas "Barnett, Brian W." <[EMAIL PROTECTED]> wrote: If you know of a good, configurable tree control tag library for use in jsp pages, please advise. Thanks, Brian Barnett 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] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
modules
Any resource that explains how to configure modules in struts??? thanks Lucas - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: For Lucas Bern, getOutputStream already called for this response
thanks! i excuse for having sent this mail this way, it was not mi intention... the problem is what you say, i can not change the content type for the same response, i have to implement a servlet... thanks again! Lucas Rick Reumann <[EMAIL PROTECTED]> wrote: Lucas Bern wrote the following on 4/28/2005 12:44 PM: > I am making a custom tag that reder a chart with jfrechart... > > This custom tag take a dataSet ( an object that store data for generate the chart ), but, i have to set the content type to image, and when i use the tag, and the jsp page goes on rendering the rest of the page i get a > > java.lang.IllegalStateException: getOutputStream() has already been called for this response > > i am not closeing the response, and i do not know what to do... > > any idea??? Lucas you posted this question by replying to the thread: Re: Does struts really have to construct a new form bean every time? Please do not hijack a thread when replying to an e-mail on a mailing list (this includes also simply changing the subject and replying). Your question has nothing to do with the original thread. When you have a new question please post a brand new message. In relation to your question, I'm not exactly sure where the problem is. I'm guessing you are probably displaying html from the JSP and then calling your tag, which by that point I'm pretty sure you can't change the content type of the page. I'm not sure how jfreechart works but can't it just return an image and you could simply use it as an image on the page vs trying to change the content type of the page (assuming that what's your trying to do?) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: Does struts really have to construct a new form bean every time?
I am makeing a custom tag that reder a chart with jfrechart... This custom tag take a dataSet ( an object that store data for generate the chart ), but, i have to set the content type to image, and when i use the tag, and the jsp page goes on rendering the rest of the page i get a java.lang.IllegalStateException: getOutputStream() has already been called for this response i am not closeing the response, and i do not know what to do... any idea??? please thanmks Lucas - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
gui html
has anybody seen http://struts.application-servers.com waiting for coments... Lucas - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
RE: graphics
oh oh oh!... AJAX, i have heard about that, but some requirements limit me to use it, i HAVE to generate the chart on the server side ( would jave been wonderfull!!!, but, clients ) "Yu, Ed" <[EMAIL PROTECTED]> wrote: AJAX? -Original Message----- From: Lucas Bern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 8:39 AM To: Struts Users Mailing List; Michael Jouravlev Subject: Re: graphics Yes, that is a good advise, thanks Michael!... ...but, what i have to do is a litle more complex. Does anyone know how to acces the page context form a dataProducer in the cewolf tag library???... I really need it, i have objects in session, objects needesd to create de chart, but de interface DatasetProducer, doesn't let me take anything form the pagecontext, just pass a Map as parameter, where the valu just can be a String, i need my objects!!! and they are in session... anybody helps Lucas?? Thanks ! Lucas Michael Jouravlev wrote: Remember, that you can do a lot with client-side javascript. Send raw data to the browser, and render chart there. Seems more logical, because it takes the load off the server and off the network (the latter may be not true for huge data set...). Check this out, for example: http://www.javascriptkit.com/script/script2/graphit.shtml On 4/25/05, Lucas Bern wrote: > Hi guys! > anything better than jFreeChart?... or at least "free" documented? > Thanks! > Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: graphics
Yes, that is a good advise, thanks Michael!... ...but, what i have to do is a litle more complex. Does anyone know how to acces the page context form a dataProducer in the cewolf tag library???... I really need it, i have objects in session, objects needesd to create de chart, but de interface DatasetProducer, doesn't let me take anything form the pagecontext, just pass a Map as parameter, where the valu just can be a String, i need my objects!!! and they are in session... anybody helps Lucas?? Thanks ! Lucas Michael Jouravlev <[EMAIL PROTECTED]> wrote: Remember, that you can do a lot with client-side javascript. Send raw data to the browser, and render chart there. Seems more logical, because it takes the load off the server and off the network (the latter may be not true for huge data set...). Check this out, for example: http://www.javascriptkit.com/script/script2/graphit.shtml On 4/25/05, Lucas Bern wrote: > Hi guys! > anything better than jFreeChart?... or at least "free" documented? > Thanks! > Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: graphics
before someone anwser me! ; - ) i found something that seems to be great! and it is free documented!!! http://cewolf.sourceforge.net/new/index.html joy it! Lucas Lucas Bern <[EMAIL PROTECTED]> wrote: Hi guys! anything better than jFreeChart?... or at least "free" documented? Thanks! Lucas Greg Pelly wrote: Is it possible to use or to look up a key that is not known until runtime (ie, stored in the request)? I have a results screen that will display a message that varies depending on the query performed. I would like this message to be retrieved from the bundle in the struts-config.xml. For example, my Action will have logic: if (isFriend) { request.setAttribute("friendText", "key.friend"); } else if (isEnemy) { request.setAttribute("friendText", "key.enemy"); } else { request.setAttribute("friendText", "key.unknown"); } I would like my JSP to get the value of the Request Attribute "friendText", then lookup that key in the MessageResources file: key.friend = Hello friend. I like you. key.enemy = Hello enemy. I hate you. key.unknown = Hello. I checked the API for bean:write and c:out and looking to see if struts-el provided this functionality. I didn't see any indication that it does, though I have not used struts-el in the past. Any ideas? Thanks! Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
graphics
Hi guys! anything better than jFreeChart?... or at least "free" documented? Thanks! Lucas Greg Pelly <[EMAIL PROTECTED]> wrote: Is it possible to use or to look up a key that is not known until runtime (ie, stored in the request)? I have a results screen that will display a message that varies depending on the query performed. I would like this message to be retrieved from the bundle in the struts-config.xml. For example, my Action will have logic: if (isFriend) { request.setAttribute("friendText", "key.friend"); } else if (isEnemy) { request.setAttribute("friendText", "key.enemy"); } else { request.setAttribute("friendText", "key.unknown"); } I would like my JSP to get the value of the Request Attribute "friendText", then lookup that key in the MessageResources file: key.friend = Hello friend. I like you. key.enemy = Hello enemy. I hate you. key.unknown = Hello. I checked the API for bean:write and c:out and looking to see if struts-el provided this functionality. I didn't see any indication that it does, though I have not used struts-el in the past. Any ideas? Thanks! Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: 500 No input attribute for mapping path /Logon
Hi! I think the input attribute must be setted with the value of the page where the errors of validation will be displayed... I mean. I wish it helps you Lucas "T. B." <[EMAIL PROTECTED]> wrote: Hi all, I am trying to deploy a simple struts on resin 2.1.12 and got this error when accessing my port http:/myApp/Logon.do The error is: 500 No input attribute for mapping path /Logon The mappings in struts-config.xml are as followed: . --> name="welcome" path="/Welcome.do"/> name="logon" path="/Logon.do"/> Mapping Definitions --> path="/Welcome" type="org.apache.struts.actions.ForwardAction" parameter="/pages/Welcome.jsp"/> path="/Logon" type="logon.LogonAction" name="logonForm" scope="request" validate="true" parameter="/pages/Login.jsp"/> Thanks, Thong Bui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: logic:iterate problem...
Great! it works fine... thanks Jeff and Erik. Lucas Jeff Beal <[EMAIL PROTECTED]> wrote: >From http://struts.apache.org/userGuide/struts-logic.html#iterate: collection: A runtime expression that evaluates to a collection probably evaluates to a String. What you need is name='' On 4/21/05, Lucas Bern wrote: > > My action just get a List form a Srevice layer and store it in session scope > under Globales.AreaPersonal.MODULOS_KEY. > > " - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: logic:iterate problem...
I would like to get a null pointer exception or a "can not set bean to null" when my list is null... I use to solve this kind of problem with html:options and html:optionsCollection but what i have to do in this page is very complex for this tags... thanks for your answer Erik Lucas Erik Weber <[EMAIL PROTECTED]> wrote: I think your List reference is probably null. Also, have you looked at html:options and html:optionsCollection? Erik Lucas Bern wrote: >Hi all... > >I get this exception trying to render options with logic iterate tag... > >javax.servlet.jsp.JspException: Cannot create iterator for this collection > >My action just get a List form a Srevice layer and store it in session scope >under Globales.AreaPersonal.MODULOS_KEY. > >"> > >"> > > > > > > > >i wish someone help me... > >thanks! > >Lucas > > > >__ >Correo Yahoo! >Espacio para todos tus mensajes, antivirus y antispam ¡gratis! >¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
logic:iterate problem...
Hi all... I get this exception trying to render options with logic iterate tag... javax.servlet.jsp.JspException: Cannot create iterator for this collection My action just get a List form a Srevice layer and store it in session scope under Globales.AreaPersonal.MODULOS_KEY. <%=((Contenible)modulo).getNombre()+ " - " + ((Contenible)modulo).getTitulo()%> i wish someone help me... thanks! Lucas __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: Concatinating 2 strings for a bean:message???
this way?: I wish it helps you Lucas [EMAIL PROTECTED] wrote: I am trying to make the following work without success: "> for a property of... label.owner.section.info.1 = Owner One Details -- Thanks... Mick Knutson Systems Developer Business Direct Services, Wells Fargo Bank 333 Market Street, SF, CA 94103 (415) 371-2553 [EMAIL PROTECTED] MAC A0103-223 "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." -- -Original Message- From: BLiNC Magazine [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 12:11 PM To: [EMAIL PROTECTED] Subject: error ">ownerNumber %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
Re: Multi Step Forms
Hello, I'm Lucas, I'm new to the list... and I have a problem: An ActionForm that has an array of others ActionForms where each one has another array of ActionForms. So i nedd to present the first form in a JSP page... One of the fields of the last ActionForm, the one in the lowest level, is editable, it's a checkbox. I'm doing this: and i doesn't work either... Thanks! Lucas - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí