RE: struts newbie trying to get onboard

2001-05-04 Thread Deadman, Hal
Is the struts ActionServlet configured and starting up OK? You should not be using struts-form.tld either, it's deprecated. If you are using Struts 0.5, don't, use the Struts 1.0 beta. -Original Message- From: Procek, Brett [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 12:56

RE: Potential Security Flaw in Struts MVC

2001-05-07 Thread Deadman, Hal
It's fine to nest a JavaBean in an ActionForm if that bean is just a transport object that is passed to EJBs but it probably isn't a good idea to nest your model objects directly in the form. If you are going to nest a javabean in a form you don't need the getName()/setName() methods,

RE: Struts forms and JSP components/templates

2001-05-07 Thread Deadman, Hal
I think the change from page to request was alread made for html:form. Get the latest Struts from CVS. Hal -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:40 PM To: '[EMAIL PROTECTED]' Subject: Struts forms and JSP components/templates

RE: Posting Collections

2001-05-09 Thread Deadman, Hal
I think I am doing the same thing that you want to do using the html:multibox. When the form is submitted you get an array of the ids that are checked and then you can go delete them. in the jsp form (where restaurant id is a key for the item being deleted): logic:iterate id=restaurant

RE: Logic iterate problems

2001-05-10 Thread Deadman, Hal
I don't think you need the jsp:useBean. You also don't need type="Client". If you want to use type, make sure the class is fully qualified with the package it's in. -Original Message-From: Sylvain FAGNENT [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 10, 2001 9:33 AMTo:

RE: Logic iterate problems

2001-05-10 Thread Deadman, Hal
Have you tried this? It should work as long as whatever is in the Vector has a method defined like: public String getName(); logic:iterate id=client name=tabTest bean:write name=client property=name/ /logic:iterate Put something like this at the top of your JSP just to make sure tabTest is

RE: Transactional Tokens in the JSP?

2001-05-10 Thread Deadman, Hal
It is saved in a hidden field in the form so it ends up in the request when you submit. -Original Message- From: Allen Walker [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 11:40 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Transactional Tokens in the JSP? At

RE: Checkbox Arrays

2001-05-10 Thread Deadman, Hal
I posted this same response to your Posting Collections question yesterday. Here it is again. If you use the html:multibox, you can get back an array of key values instead of an array of booleans. They key values can be Longs, Strings, whatever, as long as it uniquely identifies the row that you

RE: Checkbox Arrays

2001-05-10 Thread Deadman, Hal
Don't use the html:checkbox, use html:multibox and use bean:write in the body of the tag. An html:multibox resolves to an HTML checkbox. Hal -Original Message- From: Tony Karas [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 12:44 PM To: [EMAIL PROTECTED] Subject: Re:

RE: Philosophical question(s) related to STRUTS

2001-05-10 Thread Deadman, Hal
Struts has a bright future, as long as JSPs have a future. I don't think Struts has any serious competition among JSP-centric MVC frameworks, but Struts' fate is somewhat tied to that of JSPs. If you decide that you don't like JSPs then there are lots of competitors to JSPs, mainly templating

RE: My first

2001-05-10 Thread Deadman, Hal
http://jakarta.apache.org/struts http://jakarta.apache.org/struts/userGuide/index.html http://jakarta.apache.org/struts/installation.html http://jakarta.apache.org/struts/installation-wls.html Look in the struts distribution that you built: src/example/* dist/webapps/struts-example.war -

RE: Help needed extending BaseHandlerTag

2001-05-10 Thread Deadman, Hal
I think weblogic is masking the real error. Put a temporary try catch block inside your html:form tag on the JSP to trap the real error. If the exception is a ServletException, get the root exception Hal -Original Message- From: Ariff Sidi [mailto:[EMAIL PROTECTED]] Sent:

RE: Checkbox Arrays - Internationalising them?!

2001-05-11 Thread Deadman, Hal
the archives and couldn't find it... Thanks, Dave Deadman, Hal [EMAIL PROTECTED] on 05/10/2001 12:20:58 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: Checkbox Arrays I posted this same response to your Posting

RE: Urgent help needed

2001-05-11 Thread Deadman, Hal
Where is your struts.jar located? Have you modified your classpath at all? I am not sure if struts-blank.war is meant to actually run out of the box. It may just be shell to get started with. Does struts-example.war work for you? -Original Message- From: Vinod Shintre [mailto:[EMAIL

RE: LinkTag broken in May 11 build

2001-05-14 Thread Deadman, Hal
This should be fixed now. -Original Message- From: Vimal Kansal [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 11:08 PM To: [EMAIL PROTECTED] Subject: LinkTag broken in May 11 build Link tag seems to be broken. I have code snippet like this : logic:iterate

RE: How to use the new iterate tag?

2001-05-22 Thread Deadman, Hal
the .jar file, as far as I can tell. -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: RE: How to use the new iterate tag? Type should be available as an attribute of the iterate tag. Which

RE: How to use the new iterate tag?

2001-05-23 Thread Deadman, Hal
about accessing the index in an iterate tag. Cheers, --Amos -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 11:37 PM To: [EMAIL PROTECTED] Subject: RE: How to use the new iterate tag? You should be using struts-logic.tld

RE: Options tag problem

2001-05-24 Thread Deadman, Hal
I don't think the option tag will work like that. You can either put your Hashset in some scope, call it something like persons and then use the html:options collection=persons property=name / !-- you might need to use labelProperty=name if you want getName() to be the display value and use

RE: Regarding making your own tags with Struts

2001-05-24 Thread Deadman, Hal
You can change the font of the header by modifying the values for errors.header and errors.footer in your application resources properties files. errors.footer=/ulhr errors.header=h3font color=redValidation Error/font/h3You must correct the following error(s) before proceeding:ul You can write

RE: Options tag problem

2001-05-24 Thread Deadman, Hal
I don't think the option tag will work like that. You can either put your Hashset in some scope, call it something like persons and then use the html:options collection=persons property=name / !-- you might need to use labelProperty=name if you want getName() to be the display value and use

RE: what is 'input' for

2001-05-24 Thread Deadman, Hal
That's where you will forwarded back to if the validate() function on the ActionForm returns errors. -Original Message- From: Blue, Neil [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 10:22 AM To: [EMAIL PROTECTED] Subject: what is 'input' for Hello, I am trying to

RE: Production uses of Jakarta STRUTS 1.0

2001-05-25 Thread Deadman, Hal
The links below are from http://www.husted.com/about/struts/. I have noticed email addresses on struts-user from McGraw-Hill, ProctorGamble, and Enron in the last week or so. It looks like some big companies are starting to use it. It's real but it's relatively new so you aren't going to see it

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

2001-05-30 Thread Deadman, Hal
I think problem 1 was fixed last night. Problem 2 was an accidental regression and has been reported as a bug. -Original Message- From: Klaus Thiele [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 6:20 AM To: STRUTS-USER Subject: html:button and html:radio in 1.0b2

RE: Any hosting sites that use Struts?

2001-05-30 Thread Deadman, Hal
I looked around for sites that host jsp/servlet based apps awhile ago and came up with these links: http://www.irdesign.com/services/hosting/website_hosting.html http://www.hostjsp.com/ http://www.mmaweb.net/ http://www.servlets.net/index.html http://www.infinitehost.com/ I can't vouch for

RE: getting a specific ArrayList element

2001-05-30 Thread Deadman, Hal
Each element in the collection is exposed as a bean with name determined by the id attribute of the iterate tag. So inside your tag you can access that bean in a scriptlet or with the bean:write tag. The bean will be of type Object unless you use the type attribute of the iterate tag.

RE: Precompiling JSP Pages?

2001-05-31 Thread Deadman, Hal
If you are using Weblogic there is an Ant task that does it in the optional package. I can't vouch for how well the current version works but I am using a modified version that works fine. Tomcat has a batch file that will run Jasper on a whole directory tree full of jsps. I used it once but I

RE: Any hosting sites that use Struts?

2001-05-31 Thread Deadman, Hal
It looks like ExpertHost offers ASP support and it will offer JSP support "shortly". http://www.experthost.com/developers/ -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 31, 2001 3:21 PMTo: [EMAIL PROTECTED]Subject: Re: Any hosting

RE: output xml file

2001-05-31 Thread Deadman, Hal
If the perform method handles the response output, just return null. -Original Message- From: Wu, Ying (LNG-CIS) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 4:15 PM To: '[EMAIL PROTECTED]' Subject: output xml file I need to send a string which represents a xml file

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: 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

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: *TED* Re: I am finding that templates are SLOW

2001-06-04 Thread Deadman, Hal
Weblogic sometimes has trouble parsing relative paths. Are you using Weblogic 6.0? It might be fixed in SP2. I do this %@ include file=/include/toppage.inc % and it works. Try /inc/imports.jsp. -Original Message- From: Jonathan Asbell [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01,

RE: Null PointerException when run with Apache/SSL/Tomcat

2001-06-04 Thread Deadman, Hal
This could also be caused by a link URL including the port number which sometimes caused a new session to be used. A NPE could result when code that normally expected something in the session didn't find it because the session was new. As indicated by the other post, this may be fixed in b3.

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Deadman, Hal
Getting the locale object is easy. If you are in an Action perform method, just call: getLocale(request); If you are not in the Action class, you can do what that method does, Locale locale = (Locale) session.getAttribute(Action.LOCALE_KEY); if (locale == null) locale =

RE: Any Hashmap examples used in jsp page?

2001-06-04 Thread Deadman, Hal
I don't think what you are trying to do should be done in the JSP by a struts/custom tag. Why not copy the value objects in the HashMap to an array based on the order of the keys in your String array? Then pass the array to the JSP instead of the HashMap. If you need the keys and they aren't

RE: How do I Internationalize ActionError parameter values?

2001-06-04 Thread Deadman, Hal
]' Subject: RE: How do I Internationalize ActionError parameter values? So are you suggesting that I pass the request object to my ActionForm constructor when I create it in my action? -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 13:56

RE: logic:iterate or bean:write ERROR !!!

2001-06-05 Thread Deadman, Hal
There is a working example in registration.jsp of the struts-example webapp. -Original Message- From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 5:28 AM To: Struts-User (E-Mail) Subject: logic:iterate or bean:write ERROR !!! Hi all, I

RE: Setting focus to textbox?

2001-06-05 Thread Deadman, Hal
Are you getting a JavaScript error? If so this may be fixed in a more recent struts build. There used to be a problem setting the focus on fields that used the nested property syntax. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 4:11 PM

RE: Query: ActionMappings

2001-06-05 Thread Deadman, Hal
Yes you can. Just set the path to the path for the action and include the .do extension. forward name=cancel path=/home.do redirect=true/ XXX -Original Message- From: Upadhye, Sujit (GEAE, Foreign National) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 5:52 PM To: [EMAIL

RE: Struts Beta 03 Build Problem

2001-06-08 Thread Deadman, Hal
Did you get the ant binary distribution or did you build ant yourself? Building ant yourself may get you a version of ant that supports fewer tasks depending on what is in your classpath when you build it. Certain classes such as org.apache.tools.ant.taskdefs.optional.TraXLiason don't get built

java report article says bye-bye struts

2001-06-18 Thread Deadman, Hal
Clearly there are too many java magazines and they will publish anything. In the July issue of Java Report there is an article titled Writing a Reusable Implementation of the MVC Design Pattern by Prashant Sarode from Brience. It's interesting because it has a section title of Bye-Bye Struts. The

RE: what setters do i implement in an indexed tag ?

2001-07-24 Thread Deadman, Hal
In the indexed tags write up at http://www.husted.com/about/struts/indexed-tags.htm, it only mentions the two types of get methods required in the action form. It doesn't mention the setters that are required. It looks like the getParameterList() method is only used by the iterate tag. To

RE: what setters do i implement in an indexed tag ?

2001-07-24 Thread Deadman, Hal
interestRates.size()-1) { interestRates.add(index,new InterestRateJBean()); } return (InterestRateJBean) interestRates.get(index); } Again, I just got this to work so I may be missing something. Hal -Original Message- From: Deadman, Hal Sent: Tuesday, July 24, 2001 11:03 AM

RE: trade-off

2001-01-17 Thread Deadman, Hal
I know the pages that use template tags are slow the first time you hit them because there are normally several jsps that need to get compiled. After that I would think it would be the same performance-wise as a jsp that does lots of jsp:includes. Has anyone tried to use struts-templates in

RE: How to pass parameter to a JSP inside a template?

2001-01-17 Thread Deadman, Hal
You could do something like this in the SQLResult.jsp: pageContext.setAttribute("offset",offset,PageContext.REQUEST); Then you could do: Object o = pageContext.getAttribute("offset",PageContext.REQUEST); inside SQLDisplayRowResult.jsp. I think that would work but it might be considered a hack.

RE: Post/re-post problems

2001-01-24 Thread Deadman, Hal
You can specify that a forward be handled by a redirect instead of a jsp:forward by doing this: forward name="success" path="/home.jsp" redirect="true"/ -Original Message- From: George Lessmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 2:31 PM To: [EMAIL PROTECTED]

RE: new template tag framework

2001-01-25 Thread Deadman, Hal
Doesn't this Components extension leverage the struts framework? It basically just extends the struts ActionServlet. It then provides a component tag library that is backwardly compatible with struts template tags. I just modified a few files in my rather small web application to use the

RE: struts and weblogic

2001-01-29 Thread Deadman, Hal
I use something like the following if I want to reference a local dtd. When I build EJBs with Ant it seems to want to validate the dtd so I use local dtds in order to compile while off-line. !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"

RE: Templates in Struts

2001-01-31 Thread Deadman, Hal
Title: Blank The subordinate file tags are processed. The subordinate files are included via a PageContext.include() which is like a jsp:include. The subordinate file can be a full fledged jsp but it will inherit some things from the outer jsp (like the buffer size) and share the same

html:text vs html:hidden

2001-02-01 Thread Deadman, Hal
The html:text tag documenation says that the property attribute must be the name of a bean property of type String but it seems to work with other types because I have a form field that maps to a property of type double. The html:hiddentag does seem to enforce the String only rule. I wasn't

RE: member variables

2001-02-02 Thread Deadman, Hal
You mean one instance of each Action class per application, not session. I would say that the use of instance variables is discouraged because they raise synchronization issues. "The most important principle that aids in thread-safe coding is to use only local variables, not instance variables,

RE: member variables

2001-02-04 Thread Deadman, Hal
You only have to have to worry about synchronization if those session objects have instance variables. Of course objects that are put in the session typically have instance variables, otherwise, what's the point of putting them in the session? I guess you have to deal with the fact that the

RE: Are there tags for iterating through collections

2001-02-05 Thread Deadman, Hal
The iterate tag is what you are looking for. http://jakarta.apache.org/struts/struts-logic.html#iterate -Original Message- From: Klemme, Robert, myview [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:30 AM To: 'Struts Users' Subject: Are there tags for iterating through

datetime input tags

2001-02-06 Thread Deadman, Hal
Can anyone recommend a tag library that helps with the entry of date and time values into a JSP form?The datetime-examples.war that comes with the jakarta datetime taglib didn't work in weblogic 6.0. If anyone has successfully used that library with weblogic, let me know. Is there any

specifying default values for forms

2001-02-07 Thread Deadman, Hal
Is there a way to specify default values other than zero for when an ActionForm setter method takes a numberargument and the conversion of the string input fails? I seem to recall discussion of this feature but I can't dig up the thread. Thanks, Hal

link tag parameters problem

2001-02-07 Thread Deadman, Hal
I have a two Struts link tags on a page. The first one sets a parameter but the parameter shows up on both links instead of just the first one.I am using Weblogic 6.0. Should the param* attributes be getting reset in the release() method of the link tag? When is the release method on a tag

BUG: weblogic 6.0 multi-box release bug

2001-02-09 Thread Deadman, Hal
The name property in Multibox.java gets defaulted to Constants.BEAN_KEY but the release tag sets it to null. This causes it to bomb out in weblogic 6.0 because the name is nullthe second time the tag is used on a page. Actually, I haven't tested this yet but it seems to make sense.

bean-cookie.jsp

2001-02-09 Thread Deadman, Hal
The struts documentation says this in .../struts-documentation/api/org/apache/struts/taglib/bean/package-summary.html You must use jsp:useBean to introduce a reference to an existing bean, if you wish to reference that bean with other standard JSP tags (such as jsp:getProperty or

html:img tag url rewriting

2001-02-12 Thread Deadman, Hal
When using the html:img tag with the page attribute it will do url rewriting but that doesn't seem to work on some webservers. This doesn't work: http://jakarta.apache.org/images/logos/tomcat_3.gif;jsessionid=123123 Is there a way to turn off the url rewriting and have the img tag still

how to determine size of collections using tags

2001-02-12 Thread Deadman, Hal
Is there a way to determine the size of a collection that one might iterate over using struts tags rather than a scriptlet? I often want to display one thing if the collection is empty or I want to iterate over the collection. The only thing I can think of involves adding a get method to the

RE: Using ActionErrors

2001-02-13 Thread Deadman, Hal
I haven't tried it but I thought that you could specify the property attribute on the errors tag and it would pull out the error that has that property. When you add to the ActionErrors object the property is the first argument. You should probably use the property name that cooresponds to

RE: Confusion about struts.jar in classpath

2001-02-13 Thread Deadman, Hal
Do you have struts.jar in the WEB-INF/lib directory of the webapp you wrote yourself? -Original Message- From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:08 PM To: '[EMAIL PROTECTED]' Subject: RE: Confusion about struts.jar in classpath Yes

RE: Unable to start Tomcat with Struts

2001-02-14 Thread Deadman, Hal
The following was posted by Craig yesterday and it should answer all of your classpath questions related to struts.jar. The short version is just put struts.jar in WEB-INF/lib and do not put WEB-INF/lib in your tomcat classpath. Do not put it any other location that tomcat can see. ---from

RE: netscape 4.7x, session ids and struts

2001-02-15 Thread Deadman, Hal
I think the fix that you describe has already been implemented. Are you using a recent nightly build? -Original Message- From: Gordon Maclean [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: netscape 4.7x, session ids and struts

RE: help! confused over forms and errors and oooh, other stuff :-)

2001-02-20 Thread Deadman, Hal
I don't know if I understand your question but would making the input attribute of the action another action give you the opportunity to retrieve data that the jsp form needs before the jsp is displayed? I have a form that needs a drop down populated from the database before the form is

RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal
I am using the components add-on and I like it but it shouldn't go into the 1.0 release. It's too much code and has too much functionality to be merged without some more review which will take time. One problem I have noticed is that when a component is included the exceptions are caught which

RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal
My hasBody() method is like the following so it shouldn't have a null pointer exception. Are you using a recent nightly build? I think I had this problem a couple months ago but I think it has been fixed for awhile. private boolean hasBody() { if (bodyContent == null) return

RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal
ary 21, 2001 11:28 AM To: [EMAIL PROTECTED] Subject: Re: Struts, WebLogic 6.0 and template tags Hal, Please give a code example with a component, when you cannot get an exception. And how it can be fix now. Maya "Deadman, Hal" wrote: I am using the components add-on and I like it but i

passing substitution parameters to ActionError still working?

2001-02-22 Thread Deadman, Hal
I have a form where I call the following (where UserForm.MIN_PASSWORD_LENGTH is an int): errors.add("password", new ActionError("error.user.passwordinvalid", String.valueOf(UserForm.MIN_PASSWORD_LENGTH))); which references this in the ApplicationResource.properties file:

RE: passing substitution parameters to ActionError still working?

2001-02-22 Thread Deadman, Hal
To: [EMAIL PROTECTED]Subject: Re: passing substitution parameters to ActionError still working?"Deadman, Hal" wrote: I have a form where I call the following (where UserForm.MIN_PASSWORD_LENGTH is an int):errors.add("password", new ActionError("err

RE: struts-example - handle of ServletException

2001-02-27 Thread Deadman, Hal
This is the 3rd or 4th thank you email!!! We have so many emails. The Life is bad. But seriously, I think everyone is thankful for responses they get to their submissions. If everyone thanked people for every response the list would be too cluttered. Why not say thanks in advance? Hal

RE: Is the struts example itself is multi-thread safe?

2001-02-27 Thread Deadman, Hal
The example is thread safe. Methods don't need to be synchronized if they aren't manipulating a shared object such as an instance variable. If your action class doesn't have any instance variables and it only deals with local variables and parameters then there is a good bet that it is thread

RE: Stupd question about Struts and EJB.

2001-02-27 Thread Deadman, Hal
I use EJBs without using copyProperties although it's a matter of preference. I have a set of JavaBeans that you could call "Data Beans" because they are often similar to my Entity Beans and they don't contain any business logic. They are struts free and I pass these data beans to some EJB

RE: Problem since beta1

2001-02-28 Thread Deadman, Hal
A bug report has already been filed for this bug. It's bug 697. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=697 -Original Message-From: Brian Bowman [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 28, 2001 8:39 AMTo: [EMAIL PROTECTED]Subject: Problem since beta1 I

RE: data-sources for oracle

2001-02-28 Thread Deadman, Hal
If I recall correctly, that error happens when the database isn't being found. Is the Oracle listener running and properly configured? If it is and you can connect from other applications then maybe your jdbc url is wrong. Your url should look like this: jdbc:oracle:thin:@SERVERNAME:1521:SID

RE: Drop-down list

2001-03-01 Thread Deadman, Hal
Does this assume that you have loaded a Collection of LabelValueBeans in the application scope? Do you really need that scriplet at the top of the page? I thought html:options could reference the collection where it is in the servlet context, without copying the reference to the page context.

RE: JSP includes of

2001-03-02 Thread Deadman, Hal
You need to use %@ include file="/include/header.jsp" % instead of jsp:include. When you use jsp:include it is invoking a seperate jsp. The include file directive will do an inline of the code from the other file which doesn't have to be a complete jsp, it may be just a code fragment. For that

RE: Database pooling code

2001-03-07 Thread Deadman, Hal
Weblogic's connection pooling lets you specify the SQL statement that you want to test with. In Oracle you would typically test a connection with "select dummy from dual". I think you need to allow the test SQL statement to be configured for each pool. If an exception is raised when it is

RE: Problem with multiple submit image buttons

2001-03-08 Thread Deadman, Hal
Are you doing anything in the reset method of the ActionForm? You may want to include the jsp code fragment that uses the html:image tags. Hal -Original Message- From: Wax, Michael [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 12:36 PM To: '[EMAIL PROTECTED]' Cc: Boulatian,

RE: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-09 Thread Deadman, Hal
Has anyone found a place to download this pattern catalog? It would be nice to have a local copy in either PDF or HTML. This link has the on-line version but you need to be logged in to JDC. http://developer.java.sun.com/developer/restricted/patterns/J2EEPatternsAtAGlance.html Hal

RE: Problems with Struts+WebLogic

2001-03-12 Thread Deadman, Hal
2) You probably have struts.jar in your weblogic classpath. It should only be in the WEB-INF/lib directory of your webapp. 1) I am using weblogic without having xalan and xerces in the weblogic classpath. Most of what you would need for a typical application is in weblogic.jar. Hal

RE: diiferent html tags packages?

2001-03-13 Thread Deadman, Hal
Tags in taglibs.form.* and taglibs.* should not be used and exist only for backwards compatibility with older version of struts. They will be removed at some point. -Original Message-From: Sarbjit Singh [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 13, 2001 11:21 AMTo:

RE: More on my copyProperties/EJB woes

2001-03-13 Thread Deadman, Hal
AlthoughcopyProperties to an entity beanmight work, it would be making a call through the remote interface each time it sets a property on the entity bean. I think it'sgood practice to minimize the number of remote calls made to an EJB. (Often in practice the calls are not really remote but

RE: newbie question

2001-03-14 Thread Deadman, Hal
Title: newbie question BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. Don't put WEB-INF/classes in your classpath and don't put struts.jar in your classpath. Any jarfiles in WEB-INF/lib and the WEB-INF/classes directory get added

RE: Communicating with EJB's from Action

2001-03-30 Thread Deadman, Hal
I like this description, mainly because it sounds like what I have been doing. Something like this might make a good section in the documentation - Struts EJBs. I would consider the stateless session beans part of the model because they contain business logic. You also talk about "basic value

RE: Digester parser error to another output.

2001-04-02 Thread Deadman, Hal
I submitted a bug report about this issue on Friday. You can add your comments or vote for it. It's bug #1166. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1166 Hal -Original Message- From: Noel Sebastien [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 11:01 AM To:

RE: Multiple Forms, Single Action

2001-04-04 Thread Deadman, Hal
Both actions can share the same action class but they need to have different paths, i.e. /saveSurvey can't be the path for both actions. -Original Message- From: Anthony Martin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 1:54 PM To: Struts User List (E-mail) Subject:

RE: unsubscribe me

2001-04-05 Thread Deadman, Hal
So how did that work out? Putting "unsubscribe me" it in the subject and the body was a good try. If it didn't work try the following: To remove your address from the list, send a message to: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

RE: Frames, concurrency, and EJB Stateful Session beans - a probl em.

2001-04-05 Thread Deadman, Hal
I like this. I have seen the business interface idea described before but I like the handler as a way to hide EJB calls from the front-end code. Do you typically access entity beans from stateless session beans or do you call entity beans directly from the front end? Do you have business

RE: how to access related ActionForm from within .jsp?

2001-04-05 Thread Deadman, Hal
The form bean is associated with an action, not a jsp. The jsp may contain an html:form which references an action, thereby gaining access to the form associated with that action. A jsp could have multiple html:forms. The form bean associated with the action is available in request scope for

RE: how to access related ActionForm from within .jsp?

2001-04-05 Thread Deadman, Hal
. -Original Message- From: Deadman, Hal Sent: Thursday, April 05, 2001 3:11 PM To: [EMAIL PROTECTED] Subject: RE: how to access related ActionForm from within .jsp? The form bean is associated with an action, not a jsp. The jsp may contain an html:form which references an action, thereby

RE: how to access related ActionForm from within .jsp?

2001-04-05 Thread Deadman, Hal
BTW, I may have some configuration problem that is making this not work for me...so it might work for you. I'm going to try something else and will report if it works. Scott -Original Message----- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 1

RE: how to get a global ActionForward object?

2001-04-06 Thread Deadman, Hal
Yes -Original Message- From: JeanX [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 3:56 AM To: struts-user Subject: how to get a global ActionForward object? Hi struts-user, How to get a global ActionForward object defined in global-forwards tag in my Action class

RE: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Deadman, Hal
From what I hear, Tomcat 3.1 is not really supported by Struts, Tomcat 3.2 is. -Original Message- From: Wes Cummings [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 4:19 PM To: Struts-User Subject: Visualage Java 3.5 with tomcat and struts hi, I am trying to get struts

RE: select tag attribute disable

2001-04-09 Thread Deadman, Hal
Your best bet is to display static text for the existing entries because I doubt HTML supports disabling a select box. You would probably need to use Javascript to prevent someone from changing a select option but that would be annoying. If they can't change something, why put it in a select box?

RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Deadman, Hal
What's the error that you are getting? -Original Message- From: Lu, Wei [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:08 PM To: '[EMAIL PROTECTED]' Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts Hello, I got in trouble in setting up

RE: Problem with bean:struts tag

2001-04-09 Thread Deadman, Hal
I think bean:struts is used to access configuration information from struts-config.xml. Are you trying to use it to access the properties of a particular form instance? You can do that with bean:write directly if the form is already in some scope. Hal -Original Message- From: Trevor

RE: Confusion with form beans

2001-04-11 Thread Deadman, Hal
I am not sure what the default is but you should specify redirect="false" if you are passing things on the request object. That will cause a forward instead of a redirect. If the default for redirect is true then the /ShowLog.do action will be requested with a new request. forward

RE: Writing complicated HTML with embedded bean data

2001-04-19 Thread Deadman, Hal
You can use the html:link tag to pass parameters. The example shows how to pass a single parameter, there is another method involving a Map that lets you pass multiple key/value pairs as parameters. logic:iterate id="restaurant" name="restaurants" tr td align="left" html:link

RE: Load Testing

2001-04-23 Thread Deadman, Hal
I assume you have you looked at Jmeter? http://jakarta.apache.org/jmeter I haven't used it yet. I am not sure how easy it is to generate load that consists of dynamically generated data for form submissions and the like. Microsoft has a free stress test tool too: http://homer.rte.microsoft.com/

  1   2   >