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
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 the way
Not exactly the same, since I have use of a list but here's how I handled
it in JSTL...
c:forEach items=${sessionScope.auditorList} var=auditor
varStatus=status
c:if test=${!status.last}
c:out value=${auditor.name}/,nbsp
/c:if
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
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
One other thing to check, I think name=myForm has to be type of
ValidatorActionForm, not the usual ValidatorForm.
Bart
Niall Pemberton
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:
c:if test=${empty
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
c:if test='${empty form.map[13]}'
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:
html:link action=getSearchResults name=SearchActionForm
scope=requesttest2/html:link
However when I load the jsp
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
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 -
Thanks for the correction. I want be so kludgy with spelling in the
future.
Durham David R
Jr Contr 805
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
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 this
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
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... So,
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
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-config.xml -
global-forwards
forward name
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 executing
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
Do you have the plug-in set in the struts-config.xml?
Dave Bender
[EMAIL PROTECTED]
We use option one - separate packages for actions, forms, dao, services,
util, etc.
Rick Reumann
[EMAIL PROTECTED]
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]
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
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. What I
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
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 PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13
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
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 to
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 var-jstype attribute to be regexp in the validation.xml.
Is this a valid tag? I don't see any reference to
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't
forget
to set the
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
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:
bigger snip
Yep. The error code in whatever form it is in (depending on your company
standards and convesions) can be used
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 isn't
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 higher
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:
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-mail:
Hadn't tried this one. Thanks.
Paul McCulloch
[EMAIL PROTECTED]
xiossystems.com
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 do
Thanks for the response.
You can specify the action
path in the html:javascript tag instead of the form name, and the
javascript tag will work fine -- basically, html:javascript looks for
the literal value from form name=... in the Validator XML config
-- whether it be a form name
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
Thanks for the tip.
mailto: [EMAIL PROTECTED]
Jim Barrows
[EMAIL PROTECTED]
m
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
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 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]
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
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.
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));
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
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
52 matches
Mail list logo