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
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
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
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
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(
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
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
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
]>,
"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
[EMAIL PROTECTED]>,
"Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>,
"Jules Daniells \(E-mail\)" <[EMAIL PROTECTED]>,
"Kate Brookes \(S&S Sydney\) \(E-mail\)" <[EMA
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
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
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:
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
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
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
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
>
>
>
> --
>
'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
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
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
> The result could be logged.
>
> Hope this helps.
>
> JC
>
>
>
>
> "Daffin, Miles
>
>
> >
> > 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
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
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
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
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:
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
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
'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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: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
. 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
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
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
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?
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
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
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
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
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
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
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
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
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
57 matches
Mail list logo