Why object mapping? It is a design pattern that helps with separation of
concerns in the database application.
Look up Data Access Object in google for more information.
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611
You could do this using JavaScript using the same form...
I used the "display" property of form elements (set to 'none' they
disappear, or set to '' they reappear) in the onChange handler of a select
box, that worked fine. You could put one in the onClick of your submit
button if you have to do
maybe you need this:
application
resources.ApplicationResources
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
--
I don't know if that's right - I had a similar problem though until I put
this in my web.xml
But I assumed that your properties file is, like mine, in
WEB-INF/classes/resources/ApplicationResources.properties
sorry, I should have been more explicit in what I meant.
application
resources
This is off topic but I couldn't wait til casual friday...
I have the following problem in my web-app.
When I try and get a blonk off of the bloon-arg processor my ding-dong
crashes and I get a knack-trace that says
"unable to agnagle blonk in any rope - what is a blonk?"
I have the following
> Nottingham Forest beat Luton 2 -1
I tried that and it worked. oh and yes to your other blonk.
Cheers, Heya
Mark Lowe <[EMAIL PROTECTED]>
06/11/2003 08:04 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
You should use an ActionForm to store parameters. Your hidden fields can
get the value from the request like this:
<%-- hidden field (mode is one of "create", "edit", or "view") --%>
Of course there are other ways to do it but once you have more than your
two params you won't w
> Maybe they can tell you a fancy -el/JSTL way to do it. :)
yes, if you use html-el:text instead then you should be able to use an el
expression a'la:
" size="82"
maxlength="25" tabindex="1"/>
you'll need something like this at the top of your jsp
<%@ taglib uri="/WEB-INF/struts-html-el.tld"
Sorry, shouldn't have copy/pasted. I meant
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
This is a PRIVATE message. If you
Why are you using a page parameter in the html:link tag instead of a href
attribute?
try
Eric Chow
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
-
hmm ... not sure why that is... I rememeber reading something by Ted
Husted where he recommended using
html:link forward=""
instead of
html:link page=""
but I didn't follow it up, you could do a google search for this thread
and might get some help there.
you could also try using html-el:link i
The trick is to have a hidden field with the same property as the
checkboxes... then you have an array of checkbox ids that you can iterate
through.
I had a form where I wanted to delete a bunch of rows from a table... the
user has to select which row to delete by checking a checkbox and then
Hi Ajay
I am doing something similar... I have a Tree class and a Node class to
represent either branches or "leaves" of the tree.
The Tree class has a field called treeRoot that represents the root Node.
I ha ve an action that creates the tree and puts it on the request
then in the JSP I have
Hi Ajay,
Sorry, I didn't realise the problem had to do with checkboxes. I can offer
a clue or two perhaps but you would be best off reading the struts doco on
checkboxes.
clue 1: checkbox values are stored as Strings.
clue 2: only selec ted checkbox values are submitted, not unselected ones.
An easy way would be to have a field in the JSP that corresponds to a
field in your ActionForm.
The you just put your message into the form field.
For instance I often display debugging information using a hidden field
and I set write="true" when I want to debug
eg I am running database quer
I like to avoid putting javascript logic in the JSP tag itself (although
you can usually do it if you get the syntax right).
I usually pull the script out of the tag like this:
function deleteEvent()
{
if (confirm('Do you want to delete this event?'))
Are you casting the ActionForm in to your own form in your save action?
like:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletRespo
your properties file should be called ApplicationResources.properties
according to your config file.
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
-
This is one of those wild crazy ideas that you asked for...
I know you grepped but maybe didn't grep properly?
There are usually two copies of your resources files, one under your
source directory and that is copied to your classes directory by Tomcat.
The one in classes is actually read by the
The cancel button's value will be placed on the request iff it was
clicked... so you will test for its presence with something like:
if(request.getParameterValues("cancel") != null)
{
// set your cancel forward mapping eg. clear the form.
}
else
{
// set your submit forward mappi
You will need to change your getter method to getGroup_name()
Struts uses the name of the field when it looks for a getter or setter method. It will assume that the first letter of the field name is capitalised after the get (as per general JavaBean standards). getGroupName will not be recognized
There is a reason why people choose field names like group_name with
underscore and no "CamelCase": it is to mirror the column names in the
database. I personally agree with you in general terms but if DBAs insist
on their "of" notation (the underscore means "of" or something
syntactically simi
Just set up an forward for validation failure. You can do this in your
struts-config.xml file, in fact you can have as many forwards as you
like, but for practical purposes most people prefer to have at most three
or four forwards per Action. For example, you might have a SaveAction that
forwa
I think you have to do this in code in your form's validate method.
errors.add(new ActionError("errors.email"), emailAddress);
I could be wrong but this is the way that I do it anyway... I'm not sure
if the struts validator can do this using an expression like you have
tried to do.
Heya Gospe
oops, you could be right. I left that out when I was genericising my
action tag... just trying to make it more generic.
However, my point is still that when validate fails then the errors will
not be empty... that is where your action tells struts to forward as:
> forward = mapping.findForwar
I looked up client/server programmer on Monster.com and got the average
for Vermont:
Client/Server Programmer I Burlington, VT
25th%ileMedian 75th%ile
$42,973 $48,589 $55,303
Programmer I Burlington, VT
25th%ile Median
Hey! Did you read my resume?
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
This is a PRIVATE message. If you are not the inte
Okay, OT is okay as far as it goes but lets not turn the struts mailing
list into a forum for the great Sydney/Melbourne rivalry. Please.
Anyway, everyone knows that Canberra is best. :-)
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 6246
Looks like you don't have the error string correct (ie you may have a
misspelling)
"errors.cartIsEmtpy"
Check your properties file. However, usually you'll get an error saying
"cannot find bean error in any scope" if that was the case... did you have
any more console output? this somet
29 matches
Mail list logo