< layout:optionsDependent > problem!!

2004-06-02 Thread Tushar Kharbanda
In the code below what would be my ActionForm class, and what all attributes will it have and of which type, do we need a City class too.. I am gettin an error HTML BEAN tag not found... so i guess some prroblem with the jsp/form

Problem --> bean-el:message to format numbers,dates....?

2004-06-02 Thread Jason Long
I would like to do the following: JSP: Resources: format.number.2=Convert {0,number,#0.00} This fails with the follwing error: java.lang.IllegalArgumentException: Cannot format given Object as a Number I believe this is because it is being passed String rather than a subclass of Number.

RE: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-02 Thread Kunal H. Parikh
Hi Navjot! I would suggest IntelliJ IDEA for Java development. While IDEA does have support for EJB development, I prefer using plain Java Classes with XDoclet tags. IDEA gives you a high degree of flexibility, great environment and fantastic re-factoring support. IDEA increases developer produ

struts java script problem

2004-06-02 Thread R Sridhar
Hi, The solution u have given works fine to populate the list item. But what i want is to change the contents of list item when some of the list item selection or some check box status changes. And moreover when some value entered in text box based on that input i would like to fill the other text

[OT] Good env for struts-based-web-tier and ejb components development

2004-06-02 Thread Navjot Singh
Hi List, I am about to start development work on some auction site which in principle is similar to e-bay but not of that scale. I will be using J2EE+Jboss. What kind of IDE development environment do you guys use for the development? I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good bu

Transition after registering new user

2004-06-02 Thread fastbob
Greetings, I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is Forms-based using JAAS. The username and password are pulled from the database through j_security_check and several authorization levels are defined through security-constraints. Login works fine. I'm now trying

Transition after registering new user

2004-06-02 Thread fastbob
Greetings, I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is Forms-based using JAAS. The username and password are pulled from the database through j_security_check and several authorization levels are defined through security-constraints. Login works fine. I'm now trying

Re: struts java script problem

2004-06-02 Thread R Sridhar
Hi, The solution u have given works fine to populate the list item. But what i want is to change the contents of list item when some of the list item selection or some check box status changes. And moreover when some value entered in text box based on that input i would like to fill the other text

Re: struts java script problem

2004-06-02 Thread Srinivas Rao
Hi Sridhar, This is the code to populate the data from the database, specialityList is the collection, it defines the javascript array and to populate the data ...   bye Srinivas R Sridhar <[EMAIL PROTECTED]> wrote: Hi, How to popula

Re: struts java script problem

2004-06-02 Thread Srinivas Rao
Hi Sridhar, This is the code to populate the data from the database, specialityList is the collection, it defines the javascript array and to populate the data ...   bye Srinivas R Sridhar <[EMAIL PROTECTED]> wrote: Hi, How to popula

struts java script problem

2004-06-02 Thread R Sridhar
Hi, How to populate the java script variables with the dynamic data taken from the database in struts. I would like to use these data to fill some other fields based on list or chice selections in the form.Can we use normal style of javascript with the struts validation framework. Please help

RE: When to use EJB?

2004-06-02 Thread Navjot Singh
If all you need is 2phase commit, You can directly use JTA along with XA drivers for both of your databases. 2-phase commit using EJBs could have been an option if your system currently uses EJBs for managing these database schemas. >-Original Message- >From: Zhang, Larry (L.) [mailto:[E

When to use EJB?

2004-06-02 Thread Zhang, Larry \(L.\)
Our web application uses Web sphere application server. The main transaction is to update People Soft database tables. We are using component interface (a People Soft term) to update the underline tables in People Soft. Associated to a transaction ( a People Soft database update for example), th

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Pacheco, Brent
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here's my XML:

RE: Hidden Variables

2004-06-02 Thread Joshi, Naveen
I use Post method. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel Sent: Wednesday, June 02, 2004 5:24 AM To: [EMAIL PROTECTED] Subject: Re: Hidden Variables Joshi, Naveen wrote: > All, > > one out of 300 times my hidden variable would not set to form. Any > idea

Re: Refresh parent window on popup submit with old params to parent

2004-06-02 Thread keshav
Hi, Can you send the code for the method you have mentioned regards, keshav - Original Message - From: "Freddy Villalba Arias" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 10:38 PM Subject: RE: Refresh parent window on popup submit

Re: Can I use multibox with text fields?

2004-06-02 Thread atta-ur rehman
Hello Miguel, You might want to search the archive for "indexed properties"; I think that's what you're looking for. HTH, ATTA - Original Message - From: "Miguel Arroz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 02, 2004 4:04 PM Subjec

java.lang.VerifyError

2004-06-02 Thread Jonathan Wright
I have a JSP page using logic, bean and html tags. It works and compiles fine on my local machine using tomcat 4.1.24. However when deployed to a live server running tomcat 4.0.4 I get the following error java.lang.VerifyError: (class: org/apache/jsp/ProviderDetails$jsp, method: _jspService signat

Can I use multibox with text fields?

2004-06-02 Thread Miguel Arroz
Hi! I need to display a page that loads a list of items from a DB, and that displays that list, with a text field and a checkbox per row. The checkbox is easy to do, using multibox. But how can I get the text field? Can I use something like multibox (and then read all the text boxes from an a

validating indexed properties

2004-06-02 Thread Michael Muller
I have a form with a list of 10 assets. Each asset has a name and a cash value. I've successfully set up the validator to catch when a non-numeric cash value is entered. I would like to display a little exclamation point icon next to the field with the bad cash value. Is this possible? I do

[ot]Common-logging in EJB.jar issue

2004-06-02 Thread Mick . Knutson
I am trying to use commons-logging in my struts, as well as my ejb's, but I get a log4j error instead. Here is the declaration/usage in my ejb: CreditApplicationBean: === ... import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; ... priva

RFC: Strus Web Service Enablement

2004-06-02 Thread Frank Zammetti
Hello all... I wanted to post this here and get any comments that people had so I could decide where to go with it... For the past two days I've been working on a mechanism that would allow you to expose existing Struts-based business logic as Web Services without changing any existing code. W

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Mark Lowe
I'm surprised using the parameter name didn't fix it.. All i can tell you is that it works for us with the stable release of 1.1 On 2 Jun 2004, at 20:56, Kamholz, Keith (corp-staff) USX wrote: I actually think I'm going to be able to get around the problem. We're going to do new sort of browsin

RE: why does RequestUtils.message(...) work but does not

2004-06-02 Thread Marcella Turner
I found the problem - our team is providing a different implementation of the MessageTag.class which behaves differently than the standard tag. From: "Marcella Turner" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: why does RequestUti

Re: Modules by Server-Host

2004-06-02 Thread Martin Gainty
Ole- You could setup the Action execute method to return mapping.findForward to different JSPs based upon the Hostname that is embedded within Request object InetAddress.getByName(request.getRemoteAddr()).getHostName() see http://www.coreservlets.com/Apache-Struts-Tutorial/Struts-Actions.html#Ex2-S

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
I actually think I'm going to be able to get around the problem. We're going to do new sort of browsing interface so I won't have to use the form with multiple submits. Thanks for all the help though, the tips will come in handy I'm sure. - Keith -Original Message- From: Mark Shifman

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Mark Shifman
You should look at the source code for the version of DispatchAction and LookupDispatchAction (available either from a download of src or the cvs repository). Older builds just threw an exception if LDA didn't find a parameter for method. You can overide the execute() but you might just as we

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Nicholas L Mohler
Keith, Where is the exception occurring? If it is happening in the LookupDispatchAction (or DispatchAction), then you could implement a base action class and override the execute method. In the overriden execute method, you would (1) Get the parameter name from the mapping (mapping.getParam

RE: RequestProcessor POST-processing

2004-06-02 Thread Frank Zammetti
Duh! Never mind... nothing like forgetting basic Java programming... Override processActionPerform() and be sure to call super.processActionPerform() first. I'll just be off in the corner flaying myself for a while... From: "Frank Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing

RequestProcessor POST-processing

2004-06-02 Thread Frank Zammetti
Hi all... I'm writing a custom RequestProcessor implementation where I need to do some pre-processing and some post-processing. Pre-processing is easy, I just overrode processPreprocess(). My question though is can I do the same thing post-request? What I mean is this... Assume I want to exe

Setting bean property from another bean

2004-06-02 Thread Hudson, Erik
If you have two beans in scope and both have a property of the same class, is there a way to set one's property to the other property's value using one of the tag libraries? If you have class C; class A { private C propA; // with get & set methods } class B { private C propB; // with get

Re: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
Isn't hideMessages() still a scripting element? I'm not familiar with that... From: Brad Balmer <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: How to display error msgs in a pop up window Date: Wed, 02

RE: validator.xml usage

2004-06-02 Thread Mick . Knutson
That worked! Thanks -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:11 PM To: 'Struts Users Mailing List' Subject: RE: validator.xml usage type="org.apache.struts.validator.DynaValidatorActionForm"> try type="org.apache.struts.valid

Re: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
Yes, exactly, that's what he would have to do unless he persisted the information on the server, but that's really far more work than is worth it I think. You just made me think of another way... If you target the logon form to a new window, then you can either (a) return your error information

Re: How to display error msgs in a pop up window

2004-06-02 Thread Brad Balmer
Instead of using a pop-up I use a block to format my messages. Inside my I have my block that will display any type of message or error that I want. I then inlude a way to click on a close link which simply sets the to be hidden and moves it off the page. This is a non-javascript way of

Re: How to display error msgs in a pop up window

2004-06-02 Thread Nick Heudecker
Another way would be to use some JavaScript on the input page that opens a new window, the popup, and writes the error messages directly to that using the document.write(...) function. Pretty easy really. Frank Zammetti wrote: One way to do this (the only way I can actually think of) is this...

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
You know I was just thinking about doing "/foo.do?method" when I read your post. I stuck it in there, but that didn't work. Then I tried "/foo.do?method=" and "/foo.do?method=label.modelBrowse" and "/foo.do?method=model". Now it executes the 'unspecified' method no matter what I do, even if I cli

RE: How to display error msgs in a pop up window

2004-06-02 Thread Frank Zammetti
One way to do this (the only way I can actually think of) is this... write your logon page as you would normally in Struts, i.e., pretend your going to display your error message there. That means re-displaying the user's entries, all that. But, instead of displaying the messages, open a new

How to display error msgs in a pop up window

2004-06-02 Thread praveen kulkarni
Hi all, Sub: How can i get error messages in a pop up window by using STRUTS I am using Struts and i want to handle all validation error messages in a new popup window. Consider Login form with loginID and password as form fields. I want to check mandatory status at the server side, for thi

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Martin Gainty
Keith- you need to supply the HTTP variable HTTP_USER_AGENT to BrowserType before modelBrowse String UserAgent = (String) request.getHeader("User-Agent"); HttpSession currSession = request.getSession(true); //This sets up the user.agent for the session currSession.putValue("user.agent",UserAgen

Re: R: Struts Tag Library

2004-06-02 Thread Michael McGrady
One reason for using struts tags is that people are trained to use them. Business is not always bending to the best coding solution. Business has to bend to the best business decision. Michael At 02:55 AM 6/2/2004, Andrea M wrote: I agree with Rick Of corse you could use struts tags without St

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Mark Lowe
With the stable release of 1.1 you need to pass the parameter through usually /foo.do?method=save but to get the unspecified method running /foo.do?method suck it n see. On 2 Jun 2004, at 17:07, Kamholz, Keith (corp-staff) USX wrote: Yeah, I have basically that code for the submit buttons. Isn't th

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
Yeah, I have basically that code for the submit buttons. Isn't the 'unspecified' method of the LookupDispatchAction used to handle this issue though? I thought that's exactly what it's purpose was, but the method is not getting executed as I expected it to. Very frustrating... - Keith -Or

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Nifty Music
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here's my XML:

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Nifty Music
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here's my XML:

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Nicholas L Mohler
Most likely the "browseType" parameter is not defined in you page, so it is not submitted. If you're using the struts submit buttons, you probably have something to the effect of: The effect of the button tag is that when it is clicked, the "browseType" parameter will be added into th

AW: Modules by Server-Host

2004-06-02 Thread Hildebrandt, Ole
Hi Martin, > Ole- > > The module can use either an absolute path or relative to > server root using > the loadfile tag > > Here is the documentation > http://httpd.apache.org/docs-2.0/mod/mod_so.html#loadfile > > Is this what you are looking for? THanks for replying. I have several hosts u

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
Hm It's not working for me. I have a form with 4 different submit buttons. I'm trying to get it to execute the 'unspecified' method of my LookupDispatchAction when the user presses 'Enter' rather than clicking on a button. Right now I have: public ActionForward unspecified(ActionMapping

RE: radio button

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
You just want a default value for the radio button? Just make sure the corresponding value in your form bean is set to the value for the radio button that you want selected by default. That's all. - Keith -Original Message- From: ravishankar boddupalli [mailto:[EMAIL PROTECTED] Sent:

& : purpose?

2004-06-02 Thread Frank Zammetti
Hello all... I haven't found a good answer to this on my own, so hopeing someone can supply one... What is the benefit/purpose to using the amd tags? I've read that they are "designed to work with ActionServlet", but it's unclear to me in what way. What benefit does one gain by using these

RE: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Kamholz, Keith (corp-staff) USX
Awesome, thanks for posting the solution. I've been wondering how to do just that. Hopefully it'll work the same for a LookupDispatchAction, I'll find out in just a few. ** Crosses fingers ** - Keith -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Tuesday, Jun

RE: Modules by Server-Host

2004-06-02 Thread Martin Gainty
Ole- The module can use either an absolute path or relative to server root using the loadfile tag Here is the documentation http://httpd.apache.org/docs-2.0/mod/mod_so.html#loadfile Is this what you are looking for? Martin Gainty (cell) 617-852-7822 (e) [EMAIL PROTECTED] (http)www.laconiadatasyst

Re: AW: Struts Tag Library

2004-06-02 Thread Srinivasa Jagannadh Gade
Thank You guys for the replies.Appreciate it. Have a good day Regards Srini Gade From: Mark Lowe <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: AW: Struts Tag Library Date: Wed, 2 Jun 2004 13:04:49 +020

Modules by Server-Host

2004-06-02 Thread Hildebrandt, Ole
Hi, Does anyone know if it is possible to use a different Module for each HTTP-Server-Host? Or is it only possible by subdirectorys in webapp? Thanks Ole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: More problems with form beans

2004-06-02 Thread Tim Penhey
My own stupid fault. I had set the value="" for the in order to try to get around the problem I had before I changed the scope to request. Removed those and it now works ;-) Tim > -Original Message- > From: Tim Penhey [mailto:[EMAIL PROTECTED] > Sent: 02 June 2004 09:50 > To: Struts Us

Re: AW: Struts Tag Library

2004-06-02 Thread Mark Lowe
While I can see that JSTL can be used for model 1 style development, I'd still use JSTL for model 2 with or without struts. There are lots of useful toys with JSTL that just aren't there in struts, which are needed by the site builder JSTL functions especially, these are used for purely present

R: Struts Tag Library

2004-06-02 Thread Andrea M
Yes.. if you plan to use MVC use Struts (or Spring or whatever framework you please) However.. Taglibs are just the View part, so you can use Struts with whatever presentation components you prefer, still staying inside MVC model. Actually.. there's nothing that prevents you to not use JSP at all a

AW: Struts Tag Library

2004-06-02 Thread Rosenberg, Leon
<2cents> If you plan to use model 1 -> use jstl If you plan to use model 2 -> use struts :-) Leon > -Ursprüngliche Nachricht- > Von: Andrea M [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 2. Juni 2004 11:55 > An: 'Struts Users Mailing List' > Betreff: R: Struts Tag Library > > I agr

R: Struts Tag Library

2004-06-02 Thread Andrea M
I agree with Rick Of corse you could use struts tags without Struts framework, but there's no point in doing so: Tags like bean, logic and iterate are almost entirely supplanted by JSTL The only struts tag that is still useful is but is designed to work together with ActionServlet, so using it out

Re: Hidden Variables

2004-06-02 Thread Lionel
Joshi, Naveen wrote: > All, > > one out of 300 times my hidden variable would not set to form. Any > ideas what could be the issue. do you use get or post method to send your form ? - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Hidden Variables

2004-06-02 Thread Irfandhy Franciscus
Joshi, Naveen wrote: All, one out of 300 times my hidden variable would not set to form. Any ideas what could be the issue. I'am thinking that it is a browser issue. Is any one in the group facing similar problem. Thanks Joe Have you specify these hidden variables as a property in your ActionForm

More problems with form beans

2004-06-02 Thread Tim Penhey
Still working with the DynaValidatorForm. I am trying to test by directly going to the action and not passing in all the required parameters to make sure that the form validation is working (if I use my entry jsp the javascript validation catches the problems [as designed]), but being the paranoid

Re: multibox mayhem

2004-06-02 Thread Irfandhy Franciscus
from this code : I guess that bean1 must be an object inside 'allofem' So why are you trying to iterate an object : pls wrote: i had to add tags around the because there were some trailing 'null' values in the Integer[] after reading from DB. "pls" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: multibox mayhem

2004-06-02 Thread pls
i had to add tags around the because there were some trailing 'null' values in the Integer[] after reading from DB. "pls" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have one multibox per page on a few pages. > Each page name is represented by the 'key' property of a HashMap.

RE: Struts Tag Library

2004-06-02 Thread Matthias Wessendorf
Srini, i recommend to look at displaytag --> http://displaytag.sf.net they work together with struts. Cheers, > -Original Message- > From: Srinivasa Jagannadh Gade [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 02, 2004 1:54 AM > To: [EMAIL PROTECTED] > Subject: Struts Tag Library >

multibox mayhem

2004-06-02 Thread pls
I have one multibox per page on a few pages. Each page name is represented by the 'key' property of a HashMap. Each selected checkbox number is stored in Integer[]'s in the 'value' property of a HashMap. After selecting all of the checks, the user is forwarded to a confirmation.jsp which displays