Pulling up data in a pop up window

2011-11-04 Thread ANTARA PAUL CHOUDHURY (IT DEPT.)
0,width=900,left=60,top=0,scrollbars=yes"); document.forms[0].submit(); }else{ document.forms[0].action = '/RoseValley/newrenewalbusiness.do?print=N'; document.forms[0].submit(); } return true; } It opens the page okay when I click on th

Pulling up data in a pop up window

2011-11-04 Thread ANTARA PAUL CHOUDHURY (IT DEPT.)
0,width=900,left=60,top=0,scrollbars=yes"); document.forms[0].submit(); }else{ document.forms[0].action = '/RoseValley/newrenewalbusiness.do?print=N'; document.forms[0].submit(); } return true; } It opens the page okay when I click

clearFieldErrors() - where is it ?

2008-04-03 Thread it
Hi guys, in struts2 i have a class that extends ActionSupport. In my validate method i can use clearErrorsAndMessages(); but when i try clearFieldErrors() eclipse can not find it . Should i put setFieldErrors(null); or extend another class ? I appreciate your replies. Regards, Leon

Very [OT] Is RAID1 really fault tolerant?

2005-06-29 Thread Dahnke, Eric \(Company IT\)
In a RAID 1 (mirrored) configuration, if I pull the power cable out from one of the disks, will my system stay up? Real world experience preferred to marketing claims. Sorry, this is so OT, but since everyone's enamored with the text editor vs. IDE threads that happen every two weeks here, I don't

ModuleConfigImpl WAS: Parsing struts-config. Parser chokes on

2005-05-25 Thread Dahnke, Eric \(Company IT\)
Thanks for the response. It looks like it will work. I'm implementing it as follows within an action, but the mci object doesn't get its properties set. All the hashmaps of actions, and forwards, and exceptions are always null. ModuleConfigImpl mci = new ModuleConfigImpl(

Parsing struts-config. Parser chokes on

2005-05-25 Thread Dahnke, Eric \(Company IT\)
Hello, I've written a little script to parse struts-config.xml in order to get a list of the actions and types, etc. It works great if I comment out the line at the top of the file. Without commenting the line I get an IOException related to a parse error when executing the following

Setting the default value for an array of objects

2005-05-13 Thread Dahnke, Eric \(Company IT\)
Hello, I believe, it is considered a best practice to use DTOs (transport/beans) to hold the default values of objects (although I've heard that within Actions is the more appropriate place). How do you guys do this when one of your DTOs has an array of child DTOs. For example: public

Struts modules and project layout. Session question too.

2005-04-20 Thread Dahnke, Eric \(Company IT\)
stion is how to layout the projects: coreApp/ moduleA/ moduleB/ WEB-INF/ classes/ lib/ Under moduleA/ and moduleB/ can I also have a complete WAR file layout with WEB-INF/ and pages/ classes/ etc? If not it would appear that the modules end up

Recall: Give George Dubya a brain!

2005-03-30 Thread Thomson, Mark [IT]
]>, "Scott PATERSON \(E-mail\)" <[EMAIL PROTECTED]>, "Simon Blomfield \(E-mail\)" <[EMAIL PROTECTED]>, "Sis \(E-mail\)" <[EMAIL PROTECTED]>, "Sonia Wright \(E-mail\)" <[EMAIL PROTECTED]>, "Stephen Wrig

FW: Give George Dubya a brain!

2005-03-30 Thread Thomson, Mark [IT]
[EMAIL PROTECTED]>, "Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>, "Jules Daniells \(E-mail\)" <[EMAIL PROTECTED]>, "Kate Brookes \(S&S Sydney\) \(E-mail\)" <[EMA

RE: Constants for property names - am I barking up an insignificant tree?

2005-02-15 Thread Daffin, Miles (Company IT)
Am I alone in finding this issue significant, or was it my tone 8-) Anyone got anything to add? Anything at all? TIA -Miles > -Original Message- > From: Daffin, Miles (Company IT) > Sent: 11 February 2005 17:29 > To: Struts Users Mailing List > Subject: RE: Constan

RE: How to pass variable from servlet to jsp?

2005-02-15 Thread Daffin, Miles (Company IT)
Why is that 'crazy' or 'bad'? Please elaborate. > -Original Message- > From: Larry Meadors [mailto:[EMAIL PROTECTED] > Sent: 11 February 2005 16:43 > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: How to pass variable from servlet to jsp? > > No offense, but that is *cr

RE: FormFile Question

2005-02-14 Thread Wu, William [IT]
rs Mailing List Subject: Re: FormFile Question William FormFileName has a getFileName() method which can retrieve the FileName ans write it out either as a property or session variable Anyone else? Martin - Original Message - From: "Wu, William [IT]" <[EMAIL PROTECTED]> To:

FormFile Question

2005-02-14 Thread Wu, William [IT]
Hello, I would like to know if it is possible to store the path of the file that the user is trying to upload utlizing FormFile. Thanks in advance, William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: Constants for property names

2005-02-11 Thread Daffin, Miles (Company IT)
My responses are interspersed. > Daffin, Miles (Company IT) wrote: > > What do people feel about using constants for property names? > > I can't really see the point. A property name is like a > variable name, it will never be displayed or localized, so > why would

Constants for property names

2005-02-10 Thread Daffin, Miles (Company IT)
Hi All, What do people feel about using constants for property names? In general I feel one should use constants for such things, but it is far from easy in a web app to do so. If I define a constants class (e.g. com.plok.app.constants.Keys) I can use this in everywhere in java code and in

RE: [OT-izzy]

2005-02-08 Thread Dahnke, Eric (Company IT)
That's flippin brilliant. Seriously, LOL > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 08, 2005 12:59 PM > To: Struts Users Mailing List > Subject: [OT-izzy] > > > http://sites.gizoogle.com/?url=http://struts.apache.org > > > > -- >

Possible Bug: validator_1_0: msg element. key always treated as resource, never literally?

2005-01-12 Thread Daffin, Miles (Company IT)
'A custom message.' in the list of errors. NB: resource="false". If I change this to true the result does not change. If I remove the resource attribute I get the same result. It seems that the msg element is ignoring the resource attribute and always treating the key attr value as

RE: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
Sorry for the outrageoulsy long-winded question. It really boiled down to this: how to get the PersonFormBean off the Object bean generically. The answer is to use PropertyUtils.getSimpleProperty(...). (BeanUtils.getProperty returns a String.) MD > -Original Message- > From: K

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
e() so that setting of the exception is done for > you. (or You have to set it in the request explicitly). In > the error.jsp you can retrieve that execption from the request. > > > On Tue, 11 Jan 2005 16:36:29 -, Daffin, Miles (Company > IT) <[EMAIL PROTECTED]> wrote

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
> The result could be logged. > > Hope this helps. > > JC > > > > > "Daffin, Miles >

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
> > > > > I am trying to have a common routine for Exceptions. > > > > Inside Action Class I am calling this common method, passing > > ActionMapping as parameter, doing some stuff like logging and then > > forwarding to error page. > > > > B

Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Daffin, Miles (Company IT)
tatic PersonFormBean somehowGetTheBloodyPersonFormBeanOffTheBean(Object bean) { // How do I implement this? // It has to be generic, in case I change my mind about the type of the bean, // e.g. make it a simple bean with getters and setters instead of using the DynaBean... return nul

RE: JSTL import url is broken? Surely not.

2005-01-07 Thread Daffin, Miles (Company IT)
spec for the gory > details on how > containers resolve those identifiers. You'll notice there's > no resource located > at "http://struts.apache.org/tags-html"; either. > > Quoting "Daffin, Miles (Company IT)" <[EMAIL PROTECTED]>: > > > D

JSTL import url is broken? Surely not.

2005-01-07 Thread Daffin, Miles (Company IT)
Dear All, The JSTL documentation states: "Using the Standard Taglib libraries is simple; you simply need to import them into your JSP pages using the taglib directive. For instance, to import the 'core' JSTL library into your page, you would include the following line at the top of your JSP pag

Extending ActionMapping to use

2004-12-08 Thread Dahnke, Eric (Company IT)
Hello, We would like to introduce a custom parameter into all action's ActionMappings. I've looked at a bunch of examples and threads, but can't get it to work. Here's the setup: Struts-config: -- CustomActionMapping:

Flexible ACLs using Struts

2004-12-06 Thread Dahnke, Eric (Company IT)
Hello, For a few Struts apps in a row now, we've used the roles attribute and an overriden processRoles() method in a custom request processor to handle access control within struts apps. A user's Roles are gotten from the database at login and stored in the User object in the session. The User ob

Adding rows (beans) to dynamic form

2004-12-01 Thread Daffin, Miles (Company IT)
Hi All, I apologise in advance for this question - but I have searched/tried all day without nailing a solution. I am using DynaValidatorActionForm. One of the fields is a list of qualifications. Each qualification has three fields (I have implemented this as a simple custom bean). I want the

RE: Want to reject all-whitespace text input.

2004-11-30 Thread Dahnke, Eric (Company IT)
's > validation process, > that always accepts whitespace? Or is there something else going on? > > Do I have to resort to accepting the all-whitespace input, > detecting it in > the ActionForm's validate metho

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
gt; Subject: Re: WAR based project layout vs Sun J2SE blueprint layout > > > I think most projects point "Tomcat" to the dev folder, and > then issue a > reload command. As soon as you change JSP or java and > "reload", you see it. > > Read up

RE: WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
Damn, that's not bad is it. I had thought of variations of that, but hadn't considered ant. Those types of ant tasks would be fast too wouldn't they. Having client siders use ant is not a show stopper (they use it now to reload after struts-conf and tiles-defs changes the

WAR based project layout vs Sun J2SE blueprint layout

2004-11-29 Thread Dahnke, Eric (Company IT)
The _HUGE_ downside of this approach is that for a client side jsp or html coder to work, they have to use at minimum Ant and often times have a full IDE installed, so they can WAR the application, deploy it, reload the app server, just to see if changing some column size gives them the output they w

RE: Searching pattern/best-practise for forms

2004-11-29 Thread Dahnke, Eric (Company IT)
That should be: public EmployeeDTO create(EmployeeDTO employee) Thinking and typing at the same time. ;-) > -Original Message- > From: Dahnke, Eric (Company IT) > Sent: Monday, November 29, 2004 10:56 AM > To: Struts Users

RE: Searching pattern/best-practise for forms

2004-11-29 Thread Dahnke, Eric (Company IT)
st, create, edit, update, delete > functionality) in Struts. I've read about the CRUD > (create/read/update/delete) pattern many times, but couldn't find any > in-depth papers on it. > > Is there any recommended how-to/tutorial/paper on this? > > Thanks for your he

Why does a Form Bean declared as session-scope appear on both session and request?

2004-11-26 Thread Daffin, Miles (Company IT)
Hi All, If I declare my bean scope="session" (struts-config.xml) the same instance of it turns up on both the request and the session: Session key: Request key: org.apache.struts.taglib.html.BEAN If I then change the declaration to scope="request" the same bean turns up

RE: Client side validation broken when using DynaValidatorActionForm.

2004-11-26 Thread Daffin, Miles (Company IT)
e. For example: > > method="validateForm" /> onsubmit="return(validateForm(this));"> > > Just use the name "validateForm" or change it to any valid > JavaScript method name of your choice. For more details see: > > http://forum.java

Client side validation broken when using DynaValidatorActionForm.

2004-11-25 Thread Daffin, Miles (Company IT)
form validating function is taken directly from the form name attribute in the form-validation formset (validation.xml), and this contains '/' characters because it is the path to the relevant action. Is this a bug, or am I misusing/misunderstanding something? Thanks. -Miles Mi

RE: Conditionally disable form input.

2004-11-20 Thread Daffin, Miles (Company IT)
ly disable form input. > > I'm sure Paul is correct here however just in case you are > content to submit the form when the checkbox is checked . > you could then conditionalise the text input field by > wrapping it in c:if or logic:equals tags in which you test > t

Conditionally disable form input.

2004-11-19 Thread Daffin, Miles (Company IT)
Hi All, I want to disable a text input if a certain checkbox input has been checked (meaning, in the following example, that the name input need not be filled in). My jsp code looks like this: I an using a DynaActionForm as my form bean. Ideally I suppose I would use an expression like: for

RE: Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
A + "');"%> > > > N/A > > > Paul > > > -Original Message- > > From: Daffin, Miles (Company IT) > > [mailto:[EMAIL PROTECTED] > > Sent: 17 November 2004 17:03 > > To: [EMAIL PROTECTED] > > Subject: Using constants f

Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
Hi All, I have found all sorts of ways to use constants for messages in struts, but no one seems to address the issue of property names. A simple example will make it clearer. I want to use constants for my property names. In my jsp I have the following code: N/A The above jsp code

RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-15 Thread Daffin, Miles (Company IT)
even > though ActionServlet has failed to initialize. > > On Fri, 12 Nov 2004 16:23:24 -, Daffin, Miles (Company > IT) <[EMAIL PROTECTED]> wrote: > > [snip] > > One assumes that the ActionServlet did not load the > ModuleConfig, and > > that the appl

RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
Struts Users Mailing List > Subject: Re: STRUTS Application still appears viable even > though ActionServlet has failed to initialize. > > Have you specified the load-on-startup attribute for the > controller Servlet in web.xml? > > Erik > > > Daffin, Miles (Company IT

STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
:986) ... - Root Cause - java.lang.NoClassDefFoundError: javax/sql/DataSource at java.lang.ClassLoader.defineClass0(Native Method) --- One assumes that the ActionServlet did not load the ModuleConfig, and that the application is *not* therefore really viable - although it seems to think

RE: Struts work in NYC

2004-07-12 Thread Anderson, James H [IT]
. 3-4 months w/ strong possiblity of extension. $40-48/hr Struts, Java web development work. Some XML, some workflow, the usual suspects. Please see the following, and use it to apply for the position. http://newyork.craigslist.org/mnh/sof/35823005.html Sincerely, Eric

OT - why to get an answer to a j2ee install question?

2004-06-21 Thread Anderson, James H [IT]
Sorry this is off-topic, but I'm hoping someone can direct me to the proper list. I'm trying to figure out how to install Sun's J2EE 1.3 package under OS X, but the only support provided is for Solaris, Redhat Linux, and Windoz. I need to find someone who's managed to do this. I'd be very grate

RE:

2004-06-14 Thread Anderson, James H [IT]
ction' book for a long time. But could not get it. Does anyone have address from where i can get it ? Regards, Janarthan S -Original Message- From: Shilpa Vaidya [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 4:25 PM To: 'Struts Users Mailing List' Subject: RE: hi

RE: Indexed properties working formbean->htmlform, not working htmlform->formbean

2004-04-30 Thread Berke, Wayne [IT]
Scott, That was it. Thanks a bunch. One thing I don't understand though. If the setProperty for the BeanUtils couldn't find an appropriate setter (which it couldn't until I declared setIsf() in the form), shouldn't it have squawked about it with TRACE level logging?

Indexed properties working formbean->htmlform, not working htmlform->formbean

2004-04-30 Thread Berke, Wayne [IT]
I've been tearing my hair out trying to get indexed properties to work. Apparently, there is some correspondence between the HTML fields and the ActionForm indexed properties because when the ActionForm is initialized, it does correctly populate the default HTML form fields. However, w

RE: Validation with 2 masks?

2004-04-22 Thread Berke, Wayne [IT]
Thanks for the reply. Actually, we thought of a different workaround, requiring somewhat less work, and I welcome your comments on it. Let's say the field we want to validate is "myField". The getter in the ActionForm is getMyField(). Suppose we simply add another method to

RE: Validation with 2 masks?

2004-04-21 Thread Anderson, James H [IT]
I hope someone responds to this...I need the solution to this problem as well. -Original Message- From: Berke, Wayne [IT] Sent: Wednesday, April 21, 2004 9:03 AM To: Struts Users Mailing List Subject: Validation with 2 masks? I'd like to a property validation against 2 diff

Validation with 2 masks?

2004-04-21 Thread Berke, Wayne [IT]
I'd like to a property validation against 2 different regular expressions with 2 different error messages. This seems like a fairly common use. Is there a best practice for it? Wayne - To unsubscribe, e-mail: [EMAIL PROT

Multiple ActionForms on a page - client side validation possible?

2004-04-20 Thread Berke, Wayne [IT]
Hi, I have a page that logically subdivides into 3 independent HTML forms and I've subsequently planned on using 3 different ValidatorForms for each. There seems to be no problem in configuring validations for each form's fields and having those validations trigger from the server side. Howev

RE: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-18 Thread Iwan Soenarto (IT)
10g Final (9.0.5.1 build 1605) is out! Just wanted to say my toughts about Jdeveloper10g. Simply it is GREATE!!. And there is no other IDE that can even compete with it. *It has everything that I need. * extraordinary performace ( I cant believe its pure java ;) ) * very very very organized. * I

Row

2004-04-14 Thread Iwan Soenarto (IT)
I have 100 records. How do I limit the number of row to display per page to 10 ? What technique should I use ? Tks Iws

RE: Struts boooks: remommendations?

2004-03-30 Thread Gardner, David [IT]
ook on web application development that happens to talk about Struts along the way, for example). So, what do people recommend? What books have you found most useful in that context? From the sample chapters on line it seems like Struts in Action may be a good choice but I don't know how u

RE: One Action class but more than one functionality

2004-03-30 Thread Prabhat Kumar (IT)
look at the org.apache.struts.actions.DispatchAction class. It is exactly for the use case you described. -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 11:28 AM To: 'Struts Users Mailing List' Subject: One Action class but mor