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 To:

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 ControllerClass

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

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, I'm

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

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

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

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. action path=/yourAction

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

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: 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]

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

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 :- html:form action=example When the application is deployed in app.war it becomes :- html:form action=/app/example This would not ordinarily be a

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 be a bit

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
we can achieve this at the moment. --- In [EMAIL PROTECTED], Alex Shneyderman [EMAIL PROTECTED] wrote: 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

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

2003-08-14 Thread Alex Shneyderman
Just put html:img tag inside your form and it will be rendered as input type=image 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

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: [Q] Struts and date formatters

2003-08-14 Thread Alex Shneyderman
, 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 you want it. Example: fmt:formatDate value=${yourDate} pattern=-MM-dd HH:mm / it is that simple. Alex. -Original

RE: Simple html:submit question

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

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

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 PM

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

RE: why no html:option property=...

2003-08-14 Thread Alex Shneyderman
html:option value=today / 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 html:option property=... Hi; Wouldn't it be useful if you could do:

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 method

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 to

RE: 'action' variable on a submit button?

2003-08-14 Thread Alex Shneyderman
html:submit property=action value=edit / -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 html:link

RE: Simple html:submit question

2003-08-14 Thread Alex Shneyderman
?? -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 7:29 AM To: 'Struts Users Mailing List' Subject: RE: Simple html:submit question Use html:image tag. -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent

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 html:text 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

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:

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 anymore.

FW: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
)).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, August 06, 2003 9:55 AM To: 'Struts Users Mailing List

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 How

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.getOutputStream

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

2003-08-09 Thread Alex Shneyderman
Oops sorry it it is html:image -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 ? Just put html:img tag inside your

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

RE: how to use requiredif

2003-08-08 Thread Alex Shneyderman
field property=phone depends=requiredif arg0 key=venue.phone / var var-namefield[0]/var-name var-valuevenueId/var-value

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 logic:equal tag with

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

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: fmt:formatDate value=${yourDate} pattern=-MM-dd HH:mm / it is that simple. Alex. -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06,

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

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: 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:file

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 Hi *,

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

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

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 page in

RE: html:radio

2003-08-02 Thread Alex Shneyderman
-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 any way out of this. Can you be more detailed? -Original Message- From

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:

RE: simple - import

2003-08-01 Thread Alex Shneyderman
c:set var=yourVar%= Const.MY_CONST %/c:set -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

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 } //

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

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,

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:[EMAIL

RE: Action Chaining problems

2003-07-29 Thread Alex Shneyderman
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 need to chain actions and my code looks like: OperationConfig oc = new OperationConfig

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

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 c:set var=myKey%= Constant.keyValue %/c:set now thru my page I would only refer to myKey

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

RE: html:form 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: html:form tag

RE: html:form 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: html:form tag generation And here is the generated html -- sorry for second post, sent first

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 ())) {

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 bean?

RE: Calling an action from an action

2003-07-26 Thread Alex Shneyderman
ActionForward forwardTo = mapping.findForward (your other action mapping); 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]

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 not

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 use the

RE: can I iterate on Map property?

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

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: [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 filter-mapping filter-nameSecurityFilter/filter-name url-pattern/do/*/url-pattern /filter-mapping and access your jsp like this:

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

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 the

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:

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
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 -Original Message- From: Alex Shneyderman

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

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: html:form in a html:logic

2003-07-21 Thread Alex Shneyderman
This is not a well formed XML document tag1 tag2 /tag1 /tag2 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: logic:equal name=responseActionForm property=aBoolean value=true html:form method=post action=/action1.do

RE: Problems in usage of html:select tag

2003-07-21 Thread Alex Shneyderman
html:select property=language html:select property=language onchange=javascript: submit () 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

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: 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 ['formname'].schoolField.value='Whatever the name of your school'; window.close ();

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 custom tag,

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, I

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: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Alex Shneyderman
= personForm.getFirstName(); } -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 12:31 PM To: 'Struts Users Mailing List' Subject: RE: html:form tag and coupling between ActionForm and Action What if you want to write

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 html:submit property=submit[$iter.count] value=removeConstraint/html:submit When you submit this request you will have submit [array] That will

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? c:forEach

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? Do you use el tags? -Original Message

Tiles question

2003-07-17 Thread Alex Shneyderman
I have tiles definition file and and I use putList name=items item value=item1 link=link1 / item value=item2 link=link2 / /putList 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

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:

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: 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.hasNext

RE: Simplest way to clear DynaActionForm?

2003-07-10 Thread Alex Shneyderman
: 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 [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject

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 can

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, 2003

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 good

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: 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 html-el:select property=type html-el:options collection=contactTypes property=key labelProperty=value/ /html-el:select - To unsubscribe,

RE: db connection pooling

2003-07-07 Thread Alex Shneyderman
Use jakarat DBCP. If you read thru tomcat's (that is if you use tomcat) howto's they explain how to set it up. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 12:39 AM To: [EMAIL PROTECTED] Subject: db connection pooling Hi, Is

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 Users

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-script

RE: Populating select boxes dynamically

2003-07-01 Thread Alex Shneyderman
What is the process to be followed? Can somebody give me links to related examples on the net? There are many different ways. From do it yourself to get your options From a collection that is a bean in one of the contexts. I will explain do it yourself method the others are similar with an

RE: Tag to remove jsp from cache???

2003-07-01 Thread Alex Shneyderman
Before you send any data in the response you can Send the following thru your response object: % response.setDateHeader (Expires, 0); response.setHeader (Pragma, no-cache); if (request.getProtocol().equals (HTTP/1.1)) { response.setHeader (Cache-Control, no-cache); } % Note,

  1   2   >