I'm moving to a new project and won't need to subscribe to this list for
the time being. Before moving on though, I wanted to say thank you to
everyone. The people here are great.
Seven months ago I had heard and read of Struts but never used it. I'm now
leaving behind a small web app built
>I need to know if this would be correct as well, where
> creditApplicationListDto.businessLine is a Boolean:
No. Kishore already explained.
>>Note that you can do this in the DTO if you want to and expose
>>the collection through a getter
Not sure if it's the "best" way but this would be t
Not exactly the same, since I have use of a list but here's how I handled
it in JSTL...
,
Bart
<[EMAIL PROTECTED]> wrote on 01/14/2005 02:04:07 PM:
> I have the following code that
> For Struts, O'Reilly has a pretty good book, the title of which elludes
me at the moment,
Programming Jakarta Struts 2nd ed - Chuck Cavaness
Stuts The Complete Reference - James Holmes was the first Struts book I
read and was very helpful. Each chapter gave a good overview before
getting i
I did a little work w/ this about 6 mos ago then the project was cancelled.
Depending on your WSAD version you'll probably need a plug-in for portlet
development. We also installed the portal server for testing. Here's a
link to the portal zone. Somewhere in there are charts that give all th
I've tried this but take javascript errors saying that the static function
is undefined. Apparently, the staticJavascript.jsp is not being
compiled/seen. All my jsp's are in /WEB-INF/jsp/*.
I've tried using every combination I can think of on the src= of the script
tag but can't get a resolu
One other thing to check, I think name="myForm" has to be type of
ValidatorActionForm, not the usual ValidatorForm.
Bart
"Niall Pemberton"
Ok, I missed this the first time. When I do this I first get the map and
pass the string key to the map.
Try adding a method to the form that exposes the map then give the key to
the map.
public Map getMap(){
return whateverYourMapIs;
}
then
"Asleson, Ryan" <[EMAIL PROTECTED]> wr
"Asleson, Ryan" <[EMAIL PROTECTED]> wrote on 10/20/2004 08:18:48 AM:
>
> [This question was posted to taglib-user list also but I received no
> responses. My apologies for the cross post.]
>
> Hello,
>
> I have the following JSTL code fragment that is failing:
>
>
>
>
>
>
Based on page
I don't have time for a long response but have you considered the
fmt:formatDate tag of JSTL?
"David Suarez"
<[EMAIL PROTECTED]
Frank,
Will this help? http://www.reumann.net/struts/nested.do
You didn't say anything about JSTL. Just today I'm working on populating a
checkbox field in an object that's contained in a list. Oops. I just
remembered I'm using html-el too. I haven't tried it with with plain html.
This
"Jeroen Breedveld" <[EMAIL PROTECTED]> wrote on 09/29/2004 08:40:56 AM:
> Hi all,
>
> I'm trying to create a link to an action using the Struts' html:link tag
> like this:
>
> scope="request">test2
>
> However when I load the jsp containing this l get the following
> exception:
>
> [Servle
Well I found the problem & it's embarrassing. For the sake of others I'll
humiliate myself. The jsp I was working on was a cut/paste I had
inherited. In adding some functionality I started using the jstl tags but
neglected to see if the taglib had been declared in the jsp. Of course, it
had
I'm trying to understand the interplay between the struts html- tags &
JSTL.
When using the c:forEach I'm not able to reference the page scope variable
in an html:link paramName attribute that's within the loop if the
Collection is empty or does not exist. I get a servlet exception - "
[Serv
Thanks for the correction. I want be so kludgy with spelling in the
future.
"Durham David R
Jr Contr 805
to all the others who helped.
Bart
"Arumbakkam, Praveen \(Contractor\)" <[EMAIL PROTECTED]> wrote on
09/22/2004 03:12:58 PM:
> Bmf5:
>
> Here is what I did to forward to a local file using the logic:redirect
> tag.
>
> 1. Declare a global forward in your struts-
I'm sorry to report it doesn't work. As best I can tell It wants to find
the file in the application context. I base that on the 404 and the
location being the RouterAction with parm...
http://localhost:9080/AIM/router.do?destination=handHeld
from a forward of
forward name="handHeld" path
"Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004
01:34:07 PM:
> Are you actually trying to FORWARD to the file or is your intention to
> initiate download of the file?
FORWARD
>
> Your specifying an HTML file though, so I assume you want the user to see
> that page.
This doesn't work either. I get a 404 for a local resource or an outside
url. I don't want to hardcode the document.location but I don't know what
other choices there are.
Hubert Rabago <[EMAIL PROTECTED]> wrote on 09/22/2004 12:00:00 PM:
> If you need to forward to a resource outside the
Is it possible to forward to a file on a hard drive? I set up a global
forward like this
forward name="lapTop" path="C:\project\WorkQueueLaptop.html"
I've since learned that the path is context relative so this is a no go.
What technique do I need to use? Is it possible to handle t
Thanks to Jim & Frank for your help.
While you guys were responding I ended up using a variation. If they click
save I go ahead and submit the form w/ a hidden field for destination. If
they don't want to save I go to a RouterAction with the destination as a
request parm. The RouterAction
I've got a requirement where if the user tries to leave a form without
saving changed data they have the option to save "on the fly" before going
to the link they clicked or go to the link without saving the data. On the
"save" option I pass the destination (the name of a forward in the
SaveA
If I'm understanding your scenario correctly your onclick needs to call a
function that will call the submit() on the form only if the validation
passes.
"Barnett, Brian W." <[EMAIL PROTECTED]> wrote on 09/20/2004 04:51:55
PM:
> Both the client-side and the server-side validation are executi
We use option one - separate packages for actions, forms, dao, services,
util, etc.
Rick Reumann
<[EMAIL PROTECTED]
Do you have the plug-in set in the struts-config.xml?
"Dave Bender"
<[EMAIL PROTECTED]>
I use WSAD 5.0 for dev and out of nowhere it started using up all my
machine's memory (1G). There's not much in the log which is below. While
I'm waiting for support to call I was wondering if anybody has ever seen
anything like this? This is happening when all I'm doing is editing a file
i
I missed(forgot) the fact that validate defaults to true. Add one line to
config file & Viola!
[EMAIL PROTECTED] wrote on 09/16/2004 09:42:37 AM:
>
>
>
>
> I'm obviously not understanding something.
>
> I've got a requirement to initially display a blank form with some
> checkboxes checked.
I'm obviously not understanding something.
I've got a requirement to initially display a blank form with some
checkboxes checked. What I have is a TakeoverAuditAssignmentForm with a
setDefaults() method that sets the checkboxes to true. My NewDealerAction
calls the setDefault() method then g
How do I send a question & include code so that the tags aren't parsed by
the browser in the archives?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
he.org>
hi bmf5,
yeah its struts1.2.2 feature. You can get the beta version of
it n
then add it in ur code instead of putting struts 1.2.2 jar file.
sachin
xoriant mumbai
-Original Message-
From: [EMAIL P
I just read about this this w/e and it suits my needs perfectly. However,
I can't find it in 1.1 struts.jar. Is it a 1.2 feature?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Thanks for the help. I wasn't instantiating a new object before adding it
to the list. Just added the same one over & over. Duh!
mail <[EMAIL PROTECTED]> wrote on 09/11/2004 03:48:57 PM:
> Well, the snippet below looks fine and should definitely work.
>
> So, if your result doesn't seem t
I'm having a heck of a time figuring out how to use this trio. I'm so used
to a for loop in a scriptlet.
I've gotten to the point where my jsp sees the collection stored in session
scope. The tags even display the right number of options. However it's
always the last entry in the collection
Matt Bathje <[EMAIL PROTECTED]> wrote on 09/10/2004 03:02:40 PM:
> It looks like you are missing the Jakarta ORO jar
yep again. Thanks Matt.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I've been using the Validator successfully on other forms. Now that I'm
trying to use the mask validation I get an InvocationTargetException due to
a NoClassDefFoundError on org/apache/oro/text/perl/Perl5Util
Could I have a jar file missing? I'm using Struts 1.1 in WSAD 5.0.
-
Matt Bathje <[EMAIL PROTECTED]> wrote on 09/10/2004 12:27:10 PM:
> [EMAIL PROTECTED] wrote:
>
> >
> >
> >
> > I pulled this old thread off the archives in order to give context to
a
> > couple of questions
> >
> >
> >
> >>And if you want to do a javascript validation on it as well, don'
I pulled this old thread off the archives in order to give context to a
couple of questions
>And if you want to do a javascript validation on it as well, don't forget
to
>set the attribute to be regexp in the validation.xml.
Is this a valid tag? I don't see any reference to it in the
"Jim Barrows" <[EMAIL PROTECTED]> wrote on 09/09/2004 01:23:12 PM:
snip
>
> Yep, that's it. I know what went wrong in general, and can drill
> down to the specifics if I need to for error reporting.
> In general I always at least include the PK in a message, even for
> an exception that
Brett Connor <[EMAIL PROTECTED]> wrote on 09/09/2004 02:03:00 PM:
> [EMAIL PROTECTED] wrote:
>
> >Brett Connor <[EMAIL PROTECTED]> wrote on 09/09/2004 12:22:39 PM:
> >
> >
>
>
>
> Yep. The error code in whatever form it is in (depending on your company
> standards and convesions) can be u
"Jim Barrows" <[EMAIL PROTECTED]> wrote on 09/09/2004 01:00:11 PM:
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 09, 2004 9:52 AM
> > To: Struts Users Mailing List
> > Subject: RE: Best practices for localization of ex
Brett Connor <[EMAIL PROTECTED]> wrote on 09/09/2004 12:22:39 PM:
> [EMAIL PROTECTED] wrote:
>
>
> >I've started using chained exceptions per the suggestion in Struts in
> >Action. I'm also trying to localize the messages. What I'm not sure of
is
> >the best way to get the locale down to
snip
> I'll catch an SQLException, put it in a DAOFailureException ( which
> inherits from DaoException typically), throw it. BO catches, rolls
> it into an DataStoreFatalApplicationException (which inherits from
> FatalApplicationExcpetion, which inherits from BOException), and
> throws it
I'm learning and building as I go and have run into a situation that I'm
not sure if I'm handling right.
I've started using chained exceptions per the suggestion in Struts in
Action. I'm also trying to localize the messages. What I'm not sure of is
the best way to get the locale down to the
Chris,
In our app we're building a model object Assignment from a dao object
AssignmentDAO. We then fill the form AssignmentForm from the model object.
All this is controlled from the AssignmentAction.
I think I've recently read that in general a "lower" layer should not be
aware of a "highe
Hadn't tried this one. Thanks.
Paul McCulloch
<[EMAIL PROTECTED]
xiossystems.com
Before I submit questions to the list I try to search the archives.
However, I often get "no matches were found" on a very generic search, eg.
"date". Is there a problem or am I doing something wrong?
-
To unsubscribe, e-ma
I'm confused.
The Struts acquiring page says 1.2 is the best available but the download
page has the 1.1 release. Is there some other page to get the 1.2? Or, am
I misunderstanding something?
-
To unsubscribe, e-mail:
Thanks for the tip.
mailto: [EMAIL PROTECTED]
"Jim Barrows"
<[EMAIL PROTECTED]
m
>>you could format them yourself, either in the setter (yuck), or in the
action.
Why not in the setter? Sometimes I'll use the setter to populate some
other fields privately that then get used later on in the form. Example: I
get a decimal number representing time off the db. The setter mov
Thanks for the response.
>You can specify the action
> path in the tag instead of the form name, and the
> javascript tag will work fine -- basically, html:javascript looks for
> the literal value from " in the Validator XML config
> -- whether it be a form name (ValidatorForm, DynaValidatorF
When I search the archive I get no results for the word "date" so here
goes.
I've been using the validation plug-in to validate the date format of
MM/dd/. A new requirement is to allow the user to enter a date in one
of several formats(mmddyy, mm/dd/, and others). Can the validator d
Thanks for the advice.
I've already been in the code this AM and put dynamic screen titles in the
header. We'll make it happen.
Michael McGrady
I've recently inherited a system in development that was started using
templates instead of tiles. My question is - is there much effort to
convert from templates to tiles. Secondly, is it recommended?
I'm in a time crunch as I'm learning Struts as I go and deadlines have to
be met. I'm not
I've found Struts - The Complete Reference by James Holmes very helpful.
It's organized well with good overviews before detail and complete code
listings not just snippets.
Bart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Kishore,
Bingo! Thanks, that's it! I thought I had it set up right. It makes
perfect sense now though.
Thanks again.
Thanks to Jim too for your help.
I'm also grateful to Mark for the chuckle we got ( I showed some colleagues
who are learning Stuts w/ me) from your first response. I'll
>>OH that's it make me think I had the easy solution :) *LOL*
>>I'd try stepping through the add code and see what it's doing. Course,
you've probably done that.
I was hoping for an easy solution. I figured surely someone has run into
this before.
I'm stepping through the Struts code right
My bad.
That was some code I was trying just to see what would happen. This line
gets the same results and is the one I started with. Promise.
errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionError(
"errors.physical.takeover"));
Below are snippets from my form. I'm working on the first check of
several. But have hit a wall with this problem.
The problem doesn't occur without the "errors.add("Test add", new
ActionError("errors.physical.takeover"));"
line of code. With it the validate() method got called 163 times.
I'm new to Struts and couldn't find anything about this on the archive so
please bear with me if I'm repeating a question.
I'm developing a Struts 1.1 web app and trying to implement the validation
plug-in. Things went well as long as I was only using the validations that
came with the plug-i
59 matches
Mail list logo