Strut / Turbine

2001-03-01 Thread Christophe Vigny
It seems that the database support is pretty lesser in strut than in turbine. I'm wonder what is the better frame work to use, I want to build database driven web site in java technologie.

Re: PROPOSAL: Template Screens

2001-03-01 Thread Cedric Dumoulin
Hi David, and everybody, I understand David's position, there is a proverb which said "who go slowly go surely" ;-) But, please, don't forget that I have already work for a long time on Components proposal. A lot of peoples have tried them, and give positive feedback, as well as

Re: Strut / Turbine

2001-03-01 Thread Ted Husted
See http://www.mail-archive.com/struts-user@jakarta.apache.org/msg03206.html and http://www.mail-archive.com/general@jakarta.apache.org/msg00495.html Christophe Vigny wrote: It seems that the database support is pretty lesser in strut than in turbine. I'm wonder what is the better

Re: POST and GET method

2001-03-01 Thread Spencer Smith
That's a good question. If you guys find out let me know and I will do the same. I actually have to deal with that today in a multi-part form. I am not sure, but I think the answer is by adding struts hidden form fields. I'll let you know later today. - Original Message -

RE: POST and GET method

2001-03-01 Thread Morris, John
Hi, Typically in the past when I have written my own controller servlets, I delegate from the doPost doGet methods to a process() method much like the Struts ActionServlet. The difference however is that the method signature for my process method includes a boolean to indicate whether or

RE: POST and GET method

2001-03-01 Thread Kevin Wang
The current ActionServletpasses both doGet() and doPost()to process(request, response). if you want your entire application to handle doGet() with an error.jsp, ActionServlet is a good place to do so (assuming each webapp get its own ActionServlet). If you want to handle them per Action

Re: PROPOSAL: Template Screens

2001-03-01 Thread Maya Muchnik
Hey, guys, I have a good proposal: include Cerdic to struts developer team. Cedric Dumoulin wrote: Hi David, and everybody, I understand David's position, there is a proverb which said "who go slowly go surely" ;-) But, please, don't forget that I have already work for a long time

debug level

2001-03-01 Thread Matthias Bauer
Hi there, how can I prevent the struts action servlet from logging so much information. Here is my problem: I have generated a struts application and now I am about to deploy it. During development it was pretty convenient to have so many debug messages. But now, even after setting the debug

Re: debug level

2001-03-01 Thread Maya Muchnik
The 2nd part (classpath) is coming from Tomcat (or other server) startup script. Hi there, how can I prevent the struts action servlet from logging so much information. Here is my problem: I have generated a struts application and now I am about to deploy it. During development it was

Drop-down list

2001-03-01 Thread Kyle Robinson
What is the simplest way to dynamically create a drop-down list (select) that pulls values from a database? Is there a specific tag I should use? Iterator? Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111

Re: Drop-down list

2001-03-01 Thread Spencer Smith
This is how we do it...(I think the work simple should be ommitted) Get the content at the top of the JSP page. %pageContext.setAttribute("nameSuffixTypes", getServletContext().getAttribute("nameSuffixTypes"));% Place this where you want the Drop Down List on the JSP page. html:select

Re: struts and XSL

2001-03-01 Thread Craig R. McClanahan
[EMAIL PROTECTED] wrote: There are many competing technologies to embrace the Model 2 pattern. I get the feeling that XML/XSL and Struts are mutually exclusive. Is this a valid concern ?? I'm not sure that they are mutually exclusive, but there is a choice you ned to

Re: Volunteer for Validation Framework

2001-03-01 Thread Craig R. McClanahan
Spencer Smith wrote: I have a lot of experience using validation. I am of the opinion that if possible validation should be done client-side using javascript. Is there a way to implement this by extending Struts? If so, I would be very interested in helping. Currently, I am working on

RE: POST and GET method

2001-03-01 Thread GU,JAMES (HP-Corvallis,ex1)
There is a method in HttpServletRequest class called getMethod() that returns either post or get or James Gu -Original Message-From: Spencer Smith [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 01, 2001 6:35 AMTo: [EMAIL PROTECTED]Subject: Re: POST and GET method

RE: Question about iterate tag

2001-03-01 Thread Shamdasani Nimmi-ANS004
Craig, I did try this way but it still does not work. Since supplier.value is of type SupplierBean, do I have to specify that anywhere? -- jsp:useBean id="user" scope="session" type="com.motorola.mms.msqc.beans.UserBean"/ TABLE logic:iterate

Re: PROPOSAL: Template Screens

2001-03-01 Thread David Geary
Cedric's got some good ideas here, and I agree with someone else who said he should be a committer. Craig? david Cedric Dumoulin wrote: Hi David, and everybody, I understand David's position, there is a proverb which said "who go slowly go surely" ;-) But, please, don't forget

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.

using struts on iplanet

2001-03-01 Thread Fred Lo
Hello, Anyone have experience with iplanet 6.0 sp2 and struts? I am trying the struts-test.war application. I could load the jsp without problem, but it seems whenever an servlet is called upon it will report: GX Error (GX2GX) socket reuslt code missing!!! With the following in the log file:

Re: debug level

2001-03-01 Thread Maya Muchnik
I think I have found the answer for the 1st part of debug messages. They are coming from jasper compiler. Maya Muchnik wrote: The 2nd part (classpath) is coming from Tomcat (or other server) startup script. Hi there, how can I prevent the struts action servlet from logging so much

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

2001-03-01 Thread Maya Muchnik
Thank you, Craig for clear "picture". One Q. to be sure that all OK. What about servlet.log file? Several action threads will need to have an access to it.,... Maya "Craig R. McClanahan" wrote: Maya Muchnik wrote: Hi, In "A Walking Tour of the Struts App", the author has mentioned

Re: Why should you call JSP pages directly?

2001-03-01 Thread John Raley
So how does one protect JSP's from direct invocation? Is there a server-independent way? (I'm using Tomcat, so that would also be good to know.) Maya Muchnik wrote: Hello, Jens again, I am totally agree with you, but to make it works somebody (a designer) must to "protect" jsp files.

RE: Question about iterate tag

2001-03-01 Thread Matt Ho
I did try this way but it still does not work. Since supplier.value is of type SupplierBean, do I have to specify that anywhere? I believe you want the bean to be SupplierBean rather than Supplier. Your request bean:write name="supplier" property="value.seq_nbr" scope="page"/ seems

Re: Why should you call JSP pages directly?

2001-03-01 Thread Maya Muchnik
One way, as I know, is to put all jsp, except index.jsp (or similar start up) under a protected directory. For Tomcat the secure directory is setup in web.xml (see web.xml for webapps/example, directory is example/jsp/security/protected). See also Tomcat instruction (I need refresh my memory

Re: Drop-down list

2001-03-01 Thread Peter Alfors
When adding options to a select that are stored in a database, we have the action class look-up the necessary information, store it in a bean, place the bean in the request / session, and then use a taglib on the page that specifies the source (the bean) and the property (database column) that

RE: Question about iterate tag

2001-03-01 Thread Shamdasani Nimmi-ANS004
Craig had suggested that I use: bean:write name="supplier" property="value.seq_nbr" scope="page"/ but unfortunately it is not working. -Original Message- From: Matt Ho [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 12:27 PM To: [EMAIL PROTECTED] Subject: RE: Question about

Re: Drop-down list

2001-03-01 Thread Spencer Smith
Do you guys know how to define the Multiple attribute in a select drop down list for Struts? - Original Message - From: "Peter Alfors" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 11:29 AM Subject: Re: Drop-down list When adding options to a select that are

HTTPClient vs java.net.URLConnection

2001-03-01 Thread Maya Muchnik
Hi, Does anyone use HTTPClient? What do you think about it? I have got this link several minutes ago. As its document said, in HTTPClient you can set timeout for response, pipelining of request. Source code is available. It includes the source code for parsing the multiPartRequest. HTTPClient

Re: Drop-down list

2001-03-01 Thread martin . cooper
Add the attribute to your tag like so: html:select ... multiple="true" ... and make sure the corresponding property in your form bean is an array of values. See the docs for more details: http://jakarta.apache.org/struts/struts-html.html#select Hope this helps. -- Martin Cooper Tumbleweed

RE: Drop-down list

2001-03-01 Thread Dorai, Harish (c)
Suppose I have the drop down list which I wanted to create from a database and the database is updated less frequently, is there a way in which I can implement somekind of caching mechanism, with which I won't do a database query always, instead I can use the cache to populate the drop down list?

Bug in handling multiple values in multipart forms

2001-03-01 Thread Till Nagel
Hi, I've encountered a bug in handling multipart requests. (last nightly build 20010224) If a form is sent with enctype="multipart/form-data" the multiple values (e.g. select multiple...) aren't set correctly. In the DiskMultipartRequestHandler the values are stored in a Hashtable thus only the

RE: Bug in handling multiple values in multipart forms

2001-03-01 Thread Schachter, Michael
Till, Thanks, I'll include this with the other patch I'm working on to improve the speed of multipart requests. -Original Message- From: Till Nagel [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 3:12 PM To: [EMAIL PROTECTED] Subject: Bug in handling multiple values in

Re: Drop-down list

2001-03-01 Thread Peter Alfors
If you wanted to use a bean to store the select options, place it in the user's session. Then, check to see if it exists before refreshing it. HTH, Pete "Dorai, Harish (c)" wrote: Suppose I have the drop down list which I wanted to create from a database and the database is updated less

Re: HTTPClient vs java.net.URLConnection

2001-03-01 Thread Paul Hendley - Sun Microsystems
I've just recently started using HTTPClient with struts on the webserver and it seems pretty reliable. Although I haven't really pushed it much, it was easy to get up and running and I haven't found any real issues with it. (I think I had one issue but can't remember what it was...I guess it

Re: Passing a bean property to template:put tag

2001-03-01 Thread Incze Lajos
On Thu, Mar 01, 2001 at 10:37:29AM -0500, Mike Bell wrote: Hello, Is there a way to pass a bean property to a template:put content? I've tried using a bean:write... in the content parameter but it just passes it straight through (with or without direct set). I've also tried: bean:define

Help with Frames

2001-03-01 Thread Mary Hill
I must be missing something simple. I have a jsp page which references a set of frames. Each frame has a jsp file which contains references to struts tages. The struts tags fail and I get exceptions - such as bean does not exist, iterate tag is null The jsp pages work fine when not used

Re: Drop-down list

2001-03-01 Thread Spencer Smith
Trying to use Multiple="true" attribute for html:select Help! O.k. so I declare it like so: protected String[] providerName; Then I get it: public String[] getProviderName() { return (providerName); } Then I set it: public void setProviderName(String providerName[]) { {

RE: Help with Frames

2001-03-01 Thread Abraham Kang
Mary, The problem is the initial FRAMESET sent to the browser forces the browser to initiate seperate requests to fill in the frames of the page. You might want to store and retrieve the objects in the session scope or have each frame call a *.do (reportList.do?neededParam=value) to set up the

RE: Drop-down list

2001-03-01 Thread Kyle Robinson
I'd remove all the square brackets. If you want to keep them, the parameter type in setProviderName should be String[]. I don't know for sure though. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 13:02 To: [EMAIL PROTECTED] Subject:

:misssig message key error

2001-03-01 Thread soh syed
can anyone help me with the following error! thanks Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at _0002findex_0002ejspindex_jsp __ Do You Yahoo!? Get email at

Re: Drop-down list

2001-03-01 Thread Spencer Smith
Provide Name(s)nbsp; html:select property="providerName" multiple="true" size="2" html:options collection="cmProviderTypes" property="value" labelProperty="label" / /html:select Like this, correct? - Original Message - From: "Spencer Smith" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Drop-down list

2001-03-01 Thread Spencer Smith
Thanks for the help, but it didn't work :( - Original Message - From: "Kyle Robinson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 1:14 PM Subject: RE: Drop-down list I'd remove all the square brackets. If you want to keep them, the parameter type in

JSP includes of

2001-03-01 Thread Hardee, Tony
I am having trouble using includes and custom tags in JSPs with Struts. The application is unable to find the tag descriptor files. For example, I have an include file that contains: // header.jsp %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib

Re: :misssig message key error

2001-03-01 Thread Maya Muchnik
Your index.jsp file is using ApplicationResources.properties to get index.title. Check it. soh syed wrote: can anyone help me with the following error! thanks Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)

RE: JSP includes of

2001-03-01 Thread Katarina Nelson
Try to include the needed .tld files into the "include/header.jsp" page. It worked for me. /Katarina -Original Message- From: Hardee, Tony [mailto:[EMAIL PROTECTED]] Sent: den 1 mars 2001 22:29 To: '[EMAIL PROTECTED]' Subject: JSP includes of I am having trouble using includes and

Re: JSP includes of

2001-03-01 Thread Maya Muchnik
Try to change jsp:include page="include/header.jsp"/ to put a full path to header.jsp file. For example: jsp:include page="/WEB-INF/include/header.jsp"/. But I am not sure. Katarina Nelson wrote: Try to include the needed .tld files into the "include/header.jsp" page. It worked for me.

RE: JSP includes of

2001-03-01 Thread Hardee, Tony
The application finds the header file; I am also sourcing an image which appears on the page from the include. However, it is unable to resolve the tag library descriptors. Thus the include statement is fine, it is the taglib uri that is not working from the include. Thanks -Original

RE: JSP includes of

2001-03-01 Thread Katarina Nelson
There is exactly what I mean. Paste the needed taglib tags e.g. : %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % into your "header.jsp" page. /Katarina -Original

Re: Question about iterate tag

2001-03-01 Thread Craig R. McClanahan
Shamdasani Nimmi-ANS004 wrote: Craig, I did try this way but it still does not work. What does "does not work" mean? What error messages or stack traces are you getting? Since supplier.value is of type SupplierBean, do I have to specify that anywhere? No ... bean introspection does not

Re: Drop-down list

2001-03-01 Thread Craig R. McClanahan
Spencer Smith wrote: Do you guys know how to define the Multiple attribute in a select drop down list for Struts? select name="propertyname" multiple="true" In XML syntax, attributes always have to have a value. Craig

Re: Drop-down list

2001-03-01 Thread Craig R. McClanahan
"Dorai, Harish (c)" wrote: Suppose I have the drop down list which I wanted to create from a database and the database is updated less frequently, is there a way in which I can implement somekind of caching mechanism, with which I won't do a database query always, instead I can use the cache

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

2001-03-01 Thread Craig R. McClanahan
Maya Muchnik wrote: Thank you, Craig for clear "picture". One Q. to be sure that all OK. What about servlet.log file? Several action threads will need to have an access to it.,... True, but that is the servlet container's problem to worry about. If you look inside Tomcat's implementation

Re: Why should you call JSP pages directly?

2001-03-01 Thread Craig R. McClanahan
Maya Muchnik wrote: One way, as I know, is to put all jsp, except index.jsp (or similar start up) under a protected directory. For Tomcat the secure directory is setup in web.xml (see web.xml for webapps/example, directory is example/jsp/security/protected). See also Tomcat instruction (I

RE: Question about iterate tag

2001-03-01 Thread Shamdasani Nimmi-ANS004
IT IS UNBELIEVABLE! I have wasted so much time trying to get this to work and all that was missing in my JSP was this line: %@ taglib uri="/Web-inf/struts-logic.tld" prefix="logic" % The strange part is that I was not getting any error in the log files saying undefined tag or anything.

Re: Why should you call JSP pages directly?

2001-03-01 Thread Chris Bartley
This thread seems to have gone off-topic a bit. What about Jens' original question about why ALL requests don't go through ActionServlet?: Jens Rehphler wrote: I'm watching this list quite a while and wondered why so many people try to call there JSP pages directly from the browser. In my

Introspection

2001-03-01 Thread Kyle Robinson
Has anyone used the concept of introspection with the struts framework? I believe the idea of it is that you write a use bean line in your jsp and call the jsp:setProperty name="blah" property="*" and when the form is posted all the properties of object blah get set to the values in the

Re: Why should you call JSP pages directly?

2001-03-01 Thread Craig R. McClanahan
Chris Bartley wrote: This thread seems to have gone off-topic a bit. What about Jens' original question about why ALL requests don't go through ActionServlet?: Ideally, that's what happens. Unfortunately, there are some practical realities that get in the way: * What about your welcome

Re: Introspection

2001-03-01 Thread Craig R. McClanahan
Kyle Robinson wrote: Has anyone used the concept of introspection with the struts framework? I believe the idea of it is that you write a use bean line in your jsp and call the jsp:setProperty name="blah" property="*" and when the form is posted all the properties of object blah get set

Re: Class reloading?

2001-03-01 Thread Craig R. McClanahan
Ned Seagoon wrote: Hi guys, Just wondering about the situation that arises when an Action class is changed in a running struts environment. I was under the impression that a single instance of an action class is created and run inside multiple threads, yet if I recompile the class and

Re: ifParameterExists

2001-03-01 Thread Craig R. McClanahan
Shah Nabib El-Rahman wrote: Hello, The ifParameterExists tag seems not be working, has anyone else came across the same problem? shah It sounds like you are still using the Struts 0.5 tags. There isn't a tag named "ifParameterExists", although the following tags exist:

Re: HTTPClient vs java.net.URLConnection

2001-03-01 Thread Eric
I was using HTTPClient, but I then switched to the com.mortbay.HTTP library (it comes with one of their products or something i believe). I forget why I did so, but I think it had something to do with limitations in dealing with filenames in HTTPClient. I advise you to compare the two. eric.

Re: Validating bean properties (WAS: Re: Stupd question aboutStruts and EJB.)

2001-03-01 Thread Spencer Smith
Help! Question: Is there a simple way to set an index for an error message so that I can vary it's placement on my JSP Page? // In Action // old code errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("caremanager.mp.error.phoneFormat")); // new code (preferredDayPhone is my field name)

Re: Class reloading?

2001-03-01 Thread David Winterfeldt
Do all version of Tomcat do this? David --- "Craig R. McClanahan" [EMAIL PROTECTED] wrote: Ned Seagoon wrote: Hi guys, Just wondering about the situation that arises when an Action class is changed in a running struts environment. I was under the impression that a single

Re: Question about iterate tag

2001-03-01 Thread Nick Pellow
Shamdasani Nimmi-ANS004 wrote: IT IS UNBELIEVABLE! I have wasted so much time trying to get this to work and all that was missing in my JSP was this line: %@ taglib uri="/Web-inf/struts-logic.tld" prefix="logic" % The strange part is that I was not getting any error in the log

Re: ifParameterExists

2001-03-01 Thread Shah Nabib El-Rahman
thanks, logic:equals worked --- "If the misery of our poor be caused not by the laws of nature, but by our institutions, great is our sin" -- Charles Darwin

RE: using struts on iplanet

2001-03-01 Thread malcolm davis
GX2GX means it could not find the servlet in LDAP or registry. Doing a servlet registration is non-trival with iPlanet. You need to use the iPlanet deployment tool. -Original Message- From: Fred Lo [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 9:32 AM To: [EMAIL

Cannot deploy struts-blank.war onto j2eesdk1.2.1

2001-03-01 Thread Thai Thanh Ha
I can't deploy struts-blank.war (struts 1.0b1)onto j2eesdk1.2.1 . Has anyone done it before? Please help me!

JUNIT and Struts

2001-03-01 Thread dion
We use a JUnit extension (HttpUnit) to do all of our functional testing. We can effectively 'fake' the user submitting a form, and check for page results. We've added some code into a base test class so that we can use methods like assertPageText("xyz") or assertPageError

Form Bean

2001-03-01 Thread Sankha Das
Hi guys, I am a newbie in the Struts framework. I have to build a page where I have to show variable number of rows with each row having variable number of columns. So obviously the number of elements( Drop down, text box, check box ) will appear in the screen will be dynamic.

Unable to deploy Struts on WLS5.1 SP6 on Solaris

2001-03-01 Thread Kian Hui Teo
Hi, I keep getting the following errors during deployment. Fri Mar 02 15:46:26 SGT 2001:I ServletContext-tw *.jsp: param srcCompiler initialized to weblogic.jspc Fri Mar 02 15:46:26 SGT 2001:I ServletContext-tw *.jsp: param superclass initialized to null Fri Mar 02 15:46:26 SGT 2001:I