Re: session ids
do u have an example Rakesh Ayilliath [EMAIL PROTECTED] - Original Message - From: Jon Crater [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 10:27 PM Subject: Re: session ids rakesh-- you can solve this problem by having the class responsible for managing the hashtable of session ids implement HttpSessionBindingListener. fill out the valueBound(HttpSessionBindingEvent event) and valueUnbound(HttpSessionBindingEvent event) methods so that the appropriate session id is added/removed when the hashtable manager is unbound from the session. jon Original Message Follows From: Rakesh [EMAIL PROTECTED] Reply-To: Rakesh [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: session ids Date: Thu, 16 Aug 2001 22:12:50 +0530 Hi Greg, I know that this sessioncontext api is currently deprecated. I require this for a very specific reason. When I log-in a user, I save his loginID and the sessionId in a static hash table. and when he is logged out, I remove it. Each time someone tries to log-in, I check in to the hash to see if he is already logged in and display appropriate error messages to him. When he logs out by clicking on a logout.do, I remove his loginID from the hash and invalidate his session. Now what happens; if he just closes the browser window, or if his session is timed out ? How do I remove his name from the Hash ? Kindly help. Rakesh Ayilliath [EMAIL PROTECTED] - Original Message - From: Greg Maletic To: [EMAIL PROTECTED] ; Rakesh Sent: Thursday, August 16, 2001 9:54 PM Subject: RE: session ids I don't believe you can get all valid sessionIDs from the server. I think the API for doing so was deprecated a while back for security reasons. The way I've solved this in the past was to have each session register itself into a application-scoped hashmap, and maintain that map myself. --Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]O n Behalf Of Rakesh Sent: Thursday, August 16, 2001 12:28 AM To: [EMAIL PROTECTED] Subject: session ids Hi , Is there anyway I can get all valid session ids from the server ? Rakesh Ayilliath (Software Engineer) Synergy IT Innovations Pvt Ltd, #196, 1st Floor, 9th Cross, HMT Layout, RT Nagar Bangalore 560032 [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
AW: logic:iterate the second
Ok, already solved -Ursprungliche Nachricht- Von: Softwareentwicklung Hauschel [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 18. August 2001 22:29 An: [EMAIL PROTECTED] Betreff: logic:iterate the second Hi, I can show my select/options with: html:select property=suchKriterium size=1 html:options property=kundenliste labelProperty=kundenliste/ /html:select But how can i iterate over the same list ?? logic:iterate id=item property=kundenliste indexId=index bean:write name=item/ ### bean:write name=index/ br /logic:iterate kundenliste is the property ArrayList of my FormBean. But what should i use for item and indexId if i youse a list from page Context: % { java.util.ArrayList list = new java.util.ArrayList(); list.add(First); list.add(Second); list.add(Third); list.add(Fourth); list.add(Fifth); pageContext.setAttribute(list, list, PageContext.PAGE_SCOPE); } % logic:iterate id=item name=list indexId=index bean:write name=index/ ### bean:write name=item/br /logic:iterate then it works ?! Please Help... Fredy -Ursprungliche Nachricht- Von: Debasish Ghosh [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 18. August 2001 18:10 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: RE: logic:iterate Hi - It has been solved. Actually the TLD was not of proper version. - Debasish --- Debasish Ghosh [EMAIL PROTECTED] wrote: Here it is .. jsp:useBean id=idx scope=page class=com.anshin.MonthForm/ bean:define id=idx_int name=idx property=index/ html:form action=/month table tr logic:iterate id=element name=monthNames indexId=idx_int td align=right bean:write name=element/ liembean:write name=element//emnbsp;[bean:write name=idx_int/]/li html:multibox property=monthList Jan /html:multibox /td /logic:iterate /tr --- Wouter de Vaal [EMAIL PROTECTED] wrote: Could you post the jsp code for this part? Wouter -Oorspronkelijk bericht- Van: Debasish Ghosh [mailto:[EMAIL PROTECTED]] Verzonden: Saturday, August 18, 2001 10:22 AM Aan: [EMAIL PROTECTED] Onderwerp: logic:iterate Hi All - I am using the logic:iterate tag. I have used the attribute indexId, when I am getting the error Attribute indexId invalid according to the specified TLD. I am using Struts 1.0 with Tomcat 3.2.2. Please help !! Regards. - Debasish __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas?
Re: Suggestion For Action Class
Another approach, similar to the others suggested, is to define the eqivalent of a postProcess() action. The base Action class does its perform business, and if all is well, then returns the result of the new method. This also allows you to change the signature of your new method, if there is ever any reason for that. One example would be to pass a login object from the session if that was used in all or most of the Actions. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Application specific behaviour // if everything is kosher call subclass return ( performAction(mapping,form,request,response, myParameter ) ) } where performAction is an abstract method of the base class. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Hicks, James wrote: I would like to suggest adding a method called prePerform to match each perform method in the org.apache.struts.action.Action class and have the ActionServlet call it just before it calls perform. These prePerform method would also return an ActionForward instance. If the ActionServlet received an ActionForward from the prePerform, it would use it to forward the request instead of calling the perform method. This would ease development in a lot of projects. For example, say I want to validate my visitor on each request. If I had a prePerform method I could write a subclass of Action for my project called MyProjectBaseAction and include the prePerform method. Inside of prePerform, I could do the validation. This would allow me to take the validation code out of each one of my specific action classes and never have to worry about the validation logic changing. If it did change, I have one place to change it instead of 50 or 100. James Hicks
Re: What is Titles? and what gonna happens to template tag in thefurture?
The Tiles tablib can be used as a drop-in replace for the template taglib. You can even continue to use the template: prefix if you want. All the changes can be made in the web.xml, and existing JSPs would not need to be changed. At some point, the template taglib would be moved to the contrib area and not bundled with the distribution. Whether packages like Tiles and ValidatorForm will be part of the core Struts download, or available as seperate downloads, hasn't been decided. We are trying to balance keeping the framework light against making more functionality available. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Trieu, Danny wrote: Robert, Thanks you for your reply. Do you know if there is any change or enhancement to the template tag in the future release? danny -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: RE: What is Titles? and what gonna happens to template tag in the furture? http://www.lifl.fr/~dumoulin/tiles/ HTH, robert -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:45 PM To: '[EMAIL PROTECTED]' Subject: What is Titles? and what gonna happens to template tag in the furture? any link where I can read more about Titles? Thanks, danny
struts-stub Form and validation
I am using the struts-stub application downloaded from husted.com. The validation framework works fine on Tomcat, but when I try the same application on iPlanet, the validation framework doesn't work. I have a different application that I am using the validation framework for and it works great (no javascript). Is there something about the Form.java in struts-stub that might cause validation to not get executed on iPlanet? Please keep in mind the code is the same on Tomcat and it works there! Matt __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas?
Re: TextArea Wrapping using Form Tags
Yes. I moved it from another location, and something got lost in the translation. Thanks for pointing this out. Erik Hatcher wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas?
Re: Suggestion For Action Class
hi, If you perform some kind of validation of your clients, I think it's best to use filters. I don't know much about filters (yet), but take a look!! It looks geat.. http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi.html http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Dave Van Even - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 4:11 PM Subject: Re: Suggestion For Action Class Another approach, similar to the others suggested, is to define the eqivalent of a postProcess() action. The base Action class does its perform business, and if all is well, then returns the result of the new method. This also allows you to change the signature of your new method, if there is ever any reason for that. One example would be to pass a login object from the session if that was used in all or most of the Actions. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Application specific behaviour // if everything is kosher call subclass return ( performAction(mapping,form,request,response, myParameter ) ) } where performAction is an abstract method of the base class. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Hicks, James wrote: I would like to suggest adding a method called prePerform to match each perform method in the org.apache.struts.action.Action class and have the ActionServlet call it just before it calls perform. These prePerform method would also return an ActionForward instance. If the ActionServlet received an ActionForward from the prePerform, it would use it to forward the request instead of calling the perform method. This would ease development in a lot of projects. For example, say I want to validate my visitor on each request. If I had a prePerform method I could write a subclass of Action for my project called MyProjectBaseAction and include the prePerform method. Inside of prePerform, I could do the validation. This would allow me to take the validation code out of each one of my specific action classes and never have to worry about the validation logic changing. If it did change, I have one place to change it instead of 50 or 100. James Hicks
Re: Suggestion For Action Class
Filters are cool, but to use them, you need a container which supports Servlets 2.3 (e.g. Tomcat 4 or Resin 2). Also, the spec isn't final yet, so although I wouldn't expect much change between Proposed Final Draft 2 and Final, it's still possible. -- Martin Cooper - Original Message - From: Dave Van Even [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 1:16 PM Subject: Re: Suggestion For Action Class hi, If you perform some kind of validation of your clients, I think it's best to use filters. I don't know much about filters (yet), but take a look!! It looks geat.. http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi.html http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Dave Van Even - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 4:11 PM Subject: Re: Suggestion For Action Class Another approach, similar to the others suggested, is to define the eqivalent of a postProcess() action. The base Action class does its perform business, and if all is well, then returns the result of the new method. This also allows you to change the signature of your new method, if there is ever any reason for that. One example would be to pass a login object from the session if that was used in all or most of the Actions. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Application specific behaviour // if everything is kosher call subclass return ( performAction(mapping,form,request,response, myParameter ) ) } where performAction is an abstract method of the base class. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Hicks, James wrote: I would like to suggest adding a method called prePerform to match each perform method in the org.apache.struts.action.Action class and have the ActionServlet call it just before it calls perform. These prePerform method would also return an ActionForward instance. If the ActionServlet received an ActionForward from the prePerform, it would use it to forward the request instead of calling the perform method. This would ease development in a lot of projects. For example, say I want to validate my visitor on each request. If I had a prePerform method I could write a subclass of Action for my project called MyProjectBaseAction and include the prePerform method. Inside of prePerform, I could do the validation. This would allow me to take the validation code out of each one of my specific action classes and never have to worry about the validation logic changing. If it did change, I have one place to change it instead of 50 or 100. James Hicks
Re: TextArea Wrapping using Form Tags
The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
No, the wrap attribute isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful. - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:22 AM Subject: Re: TextArea Wrapping using Form Tags The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
Am I missing something? I realize that Netscape and IE support the wrap tag but when i add wrap='soft' to my form:textarea tag, I get an error saying the attribute wrap is invalid. --- Dave Van Even [EMAIL PROTECTED] wrote: No, the wrap attribute isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful. - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:22 AM Subject: Re: TextArea Wrapping using Form Tags The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
Am I missing something? Yes. :-) What you're missing is that the suggestion is to use a regular HTML textarea tag instead of the Struts tag, and then use bean:write to provide the initial value. -- Martin Cooper - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 3:43 PM Subject: Re: TextArea Wrapping using Form Tags Am I missing something? I realize that Netscape and IE support the wrap tag but when i add wrap='soft' to my form:textarea tag, I get an error saying the attribute wrap is invalid. --- Dave Van Even [EMAIL PROTECTED] wrote: No, the wrap attribute isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful. - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:22 AM Subject: Re: TextArea Wrapping using Form Tags The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: TextArea Wrapping using Form Tags
hi Are you shure you have read the whole thread here?? from bottom to top? The form:textarea tag doesn't support the wrap attribute because it's in the HTML 4.x specification. Therefore you can't use it with form:textarea... but you can do it manually by using it like the example below.. textarea name=article rows=15 cols=60 wrap=soft bean:write name=formName property=article/ /textarea reread this mail plz Dave Van Even - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:43 AM Subject: Re: TextArea Wrapping using Form Tags Am I missing something? I realize that Netscape and IE support the wrap tag but when i add wrap='soft' to my form:textarea tag, I get an error saying the attribute wrap is invalid. --- Dave Van Even [EMAIL PROTECTED] wrote: No, the wrap attribute isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful. - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:22 AM Subject: Re: TextArea Wrapping using Form Tags The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
method reflection in action classes
I use a BaseAction class that does all my normal struts stuff like setting the request, doing authentication checking, managing the object cache, etc...and have been contemplating implementing this architecture: In my form, I already use an action variable that tells me what i'm doing in my action class...probably the way most folks do it...but I'd like to have an action variable that might be like: addSomething,addAnother,editSomethingElse...the action class would then reflect those methods and call them in order...that way my real action classes only subclass my base class and implement any of the methods i choose to call from the action variable...i use object-wide variables for stuff like the request, mapping, etc... my question, though, is if this would violate any major design concepts, or introduce an unweildy performance bottleneck in my action classes...i already use reflection in my form validation code, but that's just getReadMethod stuff, so no big deal...i was wondering if anyone has experience with all-around performance with reflection in action classes?? i know someone posted a while back that they had done some testing and found an insignificant difference between static method calls and reflected stuff, but i didn't know what *types* of reflection that entailed...i would basically have to do a lot of getMethod()s, which i've heard can be quite expensive... any thoughts/help would be appreciated! :-) Jon Brisbin www.jbrisbin.net
unsubscribe me!
Thanks
RE: unsubscribe me!
Title: RE: unsubscribe me! Unsubscribe me Please -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 5:09 PM To: [EMAIL PROTECTED] Subject: unsubscribe me! Thanks
Re: TextArea Wrapping using Form Tags
Ahh... I was mainly paying attention to the wrap=soft part and didn't notice it was using regular HTML tags =). Thanks --- [EMAIL PROTECTED] wrote: Am I missing something? Yes. :-) What you're missing is that the suggestion is to use a regular HTML textarea tag instead of the Struts tag, and then use bean:write to provide the initial value. -- Martin Cooper - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 3:43 PM Subject: Re: TextArea Wrapping using Form Tags Am I missing something? I realize that Netscape and IE support the wrap tag but when i add wrap='soft' to my form:textarea tag, I get an error saying the attribute wrap is invalid. --- Dave Van Even [EMAIL PROTECTED] wrote: No, the wrap attribute isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful. - Original Message - From: Calvin Lau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 12:22 AM Subject: Re: TextArea Wrapping using Form Tags The wrap attribute is invalid in the HTML TLD I'm using. Is there a newer version? Calvin --- Erik Hatcher [EMAIL PROTECTED] wrote: Ted, Your example says this: To seed the textarea from the form bean, you could code something like: textarea name=article rows=15 cols=60 wrap=soft/textarea But there is something additional to set the initial value from the form bean, correct? textarea name=article rows=15 cols=60 wrap=softbean:write name=formName property=article//textarea Erik - Original Message - From: Ted Husted [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 7:02 AM Subject: Re: TextArea Wrapping using Form Tags See Wrapping a text area at http://husted.com/about/struts/FAQ/view-html.htm Calvin Lau wrote: Is there any way to set the wrapping in a text area when using the struts form tags? In HTML you can set virtual, physical, or none. Netscape doesn't do any wrapping by default so large portions of text are lost when I grab information to display in a textarea to be modified. Any ideas? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: struts-stub Form and validation
I figured out what was wrong - the validation.xml file that ships with struts-stub.zip is an invalid format. I refactored it to fit with the one that ship's with the validator sample app and now it works! --- Matt Raible [EMAIL PROTECTED] wrote: I am using the struts-stub application downloaded from husted.com. The validation framework works fine on Tomcat, but when I try the same application on iPlanet, the validation framework doesn't work. I have a different application that I am using the validation framework for and it works great (no javascript). Is there something about the Form.java in struts-stub that might cause validation to not get executed on iPlanet? Please keep in mind the code is the same on Tomcat and it works there! Matt __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
classpath for struts-related jars
I am curious if anyone knows why I have to add all the following jars to my classpath in order to get struts validation to work: $SDKS_HOME\jakarta-struts-1.0\lib\struts.jar $SDKS_HOME\jakarta-struts-1.0\lib\struts-validator.jar $SDKS_HOME\jakarta-struts-1.0\lib\jakarta-regexp-1.2.jar $SDKS_HOME\xerces-1_4_0\xerces.jar But I don't have to add tiles.jar?? I am placing all of these jars (except for xerces.jar) in my WEB-INF/lib directory. I have to add them to my classpath because my appserver is iPlanet, but I'm curious why I don't have to add tiles.jar - and the tiles taglib works great?? Any suggestions are welcome. Matt __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Starter problem in Struts Development
Hi, I am new to Struts development. When I try to run an application I have written, I get an exception : javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection I have struts.jar copied under the WEB-INF/lib and the struts taglibs in the root of my application. Can someone help me out why I get the error? Krishna. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: Validator::validate() reflection - null
I use Struts 1.0 and Tomcat 3.2.3 I looked at your validator example again and began to see that numeric fields in form are defined in String. I deduce the problem is in my design. My Meter bean has meter1 of type 'int' The getMeter1 returns 'int' and setMeter1 has 'int' in signature. It works without valdiation (as in struts-exercise-taglib) so I didnt think it could cause problem with Validator. Am I right? SooAun David Winterfeldt wrote: What version of struts are you using? Struts 1.0? Also what servlet container and version are you using? David --- Ho Soo Aun [EMAIL PROTECTED] wrote: Had I missed any step? Been trying to implement David's Struts Validator for quite a while. Every time I access a editmeter.jsp through an action which populate the fields. Tomcat 3.2.2 console show Validator::validate() reflection - null twice Enter char in int field (to be validate) is saved as '0'. No validation was done. There was no other error message on browser or log file. # 1 Got Struts_Validator-20010702.jar in WEB-INF/lib # 2 Got jakarta-regexp-1.2.jar in WEB-INF/lib # 3 Set this in web.xml servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet # 4 In struts-config.xml action path=/editmetererror type=sg.com.trek.mims5.meter.MeterAction name=meterForm input=editmeter.jsp scope=request validate=true forward name=success path=/editmeter.jsp/ /action # 5 In addition to global setting in validation.xml #add a form and one to test formset form name=meterForm field property=meter.meter1 depends=required,integer arg0 key=meterForm.integer.displayname/ /field /form /formset # 6 In editmeter.jsp html:form action=/editmetererror name=meterForm type=sg.com.trek.mims5.meter.MeterForm focus=copierid onsubmit=return validateMeterForm(this); ... td align=right nowrapbean:message key=meter.label.meter1/:/td td align=leftnbsp;html:text name=meterForm property=meter.meter1 size=7 maxlength=7//td tdnbsp;/td /tr ... td align=right colspan=2nbsp;html:submit property=action value=Update onclick=bCancel=false;ENTER/html:submitnbsp;html:cancel onclick=bCancel=true;javascript:window.close() value=CancelCANCEL/html:cancel/td # 7 In Meterform.java import com.wintecinc.struts.action.ValidatorForm; import sg.com.trek.mims5.business.Meter; public final class MeterForm extends ValidatorForm implements Serializable { private String action = Edit; /** * Member variable declaration */ private Meter meter = null; public Meter getMeter() { if ( meter == null) { meter = new Meter(); } return meter; } .. # 8 Getter and setter for field meter1 are in Meter bean Any one help Soo Aun __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
unsubsribe
Vikramjit singh, eAngel Team, Global Tele-systems Ltd. Ph. 7612929-3140
OffTopic : Automatic flushout in Orion?
Hi Some times the content in the Orion server is not flushing out on to the server screen automatically. So we are forced to press enter button. Especially it is happening when an error is thrown and is caught in the catch block. Because of this the server is not responding immediately and is requiring one person for doing enters. please suggest me a way to prevent this situation. Thanks Eda __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
unsubsribe
Unsubscribe me
Reading Japanese from Resource.properties file
Hi all ! I have read about the trouble when reading Japanese from Resource.properties file in the mail archive. Actually I had the same trouble myself too. Finally I got through this with below solution. 1) Save the Resource.propeties file by "JIS" encoding. 2) Set the charset of jsp to "ISO2022JP", like below. %@ page contentType="text/html; charset=ISO2022JP" % Viewing from IE results fine. IE's encode is set to "default".
Re: bean:message tag
Matt, I'm not sure whether I understood the problem correctly, but I did the same thing for a while, and it worked for me without flush or other tricks. I simply included the message via bean:message key=x/, not matter whether there was HTML in it or not. Note, however, that it can be problematic to mix layout and content information. This was the big disadvantage of HTML, and people tried to address it with XML and stylesheets, making the two independent of each other. I'd recommend putting layout information, such as b, p, br etc. in the .jsp, whereas the .properties file should only contain content. This way your translators don't need to know HTML. Of course, we might open up another can of worms here if we don't have the same page layout for all languages. Just my $0.02, tom Matt Raible wrote: I am using bean:message key=key.name / and I want to have HTML in my key.name string, such as: key.name=bHello World/b So ideally, I could make my tag resemble bean:message key=key.name flush=true /, but there is no filter attribute on this tag? How can I do this, do I have to use bean:write, and if so, how do I get the messages bean? Can it be done using: bean:write name=messages property=key.name flush=true / Thanks, Matt __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- thomas quas| Art lies in the consciousness of doing the thing, [EMAIL PROTECTED] | in the attention of the happening[...] |-- Allen Ginsberg --
AW: MS SQL JDBC Drivers?
I like the JDBC-Drivers from http://www.inetsoftware.de/ Thomas -Ursprüngliche Nachricht- Von: Mikkel Bruun [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 17. August 2001 12:05 An: '[EMAIL PROTECTED]' Betreff: OT: MS SQL JDBC Drivers? Hi Guys, A little of topic, but anyways... On a current project we will be running an webapp on Solaris, using Iplanet... Our application needs to connect to a MS Sql 7.0 running on a win 2k server... can you recommend any jdbc drivers??? thanks a lot... :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20