RE: Tiles and ControllerClass

2003-09-25 Thread Alex Shneyderman
Yep, you gotta extend the right class. Try to extend org.apache.struts.tiles.ActionController instead > -Original Message- > From: Jim Theodoridis [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 2:27 PM > To: Struts Users Mailing List > Subject: Tiles and ControllerCla

RE: How to expose DynaValidator in Action?

2003-09-25 Thread Alex Shneyderman
One of the parameters to the execute in your action Is ActionForm form So String submittedEmail = (String) ((DynaActionForm) form).get ("email"); Should do it for you. > -Original Message- > From: Barry Volpe [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 2:08 PM >

Is there a nice ExceptionHandler mechanism in struts for Throwable?

2003-09-23 Thread Alex Shneyderman
I have looked at ExceptionHnadlers and find them pretty nifty. Is there a way to do similar thingy with Throwables? I tried to set ExceptionHandler to catch (type attribute) Java.lang.Throwable but it does not work and I get the ugly ServletException as my page to the user? Thanks, Alex.

RE: Passing errors that occur in an Action to the presentation tier

2003-09-22 Thread Alex Shneyderman
There is a protected method in Action class Called saveErrors (ActionErrors, HttpServletRequest) So when you detected an error you can create ActionErrors Object and use the method above right before you redirect to The view. As for exceptions: you can declare exceptions handlers In your strut

RE: Iterating Page by page

2003-09-11 Thread Alex Shneyderman
Use pager tag. You can find more info at http://jsptags.com/tags/navigation/pager/index.jsp > -Original Message- > From: Mahbub ul Huq Bin Kabir [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 11, 2003 12:50 AM > To: [EMAIL PROTECTED] > Subject: Iterating Page by page > > Hi, >

RE: Changed fields in ActionForm

2003-08-27 Thread Alex Shneyderman
1. You'd need to write javascript on the client side. I have a script that will determine if something was changed on a form, which you could probably change to display what was changed. If you are interested let me know and I will send it to you. 2. As to the server side, there are plent of ways

Validation of multiple forms gets to be problematic

2003-08-26 Thread Alex Shneyderman
I have two forms both of which will need to use validators. My JavaScript is messed up. Suppose I have form A { fieldA1 - required, fieldA2 - required } B { fieldB1 - required } When javascript is generated it generates two scripts both of which have required () method. What do I do to avoid t

RE: DynaForm Beans and Indexed Text fields.

2003-08-24 Thread Alex Shneyderman
> In the StrutsAction I use to preload the form? yep If you specify name attribute for your action mapping struts will create form bean upon request to your action. So whatever action causes your bean to be instantiated would need scope attribute to be set to session. Alex.

RE: DynaForm Beans and Indexed Text fields.

2003-08-24 Thread Alex Shneyderman
You should set scope of the bean as session. > -Original Message- > From: Joel [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 24, 2003 11:59 AM > To: [EMAIL PROTECTED] > Subject: DynaForm Beans and Indexed Text fields. > > > I'm having a problem using Indexed text fields with DynaActi

RE: how many concurent users on the system

2003-08-22 Thread Alex Shneyderman
It is impossible to show how many users. What is possible is to show how many sessions are open and what is the idle time for the session at a given moment. If you use tomcat there is a manager (not admin) app that comes with it. It is pretty cool to play around with it. You can do other things wit

RE: Quick Java question..

2003-08-21 Thread Alex Shneyderman
You can make your parms Object [] This way you can pass as many params as you want. Of course you will need to keep track of what element is what. Maybe Java 1.5 will have the feature you are looking for :-) Alex. > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > Se

RE: File Upload error

2003-08-21 Thread Alex Shneyderman
Make sure you do not have another file upload jar in your classpath. Where are you hosting your app, what OS? Alex. > -Original Message- > From: Erez Efrati [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 21, 2003 11:14 AM > To: 'Struts Users Mailing List' > Subject: File Upload error

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
pplication to www.someapp.com/example > > This must be already being done in numerous companies but I don't > know how we can achieve this at the moment. > > --- In [EMAIL PROTECTED], "Alex Shneyderman" <[EMAIL PROTECTED]> wrote: > > > > The way contai

RE: [OT] get abs path to my web application root context

2003-08-19 Thread Alex Shneyderman
request.getSession ().getServletContext ().getRealPath ("/"); > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 9:10 AM > To: Struts Users Mailing List > Subject: [OT] get abs path to my web application root context > > Hi All > > This may

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
> You are right and I am already using the struts html tag but the > action is still being remapped. > > My jsp form declaration is as follows :- > > > > When the application is deployed in app.war it becomes :- > > > > This would not ordinarily be a problem but /app is not the URL the > bus

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
The way container works is to deploy an application to its own content. The way your container knows which application a user request refers to is by looking at the prefix of the request. So unless you mount your application onto the ROOT content (prefix "/") I can not imagine what you are asking

FW: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
Globals.MESSAGES_KEY)).getMessage (null, "host.name"); null is for Locale if you have a locale you want the message for specify it there, other wise default will be taken. Alex. > -----Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, Augu

RE: JBoss

2003-08-14 Thread Alex Shneyderman
> > Hi all, > I often hear that established businesses prefer containers such as web > sphere and web logic rather than JBoss to host their EJB. The reason is > that JBoss does not have customer service should some troubles come up. They just annonced it, so this point is probably not valid anym

RE: Validator for checkboxes input field

2003-08-14 Thread Alex Shneyderman
> > Out of curiosity, how do you group a number of checkboxes? > You name then tha same and what you get on the server side is a list of values. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Date fields?

2003-08-14 Thread Alex Shneyderman
Hmm, I am a bit confused about Date fields I have a field in my form bean of java.util.Date type. I put struts tag to capture the input from the browser. When I submit the request I get the following exception: java.lang.IllegalArgumentException: argument type mismatch It seems that Bea

RE: Simple question

2003-08-14 Thread Alex Shneyderman
-Original Message- > > From: Norr, Peter [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 12, 2003 10:22 AM > > To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' > > Subject: RE: Simple question > > > > > > Should I use an onclick

RE: 'action' variable on a submit button?

2003-08-14 Thread Alex Shneyderman
> -Original Message- > From: yan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 13, 2003 7:41 PM > To: [EMAIL PROTECTED] > Subject: 'action' variable on a submit button? > > What is the equivalent to this > > > on an tag > > i.e, how do I define the 'action' variable on a submit

RE: why no

2003-08-14 Thread Alex Shneyderman
it will render the way you want it. Alex. > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 12:00 AM > To: Struts-Users > Subject: why no > Hi; > > Wouldn't it be useful if you could do: > > > Instead of: > today --

RE: Why Action Classes are implemented as Singleton

2003-08-14 Thread Alex Shneyderman
> Why is it so .. If we have a common resource in an Action class which > is > shared by all the requests and it should be in session scope then how to > handle this situation ?? This, sounds like an application scope resource. Create a context listener, initialize the resource and attach it t

RE: Button labels and DispatchActions mix?

2003-08-14 Thread Alex Shneyderman
Yeah but the question was that he wanted the mapping to occur. So say you have a button and you want to call it Reset Password. Your dipatch action would have a corresponding method called rstPasswd. Now how do you map it? If I submit my form the value of method parameter is going to be "Reset Pass

RE: [OT] TLD question

2003-08-14 Thread Alex Shneyderman
This is easy to check if you run your server localy. Unplug your machine and look what happens. But the short answer is 'no' it does not. It goes thru your TLD and finds that URL. > -Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 3:29 P

RE: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
You can get the value for your key like this from within your action. getResources().getMessage ("host.name") so your resources: errors.required=Required {0} host.name=Hostname and the code: new ActionError("errors.required", getResources().getMessage ("host.name")); The only thing is this me

RE: Struts is incomplete

2003-08-14 Thread Alex Shneyderman
Why would they, your ignorance should talk for itself. What kind of mistakes did you find? Scream openly about mistakes without disclosing them is fairly silly. If you had something concrete to say people would at least help you. Quite frankly I found the book and the docs more than enough to st

RE: Simple question

2003-08-14 Thread Alex Shneyderman
Use tag. > -Original Message- > From: Norr, Peter [mailto:[EMAIL PROTECTED] > Sent: Monday, August 11, 2003 6:26 PM > To: 'Struts Users Mailing List' > Subject: Simple question > > How do I use my own image in a or tag? > > ---

RE: [Q] Struts and date formatters

2003-08-14 Thread Alex Shneyderman
h > means we have to reduce the number of libs we import. > It sucks, but its reality. :( > > > > --- Alex Shneyderman <[EMAIL PROTECTED]> wrote: > > Use JSTL's formatDate tag. Very easy to use and lets > > you format your > > date any way yo

RE: Design question

2003-08-14 Thread Alex Shneyderman
There is a workflow extension for struts. I have read the docs, but did not use it. You can take a close look at it here http://www.livinglogic.de/Struts/ Alex. > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 10, 2003 7:18 PM > To: Struts-Users

RE: Nobody know how to replace a struts submit button by an image ?

2003-08-14 Thread Alex Shneyderman
Just put tag inside your form and it will be rendered as element of your HTML. If someone clicks your image the form will be submitted. > -Original Message- > From: Florent LOTHON [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 7:08 AM > To: Struts > Subject: Nobody know how t

RE: Dynamic multimedia content with Struts...

2003-08-11 Thread Alex Shneyderman
> Hello everybody : is it possible with struts tag libraries to > retrive dynamically for example pictures from a database and place them > on the jsp page on the fly Write an action that will have something like response.setContentType ("image/jpg"); OutputStream os = response.getOutputStre

RE: Newbie question: Testing if collection is != null before iterating

2003-08-11 Thread Alex Shneyderman
Check logic:notEmpty tag > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Todor > Sergueev Petkov > Sent: Saturday, August 09, 2003 12:32 PM > To: Struts Users Mailing List > Subject: Newbie question: Testing if collection is != null before > iterating

RE: Button labels and DispatchActions mix?

2003-08-09 Thread Alex Shneyderman
Woo hoo, I missed that! Thanks. > -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 8:39 AM > To: 'Struts Users Mailing List' > Subject: RE: Button labels and DispatchActions mix? > > I believe that the solution is to use a DispatchLook

RE: Nobody know how to replace a struts submit button by an image ?

2003-08-09 Thread Alex Shneyderman
Oops sorry it it is > -Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 7:35 AM > To: 'Struts Users Mailing List' > Subject: RE: Nobody know how to replace a struts submit button by an image > ? > >

RE: how to use requiredif

2003-08-08 Thread Alex Shneyderman
field[0] venueId field-test[0]

RE: Button labels and DispatchActions mix?

2003-08-07 Thread Alex Shneyderman
I guees if you want to assign the meaning to your form based on the context where you placed it, it might make some sence. Todor, you can probably create another action and extend it from your original action, where you would override getKeyMethodMap (). This will probably the least amount of wor

RE: changing to JSTL

2003-08-07 Thread Alex Shneyderman
test="${yourFormName.yourProperty ne 0}" > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 9:29 AM > To: Struts Users Mailing List > Subject: changing to JSTL > > Can anyone give a quick snippet to show how to replace the > tag with the

RE: [Q] Struts and date formatters

2003-08-06 Thread Alex Shneyderman
Use JSTL's formatDate tag. Very easy to use and lets you format your date any way you want it. Example: it is that simple. Alex. > -Original Message- > From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 8:30 AM > To: [EMAIL PROTECTED] > Subject: [Q] Stru

RE: struts validation

2003-08-04 Thread Alex Shneyderman
> the validators i used are required, minlength, maxlength etc... > but do we have problem in displaying the error messages in java script > window bcos of validators??? I do not have that problem I do not know why you do. Check to see if the JavaScript even gets to your browser. Ceck your gener

RE: struts validation

2003-08-04 Thread Alex Shneyderman
Is your browser JavaScript enabled? What validators are you using? Some of them do not have JavaScript countrparts. > -Original Message- > From: Laksh Narasimhan [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 10:35 AM > To: [EMAIL PROTECTED] > Subject: struts validation > > H

RE: using html:file and commons-fileupload

2003-08-04 Thread Alex Shneyderman
The property will have to be of org.apache.struts.upload.FormFile Type; that is probably the source of your problem Alex. > -Original Message- > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 8:25 AM > To: Struts Users Mailinglist > Subject: using html:

RE: Best place to hook the Security Call

2003-08-04 Thread Alex Shneyderman
It is securityfilter. You can find the project at http://sourceforge.net/projects/securityfilter > -Original Message- > From: Viral_Thakkar [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 7:42 AM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: RE: Best place to

RE: Can

2003-08-04 Thread Alex Shneyderman
Just decalre your IuserType as Integer upon submission Struts will convert the value. > -Original Message- > From: Andy Cheng [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 5:52 AM > To: [EMAIL PROTECTED] > Subject: Can > > Is there anyway of having the code below to return int

Tiles definition and multiple roles

2003-08-02 Thread Alex Shneyderman
I have a need to assign multiple roles to a tile definition but the attribute role only will take one. What do I need to do if I need multiple roles able to have access to the tile? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL

RE: html:radio

2003-08-02 Thread Alex Shneyderman
d. > T & R, > Prashant S > > > -Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 02, 2003 5:45 PM > To: 'Struts Users Mailing List' > Subject: RE: html:radio > > > Not sure what you mean by "

RE: html:radio

2003-08-02 Thread Alex Shneyderman
Not sure what you mean by "any way out of this". Can you be more detailed? > -Original Message- > From: Prashant Samant [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 02, 2003 5:42 AM > To: Struts Users Mailing List (E-mail) > Subject: html:radio > > Hello Group, > I have a JSP

RE: getting value of html:multibox

2003-08-02 Thread Alex Shneyderman
If you are just linking, then you are not submitting your form, that contains your checkbox. You need to rethikn your design. The only way your checkbox vaulue gets to the server thru you submitting the form, clicking the link does not do it, unless your link has some javascript that goes something

RE: NoSuchMethodException

2003-08-01 Thread Alex Shneyderman
Just a quick guess your paramaters are probably messed up? This is what you have in your descriptor > java.lang.Object, >org.apache.commons.validator.ValidatorAction, >org.apache.commons.validator.Field, >org.apache.struts.acti

RE: white space on jsp compile

2003-08-01 Thread Alex Shneyderman
What really would be cool if Jasper would have a setting to get rid of those extra whitespaces, but after your first post I looked up jasper's config settings and there does not seem to be one, or maybe there is any Tomcat experts here? I am wondering if other containers have this feature implement

RE: DynaValidatorForm question

2003-08-01 Thread Alex Shneyderman
I think the easiest way is to actually set validate to false on your action and do it manually first thing in your execute: // check for null values if there are just display the page otherwise ActionErrors errors = yourForm.validate (...); If (!errors.isEmpty ()) { return input mapping } // eve

RE: simple - import

2003-08-01 Thread Alex Shneyderman
<%= Const.MY_CONST %> > -Original Message- > From: Mike Whittaker [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 7:33 AM > To: Struts List > Subject: simple - import > > > How do you get Constants (or anything none scoped ie app/sess/req) into a > jsp for use in EL > > I can

RE: struts-el example app not working?

2003-07-30 Thread Alex Shneyderman
You uri look suspicious. I think it has to read something along <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el"; prefix="html-el" %> open up the jar, in META-INF dir there is a bunch of TLDs just read off the uris from there. > -Original Message- > From: struts [mailto:[EM

RE: Newbie question about form name

2003-07-30 Thread Alex Shneyderman
Your action is configured with a form name. Lookup action element in your struts-config.xml, Attribute of interest there is 'name' is the name of the form. When you specify action in your html:form Struts connects the dots for you. That form will be used to populate values of -Original Mes

RE: [newbie] Nested Beans

2003-07-29 Thread Alex Shneyderman
Alternatively make each submit button an indexed property of your form. Depending on how big your form is this migh be an acceptable solution. Alex. > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 9:47 AM > To: Struts Users Mailing List > S

RE: Action Chaining problems

2003-07-29 Thread Alex Shneyderman
action > chaining. > > It is recomended not to use action chaining if you want to pass attributes > in the request and use the attributes of the action forms. > You can extend the actions instead... > > Siva > > Alex Shneyderman wrote: > > > I have a ne

Action Chaining problems

2003-07-28 Thread Alex Shneyderman
I have a need to chain actions and my code looks like: OperationConfig oc = new OperationConfig (); if ((oc.getStep () == null) || "".equals (oc.getStep ().trim ())) { oc.setStep (DEFAULT_STEP); } if ((oc.getOperation () == null) || "".equals (oc.getOperation ().trim ())) { oc.setO

RE: tag generation

2003-07-28 Thread Alex Shneyderman
It looks allright to me. I do not know. > -Original Message- > From: Canning, Chuck [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 5:27 PM > To: 'Struts Users Mailing List' > Subject: RE: tag generation > > And here is the generated html -- sorry for second post, sent first by

RE: tag generation

2003-07-28 Thread Alex Shneyderman
scope="session" > validate="false"> > > > > -Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 3:50 PM > To: 'Struts Users Mailing List' > Subject: RE: tag generation

RE: tag generation

2003-07-28 Thread Alex Shneyderman
Show how you defined your ActionMapping for /myAction in struts-config.xml Also can you see any errors in your logs? > -Original Message- > From: Canning, Chuck [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 4:49 PM > To: 'Struts Users Mailing List' > Subject: tag generation >

RE: Struts and Constants ?

2003-07-28 Thread Alex Shneyderman
Well, you have to communicate somehow to your designers what data he has at his disposal to render. Constants is one way, context scoped vars is another. One way or another you will have to communicate. The way you do it is up to you. > -Original Message- > From: Emil Alexandrov [mailto:[E

RE: Struts and Constants ?

2003-07-28 Thread Alex Shneyderman
I am not sure of the books you mentioned. When I use Constants interface, which by the way is a good thing to use in my opinion, I would always get its value with the use of scriptlet at the top of the JSP <%= Constant.keyValue %> now thru my page I would only refer to myKey and not the value of

RE: Action with no associated form bean?

2003-07-27 Thread Alex Shneyderman
You do not have to have a form to call an action. You have not stated your problem. What is the problem you encountered? > -Original Message- > From: Oguz Kologlu [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 27, 2003 9:42 AM > To: Struts-User > Subject: Action with no associated form b

RE: Can Validator javascript show more than one error at a time?

2003-07-26 Thread Alex Shneyderman
It will just one type at a time: Suppose you have 3 fields A,B and C A depends="required,mask,date" B depends="required,mask" C depends="required,date" Now user fills out the form and forgets to put A and B User will see the message A and B missing When user provides A, B and C but suppose A is

RE: Calling an action from an action

2003-07-26 Thread Alex Shneyderman
ActionForward forwardTo = mapping.findForward (""); return this forwardTo from your first actions execute method. > -Original Message- > From: guruprasad jakka [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 26, 2003 6:32 AM > To: [EMAIL PROTECTED] > Subject: Calling an actio

RE: Problem: logic:notEqual does not work with null values

2003-07-24 Thread Alex Shneyderman
I think, you should use notEmpty to check for null > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 4:37 PM > To: [EMAIL PROTECTED] > Subject: Problem: logic:notEqual does not work with null values > > > Hi! > > I need to check if

RE: doFilter not executing

2003-07-24 Thread Alex Shneyderman
You did not map your filter. Use filter-mapping element to tell the container what requests need to be intercepted by your filter > -Original Message- > From: Kimberly Lane [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 3:49 PM > To: [EMAIL PROTECTED] > Subject: doFilter not ex

RE: [OT] isUserInRole problem

2003-07-24 Thread Alex Shneyderman
It is not clear form your email if your JSPs under SecurityFilter's mapping? So if you have mapping like this SecurityFilter /do/* and access your jsp like this: /index.jsp It is correct behavior then. Alex. > -Original Message- > From

RE: Pre-Setting DynaValidatorForm attributes

2003-07-24 Thread Alex Shneyderman
I am not sure if I understand you correctly, but I will try. What you basically need is to create a form bean without actually invoking the action that claims that it uses it. Did I understand you correctly? Anway to create your form bean manually you would do something like this: ModuleConfig

RE: can I iterate on Map property?

2003-07-24 Thread Alex Shneyderman
TED] > > You can use the option tag with a Map, it works just fine, but you must > use > > html:options. Here's an example: > > > > > > > > > labelProperty="key"/> > > > > > > Suzette H. Daniel > > > > -Original Messa

RE: can I iterate on Map property?

2003-07-24 Thread Alex Shneyderman
You might want to look at el tags. You can specify expressions in them to avoid iteration > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 1:23 PM > To: [EMAIL PROTECTED] > Subject: RE: can I iterate on Map property? > > No. Just

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
sers Mailing List'; [EMAIL PROTECTED] > Subject: RE: Birthdate validation ? > > Thanks for the quick reply, seems pretty easy but a bit long for just a > date. Anyway, is there a validator I could use or do I have to write one > of my own? And I mean Struts Validator.. > > Erez &

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
Be carefull with that because if you set Feb 29, 2003 your date is going to be March 1, 2003 and Calendar will not say a thing. You should probably fix a birthdate validator. > -Original Message- > From: Adam Levine [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 2:18 PM > To: [

requiredif docs?

2003-07-22 Thread Alex Shneyderman
I am looking for requiredif validator documentation. Does anyone have any pointers to it, preferebaly with examples? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using variable on JSP Page

2003-07-22 Thread Alex Shneyderman
You should put it either in WEB-INF/classes or jar it and Put it in lib. Note: if you are using tomcat and have a class that is not part of any package you might have a problem. I saw this long time ago; I was not sure if it was a bug or a feature. Anyway the practice of not putting your class i

RE: Question on how to remove a detail row?

2003-07-21 Thread Alex Shneyderman
Sorry I should have asked what is not working? > -Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 4:36 PM > To: 'Struts Users Mailing List' > Subject: RE: Question on how to remove a detail row

RE: Question on how to remove a detail row?

2003-07-21 Thread Alex Shneyderman
Do you use el tags? > -Original Message- > From: Norr, Peter [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 4:34 PM > To: 'Struts Users Mailing List' > Subject: RE: Question on how to remove a detail row? > > Ok, how do I code the onclick param?? Below does not work? > > > v

RE: Question on how to remove a detail row?

2003-07-21 Thread Alex Shneyderman
I was just thinking, never tried this, but You could change your form a bit to have an extra Property like String [] submit Now in JSP you can say When you submit this request you will have submit [array] That will have all the submit[i] empty except the i that was Actually clicked. >

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Alex Shneyderman
ion extends Action { > > Person personForm = (PersonForm)form; > String first = personForm.getFirstName(); > > } > > > -Original Message- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 200

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Alex Shneyderman
> What if you want to write an Action that can service a > family of several different ActionForms?? You can do it. Just need to do it yourself (well sort of). Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: How to get MessageResources in ValidatorForm

2003-07-21 Thread Alex Shneyderman
Check out org.apache.struts.util package. There are bunch of ways there. > -Original Message- > From: Sturzebecher Dirk (extern) > [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 12:06 PM > To: ' ([EMAIL PROTECTED])' > Subject: How to get MessageResources in ValidatorForm > > Hi,

RE: getting an ActionMapping class from within a custom tag

2003-07-21 Thread Alex Shneyderman
> -Original Message- > From: p [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 10:46 AM > To: [EMAIL PROTECTED] > Subject: getting an ActionMapping class from within a custom tag > > Hi, > > What: I would like to find the roles associated with an ActionMapping > from within a cu

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Alex Shneyderman
Sure, this is what I do. An easy way: Use Javascript. When you pop up the window and user finds his/her school you need to put the following code in your link onclick event: Javascript: "parent.document.form [''].schoolField.value='Whatever the name of your school'; window.close (); return fals

RE: error..!

2003-07-21 Thread Alex Shneyderman
There is really no code that shows that you actually attached the listdepartments bean to any of the contexts. Where do you do it? If you call your jsp directly then the error above is in deed correct. Before you are ready to display your content you have to set it up first. A good place to do it

RE: Problems in usage of tag

2003-07-21 Thread Alex Shneyderman
> > There are a tutorial how to use the Stuts Tags??? Documentation is included as a war struts-documentation.war There are User guides and API docs for tags. If you do not want to run the war as an app you can just unpack it and browse html. -

RE: in a

2003-07-21 Thread Alex Shneyderman
This is not a well formed XML document I think is illegal in XML and since custom tags are xml you can not do it. So you will have to do something like: if what is in between is the same for both actions you can always use an include to not replicate the stuff. Alex.

Tiles question

2003-07-17 Thread Alex Shneyderman
I have tiles definition file and and I use Suppose now I need item2 to be displayed only for user in role admin How would I go about doing it? There is no role attribute for item. Is there a good way to do it? Thanks, Alex.

RE: Xdoclet

2003-07-11 Thread Alex Shneyderman
They are subtasks of ejbdoclet (strutsform) and webdoclet's strutsconfigxml and strutsvalidationxml you can find appropriate tag descriptions in the docs for those modules. > -Original Message- > From: Saman Ghodsian [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2003 3:02 PM > To:

RE: Simplest way to clear DynaActionForm?

2003-07-10 Thread Alex Shneyderman
IL PROTECTED] > Subject: Re: Simplest way to clear DynaActionForm? > > > > On Thu, 10 Jul 2003, Alex Shneyderman wrote: > > > Date: Thu, 10 Jul 2003 10:49:57 -0400 > > From: Alex Shneyderman <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMA

RE: Dynamic Form Fields

2003-07-10 Thread Alex Shneyderman
> Currently, I have a DynaValidatorForm defined in my web app. Some of > the properties of this form will be completely dynamic. I will read a > database and retrieve an ArrayList. This ArrayList will contain the If I understand you correctly for (Iterator iter = al.iterator (); iter.hasNex

Simplest way to clear DynaActionForm?

2003-07-10 Thread Alex Shneyderman
What is the fastest/simplest way of clearing the DynaAcitonForm? I am looking for something like: DynaActionForm form = init here; : : logic goe s here if (need to manually clear the form) { form.clear (); // } Thanks, Alex. --

RE: options thru Map rather than Collection?

2003-07-09 Thread Alex Shneyderman
Is it working with struts html tags too or do I have to use el's? Thanks, Alex > >labelProperty="value"/> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

options thru Map rather than Collection?

2003-07-09 Thread Alex Shneyderman
Is there a way to render select options drop down thru a Map? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] JSTL

2003-07-09 Thread Alex Shneyderman
Did you try www.javasoft.com ? > -Original Message- > From: Davidson, Glenn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 11:08 AM > To: 'Struts Users Mailing List' > Subject: RE: [OT] JSTL > > I too am a bit of a newbie and have the same question plus where can we > find > g

RE: how to upload files to the server

2003-07-09 Thread Alex Shneyderman
There is an example on struts site called struts-upload. It is well commented, so try it out. If you can't find it let me know and I will email it to you directly. The file size is ~1.4M. > -Original Message- > From: Jagannayakam [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 200

RE: Multibox over a collection

2003-07-09 Thread Alex Shneyderman
> My problem is that I have a table in which every row is a object of a > formbean and has checkbox on the left which is a column of the table. So Then each row is identified somehow (indexed?). Each row will need to have that checkbox named (property) exactly the same way on each row, but you ca

RE: Passing Parameters Between Actions

2003-07-07 Thread Alex Shneyderman
How about this: ActionFroward af = mapping.findForward ("action2"); return new ActionForward (af.getName (), af.getPath () + "?rec_num=" + request.getParamater ("rec_num")); > -Original Message- > F

RE: include javascript (urgent)

2003-07-07 Thread Alex Shneyderman
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 9:35 AM > To: [EMAIL PROTECTED] > Subject: include javascript (urgent) > > Hi all, > > I'm using the Struts framework for my web application. > Unfortunatly I have to include some java

RE: is war file essential

2003-07-07 Thread Alex Shneyderman
You have a typo in your web.xml change Index.jsp to index.jsp And no it is not essential to start app as war. You can dearchive it too and it will deploy just as well. > -Original Message- > From: Jagannayakam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 7:54 AM > To: Struts Us

  1   2   >