creating tld(help)

2004-09-12 Thread vineesh . kumar
Can someone suggest a good example of creating a jsp custom tag and using it?. Actually i want to access a vector object at the request scope and tried to write a tld and the class. my tld has the attribute name and at in the tld handling class i tried like this Vector vect=(Vector)page

Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-12 Thread Michael McGrady
*The following is from http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified . If you don't like this solution, I would be interested in your thinking, Rick. If you are interested, I have a comprehensive solution to everything to do with buttons and images. I am going to add

RE: PlugIn/ ActionServlet init() method called 2 times in Linux

2004-09-12 Thread Sachin Bhutada
hi Uma, If the same application is working fine with tomcat + windows and not working with tomcat+ linux, try out follwoing,it may solve ur problem for time being. 1)Use one more servlet and integrate with struts instead of using plug-in or extending ActionServlet.This but b

PlugIn/ ActionServlet init() method called 2 times in Linux

2004-09-12 Thread Uma Yarakaraju
Hi, Can anyone pl help on my below mail? Some more things I noticed are: I downloaded the latest struts-1.2.2 zip. To the struts-blank.war I added a simple plugin class (that prints system.out.println in the constructor, init, and destroy methods) called MyPlugIn.java. I deployed the struts-bl

Re: [Gmail] - All gone,

2004-09-12 Thread Emmanouil Batsis
Ruben Cepeda wrote: Guys, I just ran out. No you didn't. I already have one so I'm not going to use your invitation... thanks! Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problem in defining tab inside JSP file

2004-09-12 Thread Sachin Bhutada
hi Manisha, Just read the error messges very carefully hence forth. [ServletException in:RoomListContent.jsp] No getter method for property testvar of bean org.apache.struts.taglib.html.BEAN' Struts Framework is trying to look for the property of the specified bean which have linked with thi

Problem in defining tab inside JSP file

2004-09-12 Thread Manisha Sathe
I am totally new to structs / JSP / Java. I am modifying the existing program. Want to put one html tag inside the JSP file. I tried but i always get error [ServletException in:RoomListContent.jsp] No getter method for property testvar of bean org.apache.struts.taglib.html.BEAN' Pls

Trying to come up with a Mapping-Dispatch combo Action

2004-09-12 Thread Rick Reumann
Not sure which list this question/topic really belongs on so posting to both. (I'm bringing it up on the dev list because I'm thinking maybe the base MappingDispatchAction could/should be modified). Some design background. I like to keep related tasks belonging in one Dispatch Action class (fla

Re: [OT] How to sort with ?

2004-09-12 Thread Zoran Avtarovski
Hi Craig, The displaytag taglib (displaytag.sf.net) already has this functionality and supports el. Being open source you could also customise to your needs. Zoran > Hi, > > Is there an easy way to have the JSTL forEach tag sort the collection of > items before looping through them? Currently I

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-12 Thread Yves Sy
Dude all you have to do is do something as simple as entering "ListUtils" in Google and you'll find out. -Yves- On Mon, 13 Sep 2004 17:04:18 +1200, struts Dude <[EMAIL PROTECTED]> wrote: > Just a silly question. > > Where did ListUtils come from?? I can't find this > in my JDK1.4.2. > > Thanks

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-12 Thread Peng Tuck Kwok
On Mon, 13 Sep 2004 17:04:18 +1200, struts Dude <[EMAIL PROTECTED]> wrote: > Just a silly question. It isn't silly, don't worry about it :P . > Where did ListUtils come from?? I can't find this > in my JDK1.4.2. ListUtils is part of Commons Collections. Specifically you can find the java docs her

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-12 Thread struts Dude
Just a silly question. Where did ListUtils come from?? I can't find this in my JDK1.4.2. Thanks - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 7:40 AM Subject: Re: Not happy with approa

Need example of using DynaActionForm with ArrayList (1.1)

2004-09-12 Thread Antony Paul
Hi all, Using Struts 1.1. I have an ActionForm in which displays an array of items. I want to use DynaValidatorForm here which uses ArrayList as property holders. I am able to pre-populate the form. I have trouble in displaying the values and on submission nothing is populated. If somebody

RE: Struts, Tiles and CSS

2004-09-12 Thread Joe Hertz
Not exactly sure what you are asking here. I have a multilingual app, which uses tiles and a different CSS for each language implementation, and I do something like this: I create a separate message resource bundle (sys) for system specific configuration information (rather than user messages), l

[ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-12 Thread Martin Cooper
The Struts 1.2.4 Test Build is now available here: http://cvs.apache.org/dist/struts/v1.2.4/ This build fixes some problems with the 1.2.3 Test Build, and fixes some additional outstanding issues. Once feedback has been collected on the stability and quality of this release, a determination will

RE: Simple log4j.properties HELP

2004-09-12 Thread David G. Friedman
>From your log4j.properties file, you should find more information in the log file named under the "rolling" appender which your .properties file listed as being at: ${catalina.home}/logs/webcontact.log Regards, David -Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: S

Re: Simple log4j.properties HELP

2004-09-12 Thread struts Dude
Hi David, I don't have this file, no idea where that is supposed to be. I just drop a log4j.properties file in /WEB-INF/classes of my web app. Thanks - Original Message - From: "David G. Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, Sep

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-12 Thread Leandro Melo
I guess it depends about what you really want for your app. Is it just a project? Is it a product? Will it need maintance? Do you care about best software engineering? How much time do you have? My opinion is: ---> please answer this questions (just came up on my mind at the moment). Want a n

Struts, Tiles and CSS

2004-09-12 Thread Giuseppe Di Guglielmo
I'm using Struts and Tiles; please, I want to know which is the most simple way to import more css for a specific page, without charging all css files (only the files I need). Which is the best practice? I need putting some test in the "servlet" or testing on the jsp? If I put tests in the servlet,

Re: Protecting files question

2004-09-12 Thread mail
A better choice, at least in my mini brainiverse ;-) would be a servlet. You then map an url pattern and have a 100% transparent solution. One major benefit is the possibility to exchange the, for eg., file system based servlet with a DB based one without needing to change even one line of code in

RE: Protecting files question

2004-09-12 Thread Joe Hertz
Okay, so I do write the image out. Whew. Very helpful. tx. I'm writing the files above my app's directory, so as long as tomcat doesn't let people use ".." in their URL's, I don't see a problem here. If the Action itself checks for user validity, and the files aren't accessible any other way, wou

Re: Protecting files question

2004-09-12 Thread João Vieira da Luz
Hi, The Blob or file system are very similar in what concerns security. In the first one you have to do an action that writes the file into the output stream. Suppose that your files have and action is called /showFile. Html should look like this; About security: IMO you have two choices. The

RE: Protecting files question

2004-09-12 Thread Joe Hertz
Okay, the action attribute was actually the obvious choice (matching the same attribute on the link tag). So how does one do this? > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 12, 2004 6:56 PM > To: 'Struts Users Mailing List' > Subject: Prote

Protecting files question

2004-09-12 Thread Joe Hertz
This has probably been asked before. Apologies if so, I didn't see anything close enough. This exact scenario is a bit different and more complicated than this, but if this problem can be solved, I can work out the rest. Say I want people to upload images using html:file, and have implemented tha

RE: Validation error,

2004-09-12 Thread Ruben Cepeda
David, It is saying that the class is not found. I have stop working with it right know because I am just using the server-side validation. * Ruben Cepeda [EMAIL PROTECTED] * Original Message Follows From: "David G.

Problem using Database utils From Scaffold,

2004-09-12 Thread Ruben Cepeda
Hey All, I am trying to use the Scallfold AccessBase Class and find myself getting the following error: ResourceException e: No value specified for parameter 2 This is my sql Statement: sql: SELECT firstname,lastname,affiliation,username,password FROM users WHERE username=? AND password=?; Th

Re: Specifying validation field per Form, only way????

2004-09-12 Thread João Vieira da Luz
Hi, yes for the first question. no for the second. Probably, you can implement a base class for that forms that contain name field and implement the validation for that field on validate method. Hope this help you, João On Sat, 11 Sep 2004 15:01:23 -0300 (ART), Leandro Melo <[E

Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-12 Thread Anders Jacobsen
Hi I think this place would be a good place to good some colored ;) comments on and Web applications implemented with J2EE w./ Struts and the same implemented with ASP.NET. Microsoft people tends to have just one point-of-view so I hope I could find some people who preferable had experience wi

Sequence of events for Action.execute(), ActionForm.reset(), ActionForm.validate()?

2004-09-12 Thread struts Dude
Hi, I just want to clear up the sequence of events for calling an Action from action mapping specified in struts-config.xml. Is it ActionForm.reset(), ActionForm.validate(), Action.execute()? And implication of these, any objects set to request scope within ActionForm.reset() or ActionForm.valid

Re: Seeking master detail hello world

2004-09-12 Thread Rick Reumann
Victor Grazi wrote the following on 9/12/2004 10:28 AM: For example if the page is displaying a collection of beans as an html table, and there is an update and delete button on each row, how do you pass the id of the record to those buttons and how does the Action capture the button (update or

Re: html:checkbox default value

2004-09-12 Thread Rick Reumann
Erez Efrati wrote the following on 9/12/2004 7:03 AM: If I put it in the form bean constructor wouldn't it cause the field value to be always "true" no matter if the user unchecks it and submit the form. As far as I can recall a checkbox field should be reset to false before the form population. I

Re: Question on calling .do's directly

2004-09-12 Thread Tom Holmes Jr.
Rick Reumann wrote: Tom Holmes Jr. wrote the following on 9/11/2004 7:02 PM: So, I guess the only question I have is: Is there a problem with a web-site that contains a bunch of links to various '.do' pages as opposed to '.jsp' pages? Are there any security concerns? Do I really want to have di

Seeking master detail hello world

2004-09-12 Thread Victor Grazi
Can you point me to a small but complete master detail struts program? I am having trouble understanding how to set this up, especially with buttons on each row. For example if the page is displaying a collection of beans as an html table, and there is an update and delete button on each row, h

OT: Cure for Mac Envy is ...

2004-09-12 Thread Vic
Linux: http://www.bytebot.net/talks/FC3-t2rawhide-whatsnew.pdf Fast, stable and good looking. .V -- Please post on Rich Internet Applications User Interface (RiA/SoA) - To unsubscribe, e-mail: [EMAIL PROTE

XDoclet + Struts validator question

2004-09-12 Thread Eric Chow
Hello, How can I define the xdoclet tag for struts validator that the validated field muct depends to another field ?? For example, if the "action" is "new" then all the fields(name, sex) must be required. if the "action" is "edit" then only the "name" is required !!! Please give me a hand. Be

no default struts config - NullPointerException

2004-09-12 Thread Nathan Coast
Hi, if this is the only module defined in the web.xml I get a NullPointerException config/upload /WEB-INF/upload/struts-config.xml if I add this, the problem goes away config /WEB-INF/upload/struts-config.xml is this correct? Is it mandatory to have the

RE: html:checkbox default value

2004-09-12 Thread Erez Efrati
If I put it in the form bean constructor wouldn't it cause the field value to be always "true" no matter if the user unchecks it and submit the form. As far as I can recall a checkbox field should be reset to false before the form population. Erez -Original Message- From: Craig McClanahan

Re: Back Button Problem

2004-09-12 Thread venkat raju
Hope the following helps to get to the root of the problem; I am using post method to submit the form. And sometimes when I click on back button, it says "Handler parameter not found". Is it some known bug in Struts or Tiles? --- venkat raju <[EMAIL PROTECTED]> wrote: > Hi All, > > I have

Back Button Problem

2004-09-12 Thread venkat raju
Hi All, I have got a strange problem. I am using Struts 1.1 and tiles. When I click on the back button, I want the page to be loaded from cache. But to my surprise, its behaving strange. For instance, I open a new browser instance and I open Page1. Then I submit this page to get Page2. No