It's been quite a while since I've been in here, and I have some
questions about things just about that old. :)
I've been asked to look at an app using Struts 1.2.7, to see whether I
can change it from using build-time environment properties to run-time,
using Spring. I've read about
-Original Message-
From: KARR, DAVID (ATTCINW)
Sent: Monday, August 31, 2009 1:25 PM
To: user@struts.apache.org
Subject: Any way to inject Spring bean properties into Struts plugin
properties?
It's been quite a while since I've been in here, and I have some
questions about things
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: Monday, August 31, 2009 1:35 PM
To: Struts Users Mailing List
Subject: Re: Any way to inject Spring bean properties into Struts
plugin properties?
On Mon, Aug 31, 2009 at 4:30 PM, KARR, DAVID (ATTCINW)dk0
You might be better off with something like this:
script language=JavaScript
src=${pageContext.request.contextPath}/js/jquery.js/
script language=JavaScript
src=${pageContext.request.contextPath}/js/jquery-ui-1.6rc2.js/
script language=JavaScript
I'm guessing the operation you're waiting for can take quite a while to
complete. Otherwise modifying the architecture of this probably
wouldn't be worth it.
You might consider the flow of the original action to simply report a
simple submitted and processing result, and then implement an
One thing that's always bothered me a bit about using wildcards for
action mappings is that it's somewhat less self-documenting than I'd
like. Although I like being more concise, I'd really rather have an
alternative form that is still concise but still specifies what possible
wildcard values to
-Original Message-
From: Sarr, Nathan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2008 10:29 AM
To: Struts Users Mailing List
Subject: RE: [OT] What slows you down?
2. Validation - since I'm using Yahoo User Interface Libraries
(YUI) and my actions are returning JSON or
Users Mailing List
Subject: RE: [OT] What slows you down?
Hi David,
That sounds great - thanks for tip. I'm going to grab the
Beta release ASAP.
-Nate
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2008 1:47 PM
To: Struts Users
Saying something doesn't work doesn't work :) . That tells us
nothing. What are you doing? What happens?
I tried setting up simple examples based on the documentation in the
Wiki, and it worked fine. In addition, there are some additional JSON
changes in 2.1.2 beta which I've also been able
-Original Message-
From: xianwinwin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2008 11:38 AM
To: user@struts.apache.org
Subject: RE: struts2 and JSON integration problem (plugin)
1. How did you add the reference in eclipse? Make sure it is
listed in the J2EE Module
I think I know what the problem is here. I think I'm mis-sending the
extra validation parameters on the POST. I haven't fixed it yet, but I
know it's not a problem with Struts.
-Original Message-
From: Karr, David
Sent: Sunday, June 15, 2008 9:29 PM
To: Struts Users Mailing List
On Sun, Jun 15, 2008 at 8:02 PM, Karr, David
[EMAIL PROTECTED] wrote:
I have a simple page with validation that I got working with a
conventional submit and action.
I'm now trying to explore doing an Ajax form submit, and getting a
JSON response. I'm using YUI on the client side
a excludeParams property that takes a list of regular expressions:
interceptor-ref name=params
param name=excludeParamsdojo\..*/param
/interceptor-ref
will ignore any parameter that has dojo. in it.
musachy
On Mon, Jun 16, 2008 at 11:31 AM, Karr, David
[EMAIL PROTECTED] wrote:
So far I
I have a simple page with validation that I got working with a
conventional submit and action.
I'm now trying to explore doing an Ajax form submit, and getting a JSON
response. I'm using YUI on the client side. I'd like to see if I can
get similar data in the JSON response that I would in a
, June 15, 2008 5:09 PM
To: Struts Users Mailing List
Subject: Re: Some confusion trying to do ajax form submit
Take a look at this (2.1 only):
http://struts.apache.org/2.0.11.1/docs/ajax-validation.html
musachy
On Sun, Jun 15, 2008 at 8:02 PM, Karr, David
[EMAIL PROTECTED] wrote:
I
.
-Original Message-
From: Karr, David
Sent: Sunday, June 15, 2008 8:14 PM
To: Struts Users Mailing List
Subject: RE: Some confusion trying to do ajax form submit
---
ognl.ExpressionSyntaxException: Malformed OGNL expression:
[object Object] [ognl.ParseException
I'm starting to do some simple experiments with Struts2 (those who know
me would wonder what took me so long :) ). I have one blocking problem,
but I would more appreciate hints on how to diagnose particular kinds of
problems, as opposed to just giving me the answer.
In this case I'm getting the
And did you investigate using either of the common Java frameworks for
Mock objects, jMock and EasyMock?
-Original Message-
From: paulbrickell [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2008 3:04 AM
To: user@struts.apache.org
Subject: RE: any struts 2 unit testers out there?
I don't necessarily need this, but is it possible to add annotations to
TypeConversion to configure properties of the type converter? It's
nice to be able to define type converters in annotations, but you could
achieve some more reuse of type converters if they were more
configurable from the
This might be a violation of pure unit test guidelines, but is it
practical to test an action such that the type converters for properties
are automatically executed, just like they would normally? It's nice
that actions are plain POJOs, but I wonder if it's practical to test the
processing of
tried it.
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
The following link into the Dojo Book has an example. There are
others throughout the book. The ${...} is substituted on
the CLIENT
side.
http://dojotoolkit.org/node/3161
-Original Message-
From: Dave
Isn't it the case that Struts2 integrates Dojo, but a version older than
the latest Dojo version? Should I expect any difficulties if I try to
use the latest Dojo in a Struts2 application? I imagine this might
preclude trying to use the Struts2 tags that use Dojo widgets (or just
need some
To: Struts Users Mailing List
Subject: Re: Any issues using latest Dojo with Struts2?
--- Karr, David [EMAIL PROTECTED] wrote:
Isn't it the case that Struts2 integrates Dojo, but a version older
than the latest Dojo version?
Yes.
Should I expect any difficulties if I try to use the latest
I'm looking for the best and up-to-date Struts2 books. I see that
Struts 2 in Action is coming out a little later this year, but I also
noticed Struts 2 Design and Programming: A Tutorial, which came out
with a second edition in January. Has anyone here looked at this,
outside of reading the
The basic idea is to have Java code in Action classes interface to your
data sources and populate beans that are put into the contexts available
to your JSP code. You then forward to JSP pages that can use Struts or
JSTL tags to reference the beans placed into the context. Your JSP
should not
So is the package attribute supposed to match the Java package of the
Action classes? Martin Gainty had earlier said I should use
actionPackages. Before I added that, it wasn't even getting into my
Action classes at all. If I now remove actionPackages, change the
package attribute to match my
-Original Message-
From: Karr, David
Sent: Thursday, March 06, 2008 6:30 AM
To: Struts Users Mailing List
Subject: RE: Simple helloworld test fails with Could not
find action orresult
So is the package attribute supposed to match the Java
package of the Action classes? Martin
I'm technically a newbie on this, so don't take my word on it, but I
would suggest:
* Don't use actionPackages or the annotations.
* Remove the namespace attribute on the action element.
* Change the package attribute on the action element to have a value
!= your Java package.
-Original
is it, with the same redirect directive...? ;-)
L.
Karr, David wrote:
Note that the index.jsp at the root of the webapp looks like this:
% response.sendRedirect(index.action); %
The action that this refers to is:
action name=index class=com.fdar.apress.s2.IndexAction
result/jsp
I'm sure I have a simple error here, but I don't see it.
I'm trying to construct a simple hello, world app with v2.0.11. I
have an index.jsp that redirects to main.action. I started out with
the main action just having a result (name=success) going to
/main.jsp. That appears to work. I then
. It is configured correctly.
Karr, David wrote:
I'm sure I have a simple error here, but I don't see it.
I'm trying to construct a simple hello, world app with
v2.0.11. I
have an index.jsp that redirects to main.action. I started out
with the main action just having a result
(name
no Action class, but
main does, and main fails for no obvious reason.
can you post more of your code?
What else would you want to see? There's really nothing else.
On Wed, Mar 5, 2008 at 6:04 PM, Karr, David
[EMAIL PROTECTED] wrote:
-Original Message-
From: Jeromy Evans
,
being the web.xml and struts.xml. I don't have any of those other
files.
- Original Message -
From: Karr, David [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, March 05, 2008 7:37 PM
Subject: RE: Simple helloworld test fails with Could
)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Karr, David wrote:
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 3:11 PM
To: Struts Users Mailing
validation.xml
web.xml
struts-tags.xml
validation.xml
struts-tags.xml
struts-actionchaining.xml
struts-integration.xml
struts-jsf.xml
These configuration files will give us of the layout/design
you're using
Martin
- Original Message -
From: Karr, David [EMAIL PROTECTED]
To: Struts
forward now. Thanks for the help.
-Wes
On Wed, 2008-03-05 at 18:53 -0800, Karr, David wrote:
Oh, and if it helps, this is the output on my browser when
executing
with debug=xml:
debug
parameters/
context
struts.actionMapping
classclass
org.apache.struts2
Struts 2.0.11, Tomcat 6.0.14, JDK 1.5.0_06.
This is probably due to my inexperience with HTML, but I'm experimenting
with the tabbedpanel component. I noticed statements that some of the
Ajax components don't work in IE. Ironically, when I tested my simple
tabpanel page, I found that it has a
change the name of the package to
default.
Thanks,
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 7:11 PM
To: Struts Users Mailing List
Subject: RE: Simple helloworld
of the package to
default.
Thanks,
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 7:11 PM
To: Struts Users Mailing List
Subject: RE: Simple helloworld test fails with Could
what the config-browser reports? I'm also
curious what happens if you change the name of the package to
default.
Thanks,
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
-Original Message-
From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 7:11
action orresult
And when you visit that location it's giving you the error
about not having a result for success?
Dave
--- Karr, David [EMAIL PROTECTED] wrote:
Without the namespace attribute, config-browser reports this:
Action name:main
Namespace:
Action class
not
find action orresult
And the config browser isn't recognizing the success result
configuration?
Normally it will list the configured results under the
information you said it listed. Man, I sure haven't been able
to dupe this yet.
--- Karr, David [EMAIL PROTECTED] wrote:
No result
I'm trying to piece together the app described in chapter 2 from the
Practical Apache Struts book (just from the soure code zip). I have
Struts2.0.11 and Tomcat 6.0.14.
After I got to the point where it appeared to deploy without errors,
when I execute the URL, the browser returns The page isn't
tried enabling devMode in the struts.properties file and sending
?debug=console to my URL, but that didn't appear to give me any
additional info anywhere.
-Original Message-
From: Karr, David
Sent: Tuesday, March 04, 2008 12:37 PM
To: Struts Users Mailing List
Subject: Index.jsp hit 20
I've been out of the Struts loop for a long time now (some of you old
timers should remember me). I've been reading the docs in firehose mode
the last few days, but I have some questions about Ajax-related
capabilities in the latest release. I'd like to see if certain
combinations of features
Just so it's clear, you not only don't need it, but it's presence would
probably cause subtle (well, maybe not so subtle) problems. Don't use
it in a JSP 2.x+ container.
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 8:50 AM
Would this work?
href=${pc:url('/category/edit.html?category.id=')}${category.id}
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 04, 2007 8:07 AM
To: Struts Users Mailing List
Subject: EL expressions and string concatenation
This is slightly
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Monday, September 17, 2007 12:00 AM
To: Struts Users Mailing List
Subject: Re: struts 1.3.8 / el tag install/configure?
2007/9/14, john lee [EMAIL PROTECTED]:
if i want to use el tag for struts 1.3.8, need
I find it hard to believe you're looking at a significant performance
difference. That being said, I suggest you measure it if you're really
concerned (measure in the container, not on the browser). Frankly, I
would say that the maintenance headache created by using tags from both
taglibs at the
The usual workaround for avoiding conflicts between WebLogic's jar files
and the application jar files is to use prefer-web-inf-classes in the
weblogic.xml file. This would work for simple UI components like Struts
and Beehive, but it might not work for lower-level components like the
XML parser.
You don't need to store tld files anywhere. They are already stored
inside the taglib jar file (like struts.jar). You also don't need the
taglib elements in your web.xml. The uri element in the taglib
directive in your JSP should reference the standard URI associated with
each taglib (which you
You can search through all your documentation, but there's a more
direct (some might say indirect, but whatever) way.
Open up the jar file that the taglib refers to, using winzip, the
Eclipse Zip Editor, or whatever. Select the TLD file. Open it into a
plain text editor. Find the uri element.
As Dave Newton said, these are URIs, not URLs. A URI is just an
identifier, nothing more. In any case, all it does is match that URI to
the URI in a TLD in one of the jar files in the classpath. It doesn't
need to go to the internet for any of this.
-Original Message-
From: Crawford,
What container are you using? If you're using Tomcat 5, or any
container that supports JSP 2.0, and you're using the Servlet 2.4 schema
in your web.xml, then EL expressions in your JSP will be natively
supported, without any additional jar files.
Also, if you're using a JSP 2.0 container, you
One I like is Pro Java EE 5 Performance Management and Optimization,
by Steven Haines. Note that Steven Haines is associated with Quest
Software and Jprobe (and related products). Although the book uses some
pictures from those products, it is not in any way a veiled ad for
those products. In
Don't recommend using the struts-el taglib if you don't know what
environment the user is in. The struts-el taglib can't be used in a JSP
2.0 environment.
-Original Message-
From: Strachan, Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 5:50 PM
To: Struts Users
Did you specify prefer-web-inf-classes in the weblogic.xml file? If
you don't do this, the app will use the Struts jars that are installed
with WebLogic, which would be an earlier version.
-Original Message-
From: Sridhar Srigiriraju [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
JCP process and also with the
conventional wisdom that weblogic versions cannot catch up
with the pace at which struts are developed?
TIA
Sridhar
On 2/7/07, Karr, David [EMAIL PROTECTED] wrote:
Did you specify prefer-web-inf-classes in the
weblogic.xml file? If
you don't do
To add to that, if you're using a JSP 1.2 container (I would hope this
is less likely by now), you should probably use the Struts-EL tag
library instead of the base Struts tag library (although you still need
both strutsel.jar and struts.jar). This will allow you to use the EL in
Struts tags. On
One strategy that might be worth pursuing is to forget the idea of
moving your JSP pages out of the webroot, but just ensuring that they
can't be accessed from the browser. This could be done by adding a
security constraint to your web.xml for the user nobody for *.jsp.
If the browser only ever
I would do a couple of things here.
First, there is a version of Struts in the WebLogic core. In order to
ensure that your app uses the version of Struts you need to, you'll need
to specify prefer-web-inf-classes in your weblogic.xml (set to true).
Second, there is never any need to
One comment inline.
-Original Message-
From: Scott Van Wart [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 5:53 PM
To: Struts Users Mailing List
Subject: Re: What's the difference between struts-base and struts-el?
Michael Cheung wrote:
Hi, all;
What's the
When I implemented Struts-EL (4 years ago, I think), I made a judgement
call on what taglibs had best value for implementing as EL taglibs.
In retrospect, it probably would have been worthwhile to implement both
nested and tiles, even if they wouldn't be used much.
Thinking about it at this point
-Original Message-
From: Victor.T. Ying [mailto:[EMAIL PROTECTED]
Hi,
I need your suggestions on Struts(v1.2.7) Clipboard
capabilities i.e I have TextArea in the webpage and I need
to paste file content from the server to the text area when
userclick the download button.
If you're asking if there are JSTL tags that can be used instead of the
Struts tags you refer to, then no. The JSTL does not implement any HTML
component features. It's perfectly natural to use more than one tag
library in JSP pages, don't try to jam your application into using a
single tag
The problem is your use of a scriptlet. The scriptlet has to be the entire
attribute value, not just a portion of it. You'll have to do something like
this:
onclick='%= Enviar( + property + ) %'
-Original Message-
From: José María Tristán [mailto:[EMAIL PROTECTED]
Sent: Friday,
Curiously, I thought to do a Google to verify whether Websphere 6 was a
Servlet 2.4 container, which is relevant to your situation, and in
addition to verifying that, I also found someone who had the exact same
problem as you, at http://www.jroller.com/page/agrebnev/20050831. As
this blog entry
-Original Message-
From: Rafael [mailto:[EMAIL PROTECTED]
actually WAS6 comes with JSTL libraries, so the jars with
TLDs are located inside WAS6 lib directory.
If I include the taglib directive (%@ taglib
uri=http://java.sun.com/jsp/jstl/core; prefix=c %) all
jstl tags in the
I think that the EL tags will take rt expressions, and you could use EL
and non-EL tags all at the same time. Just make sure you keep the
namespace prefixes straight.
-Original Message-
From: Garner, Shawn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 12:32 PM
To:
To answer this a little differently than Laurie did, the Struts-EL tag
library is a collection of tags that all inherit the behavior of the
Struts tags they replace, except the tag attribute values are passed
through the JSTL expression evaluation engine implemented by the Jakarta
standard taglib
Yes, the URI for the JSTL changed between version 1.0.x and 1.1.x. Note
that 1.0.x is used in JSP 1.2 containers, and 1.1.x in JSP 2.0
containers. They're not interchangeable.
-Original Message-
From: Garner, Shawn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 8:55 AM
If you use the struts-el distribution, in the contrib directory,
you'll find the JSTL jars.
It's recommended that you use struts-el if you're going to use Struts
with the JSTL. That is, assuming you're not using a Servlet 2.4
container. If you're using a Servlet 2.4 container, you shouldn't use
I believe that Websphere 5 is not a JSP 2.0 container (Websphere 6 is).
Assuming that's true, you have to use the 1.0.x versions of the JSTL.
Version 1.1.x is used in JSP 2.0 containers. You'll also have to make
sure the taglib uri matches the one in the TLD file in the taglib jar
(it's different
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Aha, I see what you mean now.
I had this:
%@ taglib uri=/WEB-INF/struts-html-el.tld prefix=html-el %
Changed it to this:
%@ taglib
Re-read the API description of this tag and the collection attribute:
A runtime expression that evaluates to a collection (conforming to the
requirements listed above) to be iterated over.
You've given it a string, rows, and not a collection. This is a
situation where using Struts-EL is
Ok. Several things here.
1. If you use runtime expressions for attributes in JSP, the runtime
expression has to be the entire attribute value, not just a portion, so
you would have (approximately):
onblur='%= this + ... + reCalcFields( + executionState + );
%'
However, assuming your
If you're using Tomcat 5, a JSP 2.0 container, you shouldn't use
Struts-EL. Just use the plain Struts jar, and make sure your web.xml
uses the Servlet 2.4 schema.
-Original Message-
From: Lombart Vincent (DBB) [mailto:[EMAIL PROTECTED]
Does anybody know why the following JSP code
Another good suggestion would be to NOT use a different taglib prefix
for the struts-el tag libraries. In the initial examples, you might
have seen examples like html and html-el. I don't recommend that
(anymore). If you use the same prefix, then that will be less to change
when you port your
I don't know whether WSAD 5.1.2 is a JSP 2.0 container. If it is not, then
you'll need to use the Struts-EL taglib. If it is a JSP 2.0 container, then
you'll need to make sure that your web.xml is using the Servlet 2.4 schema.
From: Phani [mailto:[EMAIL
..
why is my expression not getting evaluated...
${partItem.intproperty}
--- Rahul Akolkar [EMAIL PROTECTED] wrote:
On 6/29/05, Karr, David [EMAIL PROTECTED] wrote:
I don't know whether WSAD 5.1.2 is a JSP 2.0
container. If it is not, then you'll need to use
the Struts-EL taglib
It's hard to say for certain, but this could be a classloader problem. It might
help if you set the prefer-web-inf-classes element in your weblogic.xml file
(to true, of course). If that isn't there, it will use the struts.jar that is
used inside WebLogic, instead of the struts.jar in your
Use the Struts-EL taglib, provided in the contrib/struts-el subdir of
the Struts distribution. It's a port of most of the Struts tags (except
the ones that provide functionality that the JSTL provides directly),
but it uses the JSTL expression evaluator for attributes. Search the
archives for
me if I'm wrong here.
-Mark
Karr, David wrote:
Use the Struts-EL taglib, provided in the
contrib/struts-el subdir of
the Struts distribution. It's a port of most of the Struts tags
(except the ones that provide functionality that the JSTL provides
directly), but it uses the JSTL
Building a pure Struts application in Workshop 8.1 isn't practical. If
you're building a pageflows app, however, which uses Struts internally,
then Workshop is the way to go.
-Original Message-
From: Ibha Gandhi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 7:47 AM
To:
The only information I can give you is that this still fails in WebLogic
8.1. I noticed it quite a while ago.
-Original Message-
From: Alexander Krumeich [mailto:[EMAIL PROTECTED]
Dear List,
slightly off-topic post, but I thought that maybe someone
here can give me a hint to
If you look in the contrib folder of the Struts distribution, you'll
find the struts-el distribution. This provides a taglib that just
wraps the Struts tag library so that all tag attributes are passed
through the JSTL EL engine, so you could do the following:
%@ taglib
From a JavaBeans point of view, the dyna attributes are not attributes
of the DynaValidatorForm, they are entries in a map that is an
attribute of the DynaValidatorForm. So, the following should work:
c:if test=${loginForm.map.singlesignon == '0'} /c:if
-Original Message-
From:
What do you get when you add the following right before the c:if
(including the square brackets):
[c:out value=${param.MODE}/]
-Original Message-
From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 2:29 AM
To: Struts Users Mailing List
Subject: Reg.
I'd say there's two approaches to dealing with this. In the scope of
just this issue, I think bean:write is just a little more convenient,
but there may be other considerations.
One way would be to read in your properties file in an action and put
them into application scope. That's probably
Ah. It's good to trim element values, but probably not attribute
values. Does this happen anywhere else?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 3:50 PM
To: Struts Users Mailing List
Subject: Re: html-el:submit 'value'
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
I am switching from using struts-logic tags to jstl and have
a really basic question.
An object stored in Application Scope has a method called
getKeyValues() that returns an array list of beans, each
having a
I'm not sure what you mean by JSTL 2.0. Did you mean JSP 2.0? If you're
really trying to use Struts in a JSP 2.0 container, then don't use Struts-EL.
In that environment, the Struts tags will use the EL natively, and you'd use
the JSTL version compatible with JSP 2.0 (not the one compatible
We can see the problem by reading the error message. You're iterating
through a HashMap, which gives you Entry objects for each iteration.
The only objects directly available to an Entry object are the key
and value. So, change ${currentQuestion.answerOptions} to
${currentQuestion.value}, and I
You'll have a form with at least two submit buttons. One to submit the
form, and another to lookup some other data. You'll probably use a
LookupDispatchAction (or something similar) to map each submit button to
different methods in your Action class. The lookup method will lookup
the data,
You probably have to remove the initial double-quote:
html:link href='%= / + name + /index.jsp %'
-Original Message-
From: Pham Anh Tuan [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 8:46 PM
To: Struts Users Mailing List
Subject: [HELP] Using scriptlet to to generate
I suggest you set this up so you can step through this in your debugger.
My theory is that somehow the association with the BeanInfo class is not
happening. That would cause the symptom you're seeing, but I don't know
how it could get into that state.
-Original Message-
From: Trevor
Odd. It almost seems like html-el is mapped to the plain Struts TLD,
and not the Struts-EL TLD. You didn't give the impression that you
changed the app at all when you ported, so I don't expect that is
likely.
I would definitely trace this in a debugger. I wonder if WL 9 isn't
correctly
I don't think it's practical to do that. You would probably be better
off just using the raw HTML elements, but using the JSTL to reference
your bean values (and even the EL directly, if you have a JSP 2.0
container).
-Original Message-
From: Thorhauer, John (Contractor)
Hi,
Is
I haven't had a lot of opportunity to validate this strategy, but I
believe you have the right idea. Conceptually, the result from a double
submit should just look as if it was a single submit. So, the second
submit would bypass the processing logic and just forward to view the
results that were
If you don't understand how the code works, there's no better solution
than running the application in your debugger and stepping through the
Struts and Commons source code. When you get to the line that throws
the NPE, you'll have the first clue about what's going wrong. You'll
need to make
1 - 100 of 133 matches
Mail list logo