Re: Action form restting -tiles

2005-12-09 Thread Laurie Harper
Kanuri, Chand wrote: hi all, i am using tiles in my web app. i am using tiles controllers to display the jsps. there are 2 pages in which the second page is displayed as per the selection of items in 1st page. i am setting the action form for second page in the controller class but the problem is

Re: Problem with validations

2005-12-09 Thread Laurie Harper
Yeah, I can see in some cases it might be quite handy to be able to do this. I'm not sure how you'd go about exposing such a feature, though. You might want to start a discussion on the Commons list to see if there's any interest in building this in somehow. L. Raghu Kanchustambham wrote: I

Re: how to setup 2 validwhen-based validation rules

2005-12-09 Thread Laurie Harper
Nicolas De Loof wrote: Hello, I've a form where some data are required IF an option is selected + I've to check for duplicated entries. I can setup validation rules using validwhen for both case, but how to register those 2 rules (with different message) under the same validwhen validator

Re: Validator and Javascript

2005-12-09 Thread Laurie Harper
Tony Santinello wrote: Hi, I'm using Struts 1.2.7 and I'm using commons-validator to validate my forms. Can someone tell me why validator includes all the javascript functions when rendering the jsp page? Even including javascript functions that I'm not using in validation.xml, such as cred

Re: Help!

2005-12-09 Thread Laurie Harper
It sounds like you'd be better off writing a mutable resource bundle factory, or just turning off auto-reload for the web app, rather than jumping through these hoops with temp files. That said, the solution you describe should work fine provided that (a) you really are creating the temp file,

Re: IBM Portal server V5.0.2.3

2005-12-09 Thread Laurie Harper
I suspect you may be running into problems resulting from the fact that Struts is written to the Servlet spec and knows nothing about Portlet environments. Try searching the archives and/or Google for 'Struts Portlet'. L. Meenakshi Singh wrote: yes I am using WSAD V5.1.1 & using portal server

Re: Syntax assistance bean tag

2005-12-09 Thread Laurie Harper
Jim Reynolds wrote: Need a little help with syntax dilemma: I am iterating over a list like so: and creating And the problem is within the onclick event, I need to send another property from attributeBean to a handler. javascript:selectRadio(''); But no matter what I try, Try searching th

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-09 Thread Laurie Harper
Michael P. Soulier wrote: Michael Jouravlev wrote: Links to what? To action or to JSP page? A form action, primarily. I don't think that references below answer your question, but they contain valuable info anyway: No, I'm afraid that they don't. I don't need a tag lib to put a tag in th

Re: [OT] How to determine if a session id is still valid

2005-12-09 Thread gramani
ooper <[EMAIL PROTECTED]> wrote on 12/09/2005 05:44:59 PM: > Given a session id -- request.getSession().getId() which has been > previously saved to a db, how can I determine if it is still a > valid/active session? TIA, Brian Barnett > Hi Brian, I don't really know the direct answer to your qu

Re: [OT] obsfucating struts web application

2005-12-09 Thread Laurie Harper
I haven't used Java obfuscation tools so I can't say for sure, but I would expect them to somehow 'fix' the internal symbol tables in the obfuscated class files to account for all that. After all, if they didn't then anything that used reflection or introspection would be completely broken once

Re: Nested Properties

2005-12-09 Thread Laurie Harper
Raghuveer wrote: In My web application I have one ActionForm and in that I have one getter setter method for other java bean. In my JSP i want to access the Java bean for display .Display is working fine as text box value and display with bean:write. But whene ever i submit the JSP page ..How t

[OT] How to determine if a session id is still valid

2005-12-09 Thread ooper
Given a session id -- request.getSession().getId() which has been previously saved to a db, how can I determine if it is still a valid/active session? TIA, Brian Barnett Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com *Your* clubs, no sign up to read, ad suppo

Re: Struts web app suddenly stops working when deployed...Help Please!

2005-12-09 Thread Hubert Rabago
Somebody posted in Bugzilla lately that a possibly cause of this problem is an incomplete set of commons-* jars, such as Common BeanUtils, Commons Digester, or Commons Validator [1]. Make sure your jar files are complete. And if anyone has an idea on how we can solve this issue, patches and/or de

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-09 Thread Mikael Andersson
Yeah I know ;) , in the future I'll make sure to keep better control of my jars. Mikael On 09/12/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 12/9/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > > >From: Mikael Andersson <[EMAIL PROTECTED]> > > > Hi, > > > I discovered the problem, I

Re: Struts web app suddenly stops working when deployed...Help Please!

2005-12-09 Thread Marcelo Morales
Hi I tried to figure it out but it is kindda hard when you don't provide version information. Both lines (that could lead you to an answer) are empty lines in my struts 1.2.7 source tree (RewriteTag.java:55 for instance). Try to give more information and post the jsp snippet that causing

Re: html:select and submit

2005-12-09 Thread Frank W. Zammetti
Rahul Akolkar wrote: In a multiple , selectName.selectedIndex will always be the index of the *first* selection, if there are one or more (or -1 if there are none). Cool, that's what I thought but wasn't sure, you saved me from having to test it :) I think Mike has the answer I wa about to g

Re: html:select and submit

2005-12-09 Thread Mike Darretta
Thank you, Rahul. This *is* the problem. Much regards (and much better sleep this weekend!)... Mike Rahul Akolkar wrote: On 12/9/05, Mike Darretta <[EMAIL PROTECTED]> wrote: I thought I had licked this problem - but it only works with Firefox! I have an tag that, when a user selects an opt

Re: html:select and submit

2005-12-09 Thread Rahul Akolkar
On 12/9/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > What are you actually trying to send? The selected value or the index > of the selected item? I also note you have multiple="true"... so you > expect that more than one can be selected? I'm not sure if that has a > bearing on the selecte

Re: html:select and submit

2005-12-09 Thread Rahul Akolkar
On 12/9/05, Mike Darretta <[EMAIL PROTECTED]> wrote: > I thought I had licked this problem - but it only works with Firefox! > > I have an tag that, when a user selects an option, a > submit() is forced through a javascript call. > > The JSP code is: > > ... > onclick="handleCl

Re: html:select and submit

2005-12-09 Thread Mike Darretta
You're right - the multiple="true" was wrong, but that was essentially ignored since I am capturing the "onclick" event. What I want to send is the index to use in extracting the appropriate info from the underlying collection. Anyhow, what I am wanting to do is capture the selected index, the

Re: html:select and submit

2005-12-09 Thread Frank W. Zammetti
What are you actually trying to send? The selected value or the index of the selected item? I also note you have multiple="true"... so you expect that more than one can be selected? I'm not sure if that has a bearing on the selectedIndex (I could see where it might), and even if it does, the

Re: checkbox behavior hard to control?

2005-12-09 Thread Simonin, Bradley K (Brad)
Thank you very much. I forgot about that. --Brad. Michael Jouravlev wrote: On 12/9/05, Simonin, Bradley K (Brad) <[EMAIL PROTECTED]> wrote: I am just curious. Does this situation occur with the Multibox tag? I guess I don't understand that when you uncheck a checkbox sometime the bea

Re: checkbox behavior hard to control?

2005-12-09 Thread Michael Jouravlev
On 12/9/05, Simonin, Bradley K (Brad) <[EMAIL PROTECTED]> wrote: > I am just curious. Does this situation occur with the Multibox tag? I > guess I don't understand that when you uncheck a checkbox sometime the > bean is not updated? Unchecked checkboxes are not sent to the server by browser,

[OT] Re: checkbox behavior hard to control?

2005-12-09 Thread Dave Newton
Simonin, Bradley K (Brad) wrote: I am just curious. Does this situation occur with the Multibox tag? I guess I don't understand that when you uncheck a checkbox sometime the bean is not updated? It's an HTTP/browser thing. Only checked checkboxes are sent in a request; if a checkbox is

Re: checkbox behavior hard to control?

2005-12-09 Thread Simonin, Bradley K (Brad)
Michael Jouravlev wrote: On 12/5/05, Nicolas Bizard <[EMAIL PROTECTED]> wrote: I am not sure what "clear the state" means? I'm also not sure about what to put in reset(), and when it is executed... Is this a question? It seems that the problem is specific to checkboxes : when unc

html:select and submit

2005-12-09 Thread Mike Darretta
I thought I had licked this problem - but it only works with Firefox! I have an tag that, when a user selects an option, a submit() is forced through a javascript call. The JSP code is: The javascript code: function handleClick(obj, prefix) { var F_Obj = obj.form; index = F_Obj.sele

Struts web app suddenly stops working when deployed...Help Please!

2005-12-09 Thread O. Oke
Help Please! BACKGROUND == Our struts web app works fine on our local (not on the internet) Tomcat server, but when we deploy it on the web based Tomcat server of our hosting company, we get the error below, when we attempt to connect to the application. Can anyone please tell me what

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-09 Thread Craig McClanahan
On 12/9/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > >From: Mikael Andersson <[EMAIL PROTECTED]> > > Hi, > > I discovered the problem, I had not specified the ContextLoader listener > for Spring. > > I thought that I didn't have to have that enabled! > > > > When adding the following to my web.

Re: Using CatalogManager in Struts

2005-12-09 Thread Craig McClanahan
On 12/9/05, Upkar Saimbi <[EMAIL PROTECTED]> wrote: > > Hello, I'd like to be able to use local versions of the struts DTDs - > configuring them within a Catalog xml file. I need to use something > called a resolver with my parser but I haven't the foggiest idea how I > can do this. I have my Catal

More on licensing

2005-12-09 Thread Michael Jouravlev
Are Apache 2.0 and CDDL compatible? Would be great if someone asked this question to Apache legal department. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Xdoclet and JBOSS

2005-12-09 Thread Marco Mistroni
'XDoclet in action' has plenty of examples You'll need to have the xdoclet-jboss-module btw.. With Rick's Hightower permission, go to this link http://www.arc-mind.com/downloads.htm HTH marco -Original Message- From: Sebastien Degardin [mailto:[EMAIL PROTECTED] Sent: 09 Dece

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-09 Thread Michael P. Soulier
Michael Jouravlev wrote: Links to what? To action or to JSP page? A form action, primarily. I don't think that references below answer your question, but they contain valuable info anyway: No, I'm afraid that they don't. I don't need a tag lib to put a tag in the html, but that won't fix

Re: [OT] Xdoclet and JBOSS

2005-12-09 Thread Sebastien Degardin
Hello, look at thisq link on Jboss + Eclipse + Lomboz using xDoclet. at : http://www.tusc.com.au/tutorial/html/chap1.html Regards, Sebastien Degardin On 12/9/05, R. Markham <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I am extending my Struts Application using JBOSS 3.XX. I want to gener

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-09 Thread Gary VanMatre
>From: Mikael Andersson <[EMAIL PROTECTED]> > Hi, > I discovered the problem, I had not specified the ContextLoader listener for > Spring. > I thought that I didn't have to have that enabled! > > When adding the following to my web.xml everything works: > > contextConfigLocation > /WEB-INF

[OT] Xdoclet and JBOSS

2005-12-09 Thread R. Markham
Hi all, I am extending my Struts Application using JBOSS 3.XX. I want to generate my EJB using XDOCLET. Somebody know a nice link or a book where there is an example. Regards Richard

Re: Shale-Clay: Are managed beans mandatory in xml view?

2005-12-09 Thread Mikael Andersson
Hi, I discovered the problem, I had not specified the ContextLoader listener for Spring. I thought that I didn't have to have that enabled! When adding the following to my web.xml everything works: contextConfigLocation /WEB-INF/applicationContext*.xml or

Re: Handling config files

2005-12-09 Thread Sebastian Stein
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [051208 23:27]: > There are probably many ways of doing this (I don't know of any "standard" > way though). Here's some code which i use to populate a Properties object > from a file: > > String xpdlPropertiesFileName = "xpdl.properties"; //file should be in

Nested Properties

2005-12-09 Thread Raghuveer
In My web application I have one ActionForm and in that I have one getter setter method for other java bean. In my JSP i want to access the Java bean for display .Display is working fine as text box value and display with bean:write. But whene ever i submit the JSP page ..How to the value is set

how to setup 2 validwhen-based validation rules

2005-12-09 Thread Nicolas De Loof
Hello, I've a form where some data are required IF an option is selected + I've to check for duplicated entries. I can setup validation rules using validwhen for both case, but how to register those 2 rules (with different message) under the same validwhen validator ? Nico. This message

Re: Online Struts Tutorial

2005-12-09 Thread Larry Meadors
Yes, 1.x and 2.x are different enough to make the transition not much fun...not terribly difficult, but if you can avoid it, do. Also, version 1.x is not currently being maintained, so I would suggest that you go for 2.x instead...it is way better anyway. :-) Larry On 12/8/05, Michael Jouravlev

Re: [OT] obsfucating struts web application

2005-12-09 Thread erikweber
I have used KlassMaster on distributions that contain Struts classes before, and I took your approach as I recall. I didn't obfuscate Action classes, but there was nothing important in them anyway. Also, KlassMaster has a great scripting language for getting around the problems you mention, and

RE: OJB tutotial

2005-12-09 Thread Fulgencio Comendeiro, Eduardo
http://db.apache.org/ojb/docu/tutorials/mapping-tutorial.html -Original Message- From: Ankit Pancholi [mailto:[EMAIL PROTECTED] Sent: viernes, 09 de diciembre de 2005 10:48 To: Struts Users Mailing List Subject: OJB tutotial Hhi Can anyone direct me to a place where I can get a beginne

OJB tutotial

2005-12-09 Thread Ankit Pancholi
Hhi Can anyone direct me to a place where I can get a beginners guide for OJB. I am going to start working on it and hav no clue wat it is. Any pointers wud b useful. Thnx Ankit CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION in

Re: [OT] obsfucating struts web application

2005-12-09 Thread Raghu Kanchustambham
Laurie.. are you sure this will work? Let us say i have a mapping that maps to a TelephoneAction in my strus-config.xml... the class name will get 'garbled' after obfuscation. When a hit is made, the struts runtime will look up the TelephoneAction class to forward the request and notices there is

Re: Apache web design products?

2005-12-09 Thread Emmanouil Batsis
Tomas Kim wrote: I noticed that many of your websites (eg. http://beehive.apache.org/) have a "templated/tabbed" navigational look and feel. Check out Apache Maven or Apache Forrest. Both can be used to generate website/documentation. hth, Manos -

Apache web design products?

2005-12-09 Thread Tomas Kim
Hi Apache and all. I noticed that many of your websites (eg. http://beehive.apache.org/) have a "templated/tabbed" navigational look and feel. You have some heading at the top, a browser with links on the left, and a tab feature. (eg. "Home" and "Documentation"). I was wandering if you use some ki