Re: Struts Beta 03 Build Problem

2001-06-09 Thread [EMAIL PROTECTED]
Hello Craig, Yes! The optional.jar was indeed the missing ingredient. I am happily building Struts now. Thank you! On Fri, 8 Jun 2001, Oleg V Alexeev wrote: > Hello David, > > Friday, June 08, 2001, 9:06:12 AM, you wrote: > > DM> Any idea why I am consistently getting an "org.apache.tools.an

template:put and get

2001-06-09 Thread Jim Richards
I've got a situation where I want to include a header file with and then in the header file have but replace the page="" with the . Trouble is you can't nest tags. One options is to do the html without the jsp, and have but that doesn't look great, but I can't thin

form beans are not being added to the session

2001-06-09 Thread Eliot Stock
My struts-config.xml contains: So my page flow goes login.jsp -> location.jsp -> request.jsp. I expect

Re: File Upload Corrupting Zip File

2001-06-09 Thread Martin Cooper
Do you have a binary diff utility that you could use to see what changed in the uploaded file? That would be very helpful. Also, if you can tell me how many bytes were added to the file, and what type of file it was that caused the problem, that might help too. Thanks. -- Martin Cooper -

JSP translated to Tags???

2001-06-09 Thread Gogineni, Pratima
Speaking of JRUN - I was playing with their latest version 3.1 and they have a very strange concept/tool .. You can write jsp pages and name them with a *.jst extension and they get translated to a custom tag instead of to a servlet. I thought it was not a good idea - jsp to create tags to use in

RE: more strange JRUN behavior

2001-06-09 Thread Gogineni, Pratima
sadly - I see this in 3.0 as well as 3.1 which was very recently released. I havent tested the basic authentication as yet. I thought I would have more control using the form based authentication. I need to evaluate and see if the basic authentication works fine - else I should probably go with cu

Re: uploading file requires immediate serialization location?

2001-06-09 Thread Martin Cooper
Let me see if I can describe the process. 1. Check to see if the request should be treated as multipart (i.e. content type is multipart/form-data and method is POST). If not, carry on as normal. 2. Find the multipart handler or instantiate one, set it on the form bean, and call it to handle the r

Re: uploading file requires immediate serialization location?

2001-06-09 Thread Jonathan Asbell
Hello Martin. So is it POSSIBLE to save binary data in a bean? What does struts do? These are my real questions. If I have a form which besides fields, has an uploaded file, how does the bean actually handle the file? Is there a conceptual step by step you can give me. How does the ActionForm

Re: uploading file requires immediate serialization location?

2001-06-09 Thread Martin Cooper
Internally to Struts, multipart handling is provided through an interface, MultipartRequestHandler. In Struts 1.0, the only supplied implementation of this interface is DiskMultipartRequestHandler, which, as you might expect, writes "file" parts to disk as it encounters them. Struts does allow yo

Re: more strange JRUN behavior

2001-06-09 Thread George Craig
I, too, have observed this intermittent quirkiness in its authentication behavior. After reading all of their forum posts, the consensus is to use Basic authentication. I concur that it has been the most stable for container authentication in J-Run. I would shy away from Form-based authentication

Re: ACtionError Issues

2001-06-09 Thread Martin Cooper
In your description, you said: "Input on the struts-config page is department.do." I believe that is the problem. You are specifying an Action path instead of a JSP path for the input parameter in your struts-config.xml. In your element, you need to specify: instead of specifying the departm

Re: viewing combo box

2001-06-09 Thread Martin Cooper
If you need to test for the property value being null, you can use the tag. If you need to test for a vector which exists but which has no elements, you'll have to use another field in your form, as someone else suggested, or use scriptlets in your page. (A better way of handling this should appe

more strange JRUN behavior

2001-06-09 Thread Gogineni, Pratima
I have a webapp that I have been testing under both tomcat and JRUN for sometime now. About a month ago I decided to go with app server provided form based security. I tested my app on JRUN,Tomcat and Resin and it worked fine. Since then I had been working only on tomcat - now when I tested wi

Re: "Java Server Faces"

2001-06-09 Thread Martin Cooper
No, JavaServer Faces is something different. JavaServer Faces is being developed as JSR-127, the quick summary being "This specification defines an architecture and APIs which simplify the creation and maintenance of Java Server application GUIs". The idea, as I understand it, is that JavaServer

Re: html:radio tag question

2001-06-09 Thread Martin Cooper
If you specify the same value for the 'property' attribute for all the radio buttons which should be in the group, this should work. The value of the 'property' attribute (of your form or other bean) will then be used to determine which one to select when the page is initially displayed, and the s

Re: Exception handling in the ActionServlet

2001-06-09 Thread Craig R. McClanahan
On Sat, 9 Jun 2001 [EMAIL PROTECTED] wrote: > Hi, > > I would like to catch all of our project specific exceptions in one place (as a > last resort, if nobody else catches them earlier on) and handle them in a > generic way. The obvious way to do this, I think, is by overriding > processAct

Re: "Java Server Faces"

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Ian Kallen <[EMAIL PROTECTED]> wrote: > > At JavaOne today, it seemed to be suggested that j2ee would have a MVC > framework join the recommendations. Later in the talk ("scalibility > in the web tier with jsp blah blah" ridiculously long title), it > struts was alluded to

Re: Problem With Struts and Tomcat

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Thomas L Richards wrote: > Ok, I've got a bit of a headache and here's the cause: > > I'm using Visual Age for Java 3.5.2, with Tomcat 3.1. That works fine. > I installed Struts 1.0-b3 with Xerces 1.4.0. > Then I installed the struts-example.war file. That installed fine to

Re: default select on radio

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Kiet Nguyen wrote: > how do I set default values for radio and checkboxes. > I normally use boolean properties in my form beans for these. You can set them to appropriate defaults when the bean is first created (i.e. in the constructor) just like you can set all the Strin

Re: JSP expressions inside custom tags

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Erich Meier wrote: > Hi! > > I am evaluating struts for a new project. One problem I wasn't able to solve > was the integration of JSP expressions inside the attributes of > custom tags. > > My code looks like this: > > > <% String name = ((PElement)pelement).getName();

RE: Javascript Validation

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote: > i just find it sometimes easier to move all validation off the jsp, and > hence all java off the jsp. I think its just basically a personal > preference. This way I'm making full use of the struts error handling model > and keep all my java in

Re: Struts Beta 03 Build Problem

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Oleg V Alexeev wrote: > Hello David, > > Friday, June 08, 2001, 9:06:12 AM, you wrote: > > DM> Any idea why I am consistently getting an >"org.apache.tools.ant.taskdefs.optional.TraXLiason" ClassNotFoundException when >trying an "ant dist" build of jakarta-struts-1.0-b3-

Re: Struts Beta 03 Build Problem

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, David McLure wrote: > Any idea why I am consistently getting an > "org.apache.tools.ant.taskdefs.optional.TraXLiason" > ClassNotFoundException when trying an "ant dist" build of > jakarta-struts-1.0-b3-src using Ant 1.3 on both NT and Linux? I have > what seem to be the onl

RE: Can anyone help with solving the "BACK" button problem, in th e browser?

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote: > yes, but this is a form that is being filled in like a wizard type of thing, > i need the form to be session > any ideas, for an alternative? > The alternative approach is to have *all* of the input fields for the entire wizard included on e

Re: Can you do this with internationalisation.

2001-06-09 Thread Craig R. McClanahan
On Thu, 7 Jun 2001, Alex Colic wrote: > Hi, > > my boss wants me to set up one of my apps written using struts for a demo. > He wants to have a web page with a couple of flags. The use clicks on of the > flags and enters the program using the language they selected. > > Not having gone down t

Re: Can anyone help with solving the "BACK" button problem, in thebr owser?

2001-06-09 Thread Craig R. McClanahan
On Thu, 7 Jun 2001, Dudley Butt@i-Commerce wrote: > Please help, > > When the user pushes the back button, I want the page to redirect or refresh > to a different page, please, any ideas? > > Thanx guys and gals > Dudley > The server doesn't really get involved in the back button -- any sol

Re: Problem with struts example

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote: > Has anyone run into this problem? When I try to run the struts-example page > I get the following error: > > org.apache.jasper.JasperException: Unable to compile class for > JSP/home/carol/web/enhydra3.1/work/Struts/_0002findex_0002ejspindex_jsp_0.

Re: ClassNotFound Exception in struts-example (b3)???

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Ritter, Steve wrote: > Hello, I've got struts-b3 installed here and we were stepping through > the struts-example. A problem arises when I click on the "submit" > button in logon.jsp -- I get a ClassNotFound exception: > > [06/06/2001 16:12:39:511|17000] (ERROR) request_ha

Re: Can I have NO action?!

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote: > > > Hi. I have a form where I display the current filename, and allow them to > change it. As such, I don't need to do anything in the action, just let Struts > populate the form bean. > Without an Action, how would Struts know where to go nex

Re: ActionForm/Action with edit mode

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, John Hogan wrote: > All, > > I have a situation where it is desirable to use a form/page for both > adding new info and editing existing data. The new info scenario is > straight forward struts ActionForm/Action classes. What I'm > wrestling with a bit is the edit scen

Re: What happened to the 'etc','src' and 'web' directories in Struts binary download?

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Shamdasani Nimmi-ANS004 wrote: > Hi, > > I just downloaded Struts 1.0-b3 and found out that 'etc', 'src' and > 'web' directories are no longer there. What happened to these? It was > convenient to get the source code also in one shot of download. > > -Nimmi > > They we

Re: Where can I get the latest version of Jasper?

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Ritter, Steve wrote: > Does anyone know how I get the latest version of Jasper? Do I have to > download Tomcat and if so which version? > > Thanks in advance!!! > > --Steve > Jasper is not packaged separately from Tomcat -- you'll need to get Tomcat if you want it. Cra

Re: Need your help --> Digester class

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Hartmut Bernecker wrote: > Hi, > > I want use the Digester class to populate some objects with XML-Data. > The Properties of the objects have not identical names to the > XML-Attributes. > Therefore I need a mapping. > Am I right, when I search for a solution with that stat

RE: Form based authentication

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Jon.Ridgway wrote: > Hi, > > When using form based auth the web container will under take the auth using > the j_password & j_username supplied. So it all depends on which container > you are using. Tomcat for example allows you to map to a database containing > user and ro

Re: Query: ActionMappings

2001-06-09 Thread Craig R. McClanahan
On Tue, 5 Jun 2001, Upadhye, Sujit (GEAE, Foreign National) wrote: > Hello, > > In local-forwards, can I forward the control to another Action object > instead of forwarding to a JSP? Yes. In effect, you are chaining multiple actions together. Just set the "path" in your element to a path

Re: throwing Exceptions from perform()

2001-06-09 Thread Craig R. McClanahan
On Tue, 5 Jun 2001, Jonathan wrote: > I am seeing that I can only throw IOException and ServletException > from my Action classes. Now I was thinking about adding Exceptions to > the Action class but that would make it proprietary. I could add just > Exception, but I dont want to change anyth

Re: Need help with "Can't remove attributes from request scope"probl em.

2001-06-09 Thread Craig R. McClanahan
On Tue, 5 Jun 2001, Ritter, Steve wrote: > Hi everyone, > > We ran into a problem running b2/b3 on Servletmill that others seem to > have hit with WTE. It occurs when trying to access the login page > from struts-example, you get an IllegalArgumentException with message > "Can't remove attrib

Re: input in XML config

2001-06-09 Thread Craig R. McClanahan
On Wed, 6 Jun 2001, Jonathan wrote: > I for one dont even understand the value in the "input value" parameter. > There could be MANY pages that got you to the page you are on. The "input" > value just makes one possible origin available for you to have as a return > target should things go fow

Re: "multiple" selectlists

2001-06-09 Thread Craig R. McClanahan
On Mon, 4 Jun 2001, Dante le Poole wrote: > Hi all, > > Can Struts deal with selectlists which allow multiple selections? Sure. There is an example of this on the "html-select.jsp" page in the exercise example application. Basically, you say something like: ... > If so, how shou

Re: Resetting an Action Form (urgent)

2001-06-09 Thread Craig R. McClanahan
On Mon, 4 Jun 2001, Mikkel Bruun wrote: > Hi Guys, > > Please help me out on this one... > > I ran in to a small problem... > > 1. In the system im developing the user has to go through several pages, > entering information that needs to be processed... > 2. When ever the user enters invali

RE: org.apache.struts.example.ApplicationMapping

2001-06-09 Thread Craig R. McClanahan
On Mon, 4 Jun 2001, Hampton, Paul wrote: > > > > ActionServlet depends on ApplicationMapping. It's one of the classes > > defined in struts.jar, check your struts.jar is in your classpath. > > > struts.jar is in my classpath, this exception is thrown at runtime & there > is no org.apache.st

Re: No context loader error

2001-06-09 Thread Craig R. McClanahan
On Mon, 4 Jun 2001, Jan Fredrik Øveraasen wrote: > Hi > When I try to deploy my struts-application to a SilverStream app. server I > get the following error message: > > No context class loader: java.util.collection > "No context class loader" seems like an odd message (it's not coming from

Exception handling in the ActionServlet

2001-06-09 Thread klaus . bucka-lassen
Hi, I would like to catch all of our project specific exceptions in one place (as a last resort, if nobody else catches them earlier on) and handle them in a generic way. The obvious way to do this, I think, is by overriding processActionPerform in our own ActionServlet and catch Exception's

Re[4]: Can you do this with internationalisation.

2001-06-09 Thread Oleg V Alexeev
Hello Valery, Saturday, June 09, 2001, 1:56:53 PM, you wrote: VK> Thank you for your response. VK> I try do your solution with VK> only litle change (I'm beginer in struts .May be I understand you) VK> type="some.package.LanguageAction" VK> VK>name="la

Re: Problem With Struts and Tomcat

2001-06-09 Thread Dan Miser
You don't *need* VAJ 3.5.3 to run 3.2.1. Of course, you need to do things yourself as opposed to using the IBM Tomcat integration offering. If you have specific problems with your config, post them here and I should be able to help out. Also, there's an article on VADD that outlines most of the th

uploading file requires immediate serialization location?

2001-06-09 Thread Jonathan Asbell
Hello all. I am just trying to understand an aspect of a multipart request.  When you submit after using an input of type "file", do you have to provide an immediate location for the file to be serialized to, or can you store it in a java object (in a bean's field) as a binary object until y

Re: Re[2]: Can you do this with internationalisation.

2001-06-09 Thread Valery Kocubinsky
Thank you for your response. I try do your solution with only litle change (I'm beginer in struts .May be I understand you) name="languageForm"> It's work. But how I can know in LanguageAction url of page where I click choose language. I need this ,becouse I want

Re[2]: Can you do this with internationalisation.

2001-06-09 Thread Oleg V Alexeev
Hello Valery, Saturday, June 09, 2001, 11:42:43 AM, you wrote: VK> Hello VK> My boss wants to have each web page with link of language choose. VK> Now each page have 2 link : french and english.I define link as VK> VK> and VK> 1. create action to perform language switch - LanguageAc

RE: Can you do this with internationalisation.

2001-06-09 Thread Valery Kocubinsky
     Hello   My boss wants to have each web page with link of language choose.   Now each page have 2 link : french and english.I define link as and   But I have problem with populate form . For example :    For modify category page I create Action EditCategoryAction. This action popula