Problem with Struts and 2.3 Filters

2002-04-06 Thread chris . stephens
Content-Transfer-Encoding: 7bit Thanks to all those who responded with help: I have learnt something new - I did not realise the elements in web.xml had to be in the right order. I guess I'd better do XML 101 again... :( Chris PS my app is leaping ahead now I have got over that stumbling block

server side caching in struts

2002-04-06 Thread nradhika
hi, I have to implement server-side caching using Struts. How am i suppose to go abt it ? One way of doing it is to use EJBs as the backend which will be called from the action class. Cld u plzzz tell me the various ways in doing it ??? Im suppose to make an analysis o

Re: struts radio button

2002-04-06 Thread David M. Karr
> "days" == days 81 writes: days> On Sat, 6 Apr 2002 21:01:03 days> srinivas wrote: >> set the value of priorType in struts form to one of the values {"1", "2"}. >> so always this value will be selected. >> >> -Original Message- >> From: days [mailto:

Validation Solutions

2002-04-06 Thread James A. Hillyerd
I'm using Struts 1.0.2. I don't want to upgrade to 1.1 just yet. Can I use the Struts validator package with 1.0.2? Does the validator include any methods for populating a business object with the validated (and converted) data? -james -- [] James A. Hillyerd <[EMAIL PROTECTED]> - Java Soft

RE: struts radio button

2002-04-06 Thread days
Hi thanks for replying...but what do you mean by "set the value of priorType in struts form to one of the values {"1", "2"} "? Can you use an example to illustrates this? Thx -- On Sat, 6 Apr 2002 21:01:03 srinivas wrote: >set the value of priorType in struts form to one of the values {"1"

Disabling Struts multipart request handling (1.1b)

2002-04-06 Thread Vincent Aumont
Hi, It used to be (pre-1.0.2) that setting the ActionServlet's multipartClass property to "none" (in web.xml) would prevent struts from handling multipart requests. I had a look at the 1.1b code and at the nightly version and it seems that this functionality has been removed, although the docume

Re: JavaPro Magazine

2002-04-06 Thread Mark H. Nichols
Excellent! There is an article about struts here (http://www.webspherepro.com/wphome/) too! /\/\ark - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Sent: Saturday, April 06, 2002 6:49 a Subject: JavaPro Magazine > Struts got t

Problem with logic:equal and bean:define

2002-04-06 Thread stephen.chambers
All, When I use the bean:define tag inside a logic:equal, why doesn't the scriptinh variable created stay in scope outside of the logic tags? What am I doing wrong? Code snippet below: Once outside of the logic tags, even out.print(myvar); results in null. Thanks, Steve -- To u

RE: Tiles, definitions and roles

2002-04-06 Thread Wellie W. Chao
I had the same issue with certain pages (e.g. a change password page that applies to three different roles). The way I solved it was to put the role="{x}" restrictions in the put tags like so: You end up having to extend a page at a higher level in the inheritance hiera

Using html:button with Javascript

2002-04-06 Thread mike . witt
Hi, I'm using several buttons on a form, an update, a delete, and a cancel. I use the property of each button to determine which action needs to be taken. I added some javascript to the delete like: Obviously I've done this to keep records from accidentally being deleted. Problem

RE: Branch Restriction error due to struts..

2002-04-06 Thread Alex Paransky
You are posting to the wrong user list. Do not post to DEV, use the USERS mailing list instead. While I was not able to find any rags in struts, your problem has to do with the size of the servlet method exceeding 64K. You will have to resort to using dynamic includes if you still want a large

RE: CheckBox problem in struts..

2002-04-06 Thread Alex Paransky
The reset(...) method in your form needs to reset the checkbox to "false", every time. -AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -Original Message- From: Sachin [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05,

Newbie install question

2002-04-06 Thread Joe @ Team345
Hi, I'm just installing struts and just joined this list. Sorry if this question has been on the list before. I'm running Tomcat 3.2.1 on RH linux 7.1. I have struts installed and I can get to struts-documentation. However, struts-example gives me all this: *Internal Servlet Error:* java

RE: session array list

2002-04-06 Thread Galbreath, Mark
"announcementList" is a String representing the key to the ArrayList() announcement. <%@ page import="java.util/*" %> List announcement = new ArrayList( session.getAttribute( "announcementList"); Iterator iterator = announcement.iterator(); while( i.hasNext()) { out.println((String) i.next());

RE: struts radio button

2002-04-06 Thread srinivas
set the value of priorType in struts form to one of the values {"1", "2"}. so always this value will be selected. -Original Message- From: days [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 8:45 PM To: Struts Users Mailing List Subject: struts radio button Hi...anyone out th

session array list

2002-04-06 Thread days
hi there I am trying to retrieve an array list of data that I retrieved from the database from the session, but I am unsure whether I have set it correctly in my action class in the first place. The code looks like this: HttpSession session = req.getSession(false); session.setAttribute("announ

struts radio button

2002-04-06 Thread days
Hi...anyone out there knows how to set one of the radio buttons to be selected by default? In HTML, we have set it using the "checked" attribute...however under the struts form tag documentation, there isn't any "checked" attribute for the radio button. Mine appears like the following: Importa

RE: CheckBox problem in struts..

2002-04-06 Thread srinivas
reset the check box values in the struts form reset method. -Original Message- From: Sachin [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 6:35 PM To: [EMAIL PROTECTED] Subject: CheckBox problem in struts.. Hi Could anyone explain about the checkbox problem in struts if i have

Tricky javascript problem performing programmatic form submit with struts

2002-04-06 Thread Wellie W. Chao
I spent a good hour hunting down the source of my problem with trying to programmatically submit a form and thought I'd share the solution for others who are using struts. I wanted to have a select list automatically cause its containing form to submit when the value of the select list changed. Th

Re: how to add data into a form?

2002-04-06 Thread Ted Husted
Depending on the workflow, the ActionServlet may be calling reset and repopulating the bean from the request. If this is what is happening, one solution is to add a mutable property to the ActionForm, to tell the setters to ignore additional input. See http://cvs.apache.org/viewcvs/jakarta-strut

Re: bean message repost.

2002-04-06 Thread Ted Husted
That's true. You have to use a scriptlet. I agree that this would be a nice feature, and would make it easier to use the resource bundles to help format data. Please feel free to enter an enhancement request to bugzilla. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web

Re:

2002-04-06 Thread Ted Husted
With the Struts logic tags, the best you can do is nest the tags to generate the logical expression you are looking for. Often, complex logical operations are better handled as helper methods on a JavaBean. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with

Re: usage of html:options

2002-04-06 Thread Ted Husted
If the collection is stored on the ActionForm, you have to use bean:define under Struts 1.0.x For Struts 1.1, there is another tag that gets around this. -Ted. Slava_L wrote: > > we have and ActionForm with Collection field (4xmpl list of smthing) > how should i use tag html:options to f

Re: data connection limit

2002-04-06 Thread Ted Husted
I'd strongly recommend going with Poolman instead. You could pop that into your getConnection method, and the rest of the application would never know the difference. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http

Re: How to avoid a separate .jsp page for body definition when usingTemplates?

2002-04-06 Thread Ted Husted
Yes, it is easier done with Tiles. I believe there is also a technique that you can use with the Template library to get it to nest the gets and eliminate some extra pages, but you really are better off with Tiles. An important feature is that you can subclass, or extend, Tiles based on other

Re: visual Struts editor

2002-04-06 Thread Ted Husted
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html may be of some use. Some Page Designers also prefer Velocity Templates to JSPs, since the Velocity markup works well in GUI editors. http://jakarta.apache.org/velocity/index.html There is a Velocity Extension so that it works as

Re: ApplicationResources.properties part 2

2002-04-06 Thread Ted Husted
It depends on the container. Some reload resource bundles, others may not. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services K J wrote: > > So everytime you change something in this f

Re: wizard-kind interaction

2002-04-06 Thread Ted Husted
Often, these wizards are simply one big form that's been broken into several pages, and the easiest thing can be to treat is a single Action. If you use session scope for the bean, it is easy to populate it as you go. Just be sure that reset doesn't clear any properties set by an earlier page. The

Re: Dynamic Bean Populate on Submit.

2002-04-06 Thread Ted Husted
Yes, a nested syntax is supported by Struts 1.0 and later. You can have other beans on an ActionForm, such as "vo", and then call the properties as vo.getThis and vo.getThat (property="vo.this", property="vo.that") However, be very much aware that HTTP is an open and trusting protocol. Any simple

Re: struts and tomcat - Welcome list

2002-04-06 Thread Ted Husted
For the welcome page, the containers look for a physical file rather than going through the usual servlet mappings. The best solution is to define a welcome ActionForward and use that for the welcome page. <%@ taglib uri="/tags/struts-logic" prefix="logic" %> You can then use a global forward

Re: Cannot find message resources - URGENT

2002-04-06 Thread Ingo Bruell
Hi, IB> if use struts without tiles, the resources were found. But if i use IB> tiles withe the changed action class in web.xml then the resourcefile IB> is not found. IB> i am using struts 1.1-b1 with tomcat 4.03 and jdk1.4. IB> the resourcefile is configured in struts-config.xml After using th

Cannot find message resources - URGENT

2002-04-06 Thread Ingo Bruell
Hi, if use struts without tiles, the resources were found. But if i use tiles withe the changed action class in web.xml then the resourcefile is not found. i am using struts 1.1-b1 with tomcat 4.03 and jdk1.4. the resourcefile is configured in struts-config.xml so long Ingo Bruell --- <[EMAIL

JavaPro Magazine

2002-04-06 Thread Galbreath, Mark
Struts got the cover story for the April edition. Mark

RE: java.lang.OutOfMemoryError

2002-04-06 Thread Galbreath, Mark
Well, it's obviously a memory leak, and unfortunately thems are the hardest bugs of all (just ask some grizzled C/C++ programmers). There was a problem with one of the interim 1.3x JVMs with memory leakage and there is a well-documented problem with JRun 3.1 as well, but these don't apply to you.

RE: Branch Restriction error due to struts..

2002-04-06 Thread Amitkumar_J_Malhotra
it's the same here , i am in office at 6:30 pm and the show must go on . cheers amit -- To unsubscribe, e-mail: For additional commands, e-mail:

You guys know about this?

2002-04-06 Thread Galbreath, Mark
Absolutely insidious! This rivals Micro$oft's evil http://www.zdnet.com/anchordesk/stories/story/0,10738,2859775,00.html -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Branch Restriction error due to struts..

2002-04-06 Thread Galbreath, Mark
Well, I'm in the office at 7 AM on a Saturday and I'm not too happy about it. :-( Mark But I'll be damned if I'm not going to have a couple of beers for lunch!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 7:25 AM To: Struts Users

RE: Branch Restriction error due to struts..

2002-04-06 Thread Amitkumar_J_Malhotra
gr8 reply mark , very appropriate for the weekend..keep it up cheers, amit -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Branch Restriction error due to struts..

2002-04-06 Thread Galbreath, Mark
I wouldn't worry about it; no one in his/her right mind would use your page anyway. Mark -Original Message- From: Sachin [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:54 AM If my webpage contains lots of fileds(for eg., 30 text fields, 10 combo boxes, 40 check boxes)then i

Problem with logic:equal and bean:define

2002-04-06 Thread res0s9j4
All, When I use the bean:define tag inside a logic:equal, why doesn't the scriptinh variable created stay in scope outside of the logic tags? What am I doing wrong? Code snippet below: Once outside of the logic tags, even out.print(myvar); results in null. Thanks, Steve -- To unsubscr

Re: Struts 1.1 Menu demo live

2002-04-06 Thread Alex Lin
There's a missing indextools.js file "Struts Newsgroup (@Basebeans.com)" wrote: > Subject: Struts 1.1 Menu demo live > From: Vic Cekvenich <[EMAIL PROTECTED]> > === > This is my 3rd sample app: > > A demo of Struts menu running live on a web site: StrutsPlus.com. > (And you can download the ent

Branch Restriction error due to struts..

2002-04-06 Thread Sachin
Hi, Could anyone explain solution to Branch restiction problem which occurs due to struts rags. If my webpage contains lots of fileds(for eg., 30 text fields, 10 combo boxes, 40 check boxes) then i am not able to load the page. it will throw me an error which states some branching problems. if i u

CheckBox problem in struts..

2002-04-06 Thread Sachin
Hi Could anyone explain about the checkbox problem in struts if i have a checkbox in a jsp and if i set the value of the bean to yes, true or on, the checkbox will be checked. But if i try to set the value of the checkbox in the bean it is not getting set. if i submit data from checkbox it is not

RE: Urgent: xml with struts

2002-04-06 Thread Yugandhar_Reddy
Thanks a lot -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:51 AM To: [EMAIL PROTECTED] Subject: RE: Urgent: xml with struts If all you're trying to do is convert data between java objects and XML you might want to look at Castor or