My first inclination is its a class path issue... make sure you've got the .jars
in place.
That class exists in the tilesForStruts1-0.jar and I've got in my WEB-INF/lib
directory.
Hope this helps.
Cheers,
Jon
Cheng, Sophia wrote:
Hi,
I am trying to use Tiles and Struts.
It seems to work
On 14 Jan 2002 at 23:12, Michael Mehrle wrote:
Hi guys/gals:
I'm new to the list and to Struts - though I got it all up and running via
Tomcat.
Again, help with this would be welcome
I'm using templates in almost every portal/site, I found Tiles great but often
overkill,
templates
Hi
Can someone please point me in the direction of a simple example of using
MultipartIterator(), I am not having much luck getting it to work. I
always get an error when I try and create a instance of this class using
MultipartIterator iterator = new MultipartIterator(request);
--
Cheers
Here's the only tutorial I have found:
http://gallery.bluestone.com/Scripts/SaIsapi.dll/StrutsTrailMap.class/struts-trailmap/default.htm
Alex Paransky [EMAIL PROTECTED] on 01/14/2002 08:26:02
PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users
Hi all,
Sorry to bug you with this newbie questions, but hey.. we all gonna learn some time ;o)
I'm building a sample application to teach myself struts / EJB. I'm working with JBoss
and have installed the CD example EJB.
As I'm developping the struts frontend war I bump into 2 problems
Hi Jeff,
is it because
name=org.apache.struts.action.MESSAGE
is the class name of the messages when you should specify the attribute name that
class has been
stored under? (It'll be defined as a constant somewhere but I don't know where
off-hand).
Keith.
--- Jeff Oberlander [EMAIL PROTECTED]
I don't use a proper IDE, I'm waiting till it's clear they are very good I
can get a fast response time. So some of what I said was in ignorance, but also many
people don't
use IDE's yet.
I don't have time to keep trying them out - last year I tried, they clearly needed a
monster
computer to
Hi Elise,
Turned out I had some other issues which were preventing resolution of my bean.
I had wanted to use html:img page=...
in order to be able to use an image ref relative to the application rather than
server root... so my image reference could be
/images/myImage.gif rather than
Hello struts-user,
I'm newbie in Struts and encountered a problem when tried to get
boolean value of checkbox state from my form bean.
I always have 'true', even if I unchecked my checkbox on form.
In JSP I wrote:
Published: html:checkbox property=published /
In Action that
Check the archives -- this question has been answered many many times
before on this list.
Short answer: use the reset() method of your form.
hth,
tomK
-Original Message-
From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 13:21
To: Struts Users Mailing
After 25 hours, you're entitled to send more information for us to try
to give help on ;-)
Full stacktrace, jsp and relevant java code...
I suppose the other taglibs do work?
tomK
-Original Message-
From: Collard, John [mailto:[EMAIL PROTECTED]]
Sent: maandag 14 januari 2002 20:46
I love the simplicity of Templates as well. The bummer with them is,
they aren't nestable, as far as I can tell (can anyone tell me
differently?).
On Tue, 2002-01-15 at 02:09, flare wrote:
On 14 Jan 2002 at 23:12, Michael Mehrle wrote:
Hi guys/gals:
I'm new to the
Wim Fournier wrote:
Hi all,
Anyone knows why catalina complains abt my action servlet not being a servlet??
It extends Action and imports:
[snipped]
Because actions aren't servlets.. ActionServlet is, Actions and
their subclasses aren't
--
dIon Gillard, Multitask Consulting
-Original Message-
From: dion [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 14:16
To: Struts Users Mailing List
Subject: Re: Catalina complaining abt Action class not being servlet??
Wim Fournier wrote:
Hi all,
Anyone knows why catalina complains abt my
On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen (TeleRelay) wrote:
Probably a conflict between servlet 2.2 and 2.3 spec. Try removing all
servlet*.jar from all directories under catalina, except the one in
%CATALINA_HOME%/lib/**
hth,
tomK
-Original Message-
From: Wim Fournier [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 14:28
To: Struts Users Mailing List
Subject: Re: Catalina complaining abt Action class not being servlet??
On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen
(TeleRelay) wrote:
Out of curiosity, does % mybean=bar; % work?
Jeff
-Original Message-
From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 12:47 PM
To: Struts Users Mailing List
Subject: RE: multipe bean:define's in one page?
That's what I've thought. But there must be a way
snap
That's where I know the problem from: running a J2EE app under catalina
doesn't work right, unless you adapt the j2ee.jar by removing all its
javax.servlet.** components.
Don't know for sure if this is the problem in your case (and whether the
problem still exists, must be about 8
thanks Tom, wish i can get back soon!
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 7:06 PM
Subject: RE: Catalina complaining abt Action class not being servlet??
Rules are great in
Wim Fournier wrote:
bash me on the head and call me stupid .. ;)
consider yourself bashed...although public oopses are more than enough :)
My bad.. I have been a little enthousiastic with find/replace ;o)
My web.xml action element containted an Action class instead of the
Hi again
My catalina tells me that it cant find the mapping for /listcd
log:
[INFO,EmbeddedCatalinaServiceSX] action: Process servletName=action, urlPattern=*.do
[INFO,EmbeddedCatalinaServiceSX] action: Mapping for servlet 'action' = '*.do'
javax.servlet.ServletException: Cannot retrieve
Hi,
I currently use struts-layout menu tag witch work fine with struts-template.
My problem is that my menu is a dynamic one : it can go larger if i insert
long named nodes.
This is making node to wrap on next line, not so nice...
How can i avoid this?
How can i have something like a horizontal
I tried switching from JBuilder to NetBeans but found
NetBeans too slow - on a 400Mhz XEON with 512MB RAM.
I've switched back to JBuilder Personal. The JB 6.0
release now installs easily on Redhat 7.2 (unlike the
5.0 release, which I never got working). NetBeans has
more functionality than the
Wim Fournier wrote:
Hi again
My catalina tells me that it cant find the mapping for /listcd
log:
[INFO,EmbeddedCatalinaServiceSX] action: Process servletName=action, urlPattern=*.do
[INFO,EmbeddedCatalinaServiceSX] action: Mapping for servlet 'action' = '*.do'
Rick Horowitz wrote:
I tried switching from JBuilder to NetBeans but found
NetBeans too slow - on a 400Mhz XEON with 512MB RAM.
I'm running a PIII 1Ghz with 512MB on Mandrake and NB 3.3 is fine for
meI've also had Eclipse running on it, but at the moment Eclipse is
'flakier' than NB by
what JSP Engine i must to use, Tomcat or Resin?
what is the best?
thanks in advance...
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
have this in my struts-config.xml:
!-- Action Form Beans --
form-beans
form-bean name=listCDForm type=nl.kern.j2ee.sample.struts.ListCDForm/
/form-beans
so thats covered..
is there a reason for you to write DC instead of CD? (maybe i made a typo somewhere?)
tnx
On Tue, Jan
Any servlet/jsp engine should be fine, although there can be problems if
the engine doesn't implement the spec properly. I use Resin and love it.
Others use Tomcat and love it. Those two work for sure. Many others do too.
Rubens Gama wrote:
what JSP Engine i must to use, Tomcat or Resin?
Hi,
I'm building an application, which uses database as a source for
configuration data. For example I have a page which enables users to
customize their personal UI schema, like which columns they want to
see in search result.
Now that means, that I have to build dynamic html
On Tue, Jan 15, 2002 at 03:51:47PM +0100, Tom Klaasen (TeleRelay) wrote:
You did restart your tomcat after modifying struts-config.xml, did you?
no, i deployed it into jboss again.. jboss should take care of re-deploying into tomcat
but restarting the whole doesnt help either (just tried)
I'm not really sure in understand you problem but in order for
"property(key)" to work, you need to have the following methods on your form
bean:
public Object getProperty(String key)
public void setProperty(String key, Object value)
These methods typically store your property values in a
-Original Message-
From: Wim Fournier [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 16:00
To: Struts Users Mailing List
Subject: Re: mapping not found?
On Tue, Jan 15, 2002 at 03:51:47PM +0100, Tom Klaasen
(TeleRelay) wrote:
You did restart your tomcat after
Unfortunately, this is limitiation of the JSP 1.1 specification
You have to supply directly complete "java.lang.Strings" to any custom tag attributes.
Spec says nothing about partial dynamic values. Here is the solution:
%
String key = "EMPLOYEE_PAYROLL_ID";
String prop_key =
Thanks Vic, for wanting to help others learn Struts. However, as you point
out in your book, you are not an author. I would rate this book at 1/2 star
of a possible 5. I suppose it's true that you can do the exercises and get
up on Struts, but I think that there is more useful information of this
Hi,
I'm a new user of Struts and my first my mission consists in combining
Struts with an other generic J2EE framework. This framework contains lots of
components and services like SendMail, Forums, ErrorHandling, Database
Access or Workflow...
I'm looking for someone who have already done this.
What is the best way to write the following scriptlet code using Logic Tags.
I tried to do it with present and notEmpty but couldn't get it to work.
% if(session.getAttribute(KEY) != null){ %
if(session.getAttribute(KEY).equals(True))
{
// Some HTML goes here.
Hi,
In Your mail sent Tuesday, January 15, 2002 You wrote:
RF I'm not really sure in understand you problem but in order for
RF "property(key)" to work, you need to have the following methods on your form
RF bean:
RF public Object getProperty(String key)
RF public void setProperty(String
I did what you suggested. However, I got the following exception:
javax.servlet.ServletException: Cannot retrieve definition for form bean
null
Any ideas?
Zhiyong Li
iBiomatics R D
SAS Institute
(919) 653-2746
[EMAIL PROTECTED]
-Original Message-
From: Matt Raible [mailto:[EMAIL
Hi Mark,
We have a method to return an ArrayList in our
Business Object, and our Action Class passes that
to the JSP by setting it as an attribute. We don't
put it into the ActionForm at all. Although you
could easily do it that way, it does not really
buy you anything, as far as we call tell.
I was just wrestling with the same problem and found the following in the
JSP 1.2 Spec.
JSP.2.13.1 Request Time Attribute Values
snip
The expression must appear by itself (multiple
expressions, and mixing of expressions and string constants are not
permitted).
/snip
HTH,
robert
Hi all,
I want to ask you about the posibility to using the struts-template
taglib in a project that is not using struts at all.
Initally i searched for a template taglib at
http://jakarta.apache.org/taglibs/
but i couldn't find any.
I then thought about using the struts-template taglib.
So i
I've been using the session taglib
http://jakarta.apache.org/taglibs/doc/session-doc/intro.html
which would end up looking something like...
session:existsAttribute name=KEY value=true
session:equalsAttribute name=KEY matchTrue value=true
// Some HTML goes here.
could you tell me if exists any JSP report tag?
thanks in advance
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Andras,
I believe you can download a jar file containing a
templates taglib from http://www.phptr.com/advjsp/.
The author of this taglib is David Geary, the same author
as that of the template tags in Struts. I think this
version is just an improved version of that in Struts
(although some of
I'm trying to use filters to do my XML/XSL Transformation. I'm wondering if
anyone knows how to get the JSP as XML in my action class? Basically, I
want to do something like:
Document doc = mapping.getXMLfromJSP(mapping.findForward(continue));
Where continue maps to a local forward (i.e.
-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 17:52
To: Struts-User
Subject: Report's Tag
could you tell me if exists any JSP report tag?
If you can tell what that tag is supposed to do ...
tomK
--
To unsubscribe, e-mail:
Thanks Keith. It turns out that the name=org.apache.struts.action.MESSAGE
was ok. Turns out I was simply missing the taglib
uri=/WEB-INF/tlds/struts-logic.tld. Being new to struts, I would have
guessed that would've given me a jsp compile error but it doesn't.
-Original Message-
From:
You can use Tiles, which is compatible with Templates and can be used without
Struts. If you just need template tags, you don't need to use Tile's servlet.
It is planned to move Tiles to the taglib project.
Cedric
Andras Balogh wrote:
Hi all,
I want to ask you about the posibility
Subject: Port being added to URL in Netscape 4.7 causing session problems
From: Ricky Frank [EMAIL PROTECTED]
===
I am having some problems maintaining a session after calling an action from
a Netscape 4.7 browser. It seems to be from the addition of the port to the
URL (Netscape seems to do
Hi,
I didn't understand your problem at all.
I have 3 questions that could help to clarify it:
1) Why you need to get the JSP as XML in your action class?
2) Since your JSP contains html:form, you are generating
HTML code in your JSP. Is this correct? Using other HTML tags
you could
I am quite happy with it.
There is some time in figuring out configuration
issues and searching through mailing lists. But if
you're reading this one...
I have 256 ram and and p4 @home, 500 ram and p1 here
at work -- both work sufficiently well. Being able to
see what is being debugged is
where can i found taglib report using the Struts Framework?
thanks in advance.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I've hit that trap too.
It seems if the JSP compiler doesn't understand the tag it sends it down to the
browser.
(JSP probably doesn't even understand HTML).
If the browser doesn't understand it it ignores it content directly under it but
evaluates
nested tags.
Anybody know of any browser
well, i have a ResultSet object populated, ok?
i want a header..
page break...
a footer
the report's body can use the ResultSet to show the data in a determined
way(like 3 columns and 60 lines, etc).
and the pagination feature, for example.
-Mensagem original-
De: Tom Klaasen
logic:equal name=KEY scope=session value=True
/logic:equal
not tested - done my best..watch the capitalisation!
K.
--- Andrew B Forman [EMAIL PROTECTED] wrote:
I've been using the session taglib
http://jakarta.apache.org/taglibs/doc/session-doc/intro.html
which would end up looking
Wim == Wim Fournier [EMAIL PROTECTED] writes:
Wim Hi all,
Wim Sorry to bug you with this newbie questions, but hey.. we all gonna learn
some time ;o)
Wim I'm building a sample application to teach myself struts / EJB. I'm working
with JBoss and have installed the CD example EJB.
Hi Larry,
I agree very much with you!
Use form bean only for data going to from form. Struts will call
get/setSelectedItem(). On 1st
use your action bean calls formBean.setSelectedItem() to specify the default later
calls
getSelectedItem to get what user selected.
Data displayed only (ie.
Has anyone produced a similar HOW-TO for Netbeans? Or will this work for
Netbeans as well as Forte?
Cheers,
Dave
Michael Mok [EMAIL PROTECTED] on 01/14/2002
02:24:27 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]; Please respond to
[EMAIL PROTECTED]
To:
I didn't intend to sound as negative as I did. I do owe that-- working on
it. I do like it and will at least use different parts of it. There are
many applications for the tags use -- even out side the iterate process.
John Collard
[EMAIL PROTECTED]
-Original Message-
From: Tom
I have taken to heart everyone's suggestions and have placed my JSPs
under the
WEB-INF/pages directory. So far, no problem. When I use ANT's war
task I can't
seem to get the directory structure to remain intact.
e.g.:
WEB-INF/pages/mypage.jsp
WEB-INF/pages/mypage2.jsp
becomes:
I recieved my copy of the book just 2 days ago.
This book seems more like a companion to some course that must be
instructor led.
What good are these exercises if they contain no answers?
I can sit and make up exercises all day!
I appreciate the author's attempt to shed some light on the world
Struts makes it easy to subclass ActionForm, ActionServlet.
Is there a way to specify that ActionMapping is subclassed
and have struts create mappings for calls to the perform
methods that are of my subclass?
Thanks,
Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an
I have been able to use struts with Netbeans by unzipping the struts-blank
war file and mounting the resulting directory. Netbeans recognizes the dir
as a web app and takes care of everything for you - mounting jars, setting
up mount points for editing conf files, etc.
What I usually do in
What platform are you on? I had the same problem on Solaris 8/SPARC
Netscape 4.7.
I finally switched to JDK1.3.1_02 and my problems went away.
Struts Newsgroup (@Basebeans.com) wrote:
Subject: Port being added to URL in Netscape 4.7 causing session problems
From: Ricky Frank [EMAIL
I fixed it by upgrading to jdk1.3.1_02.
Peter Kordel wrote:
i'm on a sun ultra 10, solaris 8, sun jdk 1.3.1, tomcat 4.0.1, struts
1.0.1.
i have a login action that stores a userbean in session scope, which i
use to authenticate and look up roles, etc. i've done this many times
before.
if
You need to move your input directory up a level like:
webinf dir=${deploy.home}/WEB-INF/ /
If that upper dir has extra things you don't want in the distribution, use
includes:
webinf dir=${deploy.home}/WEB-INF/
include name=pages/*.jsp/
/webinf
-Original
Hi,
I want to replace a bean. But bean:define does not work the way I thought.
I´d like to do something like this:
---
Check the new items:
bean:define id=items name=recentItems toScope=request /
tiles:insert page=ItemList.jsp/
Check the most popular:
bean:define id=items name=mostPopularItems
Cody,
Vic does Struts training. If I recall correctly, he did a three day course
in Texas last December. I expected the book to be based on his course, but
was also hoping for much more.
Vic posted the following on December 18th: My intention was to get out
something timely, but imperfect (as
Jeff Oberlander wrote:
You need to move your input directory up a level like:
webinf dir=${deploy.home}/WEB-INF/ /
If that upper dir has extra things you don't want in the distribution, use
includes:
webinf dir=${deploy.home}/WEB-INF/
include name=pages/*.jsp/
Hei,
Can somebody give me an example on how to use the html:multibox tag...
It's complaining that can't find the getter method...
that's what I got so far:
on the JSP:
html:multibox property=daysofWeek
my caption
/html:multibox
and on my ActionFor I have...
public class...
private
I use Caldera OpenLinux Server 3.1, Tomcat 4.0.1, and Netbeans 3.3 with no
problems. I deploy Struts apps as Rob describes below.
Dick Starr
- Original Message -
From: Rob Parker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 2:08 AM
You can create your own ActionMapping subclass, and specify that in the
web.xml.
If it uses additional methods, you would type-cast the mapping in the
perform to access those, just as you type-case the ActionForm to get to
its extended properties.
To set new properties on the ActionMapping
Please share your success in installing development environment using Struts -
JBuilder 5.0 or Forte 3.0 - Tomcat 4.0.
My concern is that an important quality of rapid development tool -quick
feedback- is missing. (At least for me.)
I am trying to set up right tools so i could go from
I use method 2, but it doesn't require a call into that servlet. I just use
it to initialize log4j. After this servlet loads, I just call log4j object
methods, and it works. I believe (someone correct me if I'm wrong) that the
servlet loads in the same JVM, so you have access to its objects in
Hi,
I use Log4J, but don't understand your question exactly. I think it's
easier than you think;-)
In my action classes and servlets and so on I have the usual line:
static Category cat = Category.getInstance( SuchAction.class.getName() );
in web.xml I have:
servlet
I need to implement a feature where a cookie stored on user's browser,
contains userId and Password information. Then tie it with the J2EE/Servlet
FORM LOGIN security using Struts. I can send up a cookie with the
information, I just don't know how to integrate this in with JSP/J2EE
Marcelo == Marcelo Caldas [EMAIL PROTECTED] writes:
Marcelo Hei,
Marcelo Can somebody give me an example on how to use the html:multibox tag...
Marcelo It's complaining that can't find the getter method...
Marcelo that's what I got so far:
Marcelo on the JSP:
Marcelo
http://www1.tramsasp.com/?section=dev
-Original Message-
From: Peter Gershkovich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1:59 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts - JBuilder 5.0 or Forte 3.0 - Tomcat 4.0
Please share your success in installing
John McClain
7604 Muschetto Ct.
Citrus Heights, CA. 95621
[EMAIL PROTECTED]
(916)728-5223
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL
If you're using Tomcat 4.0.x then the documentation shows how to use a
servlet to configure Log4J. Essentially you create a normal servlet, slap it
in your web.xml and configure it to load on startup.
I do this in all my web apps and also use the same method to init Velocity.
Here's a sample
Ted Husted wrote:
You can create your own ActionMapping subclass, and specify that in the
web.xml.
If it uses additional methods, you would type-cast the mapping in the
perform to access those, just as you type-case the ActionForm to get to
its extended properties.
To set new properties
John McClain,
I know you meant well, but you just forwarded more spam. IMO it is totally
inappropriate to forward this kind of stuff to a dev mailing list, but that's
another story. Don't believe everything you read.
This has been marked as an urban legend:
There are many applications for the tags use -- even out side the iterate process
Hell yes! :)
I suppose some people will just see it as a way past their nested iteration problems,
but it brings so much more. Among other things, it will clean your JSP's because the
markup's reduced for those
I am pretty new with struts and wrote the following .JSP code. Is there a
better way to write this? I could not find a tag in STRUTS to let me just
get the property from the object. My object does not have get/set methods,
so I had to resort to using %= tag. Is there a tag in STRUTS that
Hi Dave
Yes it should work with Netbeans 3.3.
Regards
Michael Mok
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 16 January 2002 2:55
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Execute Struts in Netbeans?
Has anyone
For one, I recommend getting your properties into getter/setter
methodology. Simply so you can use the wealth that is the Struts tagging
system (as it's (the bean spec Struts runs against for it's model
components) kind of what it's all about).
By 'raw' String do you mean the object's
86 matches
Mail list logo