Look at your servlet engine log (servlet.log if you are using Tomcat with
the default setup). Most likely the ActionServlet associated with your web
app is not loading because the data source initialization is failing. The
mappings aren't there because the initialization failed. The error
A method that I used for a user to find out his or her employee id was
by having a 'search for employee id' link on a page next to a text
field where the user is to enter his or her employee id since most
employees don't know it.
This caused a new window to display, allowing the user to enter in
David,
This is probably a very newbie question, but how are you gonna define
your getters and setters in your form bean?
Greetz,
Koen
-Original Message-
From: David Morris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Forms
Hello,
Maybe we can extend / enhance the base tag to provide such behavior.
An idea is to add an optional attribute path. If this attribute is
specified, base output the root URL of current web application context,
concatenated with the specified path. If path is set to or /, the base
Hi Brian,
Happy to answer questions - I'm actually doing an Architectural Presentation
on Struts to the Melbourne WebSphere user group next month, so it gives me a
chance to put something on paper in preparation and get some feedback..
In summary, we use a combination of techniques for which
It seems it didn't get to the list last time I sent it...
-- Envoyée par Olivier Schmeltzer/QVI/GRAF/FR le
21/06/2002 09:37 ---
Olivier Schmeltzer
17/06/2002 17:48
Pour : [EMAIL PROTECTED]
cc :(ccc : Olivier Schmeltzer/QVI/GRAF/FR)
Objet :
Hi,
Since the ActionForm resets my input jsp (a form with 2 text fields and a
select), I'd like to save the input fields' values in a bean (what I did)
and set it as session's attribute.
Now suppose one input field is empty, ActionForm creates an ActionErrors,
then finForwards back to the
You have to add an errrors.header and an errors.footer entry to your properties file,
wether you want to print some text before and after your errors or not. You can just
leave them blank:
errors.header=
errors.footer=
If the entries are missing, you get a 'null' printed to your page.
Hope
Don,
Thanks for posting this to the forum.
Theres a lot of useful information in there that relates directly to some of
the stuff I am / will be doing, so I think Ill be printing this one out and
going through it to see what methodologies I can make use of.
:-)
-Andrew
-Original Message-
Easy Struts v0.3.0 just released. For the moment this version is only for
Eclipse IDE.
The aim of this project is to provide a collection of tools integrated
with Eclipse 2.0, in order to facilitate the development of a web project
based on the MVC2 Jakarta Struts framework.
Changes:
-
I guess Flash scripters don't know the difference between a Dalmation and a
Black Lab, huh? That's the kind of attention-to-detail I'd be looking for!
;-)
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:38 AM
To: Struts Users Mailing
There's another tool / persistence layer I've been playing with called
DMLDataAccess. It seems to be fashioned somewhat after NeXT/Apple's
EOF. There's a GUI modeler tool, as well. I believe the download is
compiled for J2SE 1.4, although I think versions to support older JDK's
are
And I have never seen a Rattlesnake that had a turtle shell!
Jim Berg
Sr. Software Specialist
PSCI
610-270-4158
[EMAIL PROTECTED]
Galbreath, Mark [EMAIL PROTECTED]
21-Jun-2002 07:04
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing
http://bofh.ntk.net/Bastard.html
Happy Friday (just passing 72 hours for this week now...),
Mark
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello,
The config file is with the Struts or Tiles distribution, generally in the lib
or WEB-INF directory.
The Tiles distribution comes with lot of examples. There is also an advanced
features guide, from Tiles website only, containing a draft of the definition
file syntax (at the end).
I'm not using Websphere, but Tomcat, however putting those entries into
my properties file HELPED !
THANK YOU.
Jf
Tim T. Young wrote:
Are you using Websphere? If you are, when null String objects get written
to a jsp
they produce a null. Early versions of Websphere did not do this but we
Next time you're not sure if the Action got hit, it's easy to test it by
putting a System.out.println in the class. Watch for the message in the
server console. It's a good thing to try before posting a question, because
you'll be more sure of what's going wrong.
~ Keith
-Original
Ok, you just made me realize my dumb mistake. Thanks for the help!
~ Keith
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 8:42 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate id?
Seems that you're trying to write out a
I am currently using JSP Tag's Pager Tag Library v1.1. The tag library is
very easy to use. However, I'm suspecting there's a performance issue.
I'm returning a Collection of beans. However, it takes a very long time for
JSP to generate the page even for small # of results. It also takes very
- Original Message -
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Subject: RE: blank page
Next time you're not sure if the Action got hit, it's easy to test it by
putting a System.out.println in the class. Watch for the message in the
server console. It's a good thing
Subject: Newbie: pass ResultSet to JSP?
From: David Chu [EMAIL PROTECTED]
===
I am trying to get my head around this struts framework for the first time.
I am confused about the best/standard way to access data from a JSP.
- Let's say I want a page list_items.jsp.
- I have access to a bean that
I did a logic:messagesPresent and it showed that there was some messages
present.
Unfortunately neither
html:errors/
or
font color=Blue
html:messages id=message message=true header=message.bullet
bean:write name=message/BR
/html:messages
/font
produces any output...
I have :
html:password property=userPassword size=10 tabindex=3
redisplay=false/
in a simple html:form...
When I press submit I always get the error message that means that my
ActionForm got an empty String when getting the password !!
getting userPassword variable.
So where is my password ?
You can definitely use logic:iterate -- you just shouldn't try to
iterate the ResultSet. In a strict MVC/Model 2 approach, the
ResultSet (model) should be isolated from the JSP (view).
In your action, just run through the result set and put the data
values into a list of instances of some
As you found, you cannot pass the ResultSet back to your JSP. This would not
be a good thing if you could. That would be coupling your data layer too
closely with your view layer. A better solution is to populate a Collection
object with the data in your ResultSet, and pass that back to your JSP
You're very right Anand, my setter has a wrong name ! setPassword instead of
SetUserPassword :-/
Dumb mistake to avoid !
BP
- Original Message -
From: Anand Raman [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 3:39 PM
Subject: RE: html:
why using a taglib ? what is your need ?
- Original Message -
From: Ricardo de Souza Moura [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 3:53 PM
Subject: Variable
How can I create a int variable inside the jsp page using taglib ?
Thank you
I was wanting to avoid use scriptlet in my jsp page, but I think that I
don't have option...
Is the common pratice use scriptlet to create variables inside de jsp page
?
From: Barbara Post [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List
can't you delegate what you want to do to an action and a bean, and
logic:equal / or so ?
if your idea is using a variable in a jsp, you still may scriptlet-like
code...
What is your goal ? :-)
- Original Message -
From: Ricardo de Souza Moura [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Ok, u need to add the jar files manually to the startweblogic.sh file then
- Original Message -
From: Chen, Dean (Zhun) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 6:13 PM
Subject: RE: Weblogic 5.1 + commons.logging
I'm using sp8 I
How can I use jdom along with struts to read Comma Separated Values
(csv)?
Can jdom read csv by itself?
I've been looking for an example, but can not seem to find one anywhere.
Thanks,
Alok.
I have been playing with UML and trying to find a good way to do the
upfront design of a struts based application. Has anyone done this
already and have any suggestions? I know the use-cases can pretty much
stay the same...
I am also putting together a document on the best way to go about
I don't think you will get the best answer with so few details.
Maybe you should reformulate your question...
Andre POWROZNIK
-Original Message-
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
Sent: 21 June 2002 16:16
To: [EMAIL PROTECTED]
Subject: Re: Variable
I was wanting
JDOM is a library for manipulating XML files and has
nothing to do with CSV files.
You can read in a CSV file using some simple file i/o
and string tokenization. Do a search on google.com on
java csv for info on that.
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- Alok Ghosh
Hi,
I'm just finishing my first smallish struts app, and the first struts app
deployed by the company. I'ld be interested in hearing your ideas about
package structure. For now, I just use com.moog.us.beans and
com.moog.us.actions for my Bean and Action classes, respectively. It seems
to
Well, you would have to use Java to convert the variable to an int anyway if
you used a tag, so just byte the bullet and use the JSP syntax %! int var =
0 %.
Mark
-Original Message-
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:16 AM
To: [EMAIL
True, I know I can use String Tokenizer for parsing.
Just curious if JDOM had any built in methods similar to
doing:
ie.)StringTokenizer st = new StringTokenizer(text, ,);
String temp = st.nextToken();
String temp1 = st.nextToken();
...
The input I am trying to read
Looks like we are in the same boat...
I've done it two different ways so far and I am not sure which way is
better:
First application
com.ebind.common
com.ebind.twizard.dao - objects to connect the action to the database
com.ebind.twizard.database - access the database and return recordsets
Maybe you get a better solution to my problem
I am using this:
logic:iterate id=sequence name=sequenceList
type=com.shoptime.apollo.store.Sequence indexId=sequenceIndex
logic:iterate id=term name=sequence property=terms
type=com.shoptime.apollo.store.Term indexId=termIndex
Not that I am aware of. However, this is a question
for the JDOM mailing lists, not Struts.
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- Alok Ghosh [EMAIL PROTECTED] wrote:
True, I know I can use String Tokenizer for parsing.
Just curious if JDOM had any built in
jdom-interest is a good list, too, with a lot of contributions from Jason
Hunter (Java Servlet Programming) and Brett McLaughlin (Java XML and
Building Enterprise Java Applications), who are the primary architects of
JDOM.
Mark
-Original Message-
From: James Holmes [mailto:[EMAIL
I have'nt followed the discussion keenly though
Have u tried this if u wanted the index and are'nt able to get it using
the indexed property of
Iterate tag
% int counter=0; %
logic:iterate
% counter++;%
html:text.../
html:button.. onclick=%=\aaa(\+counter+\)\% /
/logic:iterate
Regards,
I think this is a great topic for discussion, but I haven't thought
too far about it. I would think the route would be simply to agree
on a few stereotypes, and perhaps some standard names for tagged
values.
Are you familiar with WebUML?
It's probably better to not do this in a declaration, like this:
%! int var = 0; %
But instead, use a scriptlet, like this:
% int var = 0; %
A declaration (as the O'Reilly JSP book describes) ends up being an
instance variable in the JSP page implementation class. It us therefore
very true.
-Original Message-
From: Bartley, Chris P [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 11:03 AM
To: 'Struts Users Mailing List'
Subject: RE: Variable
It's probably better to not do this in a declaration, like this:
%! int var = 0; %
But instead, use a
I think you are right about the sterotypes... Also I think some nice
illustrative examples (maybe the struts-sample app) would be helpful to
get us all on the same page.
I had not seen the webuml page (printing now) but I will give it a read.
I thumbed through a book on doing web
As bean:define tag sets a context bean + a script variable, I use this:
logic:iterate indexId=count
bean:define id=counter name=count
html:text ... /
html:button ... onclick='%= aaa( + counter +) %' /
/logic:iterate
Nico
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Ok, this is the alternative that I used. I am thinking that there was a
better alternative...
Thanks to all...
From: Galbreath, Mark [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Variable
Date: Fri, 21
Personaly, I find it most useful to organize everything along
conventional functional module or package lines. Things that are used
together should be packaged together.
At some point, these functional divisions might also made into actual
Struts modules and developed independantly. (This
Hi,
I am trying to compile the tiles example tiles-channel but it
doesn't
work.
The tag library extensions.tld is required but this library is not
included
in the war file.
Can someone send it to me ?
Thanks in advance.
Sandra
Comrades,
Let us take the check the fruit example posted by Larry Maturo. Here the Fruit Object
needs to have a boolean value called checked.
The ValueObject makes sense when its in a Struts Environment but doesnt it look like
we have compromised on the Value Object definition? the checked
Ive run into a problem that is probably very esaily solved, but I cant
seem to find the problem. I am trying to grab a value from an
attribute in my ActionForm to use as a tag parameter within my JSP. The
attribute is an int. I am defining the attribute in the jsp with
the following tag:
Greetings:
Assuming That I do not want to use another tag lib at this point, how have
others performed this type of thing:
Simple Problem:
I need to have today's date on every page. I would like to the format
attribute in the bean:write tag
to go from this:
% java.util.Date
HI,
i work with struts 1.1
and i have a class with
submit is the parameter od the form (DispathAction)
public ActionForward *submit*(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
throw new
Minor correction...It should have been,
Let us take the fruit example.
pardon my grammar
hemant
- Original Message -
From: hemant
To: struts
Cc: Sanjay Pamidiparti
Sent: Friday, June 21, 2002 11:12 AM
Subject: Action Form Dictating Value Objects?
Comrades,
Let
This is because there is a *bug* in the DispatchAction
in 1.1b1 and the nightly builds. Currently the
DispatchAction does not support the new Exceptions
facility in Struts 1.1. There is already a bug in
Bugzilla for this and I have submitted a patch. I
will be applying the patch to the Struts
Here's the bug report:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8022
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- James Holmes [EMAIL PROTECTED] wrote:
This is because there is a *bug* in the
DispatchAction
in 1.1b1 and the nightly builds. Currently the
Thanks James
Advertise the list when this is fixed
James Holmes wrote:
This is because there is a *bug* in the DispatchAction
in 1.1b1 and the nightly builds. Currently the
DispatchAction does not support the new Exceptions
facility in Struts 1.1. There is already a bug in
Bugzilla for this
Hello,
I have been trying to run the example testcase in StrutsTestCase 1.7.1
(strutstest-1.1_2.3.zip) but I am getting an error Parsing error processing resource
path /WEB-INF/struts-config.xml from an underlying
MalformedURLException/NullPointerException.
I have tried to follow the
Calling the use of Flash script[ing] is like calling the use of gif or
jpeg images scripting. Don't confuse the superficialities of the
plugin-html with the real product. Using Flash is not really unlike using
a pgeg or a gif image, except that it has a lot more to offer. In images,
Flash
I understand what you are saying here. I the example below for the
packages where would
(1) something that cleary will be used in many packages go
(2) something that could be used in another
Would it make sense have both the way shown below and another package
for business logic
Sooo...
I am trying to adapt my struts application with Tiles.
But I don't understand very well how the action call works with
Tiles .
In a basic struts application:
Essai.jsp:
html:form action=/EditEssai.do method=Get
.
You need to have the directory that contains WEB-INF/struts-config.xml in your
class path. Not normally the way Struts runs but the TestCase uses the
classpath to find the config file.
I struggled with this for awhile as well.
-kevin
-Original Message-
From: Brian Buckley
In an effort to get this resolved before I go home for the weekend, I
have zipped up my application and posted it at the following URL
http://www.e-bind.com/plantsec.zip (2.5 mb)
I run everything here on Tomcat403. There is a datasource defined in
the struts-config, but you probably wont
In general, I'd recommend strongly separating the Struts classes from
the rest of the application.
So, I'd put anything that imports from Struts into a Struts package.
Conceptually, the heirarchy should descibe your application first, and
then show how Struts is used to expose your application
We've had good success in using a CachedRowSet instead of a ResultSet.
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 6:25 AM
To: [EMAIL PROTECTED]
Subject: Newbie: pass ResultSet to JSP?
Subject: Newbie: pass ResultSet to JSP?
From:
When you say module1 and module2 below are you inferring something like
billing and reporting (discrete chunks of the application?)
I like this
-Original Message-
From: husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:50 PM
To: struts-user
Subject: Re: UML? File
I don't think I would say it was my idea... I think it was either in my
UML user guide book or java patterns...
This is all well and good, and I could walk away nodding my head saying
yeah that sounds good...
but now in practice with struts, etc...
The app I am planning now is a web app
The cached Row set works extremely well for small volumes but when volumes
are large, its can cause a resource problem as these objects hog the memory
especially when there are a large number of users.
just a thought.
later
hemant
- Original Message -
From: Shekhar Jain [EMAIL
Not trying to put words in Ted's mouth - I'm sure he'll respond as well.
I think from a pure OO design perspective, the breaking at the level of
billing and reporting are good chuncks. That is, they are likely high
enough that dependencies between them would be minimal.
Then breaking
I am trying to test out tiles. I change my web.xml file to use the
tiles ActionComponent servlet and restarted tomcat but the exception
printed below appears to still be using the struts ActionServlet.
I've restarted tomcat multiple times and tried changing the names of the
servlet-class more
No wait... I know this one... I had the same problem...
here is my web.xml... I have some differences from yours. Try setting
it up like this. I had some issues with some old documentation on the
site.
(another hint: on the tiles home page there is a link to a document
called advanced
Hello
I have an Action object which is common for all JSP pages. It doesn't have
any object level variable in it. What are all the advantages/disadvantages
of making Action object as a singleton?
Thanks in advance !!
- Nilesh
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Same here 4.0.3 tomcat
my defs file:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
Tiles Configuration//EN
http://jakarta.apache.org/struts/dtds/tiles-config.dtd;
!-- Main Layout Definition description --
tiles-definitions
?? -- Action objects are always singletons in the Struts framework, it only
creates a single instance of each Action class for delegationdo you
mean, What the the advantages/disadvantages to having only a single Action
class in my framework?
peace,
Joe
-Original Message-
From:
Thanks for your clarification.
I'm not yet much familiar with Struts framework. And I didn't know that
Struts take care of making Action object as a Singleton. May be I should go
back and study Struts in detail before implementing it!
Thanks again.
- Nilesh
-Original Message-
From:
I am outta here for the weekend...
But here is one last thing to try:
try changing
definition name=indexPage path=/globals/BlackBaseLayout.jsp
to this...
definition name=indexPage template=/globals/BlackBaseLayout.jsp
otherwise you can hope that some decade old bong resin breaks loose
That's okay, everyone's learning around here, myself included. :)
It's good that you were planning your Action as a Singleton, though, because
that's exactly how Struts treats all Action classes. Therefore, as you
mentioned, you cannot have class-level member variables (unless they are
static
Well, After extensivly searching the mail archive,
I found that I needed to include a controller in
my struts-config.
controller
processorClass=org.apache.struts.tiles.TilesRequestProcessor
nocache=true/
Even if you user ActionComponentServlet, it still does the
basic ActionServlet processing
Subject: html:img ... problem!
From: Jack Gao [EMAIL PROTECTED]
===
Hi, There
I have a question about html:img tag.
I use html:img page=/images/mainlogo.gif align=left border=0/ to
show the logo in my page. But the problem is: sometimes, when I first time
to open the page, the logo doesn't
Would anybody share with me how you debug the program? I am using simply emacs. Is
the getServlet.log() my only choice if I just want to do something equivalent to
System.out.print()?
Thanks!
Billy Ng
Can someone upload a struts-config.xml which has a known good data-sources
section?
I can't figure out how to properly set the data-sources section of the
struts-config.xml.
It keeps causing an inability to parse the config file, resulting in this
exception:
javax.servlet.ServletException:
How come I do not see the System.out result print to the xterm? How do you
do it?
Billy Ng
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 9:57 PM
Subject: RE: debug
Hehe, Im still just using
Haven't done anything serious in Flash?... the scripting inside it is
quite excellent (now. Not thier first ireatation with v4). Mark was
probably (hopefully?) talking about this scripting ability. Used not
unlike another image format?... wow. You need to take a more serious
look, mandinga.
On
Hi Alok,
How can I use jdom along with struts to read Comma Separated Values
(csv)?
Parsing CSV files is not what JDOM does, I would recommend using
java.util.StreamTokenizer to read in the CSV file and generate an XML
file using JDOM.
Duke
Can jdom read csv by itself?
I've
Not quite sure what you are saying here, Aaron? If we are not talking
about Flash, then guess you are right. If we are, then that is a different
matter. My apologies if the topic was not Flash. I took it that was
Mark's topic, since he said Flash scripters. Maybe I am being too
literal.
86 matches
Mail list logo