The input can reference another struts action that is able to do the
dynamic determination, e.g.
input=/determinator.do?valid=no
or some such thing.
Jim
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 10, 2002 1:47 PM
Help? Please?
- Original Message -
From: Jim Crossley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 10:39 AM
Subject: Something ate my submit request parameter
I just tried to upgrade from 1.1b1 to 1.1b2.
In my jsp page, I have a nested form that includes
of a property attribute. Is that
behavior so bad?
Jim
- Original Message -
From: Jim Crossley [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 17, 2002 10:08 AM
Subject: REPOST: Something ate my submit request parameter
Help? Please?
- Original
I just tried to upgrade from 1.1b1 to 1.1b2.
In my jsp page, I have a nested form that includes multiple submit buttons:
html:submit value=Back/
html:submit value=Next/
html:submit value=Finish/
With b1, I used to get a request parameter named submit. With b2, I
don't. My app
]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Robert [EMAIL PROTECTED] writes:
The question of 'if you should' is always up for grabs :-), but it comes
closer to a 'yes' if you need to have multiple client types/outputs,
such as HTML, PDF, WML, etc. If not, then it _may_ not be worth it to
use.
We've found that XSLT works very well
[EMAIL PROTECTED] writes:
Does anybody know how to test JSP using JTest which has Taglib or is
there any other test tool available to test struts based JSPs.
I like httpunit (http://www.httpunit.org) for complete end-to-end
testing.
-- Jim
--
To unsubscribe, e-mail: mailto:[EMAIL
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Craig R. McClanahan [EMAIL PROTECTED] writes:
In the Tomcat 4 distribution, there is an Application Developer's Guide
document that describes some best practices at organizing your source
code repositories for webapp development, and includes a nice prebuilt Ant
build.xml file that
Malcolm Dew-Jones [EMAIL PROTECTED] writes:
dbh = get_database_connection()
initialize_some_beans( dbh , other , stuff );
try
{
return (mapping.findForward(success));
}
finally
{
close_connection_no_matter_what();
}
Obviously the above does not work.
Perhaps not so
Shane Bouslough [EMAIL PROTECTED] writes:
[...]
logic:iterate id=foo name=fooList
Foo=bean:write name=foo/br
/logic:iterate
[...]
Foo=a href=/process.do?foo=XX/abr
How can I embed the output of bean:write to be part of
the value passed to the page= parameter
Hi Brian.
Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes:
Is it possible to add a string to an ActionError instead having it get the
string out of the properties file. I need to be able to give dynamic error
messages that are changing.
You could put this in your properties
In the nightly build, it's in server/lib.
Chen, Dean (Zhun) [EMAIL PROTECTED] writes:
The document keeps referencing catalina-ant.jar
but I don't see it anywhere. I have Tomcat 4 Release version. The directory
structure seems different from the documentation. Any one know where I can
get
Or put this in your form:
html:cancel/
And this in your Action:
if (isCancelled(request))
return mapping.findForward(home);
-- Jim
Galbreath, Mark [EMAIL PROTECTED] writes:
Try this:
html:cancel value=Cancel onclick=javascript:location='/do/home' /
Mark
-Original
.
If anyone has figured this out, please post a solution.
Thanks,
Mark
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
the action.xml
were past without maching.
Has this someone realized so far?
thanks, Rainer
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
=/ResetPasswordQuestions.jsp /
forward name=success path=/gln/ResetPasswordNewPassword
/
/action
Carl
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
Here is Mark's example refactored to use the html:options tag.
html:select property=ccExpYear
html:option value=0Year/html:option
html:options name=listExpYears/
/html:select
-- Jim
Galbreath, Mark [EMAIL PROTECTED] writes:
Here's a simple example of how I retrieve a List of years to
even possible and I'll have to use the iterate tag over my
collection and then make the option names from bean:write tags ??
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
Shawn Catoe [EMAIL PROTECTED] writes:
With the same set up, just the slashes added to the action's path attribute,
input attribute, and on the form tag attribute, I am getting the same error.
Anyone have any other thoughts on this?
Thanks,
Shawn Catoe
!-- Process a login. --
Jim Crossley [EMAIL PROTECTED] writes:
form action=/login.action method=get name=loginForm
That won't work. For the above action, your jsp should contain this:
html:form action=/login
If you insist on not using struts tags, the equivalent is this:
form action=/YourWebAppName/login.do
]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
of free games.
-Jack Handey
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
istokenvalid and it returns false
Can anyone explain me !!!
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands
]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
the form?
Is there any way to add Selected to the html:options tag?
There shouldn't be a need to do this.
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
();
response.setContentType(application/vnd.ms-excel);
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi Jon. This would happen if your formbean was in request scope
(specified in struts-config.xml), but I wouldn't expect it to happen
in session scope.
Do you have a reset method defined on the formbean? Could it be
causing problems?
-- Jim
Jon.Ridgway [EMAIL PROTECTED] writes:
Hi All,
I
Sanjay Choudhary [EMAIL PROTECTED] writes:
Is there a way to configure so that if we make any
change in application defination files for Tiles, it
can get automatically be reloaded. Right now I have to
reboot the web server every time I make changes to it
and at times its really
[EMAIL PROTECTED] writes:
[...]
So here's my 2 question(s):
1. I then assume that perform() is synchronized
No. If all data objects are local to the perform method, there's no
reason for it to be synchronized. If the data objects referred to in
perform are shared, then their access
Bhaskar Gopalan [EMAIL PROTECTED] writes:
Hi,
is there anyway to access the ActionServlet from inside a formBean or Action
class?
Both Action and ActionForm have a protected member called servlet, to
which all subclasses have access.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
the ActionServlet, so can I access the
ExtendedActionServlet from MyAction class?
Any help would be highly appreciated.
--Ajay
-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 6:23 AM
To: Struts Users Mailing List
Subject: Re: Accessing
Kumari, Ramana [EMAIL PROTECTED] writes:
My question is not really related to Struts, but i thought i could
ask you guys about this so that i can get some answer this might
help some developers.
Maybe, but it's still not an appropriate list topic.
So My question is if i have an ArrayList
. If you have received this email
in error destroy it immediately.
**
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
Hi Jose.
The name property should refer to an actual name, not a class. The
name you should use will be the one referred to in the name
attribute specified in the corresponding action tag in
struts-config.xml.
-- Jim
Jose Casas [EMAIL PROTECTED] writes:
Does anybody know what this error
=/failure.jsp /
/action
/action-mappings
/struts-config
what did i do wrong?
Thanks for your help.
Jose Casas
E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]
-Original Message-
From: Jim Crossley [SMTP:[EMAIL
-
From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:43 PM
To: Struts Users Mailing List
Subject:Re: error
What you have looks correct to me, Jose. What are you trying to pull
up in the browser: the JSP or the Action? The error you're
someone else on the list can clarify better than I can, but
everything I'm saying is already said well-enough in the user guide,
IMHO.
Thanks for trying.
Jose Casas
E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]
-Original Message-
From: Jim Crossley [SMTP
) 277-3112
[EMAIL PROTECTED]
-Original Message-
From: Jim Crossley [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:40 PM
To: Struts Users Mailing List
Subject:Re: error
Jose Casas [EMAIL PROTECTED] writes:
I know how all that works
of the
select with the choice made.
--josef
--- Jim Crossley [EMAIL PROTECTED] wrote:
Here's how I would do it. Change the name of the
existing method that
returns a collection and add a method to get the
vname:
public Collection getVnameList(){
return new DBAccess().getVendorNames
I don't think that's correct. As long as you refer to the password
property in your JSP, you may use getPassword/setPassword, regardless
of the name of the data member they encapsulate.
In other words, it's not the name of the private data member that
determines the names of your public
In your formbean, you need to distinguish between the value selected
and the values able to be selected. You've accounted for the latter.
You need another method to account for the former. The property
referred to in your bean:define (returning a Collection) should not be
the same property
}
Then change your bean:define property to vnameList. That should
do the trick.
-- Jim
josef richberg [EMAIL PROTECTED] writes:
That I understand. What I don't understand is how to
do that. How can I reference the value chosen in the
select? The id is tied to the bean.
--josef
--- Jim
Hi Enrigue.
Enrique Rodriguez [EMAIL PROTECTED] writes:
When can i get the paremeters from it??? Only When I'm in a JSP?
I Attach my example. Please take a look.
You seem to be confusing attributes with parameters. They're not
the same thing. You're calling setAttribute in Action1 but
Lasterra
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
do I set in this form object, to have it preselect an
element in the select list? Thanks.
Scott Danzig
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail
]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
of looking
in the session for something indicating a successful login is the
same.
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Jim Crossley
http://www.lads.com/~jim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I don't think you need the onclick events for html:image tags. I
*think* they're all going to submit your form anyway. So in your
action, you'll need to look at the request to see which button the
user pressed. Image inputs are tricky though, because instead of just
their name (or value, I
Cedric Dumoulin [EMAIL PROTECTED] writes:
An export attribute with a value of true would essentially cause
the tile to inherit the context of its parent[s].
I am agree with such feature. But, should we propose 'export' or
'import' (parent attribute) ;-).
It depends on your
Are you including the taglib descriptor in the jsp page? View the
source in the web browser to get a better idea of what's going on.
Post examples of what you're experiencing if you want better help.
Henry Lu [EMAIL PROTECTED] writes:
How to specify the src property in the img tag in a
Dave Wellman [EMAIL PROTECTED] writes:
Quick question, what is the preferred development environment that
you are all using, Linux - Emacs, VIM, Windows - JBuilder,
VisualAge?
Xemacs (using JDEE ECB) on both Linux and Windows.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
in a config file is a
beautiful thing. It's such a beautiful thing that I want to do it
even for files beneath the top tier of defined tiles.
-- Jim
Cedric
Jim Crossley wrote:
Apparently it's not possible to access attributes of any tiles other
than your immediate parent. IMHO
It's pretty simple, I think.
1) The formbean is passed to the action's perform method by the Struts
controller.
2) The action populates the formbean (ReportDataForm) from the value
object (ReportData).
3) The action returns the appropriate ActionForm to render the view.
4) The view
at this point?
As long as you have the name attribute set correctly for the
appropriate action element of struts-config, the formbean will
always exist! The controller servlet creates it for you.
-- Jim
-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002
Ian Beaumont [EMAIL PROTECTED] writes:
This means that in the action for the select item I need to get
hold of the form bean for the next page I'm going to so I can
populate it.
You'll need to pass the ID of the selected item to the action. So
your selection view will have something like
[EMAIL PROTECTED] writes:
Could someone give a code snippet that I can use to invoke
the reset method on an actionForm from my Action code?
public class YourAction extends Action
{
public ActionForward perform(ActionMapping mapping,
ActionForm form,
The only problem with that is that you have to account for your
context path somewhere, and you probably shouldn't do that in your
resources properties file. You'd have to do something like this:
body background=%=request.getContextPath()%bean:message key='mybackground'/
Kinda gross, huh?
Apparently it's not possible to access attributes of any tiles other
than your immediate parent. IMHO, this restricts my ability to
partition my presentation code into simple, reusable chunks.
Here's a semi-practical example.
Consider this snippet from a definitions file...
definition
. layout.jsp needs to store it so
it can be accessed by header (e.g., session.setAttribute()).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Crossley
Sent: Tuesday, February 19, 2002 12:39 PM
To: Struts Users Mailing List
Cc: James CE Johnson
Subject
Is it possible to dynamically set the resource.properties file?
I'm thinking that would be a clever way to customize a user's look and
feel. We have a portal application that, for example, displays
different images depending on who's logged in. It would be nice if
the JSP pages could always
One more question...
ComponentDefinition definition =
DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(),
request,
getServlet().getServletContext());
definition.putAttribute( title, Overloaded
In the tiles definition file, when one definition extends another, the
parent's controllerClass does not seem to be inherited by the child.
Is that by design or a bug?
Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I see. I had a look at the source and another question occurred to
me. When a child overrides the controllerClass of the parent, would
we expect only the child's to execute, or would all inherited
controllers chain together?
Cedric Dumoulin [EMAIL PROTECTED] writes:
It's a bug.
Jim
That is certainly the biggie. Coupla others:
- Transparently inserts context path prefix.
- Automatically encodes html-specific characters
Krueger, Jeff [EMAIL PROTECTED] writes:
One thing is it will populate the tag with the value from your formBean.
Jeff
-Original
Care to give an example of a particularly pointless tag?
[EMAIL PROTECTED] writes:
Maybe I should rephrase the question. I understand what the tags
are for when related to form items and even hyperlinks (allowing
forwards), but what is the point of duplicating the others?
--
To
I've just started using Tiles, and I really like it.
I want to be able to overload my attributes in my struts actions prior
to forwarding to the tiles definitions, but I'm having some trouble.
I found this message in the archives:
, if not, there is a
problem with install
Cedric
Jim Crossley wrote:
I've just started using Tiles, and I really like it.
I want to be able to overload my attributes in my struts actions prior
to forwarding to the tiles definitions, but I'm having some trouble.
I found
Cedric Dumoulin [EMAIL PROTECTED] writes:
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is
ready to run. So you can try the mentioned url test directly on it,
and it should run. If not, let me know.
This runs:
http://localhost:8080/tiles-doc/test/testStrutsAction.jsp
to speed quickly and the
docs are a bit overwhelming (I'm not complaining, mind you :-).
-- Jim
Jim Crossley [EMAIL PROTECTED] writes:
Cedric Dumoulin [EMAIL PROTECTED] writes:
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is
ready to run. So you can try the mentioned url
/TestActionTileAction.java
Hope this help,
Cedric
Jim Crossley wrote:
Cedric Dumoulin [EMAIL PROTECTED] writes:
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is
ready to run. So you can try the mentioned url test directly on it,
and it should run. If not, let me
Nested properties already provide for "objects as members of the form".
See
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties
Chris Butler wrote:
Has there been any interest in allowing ActionForms
to have objects as members of the form?
So what would the value of your 'property' attribute be???
html:form action="lot.do" name="id" type="java.lang.String"
html:text property="??"/
/html:form
Ted Husted wrote:
I'm curious...
For that to work, what property of java.lang.String should the
html:text tag reference? I'm
Whenever I recompile one of the classes beneath WEB-INF/classes, instead
of reloading because it noticed a change, Tomcat 3.2.1 generates the
following stacktrace. Can anyone tell me why?
java.lang.ClassCastException:
org.apache.struts.util.PropertyMessageResources
at
I've received that error before when I forgot to include the taglib
directive for the logic library. That would prevent the "field" bean
from being created and result in the error you're seeing.
"Brett G. Palmer" wrote:
I've been working on this bean:iterate ... problem for some time now.
Then don't call removeAttribute. Just call setAttribute to replace the
value of your key. Your app server's session implementation will (or
should) manage synchronization. Of course, one or two of your clients
might get a slightly stale list, but you can't help that. At least,
they'll never
I think I found a bug or, as Larry Wall might say, it would be difficult
to interpret it as a feature. :-)
I have an Action that occasionally needs to forward its request to
another Action. So the forward element in its corresponding action
element has a path with a suffix of "do" instead of
from there, too.
Jim Crossley wrote:
I think I found a bug or, as Larry Wall might say, it would be difficult
to interpret it as a feature. :-)
I have an Action that occasionally needs to forward its request to
another Action. So the forward element in its corresponding action
element has
"Craig R. McClanahan" wrote:
You might ask your staff to look inside the "commercial" pacakges they are
using - they would probably be fascinated to find that the web server
inside IBM's WebSphere is actually Apache (for example).
Not to get too off-topic, but IBM didn't stop with Apache.
See below.
"Craig R. McClanahan" wrote:
2) I have a bean that has a collection of Phone objects, accessible via
its getPhones() method. Shouldn't I be able to return EITHER a Phone[]
or a java.util.Collection? The following element works fine when a
Collection is returned, but I get
If you change staffIds to a Collection, i.e. staffIds.entrySet(), I
*think* this will work:
% Set set = staffIds.entrySet(); %
html:select property="staffId"
html:options collection="set" property="key" labelProperty="value"/
/html:select
Anthony Martin wrote:
I can't figure out the struts
Two questions, please.
1) Why do I have to include the 'name' attribute of logic:iterate when
inside an html:form element? It seems gross to have the same string
in both the JSP page and the form-bean element in struts-config.xml.
2) I have a bean that has a collection of Phone objects,
html:text name="user" property="employee.department" size="16"
maxlength="20" /
Alex Colic wrote:
Hi, I am porting one of my web apps to the struts infrastructure. I have a
few questions that should get me on the right track. I hope someone out
there can help.
On one of my pages I am
http://jakarta.apache.org/struts/installation-tc.html
ntrgiang wrote:
Hi, thanks for reading my message
When I test some JSP pages, I use Tomcat as my JSP container (without
Apache)and everything is OK. But in the real world if I want to deploy my
application on the web, how can I use
While "walking through the example application", I came across this
quote:
"When we've introduced these type of mappings before, and mentioned that
the struts-config.xml was parsed when the ActionServlet was initialized.
But we should make it clear that when the Struts digester parsed this
I don't disagree that DECLARATIVE logic is pretty cool. I'm simply
interested in a practical example so I can see how to do it using the
Struts framework. Where do you put the declarations? In
struts-config.xml? Is there a required or recommended format? How do
you access the properties of
I *think* this is the struts equivalent:
html:submit property="%=Constants.SEARCH%"
bean:message key="searchResource.search"/
/html:submit
You may be able to get by without the property attribute, though.
"Nanduri, Amarnath" wrote:
Hi all,
Is it possible to convert the below HTML
How about a slight variation on #1?
interface BusinessBeanThingie {}
class YourActionForm implements BusinessBeanThingie {}
class YourSessionBean { YourSessionBean(BusinessBeanThingie bbt) {} }
Because YourActionForm implements BusinessBeanThingie, you can pass it
to your session bean in your
91 matches
Mail list logo