Hi all , Just thought i send a acknowledgement all the comments so far
have been very interesting thus i have a folder full of MCV prints . I
find that reading the MVC material as well as other documentation has
made getting the grips of Struts Implemetation of MVC easier to
comprehend.
how can i get the user session id within an Action class?
=**
If you are not the intended recipient, employee or agent responsible for delivering
the message to the intended recipient, you are hereby notified that any dissemination
or
request.getSession().getId()
Fr.
-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 21 August 2001 11:20
To: '[EMAIL PROTECTED]'
Subject: session id
Importance: High
how can i get the user session id within an Action class?
Thanks David,
The error comes from the definitions in global tag of my validation.xml.
I could have copied them from one of samples which i tried.
Replaced them from the example in 20010702 and it works as expected
SooAun
David Winterfeldt wrote:
I didn't think it would cause a problem.
Hi, all
Have anyone successfully run Struts samples on AIX with WebSphere 3.5.4? I
can run the sample with WebSphere 3.5.4 on NT4 but get various errors on
AIX3.4. The error seems all related to the XML parser. I've tried
JAXP1.0.1, IBM parser and the even the one come with WebSphere, but all
Hi
I want to forward to another action class from an actiondispatcher, how can
I accomplish this?
Thanks in advance
Jan Fredrik Overaasen
Norway
hi,
i'm pretty new to struts and i have a question
about the structure to put in the various components that make up a struts
application..
I'm currently putting it like this
com.business.section.view --
here i put ActionForm beans
com.business.section.model -- here i put
beans
Hi,
Well, personally I only make a functional and not a technical seperation of packages,
so I would put everything into one single package. It's usually limited to about a
maximum of 30 files (including ejb files etc.), I can live with that. You never need
to search for files.
I guess
This just worked for me:
To remove your address from the list, send a message to:
[EMAIL PROTECTED]
_
Brenda M. Faber
Craig R.
take a look a the log file localhost_log.txt
perhaps there is a startup failure when reading out the struts-config.xml
file which prevents struts from loading the db correctly.
verify also the classpath settings for the db jar files
(mm.mysql-2.0.4-bin.jar and jdbc2_0-stdext.jar )
Hi,
To share with you, here is my recorded instruction to config Struts 1.0 on
my AIX 4.3 with WebSphere 3.5.4.
Does it mean I can go ahead with Struts?
Regards,
JiRong
config Struts on sindev02
1. Start adminclient.bat from D:\WebSphere\AppServer\bin
Hi everyone,
i m new to struts.. if anyone can tell me where to find the archive of the
mailing lists then the problems already discussed won't come again and
again...
anyway i would like to know how to define datasource in struts... i tried
using the example given with struts... but i must be
Hi,
You can do it like that:
data-sources
data-source
set-property property=autoCommit
value=false/
set-property property=description
value=MySQL/
set-property property=driverClass
or do I need to use useBean:...?
-Original Message-
From: Mike Dewhirst
Sent: 21 August 2001 15:10
To: '[EMAIL PROTECTED]'
Subject:
If I just want to use a standard java class in a page, and it's called
SomeThing.class, do I just call it with bean:SomeThing key=whatever..
tag? Key
Hi all,
Has anyone faced problems deploying web app as expanded directory using
Weblogic 5.1(sp10) and struts 1.0
When I deploy war file it works fine but when I try expanded directory I
get the following message :
ServletContext-General Root cause of ServletException
a newbie in using struts...
kindly let me know what i should be doing to define a datasource..
i have the struts-config.xml file where i defined the datasource
parameters...
and now i m trying to run the example provided in the struts
but it is throwing error javax.sql.DataSource not
I have the following scriptlet that returns the correct values:
%
if (request.isUserInRole(Administrators)) {
out.println(Administrator);
} else if (request.isUserInRole(Employees)) {
out.println(Employee);
}
%
And I was hopeing to use the logic:present tag to achieve the same
Thanks Bradley,
Actually my problem turned out to be something else.
I didn't know that all the archives in lib dir ( tomcat home or webapp
individual WEB-INF/lib ) needs to have .jar extension to be recognized by
tomcat. I was using java standard sql extension api release 3 from
java.sun.com
Hi Guy !!
Someone yesterday told about the Page By Page Iterator.
I searched a little bit about this subject but all I found was specific
implementations of it.
Is there anybody who is / was / will be working on a reusable implementation.
I wouldn't like to code it for each list type in my
Hi guys,
I actually use a mixture of both approaches.
Somehow, I like to reflect the Struts approach (MVC-ish) in the source code
organisation.
Basically, I have for example:
com.mydomain.myapp.model.myfunctionality.* for model beans (DAO or EJB)
com.mydomain.myapp.view.myfunctionality.* for
Hi,
i'm a new user of struts and did not manage to execute an action mapping.
Here is the message log from jasper :
JASPER_LOG Tue Aug 21 17:03:02 CEST 2001 Class name is:
_0002frequete_0002ejsprequete_jsp_0/JASPER_LOG
Context log path=/struts-jdbc :action: Error creating Action instance for
1. Your RequeteAction should be in classpath.
2. RequeteAction should not have any errors.
3. Check the name of class is correct, i mean type mistake.
-Original Message-
From: BOURREE Pierre [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 4:15 PM
To: '[EMAIL PROTECTED]'
I figured it out - I was closing the present tag before printing out values.
--- Matt Raible [EMAIL PROTECTED] wrote:
I have the following scriptlet that returns the correct values:
%
if (request.isUserInRole(Administrators)) {
out.println(Administrator);
} else if
Create a forward declaration whose path is another Action's URL. In
this way you can chain actions together:
forward name=Next Step path=/nextstep.do/
(assuming you are using extension mapping for *.do in the usual way).
Craig
On Tue, 21 Aug 2001, Jan Fredrik Overaasen wrote:
Hi
I
On Tue, 21 Aug 2001, Richard William Lake wrote:
a newbie in using struts...
kindly let me know what i should be doing to define a datasource..
i have the struts-config.xml file where i defined the datasource
parameters...
and now i m trying to run the example provided in the
Here it is. Hope it helps.
in struts-config:
struts-config
data-sources
data-source
set-property property=key
value=PrePopulateDS/
set-property property=autoCommit
value=false/
set-property property=description
value=FN Data Source
Hi, does Stutrs 1.0 work at all with Tomcat 4.0?
Is there a 1.1 version of struts that may work with it?
Where can i find infor about working Struts 1.0 - 1.1 with Tomcat 4.0
Also, has anyone tried Struts with Sun Fote's interal Tomcat?
Thanks
Sarbjit
Hi everyone,
I am pre-compiling my jsp's in my struts web app, and everything works fine,
except specifying the welcome file in the web.xml.
If I do not pre-compile everything, having index.jsp as the first page works
great. However, when I pre-compile index.jsp it doesn't work. Putting an
On Tue, 21 Aug 2001, Sarbjit Singh wrote:
Hi, does Stutrs 1.0 work at all with Tomcat 4.0?
Sure ... since I'm the primary developer of both Struts and Tomcat 4.0,
you can count on that!
In fact, Tomcat 4 should run *any* web app based on the Servlet 2.2 and
JSP 1.1 specs just fine.
Read the documentation and look at the example.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 4:41 PM
To: [EMAIL PROTECTED]
Subject: [Q] ActionServlet Forwarding
I have a class that extends the ActionServlet. I would like to be able
Does anyone know why I have to add all the jars in my WEB-INF/lib directory
to my classpath, and also WEB-INF/classes? I thought you were supposed to
get these for free?
I'm on NT4, iPlanet Application Server 6.0 SP3.
My directory structure is:
APPS
- AppName
- WarName
I looked through the JavaDoc and tried to find an example in the User Guide
was unable to find one. I also looked through the samples. I did find
example of forwarding from the ActionClass but not from ActionServlet. Can
you point me to where you were able to find the example?
Thanks!
Ken
Ken,
Are you subclassing ActionServlet solely to perform this conditional
forwarding? If so I would recommend putting this logic into an Action
subclass called something like ActionBase (instead of putting it in
ActionServlet) and making your actions subclasses of your custom
ActionBase
Matt,
I package my war file with a build file using ant. I just copy all my
jar files in web-inf/lib, then jar the whole directory structure into a
.war, and deploy the file using iasdeploy.
Once deployed, all jar file contained in my war file end-up
beeing uncompressed in the web-inf/lib
I assume that your select tag is expecting to get data from your form object that you
had
previously placed into the request?
When you return to the 'toJsp' page, you will need to place the form object back into
the
request, or place the form object in the session in the first place.
When you
I agree with John. The conditional processing should be the Action class.
For example, the action class goes to the database to retrieve some data and
based on certain properties of the data you make decision to froward to
a.jsp or b.jsp etc.
The ActionServlet should be left alone in general.
We extend ActionServlet to handle initiation or resources. Because it is
always called first (process method), it also seems like a good place to
handle logging onto the external resources we need. I noticed that
ActionServlet has some finder methods to get the ActionForward and other
Picking up these classes and jars for free is part of the Servlet 2.3 spec
(which has still not been officially released). Tomcat 4.0 supports this
spec, as does WebLogic 6.1. Many Servlet 2.2-compliant web servers (such as
Tomcat 3.2.1 and WebLogic 5.1) create Servlet 2.3-like directory
I am using Struts 1.0 with Tomcat 4.0 and it works
well.
Bob Byron
--- Sarbjit Singh [EMAIL PROTECTED] wrote:
Hi, does Stutrs 1.0 work at all with Tomcat 4.0?
Is there a 1.1 version of struts that may work with
it?
Where can i find infor about working Struts 1.0 -
1.1 with Tomcat 4.0
I should have read this one first. I think the problem is that you have the
jar in the uncompressed war lib directory. I don't think iPlanet will
automatically add these to the classpath. However, I think it will add any
jars it expands during deployment with iasdeploy.
Scott Wilson-Billing
Hello All,
I have the latest nightly build from today (08212001) and I have a
struts-config file that works fine except for a small forward problem. I
have the following global forwards defined:
global-forwards
forward name=login path=forward.login/
forward name=failure
Hi,
This question probably could be answered best by David Winderfeldt. I want to validate
some indexed fields and was wondering if I could use the validator package. Also
where could I more info on how to write expressions for the mask field in formset?
TIA.
-Nimmi
if I'm writing a custom tag, do I have the request object available from
within the tag class? How do I access it?
=**
If you are not the intended recipient, employee or agent responsible for delivering
the message to the intended
My application works fine in Tomcat version 3.2.3.
But if this same application is deployed in Tomcat
version 3.3 beta1.0. I got the below error message
when startup the Tomcat Server. I think there is
something worng with the XML Parser API. Do I need a
new XML Parser Version? or How can I fix
I am using Tomcat 4.0 b7 with struts 1.0 it works great.
--- Bob Byron [EMAIL PROTECTED] wrote:
I am using Struts 1.0 with Tomcat 4.0 and it works
well.
Bob Byron
--- Sarbjit Singh [EMAIL PROTECTED] wrote:
Hi, does Stutrs 1.0 work at all with Tomcat 4.0?
Is there a 1.1 version of
If you are referring to having an html field with
indexed=true then someone else asked about this.
I've been pretty busy so I don't know when I'll get to
this, but I did add it to my To Do List. I'll make it
a top priority when I have time to work on the
validator again. Currently you would
Will Struts detect that the struts-configl.xml file has changed and reload
it automatically?
Thanks.
David,
What I was referring to are the tabular fields, i.e, multiple rows of the same kind of
data (a grid). Can your package be used to validate those.
Thanks.
-Nimmi
-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 5:37 PM
To:
It can, but it is the same issue as the indexed
property. You would have to define each field. There
isn't currently anything where you can specify
'name[x]' and have it match any index (name[0],
name[1], etc.). Which is what you would probably want
to do.
David
--- Shamdasani Nimmi-ANS004
On Tue, 21 Aug 2001, David Corbin wrote:
Will Struts detect that the struts-configl.xml file has changed and reload
it automatically?
Not at present.
There is a standard action (org.apache.struts.actions.ReloadAction) that
you can arrange to trigger when you know this has happened (if you
Hi,
My are currently starting the process of implementing Struts at my company
for a wizard-like configuration tool with a JSP front end. We plan on using
one ActionForm for the entire workflow but my immediate impression from the
documentation that I have read is that I need to use a different
Glenn Kidd would like to recall the message, Work Flow Question.
Hi,
Is there any way to flush the message resources cache?
My requirement is to be able to dynamically edit labels
without bouncing the servlet container. I have my own
MessageResources implementation that connects to our
own dictionary which is loaded from the db. So the
problem is that
Copy ApplicationResource.properties to where your classes
areProbably /weblogic/WEB-INF/classes/...packages.../...classes...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 5:19 PM
To: [EMAIL PROTECTED]
Subject: Weblogic 5.1 and
54 matches
Mail list logo