Using optionsCollection - LabelValueBean

2004-03-14 Thread Timo Tjäder
Hi, I have problems with optionsCollection, when used with html:select custom tag. 1. I set up in a bean LabelValueBean object in a Vector 2. pass it back to form and try to create a html:selec This part should display a combo box with options, but it just does not work. It does not display

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread Hubert Rabago
The html:select needs to be provided with the property it's associated to, the one on your form bean that will hold the actual value selected. html:select property=mySelectValue style=font-size: 10px; property=goTo size=1 html:optionsCollection name=PageDetailView

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
Struts is rock solid - if something's going wrong, you can bet your bottom dollar it's something you've done. Doing it in your jsps is, as someone else said earlier, way too late. If you're not going to use container-managed security, which is sufficient for most needs, then put it in a

Re: security framework!!!

2004-03-14 Thread Adam Hardy
On 03/13/2004 05:48 PM David Friedman wrote: My bigger problem is my scenario, which no one supports. I'd like to allow manager accounts to become one of if it's sub-accounts. My system would support at least 5 levels where 4 could 'drill down' and back up again: admin, reseller, client,

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
The javascript will be output by the html:form tag and it stops javascript validation. The cancel button should look like this: input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; / The JSP should look like this: html:cancelCancel or

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Dean A. Hoover
What about the non-Javascript validation?... that's what I want to avoid. The whole Javascript validation thing is optional anyway and doesn't seem like the best way to implement it (because its optional). Dean Adam Hardy wrote: The javascript will be output by the html:form tag and it stops

ClassPath Problem

2004-03-14 Thread Prakasan OK
Hi, I am a new bie to struts..I have a problem with my classpath. Instead of putting my ActionForm and Action class in the classes folder of my web application I am getting 'ClassnotFoundError'. I have put the required clases in a folder and edited the setclasspath.bat to put the class path to

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
Server-side validation is skipped by struts when it sees the org.apache.struts.taglib.html.CANCEL request param. On 03/14/2004 12:20 PM Dean A. Hoover wrote: What about the non-Javascript validation?... that's what I want to avoid. The whole Javascript validation thing is optional anyway and

Re: how to use bean:define for this

2004-03-14 Thread Axel Gross
or maybe use jsp:useBean .. will create a default bean, if it can't find an instance so, if you make a bean which uses the the static method for initialisation of a collections property (in default constructor) you can go without the scriptlet regards, axel On 2004-03-13 at 14:08:13 -0500, Geeta

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread Timo Tjäder
Hi, Thanks Hubert, the problem was on the html page. 1. I forgot to add second form tag to handle page linking system on footer. 2. Also as you mentioned all the parameters must be match with the form beans I am posting. After making those changes the combox box was redered nicely on same

RE: a security framework!

2004-03-14 Thread Mailing List
Hi, As I fond the logic:present and logic:notPresent tags does support the JAAS frame work. They have an attribute called role. I have not mentioned that before! Surprising no one mentioned it. Why?! Is there some thing wrong with using this tag! Thanks -Original Message- From: Daniel

Re: a security framework!

2004-03-14 Thread Adam Hardy
Support the JAAS framework? Directly? Don't you mean the container-managed security? On 03/14/2004 01:21 PM Mailing List wrote: Hi, As I fond the logic:present and logic:notPresent tags does support the JAAS frame work. They have an attribute called role. I have not mentioned that before!

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Dean A. Hoover
Adam, OK, I get that part now... I mistakenly changed html:submit property=methodbean:message key=button.cancel//html:submit to html:cancel property=methodbean:message key=button.cancel//html:cancel which turns into input type=submit name=method value=Cancel onclick=bCancel=true; instead of

urgent:multibox client side validation

2004-03-14 Thread Jignesh Patel
Dear Friends, I have implemented multibox, everything is working fine. But I would like to validate the checkboxes, my purpose is atleast one checkbox will be selected from the user while submitting, if not message will be pop up. I am implementing javascript(client side) validation,

Web site URL disappearing when using mod_proxy

2004-03-14 Thread Ian Wright
Hello, I am using Apache as a front end proxy server with Tomcat 5.0.14 as my servlet container. The Struts application is an enquiry form accessed via a button on a page served by Apache. When a user clicks on the enquiry button, the Struts welcome page appears, minus the Powered by Struts

RE: security framework!!!

2004-03-14 Thread David Friedman
Adam, I want to integrate everything with roles (for using actions and jsp tags) so I'm stuck, after container authentication, having a non-changeable Principal object within Tomcat: their Coyote HttpServletRequest wrapping class prevents the use of setUserPrincipal. All of my research on Tomcat

Re: Checking if user has a valida session

2004-03-14 Thread Theodosios Paschalidis
Adam thank you for your reply. It is most likely Tomcat (4.1.24) that does not refresh (supposedly peaks up the updated classes) and I have to delete its temporary working folder every time. In terms of security, things did work when Tomcat used the latest classes. My application is quite small

Re: Switching from HTTPS to HTTP

2004-03-14 Thread Marino A. Jonsson
Yup, it's quite brilliant - I think it should be incorporated into Struts. Marino Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sslext works brilliantly with struts and container-managed security. Definitely what you want. You put attributes in your action mappings to

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-14 Thread Marino A. Jonsson
I see nothing wrong - the actions look fine and #errorMarkup() should take care of displaying any form errors. Did you model this after the validator example in the velstruts appliction that comes with Velocity Tools 1.1-rc1? cheers, Marinó [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: Web site URL disappearing when using mod_proxy

2004-03-14 Thread Srikanth Shenoy
Ian, The Struts tags might be assuming the base href = http://localhost:8081. This is very much a possibility if you are using html:base/ tag as the servlet container interprets urls with respect to its base rather than your web server doc root. Consider using your own tag that generates base

Re: Web site URL disappearing when using mod_proxy

2004-03-14 Thread Ian Wright
Hi, Thanks, Srikanth. I removed the html:base/ tag from Welcome.jsp and that did the trick. Ian. On 14 Mar 2004, at 5:02 pm, Srikanth Shenoy wrote: Ian, The Struts tags might be assuming the base href = http://localhost:8081. This is very much a possibility if you are using html:base/ tag

Proposal: modify LookupDispatchAction

2004-03-14 Thread Dean A. Hoover
I have been trying to figure out how to handle a cancel button using LookupDispatchAction. Specifically, I want to not do form validation if the cancel button is pressed. I found out from discussion on this list that the cancel button ends up with a different name attribute than other submit

dtd validation of tld's

2004-03-14 Thread hanasaki
Any thoughts on why Tomcat would be giving an error saying: Digester error... SEVERE Parse error Document is invalid: no grammar found This is happening on all TLD's. They are JSTL and Struts. I am thinking it has something to do with the DTD specified in the TLD as an http:... and

Fundamental Struts Concept

2004-03-14 Thread Ed Tornick
Let's assume you have a Action Form with much data, including lists (you are using nested tags for example). When you create the Action Form you load it up with the data from your data source wherever it is. Let's also assume that you have set the action path in the configuration file so that

[Q] tiles: defining jsp fragments in a jsp

2004-03-14 Thread Axel Gross
what i got here is very special layout code which I reuse inside of one jsp and i don't want to remove it from there, because no other jsp would need it. so it would be quite stupid to separate them. i'm trying to achieve this functionality with tiles (so in my case it's a .printMessages tile

Struts Validator prints all javascript functions

2004-03-14 Thread Kunal H. Parikh
Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? My code (FYI):

Re: Struts Validator prints all javascript functions

2004-03-14 Thread Joe Germuska
At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected

Re: [SwitchAction] How

2004-03-14 Thread James Mitchell
http://sourceforge.net/project/showfiles.php?group_id=49385package_id=74324 release_id=147944 -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] Mike Zatko [EMAIL PROTECTED] wrote in message

Re: Struts Validator prints all javascript functions

2004-03-14 Thread Marino A. Jonsson
hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 8:55

RE: Struts Validator prints all javascript functions

2004-03-14 Thread Kunal H. Parikh
I thought so too! My struts-config.xml reads as follows == ... form-bean name=vehicleEnquiry type=org.apache.struts.validator.DynaValidatorActionForm form-property name=vehicleId type=java.lang.Integer / form-property

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
Hi Dean, I'm not sure what you're doing in your LookupDispatchAction, so I can't really say. I'm not too hot on DispatchActions. Isn't there a default? Or some other way that DispatchAction handles cancels? Adam On 03/14/2004 03:34 PM Dean A. Hoover wrote: Adam, OK, I get that part now... I

Re: security framework!!!

2004-03-14 Thread Adam Hardy
You mean you don't want to force the user to log out and back in again? I would have thought that was a reasonable demand since they are effectively changing their identity. Your HttpServletRequest wrapper sounds OK as a solution though. Adam On 03/14/2004 03:51 PM David Friedman wrote: Adam,

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
Theo I would check in struts-examples in the struts installation. Adam On 03/14/2004 04:03 PM Theodosios Paschalidis wrote: Adam thank you for your reply. It is most likely Tomcat (4.1.24) that does not refresh (supposedly peaks up the updated classes) and I have to delete its temporary working

Re: dtd validation of tld's

2004-03-14 Thread Adam Hardy
On 03/14/2004 08:59 PM hanasaki wrote: Any thoughts on why Tomcat would be giving an error saying: Digester error... SEVERE Parse error Document is invalid: no grammar found This is happening on all TLD's. They are JSTL and Struts. I am thinking it has something to do with the DTD

Re: security framework!!!

2004-03-14 Thread Jason Lea
David Friedman wrote: I've also been looking into security frameworks and the only solutions I've really found are: 1. Standard (container) JAAS 2. SecurityFilter http://securityfilter.sourceforge.net 3. Pow2ACL http://pow2acl.sourceforge.net/ I was hoping, at some point, to use an SSL switching

Re: dtd validation of tld's

2004-03-14 Thread hanasaki
I am using whatever is in tomcat 4.1.24. Not sure what version of xerces that is or how to find out. Funny thing is it worked some time ago. The project just came out of 5mo mothballs. Adam Hardy wrote: On 03/14/2004 08:59 PM hanasaki wrote: Any thoughts on why Tomcat would be giving an

Re: urgent:multibox client side validation

2004-03-14 Thread Saul Q Yuan
If you havn't done so, I'd suggest you view souce and see if you have the correct javascript code rendered in you jsp. If you set staticJavascript=true in your html:javascript ... tag, then the javascript should be rendered inside your jsp. You can even put in some alert box in your

Re: Multibox and selected values

2004-03-14 Thread Saul Q Yuan
If I understand your questions correctly, you can define two String arrays in your form bean, one for allRoles, and the other for selectedRoles, which is the array of roles of the current user. Before forwarding to your jsp, in your action class, you can retrive all the roles of the currently

RE: security framework!!!

2004-03-14 Thread David Friedman
Adam, They might need to go into the account underneath them to fix something (if they are asked) and won't know the password (encrypted). The admin might need to fix something for a reseller's client made us look into (admin - reseller - client - manager - employee). Regards, David

RE: security framework!!!

2004-03-14 Thread David Friedman
Jason, They might need to go into the account underneath them to fix something (if they are asked) and won't know the password (encrypted). The admin might need to fix something for a reseller's client made us look into (admin - reseller - client - manager - employee). I've had a few projects

Drop box problem please help

2004-03-14 Thread ddd ddd
Hi All I am new bie and learning to populate the drop box by all different ways . 1. By Collections of strings 2. By collections beans 3. Hard coding I am unable to achieve even first way tried a lot but failed can any body suggest me where I am wrong. Also pl. suggest me

where are these classes?

2004-03-14 Thread wushumasterku
Hi, I'm trying to compile struts.jar But I can't find these classes: import org.apache.struts.config.ActionConfig; import org.apache.struts.config.ExceptionConfig; import org.apache.struts.config.ForwardConfig; import org.apache.struts.config.ModuleConfig; import

Re: Using optionsCollection - LabelValueBean

2004-03-14 Thread ddd ddd
Hi All I am new bie and learning to populate the drop box by all different ways . 1. By Collections of strings 2. By collections beans 3. Hard coding I am unable to achieve even first way tried a lot but failed can any body suggest me where I am wrong. Also pl. suggest me

Re: Multibox and selected values

2004-03-14 Thread Amish Patel
Saul, How can I access the current user from the form bean? The current user is in the session. So in other words my question is how can I access the session from the form bean? Thanks in advance for your help! From: Saul Q Yuan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

Why is it so difficult to unsubscribe?

2004-03-14 Thread Kenneth Kalmer
Guys I've been trying to get my name off the stuts user digest for more than a week now! How difficult can this be? For a foundation as big as Apache, something as simple as a mailing list must be nothing to manage. Admins: [EMAIL PROTECTED] must be removed from this list with immediate effect.

Re: urgent:multibox client side validation

2004-03-14 Thread Jignesh Patel
Yes Yuan, It is working for all other function even password comparision also. I need one more help for fixing password size I used minimum length but it is not working, may not supporting '* char. What need to be done for the same? -Jignesh On Monday 15 March 2004 06:43, Saul Q Yuan wrote: If

Re: where are these classes?

2004-03-14 Thread ddd ddd
hi pl. right the conplete directories according ur tomcat installation set classpath=%classpath%;root directory\WEB-INF\lib\struts.jar;root directory\WEB-INF\lib\commons-beanutils.jar;root directory\WEB-INF\lib\commons-validator.jar; set the class path or make as batch file run before

RE: Why is it so difficult to unsubscribe?

2004-03-14 Thread Van Riper, Mike
Kenneth, Did you get any replies to your unsubscribe emails? It is a two step process. You have to follow the instructions in the unsubscribe confirmation email to complete the process. As I recall, you simply need to reply to the confirmation email to make it stick. This is to prevent someone

Re: ClassPath Problem

2004-03-14 Thread yoge
Place your classes in WEB-INF\classes folder. Prakasan OK wrote: Hi, I am a new bie to struts..I have a problem with my classpath. Instead of putting my ActionForm and Action class in the classes folder of my web application I am getting 'ClassnotFoundError'. I have put the required clases in a

Re: Populating form Elements from another object.

2004-03-14 Thread shanmugampl
Hi Niall, I figured out the problem. The problem was that, my DynaClass returned the class name for the getName() method call , whereas the DynaActionFormClass returns the name through getName() method of FormBeanConfig. This is the key that is used to store and retrieve the bean

Re: ClassPath Problem

2004-03-14 Thread Prakasan OK
If I place my classes in WEB-INF\classes folder it works fine.. My question is whether it is possible to put the classes in some other folder and give classpath to that folder? I have tried this and Tomcat takes the classes from the given classpath except for the Action classes and Action Form

RE: ClassPath Problem

2004-03-14 Thread Nick Faiz
Prakasan, You can put the classes on the server's classpath but this is only advisable for libraries the server, not your application, will depend upon. You should probably read up on the servlet spec. at sun. Nick -Original Message- From: Prakasan OK [mailto:[EMAIL

Re: Re: How can IIS and Tomcat share data?

2004-03-14 Thread dream_and_yang
Thank u very much,Martin! I follow the howto.html and I do get iis and Tomcat5 work together,using the jk2.properties file. Now I can directly call Http://localhost to get the Tomcat help page. My real problem still here:Can Tomcat and IIS share data?For example,data in session,cookie,in other

error message display

2004-03-14 Thread Jignesh Patel
Can anybody guide me how to show server error messages line by line rather then in a one line. -Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]