--can we have a jsp page that deals with more than one action ?
--then if one action forwards to another action, what happens to the form
bean from the first action , does it disapper ?
I am someehat confused
any help welcome
I also had to solve this problem for one of our applications. I changed
GenericDataSource.java, so I am checking the isClosed method of a connection
before I am returning it to the caller of getConnection().
I know, that there is a statement in the Java Specification which says that the
it might be nice to have your tag handle it in the body.
db:setCategory
bean:write name=category property=categoryNumber/
/db:setCategory
chris
At 09:22 PM 5/1/2001 -0700, Martin Cooper wrote:
First, specify the type of the objects you are iterating over by adding the
'type' attribute to
yes u can have more than one action in your jsp page and if one action
forwards to another action then form bean for the first action doesn't
disappear
rgds
sankha
-Original Message-
From: Oussama Ktiri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 8:50 PM
To: [EMAIL
Hi Tim,
Which web server do you use ? I have check a similar example as yours on my
web server (tomcat 3.2.1), and it works fine with latest Components
distribution.
I have already encountered the error message Unable to convert a String to
java.lang.Object ... on server like weblogic
I want to be able to send more than one parameter when the submit button is
clicked.
currently i have this...
html:submit property=action value=Add --- I want more
parameters to be sentis this possible?
bean:message key=button.submit/
/html:submit
In testing Struts code in JBuilder I am running into a problem with URL
resolution. I have installed the Tomcat 3.2.1 plugin off the JBuilder open
source site. This allows me to choose either Tomcat 3.1 or 3.2 for testing.
I had noticed that Tomcat 3.1 was not handling templates well so the
Do you have multiple submit buttons, and your action treats the data differently?
You can use hidden fields, so that all the data is sent with the form
fields. Then your action can determine which fields to use based
on the valud of the submit button.
If you have the same input field name and
Hi guys,
I've received an overwhelming response on the idea of a shopping cart
project using the struts framework. It's all about collaboration, getting
newbies up to speed, and doing the project right !
All are welcome to join. Visit http://mycart.cjb.net/ for details.
Oh yeah - if your a
Page can't be opened
-Original Message-
From: Joseph Hakim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 8:22 AM
To: [EMAIL PROTECTED]
Subject: Shopping Cart Project Begins !! (struts powered of course!)
Hi guys,
I've received an overwhelming response on the idea of a
i m a new struts user. i want to instantitiate my ConnectionManager at the
start up
of Tomcat 3.2.1. i saw there is a way to do that for the default conection
manager '
by adding some entry in struts-config.xml. how can i instantitiate my own
ConnectionManager
class at start up and put the object
It's definitely getting hits. I checked the logs. Also got a friend to test
it from another ISP. Try it again. Let me know if you have any further
problems :-)
Joseph.
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 May 2001 10:27 PM
To:
One more modification to this set of instructions:
I didn't like my own solution about modifying the Digester and looked
around to see if I couldn't solve the problem in a way that didn't require
you to modify code. It turns out this isn't too hard. What you have to do
is import only those
It's definitely getting hits. I checked the logs. Also got a friend to test
it from another ISP. Try it again. Let me know if you have any further
problems :-)
Joseph.
-Original Message-
From: Sridhar H C [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 May 2001 11:05 PM
To: 'Joseph
Hi,
I am trying to get some images to work but so far no luck.
My web app directory is as follows
myCompany/... place for my JSP's
myCompany/Images..all my images are here.
On one of my pages, pwSubmit.jsp I have the following tag.
html:image page=/Images/cancel.gif alt=Cancel property=action
Hi Guys,
I was trying to use Struts on Tomcat 4.0 Beta 3. I am getting the
following errors when starting up Tomcat. Anybody out there can point out my
problem ? Thanks a lot.
cheers,
Amar..
A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL
relocation t
arget' has
Ok. My apologies to those that couldn't access the website. The webserver
was running at port 800. Since this is a non-standard http port, some
firewalls chose to block access. I've moved it to port 80, so there should
be no more access prolems.
Access the website as normal by pointing your
Yes, this helps. I need to next research how
to do that ;^)
- Original Message -
From:
Natra, Uday
To: '[EMAIL PROTECTED]'
Sent: Tuesday, May 01, 2001 9:39 PM
Subject: RE: Override the presentation of
html:errors
When
U add Ur errors to the
Hi All,
I am getting the following error when trying to run a Struts App on
Tomcat 3.3-m2 . The application works fine with WebLogic 6. Am i doing
anyting wrong ? Thanks a lot.
cheers,
Amar..
2001-05-02 09:30:27 - /onboard.presentation: compile error: req=R(
/onboard.presentation +
Hi,
I have a couple of buttons on a web page, all with the same property but
with a different value. I want to be able to submit that form and then have
my actionservlet figure out what to do depending on which one of the buttons
the user select.
I have a web page with image buttons as follows:
I headed down that path too, but then I noticed the GenericConnection class.
The GenericConnection class works with GenericDataSource to override the close
method. When you call close, it cleans up the connection, set the close flag
to true and returns the connection to the free connection
Hi Jeff,
I've done the following. It's not the prettiest, but it works (although I
haven't tested it on errors generated from the perform() method, only
validate()).
logic:present name=org.apache.struts.action.ERROR
bean:define id=errors name=org.apache.struts.action.ERROR
Hi,
is in version 1.0 another way to localize HTML-Elements???
What I try, is:
--
html:submit value=bean:message key=xy.test.btn.submit//
But this don't work:
---
org.apache.jasper.compiler.ParseException:
T:\webapps\webclient\login.jsp(38,96) Attribute
Hi Kyle,
If you have time, could you elaborate on step three. The app
group/servlets/app group.webapps file that I am familiar with in VAJ
makes no mention of doc roots and servlet paths. Could you provide an
example file and/or point me to the docs.
Everything else is very clear and has been a
Title: RE: Help on struts on Unix.
Thanks, that is the problem.
I kill the process which is running on background.
However when I use shutdown.sh, it does not shutdown the process.
I will post if I find out what is going on.
--Michael
-Original Message-
From: shunhui zhu
I headed down that path too, but then I noticed the GenericConnection class.
The GenericConnection class works with GenericDataSource to override the close
method. When you call close, it cleans up the connection, set the close flag
to true and returns the connection to the free connection
...method sould be POST...
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: 02 May 2001 14:35
To: Struts
Subject: How to get value of button submitted?
Hi,
I have a couple of buttons on a web page, all with the same property but
with a different value. I want to be
Ahh -- good catch Jon. I actually meant the default.servlet_engine file in
step 3. That contains the document root and classpath. You also have to
create a .webapp file (of course) to actually load the ActionServlet
appropriately...
Kyle
Jon.Ridgway [EMAIL PROTECTED] on 05/02/2001 09:45:01
Hi All,
i m new to struts. i am facing a small problem. im trying to use
GenericDatasource to connect to the database.
this class implements javax.sql.DataSource. when i strsrt tomcat, it gives
an error saying javax.sql.DataSource not found.
i am using jdk1.2.2. can anyone pls help me in
I believe this class is part of JDBC 2.0. I've downloaded
jdbc2_0-stdext.jar,added it to the class path and everything worked.
-Original Message-
From: Manabendra Sarkar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: new to struts
Hi
Hello All,
I am trying to connect to the database but when I do
DataSource dataSource =
(DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)
;
it gives me null as the dataSource value. Can anybody help me out here?
Thanks.
Ying
Joe,
I still can't access to the website http://mycart.cjb.net/. Am I the only
one who is having this problem?
-Fei Xie
From: Joseph Hakim [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Shopping Cart Project
Date: Wed, 2 May 2001 23:19:08 +1000
Ok. My
Hi all,
I wonder if someone can help me with this.
The taglib documentation says that the comparison value attribute for these
logic tags (equal, greaterEqual etc) should be a *constant value*. I don't
understand why this is. I want to compare one value of a bean with another
using the tags, and
Hi,
The difficulty is to find a pretty efficient SQL statement which you want
to
execute each time before returning a connection.
--- Matthias
As it was already suggested in this forum, the query select dummy from
dual could work well for a Oracle database. For other databases there would
be
Did you set up the data source configuration in your struts-config.xml file?
I'm using oracle 8.1.6, my setup looks like this.
data-sources
data-source
autoCommit=false
description=Data Source Configuration
driverClass=oracle.jdbc.driver.OracleDriver
maxCount=4
I'm having the same problem.
-Original Message-
From: Fei Xie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 7:42 AM
To: [EMAIL PROTECTED]
Subject: RE: Shopping Cart Project
Joe,
I still can't access to the website http://mycart.cjb.net/. Am I the only
one who is having
Yes, I did. I use my SQL and mine looks like this:
data-sources
data-source
autoCommit=false
description=Data Source Configuration
driverClass=org.gjt.mm.mysql.Driver
maxCount=4
minCount=2
password=pass
Me too
Fei Xie [EMAIL PROTECTED] on 05/02/2001 10:41:47 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE: Shopping Cart Project
Joe,
I still can't access to the website http://mycart.cjb.net/. Am I the only
one who is
Is there a specific way to submit requests for improvements to Struts? Or is
list monitored by those responsible?!
Dave
i was using PoolMan at first. i subclassed ActionServlet and just stuck my
poolman instance in one of the init methods. it worked fine. i'm just using
the built in struts pool now because i'm lazy.
if i remember correctly, poolman didn't check each connection before handing it
out either.
Both methods seem to only check the current connection and move on to the
next one. What if all of the connections are closed?
Anthony
-Original Message-
From: Alan Inser [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 7:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE:
Sorry, I missed the member call. Unfortunately, I tried it and oracle does not
seem to check the connection status. It always returns true.
The question becomes: Do I, (A) test every connection when I get it. Or, (B)
wait until an exception occurs and then either destory the connection or
me too!! :-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 4:36 PM
To: [EMAIL PROTECTED]
Subject: RE: Shopping Cart Project
Me too
Fei Xie [EMAIL PROTECTED] on 05/02/2001
10:41:47 AM
Please respond to [EMAIL PROTECTED]
To:
I'm using Tomcat 3.2.1, when I start the server I check the log information to
verify that database connected correctly. Try looking there.
-Donnie
|+---
|| yteng@zenimax|
|| .com |
|| |
|
Hi Kyle,
Sorry to bother you again. I take it from your reply that VisualAge 3.5.3
does not support web.xml files, is there an easy way to convert both ways ?
Also I found that importing the latest version of xerces worked for me.
Struts seems to use some of its classes as well as jaxp stuff
The reason why the value is null is because that is the default when you
don't specify a key value for your datasource. When that is the case you
will obtain your connection in the following manner:
I cant access this page either.
-Original Message-
From: Joseph Hakim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 6:19 AM
To: [EMAIL PROTECTED]
Subject: RE: Shopping Cart Project
Ok. My apologies to those that couldn't access the website. The webserver
was running at port
This problem seems similar to yesterdays html:message tag.
check if applciation.properties exists and is specified in web.xml.
Also check if a message with the key you are using exists.
-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001
I have just begun using a new service provider which runs Tomcat 3.2
underneath Apache. After installing my struts application I noted that none
of the *.do mappings were working. The tech support told me that the
WEB-INF/web.xml is ignored when Tomcat is run underneath apache, so they
gave me
me too
Ravi
-Original Message-
From: Smith, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Shopping Cart Project
I'm having the same problem.
-Original Message-
From: Fei Xie [mailto:[EMAIL PROTECTED]]
Sent:
I believe flush buffer was added in servlet api 2.2 - maybe you have an
older jarfile in your path.
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 6:35 AM
To: '[EMAIL PROTECTED]'
Subject: struts on Tomcat 3.3-m2
Hi All,
I am
are you wroking on solaris by any chance?
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 6:03 AM
To: '[EMAIL PROTECTED]'
Subject: Struts on Tomcat 4.0-b3
Hi Guys,
I was trying to use Struts on Tomcat 4.0 Beta 3. I am getting
Title: RE: struts and strict MVC
Try using extension patterns. For example,
url-pattern*.servlet/url-pattern
where every call to your servlet will have the the .servlet extension.
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02,
If you can cure my initial scepsis to a promising framework, I'd be trilled!
It's a bit urgent, as we have very little time to decide what to do.
I've succesfully deployed and run the struts-documentation.war-file. (ie.
http://localhost:8080/struts-documentation/ deploys well and is browsable).
please unsubscribe me. thanks,
The question is how to add or specify the datasource key value. I added the
datasource tag contents in the struts-config.xml file. What else do I need
to do? Do I need add an ActionDataSource class? Do I need to use the
GenericDataSource class? Thanks.
Ying
-Original Message-
From:
I believe that this error occurs because you cannot use a tag inside a tag.
- Original Message -
From: Gogineni, Pratima [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 02, 2001 9:11 AM
Subject: RE: localization hor html tags
This problem seems similar to yesterdays
This will work.
html:submit property=whatever i don't care
bean:message key=xy.test.btn.submit/
/html:submit
-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 12:11 PM
To: '[EMAIL PROTECTED]'
Subject: RE: localization hor html
Yes there is
in the WTE Dir/properties directory there is a webapp.xsl that will
convert a web.xml file to the appname.webapp format. There is some bugs,
The taglib command forgets the inclosing taglib tag.
When I fix it I will submit it to the group
Make your own project in Visual Age
Yes there is
in th WTE Dir/properties directory there is a webapp.xsl that will convert
a web.xml file to the appname.webapp format. There is some bugs, The
taglib command forgets the inclosing taglib tag.
Make your own project in Visual Age called MyProject
In the resources create a VAJ
I was getting a ClassNotFound exception for
org.apache.crimson.jaxp.SAXParserFactoryImpl.
I fixed by moving javax.xml.parsers to the same project as
org.apache.crimson.jaxp.SAXParserFactoryImpl
Not sure why this matters, something specific about the IBM classloaders
Nick
-Original
Nope. I am on WINNT sp 6. I was trying to get any of the Tomcat builds to
work with Struts. so far i have no success.
For any small changes i make to my action classes, i had to stop and start
weblogic 6 again, and it is slowing me down considerably..(i am using as
both a war file and as a
try putting $JDK_HOME/lib/tools.jar into your classpath or put it in your
$TOMCAT_HOME/lib directory...
jb
blah -Original Message-
blah From: Storhaug, Henning [mailto:[EMAIL PROTECTED]]
blah Sent: Wednesday, May 02, 2001 9:28 AM
blah To: [EMAIL PROTECTED]
blah Subject: Problem with
Hi,
I am running JBoss-2.2.1 + Tomcat-3.2.1 (single bundle from JBoss) on WinNT.
After I try to deploy a war file (i.e. struts-example.war) into
$JBOSS_TOMCAT_HOME/tomcat/webapps,
the classes and jar files in *WEB-INF/classes* directory and *WEB-INF/lib*
cannot be located by tomcat (I
How do I unload database to its persistent storage version? If we are
running directly out of a WAR file, saving cannot occur. How do we make the
save possible?
Thanks.
Ying
You will add the key information to the datasource info in you
struts-config.xml file it will look like this:
data-sources
data-source
key=[some name I'll use to reference this datasource]
autoCommit=false
description=Data Source Configuration
Hi,
I am getting this error. I would appreciate anyone pointing out a
solution to this problem. This works fine with Weblogic 6. Thanks.
cheers,
Amar..
javax.servlet.jsp.JspException: Missing message for key
login.title
at
I'll have to try the latest version of Xerces. I didn't have any luck with
Xerces 1.22. I got things running using JAXP 1.01, but that seems rather
backwards to me. I'm also getting errors during JSP page compiles, but I
don't think that's related to the XML issue.
As for converting from
Title: RE: localization hor html tags
You should do it the following way:
html:submit
bean:message key=xy.test.btn.submit/
/html:submit
-Original Message-
From: Eric Rasmussen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re:
here is the ant file that is suppose to do the conversion, but I haven't got
it to work yet because I cant find com.ibm.servlet.ant.teskdefs.*
the file can be found in WTE/properties/convertwar.xml
?xml version=1.0?
project name=WarConverter default=transform.to.webapp basedir=.
target
Title: RE: Struts and VisualAge 3.5.3 with WTE
Kyle,
FYI, I found a *dirty* way to import Xerces into VAJ. Import it into the XML4J project and select yes to overwrite everything. That will work.
Regards,
Arjun
-Original Message-
From: Kyle Brown [mailto:[EMAIL PROTECTED]]
I have downloaded the latest CVS, the latest nightly build, and the latest
nightly src but I cannot seem to find the struts-test.war file. Should I be
synching to another tree in CVS or is this war file called something else
now? I want to use it as a source of examples ... any help would be
you need a line in httpd.conf to mapping /*.do
Yong Chen
Sr. Principal Consultant
BVGS South Central - Houston
BroadVision Inc.
Our job - and our business strategy - is to help customers establish a thriving
e-business ecosystem that links the enterprise with its employees, consumers,
I am using nested
beans in Struts, for example:
html:text property="user.address.street" /
In this particulat
example the address bean is null. Struts still trys to call the getter and
setter methods on this null object. Does anyone know if this is the
desired behavior for Struts, or
Instead of trying to reuse the Struts tag itself, perhaps you could call
RequestUtils.message() from within your tag to get the localized text. This
is what the bean:message tag does to get its job done.
--
Martin Cooper
- Original Message -
From: Alexander Jesse [EMAIL PROTECTED]
To:
It actually uses a FastHashMap, which is optimized for fast read-access in a
multithreaded environment. For the details, see:
http://jakarta.apache.org/struts/api/org/apache/struts/util/FastHashMap.html
--
Martin Cooper
- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To:
-Original Message-
From: Azariah Jeyakumar
Sent: Tuesday, May 01, 2001 2:32 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: More File upload problems
Hi,
I have found three more problems with file upload using the
nightly build (20010430):
1.
This is very strange. We have some pages that have more than twice as many
bean:message instances as you mention. I just did a quick test on our
latest build, and it's really very fast. Certainly nothing that needs any
performance enhancement.
You might want to poke around in your environment
Jason,
I looked through the email trail for this and didn't see any mention of
which servlet engine you are using. Outside of checking your environment
and configuration as Martin suggests (which is probably the root cause), you
may want to take a look Resin (www.caucho.com). It is super-fast
Anyone here know where I can find a tutorial or explanation on using the
html:file tag for file uploads? The struts documentation is fairly thin
on this area.
Regards,
Graeme.
80 matches
Mail list logo