the 'value' attribute of the tags
that render HTML form elements.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
struts-config.xml so we can see what you've got.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
=searchType value=${someVal} /
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
conflicting answers is that some of us are
using new builds where unspecified works fine, and some are on other,
older versions. The nightly builds are very stable, I recommend them
and have no problems using them in production.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information
for specified
request parameter included in the request. Subclasses of DispatchAction
should override this method if they wish to provide default behavior
different than throwing a ServletException.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
links with no request
parameters at all, and the unspecified method is called as described.
(I use nightly builds, so I don't know when it started working that
way...)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
but there is no replacement, so you get a bunch of warnings
if you use it. I don't think you'll have a big problem going from 1.1
to 1.2.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe
them to go through the HTML page if you can do the default
behavior with no user input.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED
and return that.
Looking at some old code, that's what I used to do... The newer project
doesn't have an execute method and it works fine when the parameter for
a LookupDispatchAction is not in the request.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
on by HTML
purists.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
that you shouldn't be writing. ;)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
. Or, I've used 'mode' and
'userAction' with no problems. Anything but 'submit' (or any other HTML
keyword).
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail
Practices, which
is not, I think, what you're after. Or maybe it is. :)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
going to do this, you
might want to remove the form from the session when the user is
finished with it, whatever that means in this particular app. Then if
they start over the framework will make a new form.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
'/' is coming from, or if it matters at
all?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
servlet container.
If you're using Tomcat, this might help:
http://jakarta.apache.org/tomcat/faq/misc.html#persist
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail
. Is that what you wanted?
Here's what I use:
myCookie.setMaxAge( 2592000 );
(I think it's the number of seconds... Check the API.)
If that's not the problem, can you be more specific about what's not
working?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
to
send them off wherever they belong.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: Craig Tataryn [mailto:[EMAIL PROTECTED]
this.servlet.getServletContext().getAttribute() should give
you access to beans in the user session.
Application/Context scope != Session scope
--
Wendy Smoak
right now to chase it down. :(
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for the ActionForms.
I'm not sure how you intend to retrieve the values in your Action code.
If you're using request.getParameter() then there's no reason to use the
Struts tags, just use plain-old html form and input until you decide
you need something that Struts offers.
--
Wendy Smoak
Application
be for the nightly builds? There is a 1.2.0 release out
now, although AFAIK it has not been promoted to an official/stable
version.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
are way too late to be checking whether the user is
allowed to be there.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
LookupDispatchAction, so the form is always there, although if it comes
in with no parameter, the unspecified method will pre-fill the form from
the database.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
an error?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
sending a CSV from my Struts
app, but there is a huge demand for Excel. I've started experimenting
with the XML structure of an Excel Workbook, but I don't know how far
that's going to get me.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
, I can add
it to the .properties file temporarily until I can recompile and deploy
the changed version.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL
a new TreeMap
with no Comparator, and dump the items in.
It's a little different with List than Map. What type of Collection is
'teachers'?
And you don't have to put it in the session, it might be in the request,
or be a form property.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA
:
document.forms[0].submit();
inside the ending } of your 'set' function. And perhaps change its name
to something more descriptive.
This assumes you always want to submit the form, even if they say 'no'
to the question.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources
in getKeyMethodMap. When it finds a
match, it will invoke that method.
Be sure to write the 'unspecified' method and give a default behavior.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
to maintain a business object plus
some lines of XML. Or you can use a tool to generate all the get/set methods for a
regular ActionForm.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
still not understanding properly, please try again to explain
what you need.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
--
if you leave it as 'action' at least document this issue clearly. I
know I spent a while trying to figure it out!
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail
form bean in the Action, and then let the Struts tags do
their thing.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
the correct attributes for html:options
depending on your situation:
http://jakarta.apache.org/struts/userGuide/struts-html.html#options
You do not have to do the iteration manually, the 'options' tag will do
it for you, and the enclosing html:select tag will pick the right
one.
--
Wendy Smoak
I think it's looking for a getBooks() method in your form bean, which
returns a Collection. Is that where getBooks() really is? Or is it a
session attribute?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
retrieve it
from the database.
The problem seems to be that whatever Struts is calling 'getBooks()' on,
does not have that method.
Lets get that part cleared up, then I think there's a problem with your
html:optionsCollection tag.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA
in both cases.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Robert wrote:
Are you using DispatchAction or LookupDispatchAction?
LookupDispatchAction. And even worse, it's a cookie that controls which
tab to show, not always a request parameter. I think I may have
painted myself into a corner...
-Wendy Smoak
fields were on
the form and only check those. :)
However, I think I've got it down to using both DynaValidatorActionForm
*and* the new MappingDispatchAction. That will mean I can have totally
different URLs for each tab and still have all the methods in one
place.
--
Wendy Smoak
Application
are in request scope under the key
org.apache.struts.action.ERROR but all sorts of variations of this break
my page:
c:if test${not empty request['org.apache.struts.action.ERROR']}
It's late on Friday, I'm probably missing something really simple...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Check the logic:messagesPresent and
logic:messagesNotPresent and see if
they do the trick for you.
Yes, logic-el:messagesPresent did the trick. Thanks!
But I still think it should be possible with JSTL...
--
Wendy Smoak
Application Systems
. Please advise regarding the
directory in which this properties file is supposed to
be for my code to read it properly.
WEB-INF/classes will be on the classpath, so you can place it directly
there, or underneath and use dotted notation like package names to refer
to it.
--
Wendy Smoak
) I'm also curious if it's the XML parser, or the
Servlet container, etc. What component would make the call out to get
the DTD?
I've always wondered...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
the problem will go
away.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:8080/struts-blank does not present any
problems.
With the form-bean definition you posted in your last message, which
field is it complaining about? When/where do you see the error? Can
you force the error to occur in a minimal webapp?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA
in validation.xml.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, I'm not sure this is the best way to do it, but it
works...]
What type of Collection is 'books' in your example?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail
that with several links on my pages, and it works fine.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
doesn't get involved other than
writing out the img tag.
I had the same problem with the appended jsessionid, and when the
content is dynamic, I used this:
link rel=stylesheet href=c:url value=${css}/ type=text/css
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources
field.
-Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and html:options are here:
http://jakarta.apache.org/struts/userGuide/dev_html.html
Give it a try and post what you come up with!
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-html.html#select
Specifically:
onchange - JavaScript event handler executed when this element loses
input focus and its value has changed. [RT Expr]
So 'updateAccounts()' is a JavaScript method [or function??] in my page.
You can probably take that part out. :)
--
Wendy Smoak
Application Systems
, and it's not the one that has that method. How you fix
that depends on where 'supervisors' lives.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED
yet.
I was able to get 1.5.0 Beta 1 from there with no problems.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
that
will delete the unneeded records when the session dies.
It's not clear if this webapp is display-only or if you're doing
database updates at the end of the wizard.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
of catalog items, and clicking on one of them opens a smaller
window with details?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
oversimplifying, but I don't see why you need to go directly to the JSP.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, and skip
validation in that case.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, but that produces annoying deprecation warnings due to the use
of ActionErrors. And I know I'll have to re-do it whenever ActionErrors
really goes away.
I don't think it's worth writing a custom validator for, but I wondered
if I had missed an existing way of doing this.
--
Wendy Smoak
examples of how to send an email from Java,
if that's the part you're stuck on. I would put that in a helper class
which gets called from the Action. That way you can reuse it in other
projects that may not be Struts based.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information
? Then you can send the
request where it belongs before it ever gets to the Action.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
an Action first, and not allowing
direct access to JSP's, right?)
I prefer the Filter because it's not Struts specific. It just looks for
a cookie or looks for something in the request or session, and either
lets the request pass through or redirects elsewhere.
--
Wendy Smoak
Application Systems
property=accounts value=${acct}/
c:out value=${accountMap[acct].costCenterDesc}/
/c:forEach
I could just hit delete now, but instead I'll archive my mistake: I
used checkbox with a String[] property. The second snippet has the
correct tag: multibox. Which is why that one works.
--
Wendy Smoak
have to know the parameter *before* the
form was filled out, when the HTML was generated. What is your
objection to a submit button?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
access it using scriptlets?
One of these should help:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg88237.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg83867.html
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
the button _looks_, right? You can
change that, to a point.
What about putting the employee ID as a hidden field on the form, so
that it will get submitted without being displayed on the form?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
option value=zz/option
/select
It's the 'value' that will get sent to the server, not the displayed
text.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e
From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED]
How can I do to send the value displayed ?
Can you post the code from the JSP the way it is now? Someone can
probably help you change it so that it does what you want.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA
a container, I don't think it should know about
the session. I'd go with setting one or more properties of the Form
bean when you're populating it. There's no rule that every form bean
property has to correspond with something visible on the HTML form.
--
Wendy Smoak
Application Systems Analyst, Sr
not a recommendation, just an option!)
But it would help if you'd post the code from the JSP that you're using.
Right now I don't know if you're using html:select or if you're
'manually' writing out the select tags.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources
accounts based on the selected year, does anyone think this
ought to work the way it is?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED
JavaScript to set a value and submit the
form when a link is clicked.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
be any Struts tags on them. I'd still run
them through an Action, (or some other controller Servlet) otherwise
where will you do the database read?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
(org.apache.struts.action.ActionMapping)
public void initialize(ActionMapping mapping)
Initialize all bean properties to their initial values, as specified in
the FormPropertyConfig elements associated with the definition of this
DynaActionForm.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information
purposes. My vote is to put your values in
the session and don't look back. Others may disagree...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED
fields.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
your values as you go along.
action
path=/accountInquiry
type=com.example.AccountInquiryAction
name=accountForm
scope=session
...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
with the Struts 1.1
binary distribution, and then you'll have the documentation that goes
with the release you're using.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
of it? (And possibly post the non-EL
version, if you want...)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
clicking on that button/link will cause the 'search' method to be executed.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsMessages
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Wendy, are you using that code with 1.1?
I'm using a recent nightly build, so it's probably considered 1.2.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
=2/) that way I don't
have to go through this every time I need to use a new attribute.
What happens if you need to use two unsupported attributes in a single
tag? I'd just extend the tag and do it right... How many browser
specific attributes are there?
--
Wendy Smoak
Application Systems
From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED]
How can I iterate over a collection which depends of a request
parameter?
JSTL and/or Struts-EL can probably help, but I'm not quite sure what
your question is. Can you give an example?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU
class is getModelList from?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
at the page just before you get the error. Whatever is happening
there, it's not sending the 'method' parameter.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL
as the value.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
' and get rid of
the underscores. You should then have getGroupName() and setGroupName()
methods with exactly the same type (and no other similarly named methods
with different signatures). For the rest of the rules, read the
JavaBeans specification.
--
Wendy Smoak
Application Systems Analyst, Sr
.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
not been able to figure
out how to get it to generate form beans without getting into any EJB
stuff, (which I don't use,) but it's supposed to be possible.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
I
copied it from somewhere...
ActionMessages actionMessages = new ActionMessages();
actionMessages.add( ActionMessages.GLOBAL_MESSAGE,
new ActionMessage( error.no.contact.found ) );
saveMessages( request, actionMessages );
return mapping.findForward( failure );
--
Wendy Smoak
=accounts type=java.lang.String[] initial=???
/
Essentially, I need this: new String[] { };
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED
value=${acct.key}/nbsp;
br/
/c:forEach
If you're after the sequential numbers of the iteration, forEach has a
varStatus attribute that will expose the number. The iterate tag
probably does, too.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
. What's the latest simple,
clean way to place an error message/key where it belongs so that it will
get displayed on the form? (It's not necessarily related to a form
field.)
Thanks,
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
that in who knows
how long ago.)
Assuming you're on a 2.3 compliant container, Tomcat 4.1 is fine. Also
make sure that you put the tags in the right order according to the dtd.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
in the 'classes' directory so they'll be visible on the
classpath and I can get to them with getResourceAsStream().
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL
find out that
you've lost the user's input. :)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
of the form before submitting.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
into the
abstractObject and failed
You can't have two properties (and by extension two 'set' methods) with
the same name. Form beans must conform to the JavaBeans specification,
or else things fall apart very quickly. As you can see, the framework
has no way of knowing which method it ought to use.
--
Wendy Smoak
1 - 100 of 497 matches
Mail list logo