New Windows, Struts, IE 5 and sessions dying

2001-06-01 Thread Graeme Miller
Summary: Any known bugs and workarounds with Multiple Windows in IE5, Servlet Sessions and Struts 1.0b1? Detailed Version: We are using Struts 1.0b1 and Tomcat J2EE form-based login security on our website. The user requests a protected page and is automatically redirected by Tomcat to the

Re: New Windows, Struts, IE 5 and sessions dying

2001-06-01 Thread Jim Richards
At 07:04 PM 1/06/01 +1200, you wrote: Summary: Any known bugs and workarounds with Multiple Windows in IE5, Servlet Sessions and Struts 1.0b1? A few things to note. Have a look to see if the redirect is forcing :80 (port 80) onto the end of the URL, this can cause the session get lost in the

RE: New installation - NoSuchMethodError

2001-06-01 Thread someil
I have the same config without Apache server and any problem! How did U have install struts_example application on tomcat ? Have U the same problem with other struts application ? - cyril - -Message d'origine- De : Marcelo Romaniuc [mailto:[EMAIL PROTECTED]] Envoye : vendredi 1 juin

RE: Potential Security Flaw in Struts MVC

2001-06-01 Thread Jon.Ridgway
Hi Kumera, If you want to check at the form level, have you considered using a custom tag, such as the app:checkLogon tag used in the example app provided with struts. It's perhaps not the best way as others have pointed out on this list, but it seems to fit your requirements. Jon.

Tag Iterate !!!

2001-06-01 Thread Geoffrey Van Nuffelen
Hi all, I try to use the tag iterate (logic) but I can't. I haven't success. I am working on Windows NT with tomcat 3.2 and struts 1.0b-2. I try to pass an array of object ( a personnal client class). but when a try to access a property I have this error : javax.servlet.ServletException:

Any body trying struts wit weblogic?

2001-06-01 Thread ameer
Hi i need help in using struts in weblogic .. pls anybody help Ameer Hussain SSs/w engineerYashaa Infotech Pvt.Ltd.http://www.yashaa.com

RE: Any body trying struts wit weblogic?

2001-06-01 Thread Manoj Deb
What kind of help you want? Regards, Manoj -Original Message-From: ameer [mailto:[EMAIL PROTECTED]]Sent: Friday, June 01, 2001 3:37 PMTo: StrutsSubject: Any body trying struts wit weblogic? Hi i need help in using struts in weblogic .. pls anybody help

RE: Tag Iterate !!!

2001-06-01 Thread A.Sharma
hi probably change the case of 'c' in client. the class has Capiltal 'c' while in JSP you are accessing small 'c'. :) ash -Original Message- From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 3:24 PM To: Struts-User (E-Mail) Subject: Tag Iterate !!! Hi

RE: Any body trying struts wit weblogic?

2001-06-01 Thread Firmin David
There have been many discussions, some quite recently, about setting up Struts under various versions of weblogic. Take a look through the mailing list archive to see if you can find what you're after there. [EMAIL PROTECTED]/ http://www.mail-archive.com/struts-user@jakarta.apache.org/ HTH

Re: Using Javascript to cancel submit?

2001-06-01 Thread Ted Husted
If you want the JavaScript to cancel the submit, you need to return false somewhere. Struts can also watch for these in the Action, either using the isCancel() method, or by looking at the label of the button pressed. Struts doesn't write the HTML for tables, and could not affect the sizes of

Error when deploying to SilverStream application server

2001-06-01 Thread Jan Fredrik Øveraasen
Hi When I deploy a war file to my app. server I get the following error message: [exec] Catastrophic error: /jsp/accomodation_application_step2.jsp: An unexpected fatal exception 'String index out of range: 0' occured. In the jsp page I use the struts-html.tld tag lib and these are

Re: Any body trying struts wit weblogic?

2001-06-01 Thread Jonathan Asbell
Ive got it working under WL 6. If you want to know anything just email me personally at [EMAIL PROTECTED] - Original Message - From: Firmin David [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 01, 2001 6:26 AM Subject: RE: Any body trying struts wit weblogic? There have

RE: Error when deploying to SilverStream application server

2001-06-01 Thread Afzal, Tanver
Hi Jan, when u r using these tag lib under silverstream donot comment the struts tags using html style comments like !-- html:hidden property=submitter value=/ -- this throw the index of range exception. if it is not help full send me the whole code. Thanks Tanver

Re: Any body trying struts wit weblogic?

2001-06-01 Thread Chuck Amadi
Hi, well not with weblogic?, but anyway i would like to add im utilising Netbeans v3.2 ( Jarkarta-tomcat-3.2.1 container) and i have experienced problems with the internal web browser as with both struts apps and ora apps i continually recieve the following error. ora/ch5/userinfo1.jsp [2:0]

Re: Redirecting to secure server (ie from http:// to https://)

2001-06-01 Thread Ted Husted
This is still a very messy area. I ended hardcoding some strings in a production application, but there solutions that would mitigate this, so you only have to hardcode the scheme in your struts-config file. See To SSL and Back Again

RE: Any Hashmap examples used in jsp page?

2001-06-01 Thread Jon.Ridgway
Hi Dudley, See code sample below. The type in the iterate tag must be as shown, you will then need to use a bean define to put your 'value' into the page context and cast it to whatever type you have placed in your HashMap value. Hope this helps, Jon. logic:iterate id=list name=gallery

Re: Proposed feature: Bean property transformations

2001-06-01 Thread Ted Husted
What I'm missing is a comprehensive, general package for converting data types and formatting properties for presentation. Most of this functionality is available somewhere in java and javax space, but it's spread around. What would be most useful, I think, is a single, generic package that

Re: New installation - NoSuchMethodError

2001-06-01 Thread Chuck Amadi
Hi, i was in the same whirlpool and guess what i am still in there albeit i only had that problem with netbeans v3.2 internal browser and when i utilised netscape with that logon example ( no problem blemo ) ;^ }. I have now gone on 2 better examples and things so if u got any suggestions mail

RE: template and I18N

2001-06-01 Thread Holman, Cal
Gregor This works template:put name='title' direct='true' bean:message key='app.login' / /template:put or template:put name='title' direct='true' content='bean:message key='app.login'/'/ Cal -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: Resources clarification - is there a work around

2001-06-01 Thread Deadman, Hal
Let me preface this by saying I haven't given this much thought. Since struts already supports multiple bundles (i.e. with the bundle attribute on bean:message) would it make since to have struts read all the resource files from a particular directory or path and use the base filename of the

Re: Resources clarification - is there a work around

2001-06-01 Thread Jonathan
I totally respect what you are trying to do with the database idea, but the problem with managing and keeping track keeps re-appearing - that is, if you are suggesting getting the data from a database. In fact, now you have added another series of steps: what variables do we have, where are we

RE: Tag Iterate !!!

2001-06-01 Thread Deadman, Hal
Based on what you are showing in your email, everything looks OK. I don't think the problem is with the iterate tag. The message javax.servlet.ServletException: Cannot find bean client in scope null would have to be coming from bean:write which is looking for a bean called client. It's looking in

CTLX Dreamweaver Extension Error

2001-06-01 Thread Luna, Kat
Title: CTLX Dreamweaver Extension Error Hi, Has anyone encountered a Tomcat:SecurityException when running the ctlx Extension for Dreamweaver? The Floater displays the list of tld's, but onClick() of useTaglibs.html throws the following exception while trying to load the array of taglibs.

Templates

2001-06-01 Thread Jose Manuel Sanchez Pineda
Hi everybody, i`m new here... I worked whit strut's templates in Resin, always used forwards into pages than include the template, now need put this work into weblogic but get this: java.lang.IllegalStateException: Cannot forward a response that is already commi tted i don't know if this is a

RE: Templates

2001-06-01 Thread Jason Chaffee
Title: RE: Templates It is a bug with Weblogic. Weblogic probaly already sent newline charaters in the response, so it won't allow you to forward the request at that point. I recommend you keep the generated java file when the jsp is compiled and you will be able to see what Weblogic is

Size on html:file tag??

2001-06-01 Thread dhay
Hi everyone. I am using the html:file tag, and running up against an error, saying the size attribute is invalid! It is clearly marked as valid in the docs! Is this a bug? I can take off the size= and it displays fine. My tag looks like this: html:file property=filename size=60/. Help is

RE: Size on html:file tag??

2001-06-01 Thread Deadman, Hal
If your looking at the documentation on the web, it may be newer than your build. I think the size tag was added to the tld recently. Do you have a recent build? Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 3:30 PM To: [EMAIL

Re: Potential Security Flaw in Struts MVC

2001-06-01 Thread RAdams2472
please remove me from this list.

Re: Proposed feature: Bean property transformations

2001-06-01 Thread Ted Husted
Harris, Andrew S wrote: A component would be able to hold a text value and a data value. The text value could hold the value entered by the user, prior to validation, then this could be played back to the user if validation failed on that component. If validation succeeded, the data value

RE: Multipage forms and validation

2001-06-01 Thread Niall Pemberton
David, I see your on the 1.1 ToDo list as a volunteer for Standard Validations and Client Side Validations - is it likely your validation framework is going to be adopted for Struts - and if so how close is what you're offering now to what Struts will have in 1.1? I'm just wondering whether to

nested TokenStreamException, WL6, Templates

2001-06-01 Thread Jonathan
the Exception javax.servlet.jsp.JspException: JSP compilation of /inc/template2.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException: Could not include inc/imports.jsp at

RE: Any Hashmap examples used in jsp page?

2001-06-01 Thread Steve A Drake
Hi Jon. I'm having a similar problem as Dudley with a HashMap. I tried playing around with your example but couldn't get it to work within the context of what I'm doing. Perhaps another example would help. For example, I have a scriptlet that looks something like: fee.fie.fo.sql.ResultSetBean

error in tag library ImageTag using weblogic 5.1

2001-06-01 Thread Zaremba, Don
I'm getting the following error trying to use struts with WL5.1 Anyone seen this before? weblogic.servlet.jsp.JspException: (line -1): Error in tag library at: 'form': The Tag class 'org.apache.struts.taglib.html.ImageTag' has no setter method corresponding to TLD declared attribute 'path',

RE: error in tag library ImageTag using weblogic 5.1

2001-06-01 Thread Abraham Kang
Which build are you using? --Abraham -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 4:21 PM To: '[EMAIL PROTECTED]' Subject: error in tag library ImageTag using weblogic 5.1 I'm getting the following error trying to use struts

RE: error in tag library ImageTag using weblogic 5.1

2001-06-01 Thread Abraham Kang
Don, Can you try the 1.0-b2 I think there were some tag issues in certain builds of 1.0b1. --Abraham -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 4:53 PM To: '[EMAIL PROTECTED]' Subject: RE: error in tag library ImageTag using

*TED* Re: I am finding that templates are SLOW

2001-06-01 Thread Jonathan Asbell
the Exception javax.servlet.jsp.JspException: JSP compilation of /inc/template2.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamExc eption: Could not include inc/imports.jsp at

Re: Initialization of Request-Scoped Objects

2001-06-01 Thread Craig R. McClanahan
On Thu, 10 May 2001, Jeff Trent wrote: When myAction.do is called, I have a chance within reset() to initialize my request-scoped objects. However, if myAction.jsp is called instead then I can't seem to find a way to get initialized. Are there any methods called in my Action class when

Re: possibility of default action?

2001-06-01 Thread Craig R. McClanahan
On 11 May 2001 [EMAIL PROTECTED] wrote: Is it possible to specify a default action for forms that? Say the only behaviour I need is that the parameters in the Form object are populated and validated. Possible? Desirable? How would Struts know what page to forward (or redirect) to

Re: Problem with tag

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, Laurent Cornelis wrote: I found a workaround, I wrote : logic:iterate id=faq name=faqList type=be.dummy.faq.bean.FAQBean/ p html:link page='/listFAQ.do' anchor='%= ((FAQBean)pageContext.findAttribute(faq)).getId().toString() %' bean:write name=faq

RE: How can i execute the STRUTS examples in JavaWebServer?

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, Anthony Martin wrote: I would be interested in knowing if anyone has done this. I work with a group that started with JWS, and their move to Tomcat doesn't seem to be going very well. I would still like to supply them with Struts objects, but only to prove it can

Re: filtering unwanted characters

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, Ian Kallen [EMAIL PROTECTED] wrote: Apache 2.0 supports input filters, how about writing one that cleans the data input before mod_jk/mod_webapp can hand it off to Tomcat? In a Servlet 2.3 environment (such as Tomcat 4.0), you can use the new Filter APIs to

Weblogic and ClassCastException

2001-06-01 Thread Steven Leija
Hey All, Has anyone experienced ClassCastException problems while using WebLogic 6.0? I'm developing a multipage form and when trying to retreive the bean from the request, I'm getting a ClassCastException. Steven BEGIN:VCARD VERSION:2.1 N:Leija;Steven;R. FN:Steven R. Leija ORG:Valtech

Re: How can I use set-property property=foo value=123 / instru ts-config.xml

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, David Holland wrote: How can I use set-property property=foo value=123 / in struts-config.xml ? I want to use it in place of forward to store Action configuration info (set-property is specified in the dtd). Tried to add getter setter to Action descendant - but

Re: Global forwards, targets and frames

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, Kyle Robinson wrote: Is there a way to specify the target of a global forward? I have a global forward which I want to go to another frame. For instance in my action if everything works fine I want to return to the input page but if there is an error I want to go to

Re: filtering unwanted characters

2001-06-01 Thread Jonathan Asbell
See the character filter I donated last week - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 01, 2001 9:31 PM Subject: Re: filtering unwanted characters On Fri, 11 May 2001, Ian Kallen [EMAIL PROTECTED] wrote: Apache 2.0

Re: Accessing ServletContext from session object

2001-06-01 Thread Craig R. McClanahan
On Fri, 11 May 2001, Matthew Fowkes wrote: I was wondering if anyone else has tried to access the ServletContext from the session object. I have written a class that implements HttpSessionBindingListener so I can detect when a users session expires. When the session expires, the

Re: Where are the TLD's?

2001-06-01 Thread Craig R. McClanahan
On Mon, 14 May 2001, Johan Compagner wrote: hmmm that's why i don't get them, i don't use the build process. I use VAJ so i just import all the java files to get a complete build. I shall download the binary and src then Note that the generated TLD files *are* in the binary

Re: What is a good design or idea or utility to create a cachecollection of N number of elements Least Recently Used?

2001-06-01 Thread Craig R. McClanahan
On Sat, 12 May 2001, Vic Cekvenich wrote: What is a good design or idea or utility to create a cache collection of N number of elements Least Recently Used? Say a hash map with synchronized get and put, that would track LRU and lock at the element level? Must be of fixed size and work at

Re: 2 newbie questions..

2001-06-01 Thread Craig R. McClanahan
On Sat, 12 May 2001, Roy Truelove wrote: Hey guys, Quick questions from a newbie.. When the mapping is local to a particular action, the Action class should call findForward on the mapping that's passed in. But if the mapping is a global one, it should call findForward on the

Re: I18n, xslt and struts...

2001-06-01 Thread Craig R. McClanahan
On Mon, 14 May 2001 [EMAIL PROTECTED] wrote: Would it be feasible to place struts-specific tags into an xslt (for example bean:message key=foo/)? In other words, is there any way to process the jsp code that the xslt returns? I'm trying to do this from the context of a custom tag (so

Re: Hidding .jsp files

2001-06-01 Thread Craig R. McClanahan
On Tue, 15 May 2001, Mikkel Bruun wrote: Hi Guys, Is it possible to make some sort of virtual path, enabling one to hide the actual .jsp pages??? Example, i want to avoid a link like /logon/logonform.jsp replacing it with perhaps /logon (which in turn will point to

Re: thread-safe?

2001-06-01 Thread Craig R. McClanahan
On Fri, 18 May 2001, Chris Butler wrote: heya folks, been noticing some errors in our logs when people double-click on buttons and other struts-related html elements. are there any issues with it being thread-safe? is there something that i should be doing with my Actions? any tips

Re: bootstrapping in struts?

2001-06-01 Thread Craig R. McClanahan
On Fri, 18 May 2001, derek harding wrote: I am wondering if there is a way to include a bootstrap class using struts. I know the web.xml is able to load a servlet on startup. But is this the only way to load classes on startup? If you want stuff executed when the application is

Re: Jakarta-tomcat and struts configuration

2001-06-01 Thread Craig R. McClanahan
On Mon, 21 May 2001, Moore, Amy L wrote: I have some questions and was hoping someone might be able to assist me. I am trying to configure struts with jakarta-tomcat 3.2.1 on my local machine. My tomcat.bat file is configured to read all of the .jar files from one location, which I assume

Re: wrong property descriptor returned (#1843)

2001-06-01 Thread Craig R. McClanahan
On Mon, 21 May 2001, Young, Wayne wrote: I just submitted bug #1843. If you have a class MyClass for which a MyClassBeanInfo class ONLY EXISTS IN ANOTHER PACKAGE, then the incorrect beaninfo hence property descriptors are returned. This causes the properties in MyClass to be skipped

Re: Getting Base deployment directory (Tomcat)

2001-06-01 Thread Craig R. McClanahan
On Mon, 21 May 2001, Jeff Trent wrote: Quick Tomcat question: How can I retrieve the base deploy directory name so that I can use absolute URL paths to my action forms within an HREF? What you're really after is request.getContextPath(). This is the prefix to all of the request URIs

RE: tool for the struts-config.xml

2001-06-01 Thread Craig R. McClanahan
On Wed, 23 May 2001, Gogineni, Pratima wrote: Hi, This could be done similar to the way they serialize the user database xml file in the struts example but this is what I saw under the changes and bug fixes section of the struts example application: Removed any attempt to save the

Re: Forums???

2001-06-01 Thread Craig R. McClanahan
On Tue, 22 May 2001, Spencer Smith wrote: This email list server is kind of weak in terms of threads and discussion. Should be moved over to a Forums. I built a really good robust one. If I get some requests, I can implement it and host it for free. Anyone interested in moving this

Re: New ActionMapping Class

2001-06-01 Thread Craig R. McClanahan
On Tue, 22 May 2001, Michael Binette wrote: I created a new GenericActionMapping class that extends ActionMapping. I added one property, processAction with public getter and setter methods for it. I then set the mapping property in web.xml for the struts Action servlet to my new

Re: digester and whitespace in XML text body

2001-06-01 Thread Craig R. McClanahan
On Wed, 23 May 2001, Nick Afshartous wrote: Hi, I'm using the digester to process the nested content in XML tags and am noticing that the leading/trailing whitespace doesn't seem to be removed as advertised in the doc. Hmm. You're correct that the whitespace isn't being trimmed.

Re: digester and whitespace in XML text body

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, Mark Simms wrote: I believe the digester must be rewritten to support the JAXP 1.1 specs. It's already been done in the Jakarta Commons version of Digester. Struts will switch to this at some point *after* 1.0 final -- the advertised XML parser requirement for

Re: Non-matching extension tags

2001-06-01 Thread Craig R. McClanahan
On Wed, 23 May 2001, Steven Leija wrote: Hello All, Can anyone help me with this problem? I'm trying to have a link open up a custom browser window using a struts html:link tag, but I'm getting a Non-matching extension tags error. Here is my code: html:link

RE: struts framework without its TAG LIBRARIES in jsp pages how?

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, Sanjay Melinamani wrote: but my question is how? If we use HTML, how is the ActionForm gets delegated to Action::perform() method? I guess we have to explicitly use the ActionForm bean and call its set methods...I am not sure about this ! Automatic form bean

RE: dynamic button names

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, Deadman, Hal wrote: It looks like this was broken in a recent update. The ButtonTag.java needs a doAfterBody() method in order to set the text instance variable to the body content. That will make it work like the SubmitTag.java. You should submit this as a bug on

Re: How do you use templare user roles

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, Neil Blue wrote: Hello, I am looking at strut templates, and I am confused as to how you can set the users role in a template. There does not see to be any way to set the current user role, but there does seem to be ways to test it. Please could anyone help.

RE: Using tags from Java code

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, Young, Wayne wrote: We put reusable functionality in utility classes and call those from the custom tag. In fact, many of the Struts tags themselves are designed like this. For example, nearly every tag that deals with beans and properties ends up calling methods on

RE: tricky mapping

2001-06-01 Thread Craig R. McClanahan
On Thu, 24 May 2001, John Schroeder wrote: Yuri, I have run into something similar with Excel files, but I'm not sure if it will address your current issue. My problem: when users run a report, return to them an Excel worksheet instead of HTML. Our particular approach used JSP's to

Re: Setting a user role

2001-06-01 Thread Craig R. McClanahan
On Fri, 25 May 2001, Jon.Ridgway wrote: Hi All, Is it possible to programmatically set a users role for use with request.isUserInRole (role). I would like to do this so I can started using the role based templating, without having to dig into app/web server specific security features.

Re: Removing session-scoped form from the session

2001-06-01 Thread Craig R. McClanahan
On Fri, 25 May 2001, Fabien Modoux wrote: I would like to know how I can remove a session-scoped form from the current session once I don't need it anymore. Is it stored in the session under the form-bean.name attribute in the struts-config.xml file? If yes, removing the form from the

Re: Mutiple logical struts-config.xml and ApplicationResource property files.

2001-06-01 Thread Craig R. McClanahan
On Fri, 25 May 2001, Bauer, John wrote: We are contemplating creating a brandable web application that will have customized navigation, templates, color schemes, etc. based on the role of the user. We would like to use struts to make this happen. It seems like we might want to have

Re: I want to override some struts classes

2001-06-01 Thread Craig R. McClanahan
On Fri, 25 May 2001, Jonathan wrote: Hello. I am placing more debugging in the struts source files and I want these new classes to override the ones in the struts.jar I have placed the edited ActionServlet class in the WEB-INF/classes/org/struts/action/ directory. It should be working

Re: About Japanized web page of Struts

2001-06-01 Thread Craig R. McClanahan
On Mon, 28 May 2001, Ted Husted wrote: As long as all the copyright notices are kept in place, and you are contributing this work to the Apache Software Foundation, then this would be fine Toshi. We appreciate your help! Definitely! And, once you have the URLs of the Japanese

Re: html:button and html:radio in 1.0b2

2001-06-01 Thread Craig R. McClanahan
On Wed, 30 May 2001, Klaus Thiele wrote: Hello, i'm currently switching our application from struts-0.5 to 1.0b2 and i have to made some stupid changes in some of my jsp-pages: 1) html:radio accepts no 'tabindex' 2) html:button does not get his label from the tag-body (html:submit

RE: Multipage forms and validation

2001-06-01 Thread David Winterfeldt
It hasn't been discussed by the other volunteers and Struts users/developers exactly what features the client/standard validations should have. I'll send an e-mail to get the discussion started. David --- Niall Pemberton [EMAIL PROTECTED] wrote: David, I see your on the 1.1 ToDo list as a

Struts status items list /\/\/\

2001-06-01 Thread Jonathan Asbell
Can any one of you put together a list? We need to know: 1) what can currently be thrown out (assuming I have the most recent evenings build) 2) what are, and where canweobtain all of the recently contributed pieces which are under consideration, being worked on or tested (the Token