From: [EMAIL PROTECTED]
One way of resolving this is to have a hidden field in your forms which
specifies which step is being performed. Then in your reset() method, you
can check which step you are at, and reset (or not) fields as appropriate.
I'm trying to use form beans as suggested in
Hi,
From within Action.perform, I can return an ActionForward. This way I
can subsequentially go from one action to the other. That's fine, but
how can I include other actions. I would like to activate several
other actions from within one action, and at the end return a final
forward to a jsp.
Hi agian,
Excuse me for being late in my response but i'm currently between too
projects...
Craig, when you say :
Note that you *must* specify an input attribute on your Action, so that
Struts knows where to send the user back to.
What do i need to do, what is the name of this input attribute?
Wilhelm Fitzpatrick [EMAIL PROTECTED] wrote:
It seems to me that struts *shouldn't* reset form beans that are
stored with session scope. Or am I misunderstanding something?
-wilhelm
No, the reset has to be done, otherwise the checkboxes would not
work.
--
gR
Ted,
Thank you for answering my question. I found Tiles to be very interesting.
However, I have a few question regarding Tiles, that I hope you can help me
with or point me to some sources that I can get my answer from.
My question is I wrote a simple Tiles jsp, and verything work fine till
Are there any regular Patterns you can make use in
Struts ?
Rakesh Ayilliath(Software
Engineer)
Synergy IT Innovations Pvt Ltd,#196, 1st Floor,
9th Cross,HMT Layout, RT NagarBangalore 560032
[EMAIL PROTECTED]
Alexandre,
The input attribute must be added to the action mapping as follows:
action path=/requete
type=com.sopra.etudestruts.jdbcstandard.RequeteAction
name=requeteForm
scope=request
input=/requete.jsp
validate=true
forward
Hi all,
This my first mail to the list. I am just learning Struts. I got stuck at a
problem hope I will get some help reg. this.
Problem:
I am displaying a list of orders with links at the end like Modify Order, View
Order etc. Ok now these links point to specific directories in the
Yes!
It works fine.
I thank you very much for help, Guus.
I was not able to find that in doc for the moment.
-Message d'origine-
De: Guus Holshuijsen [mailto:[EMAIL PROTECTED]]
Date: lundi 20 août 2001 11:39
À: [EMAIL PROTECTED]
Objet: Re: Validating a form
Alexandre,
The input
hi all,
does anyone have experience with struts light from jean noel ribette ? i
have a problem with his menu tag. i have implemented a wonderfull deep
search and want to create a tree-menu with the results now. i have created
the necessary code, but this could not be correctly realized. the
A very good example of coding this sort of thing is the DispatchAction
class in the Struts Action package.
http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchAction.html
If you are worried about performance, it would be very easy to use
DispatchAction to combine several of
Hello !
i am encountering problems by trying to initialize a
Database Connnectionpool.
in struts-config.xml I got the entries:
data-sources
data-source
autoCommit=false
description=H2O DATENBANKTEST
Tom - it seems that you are correct, my html does show up correctly.
The reason I have html in my properties file is because I want to display
certain images with my messages.
Let's take the following key for example:
error.password.mismatch=trtd class=feedback height=20nbsp;nbsp;img
Mikkel - just to let you know - Merant are the only SQL Server JDBC drivers
that will work on iPlanet.
Matt
--- Nimphy, Thomas [EMAIL PROTECTED] wrote:
I like the JDBC-Drivers from http://www.inetsoftware.de/
Thomas
-Ursprüngliche Nachricht-
Von: Mikkel Bruun [mailto:[EMAIL
You can retrieve the current user's session id from the
HttpSessionBindingEvent e using e.getSession().getId(). Use this value to
look up an entry in your hastable and remove it.
The HttpSessionBindingEvent is generated when the session is invalidated
(valueUnbound()) or created (valueBound()).
Automated Unsubscribe does not work!!!
Alex Gurvits
Brinson Advisors
Application Developer
212 882-5035
Hello everybody,
since I have already searched the archives for any posting concerning my problem, I
only need a confirmation now:
Am I right, assuming that I cannot use action mapping when coming from a URL like
http://.../thisandthat.do?param1=value
and only wanting to dislpay a
Title: RE: unsubsribe
Unsubscribe me
Matt,
what I'm currently doing is something like this: In, say, x.jsp I write
...
trtd class=feedback
bean:message key=login.error.1
img...
strongbean:message key=login.error.2/strong
/tr
whereas in AppRes.properties I have
login.error.1=...
login.error.2=...
Yeah,
Me too...and it doesn't work?!?
-Original Message-
From: Gurvits, Alexander [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2001 13:48
To: [EMAIL PROTECTED]
Subject: Unsubscribe me!
Automated Unsubscribe does not work!!!
Alex Gurvits
Brinson Advisors
Application Developer
212 882-5035
you should be able to do what you're trying to do without a problem. do you
have an action class which extends org.apache.struts.action.Action and which
is called com.servlets.thisandthat_action? if not, that's the beginning
of your problem. if so, inside that action class, you should have
I wanted to let your guys know that Early access (ea) Expresso 4.0 release
is now available for download - which is fully integrated with Apache
Jakarta Struts. Expresso 4.0 is a big jump forward from 3.11, as the
version number indicates, it includes a number of substantial changes to the
core
Shu, Kwang-shi | Tel 732-460-7848
Village Networks, Inc. | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]
Hello,
I don't believe you will be able to do this with the struts link
tag. But it should be fairly easy to make your own custom tag that
would do this. Take a look inside the source code for the link tag.
Bill
jigerjava wrote:
Hi all,
This my first mail to the list. I am
Hi Jon,
my action class look just as you described.
But I looked closer at the error message and discovered that it goes like this:
500 R /thisandthat.do + null No action instance...
So it seems like the parameters don't go through !
Still my action class doesn't even do a system.out.println,
hi,
I can't access www.jcorporate.com site - it said i don't have permission...
Do I need to do something?
Thanks,
- Chuong
=
HUYNH, N. CHUONG
TMA Software Solutions, Vietnam
Tel: (84-8) 990 3848 - Ext: 5272
Email: [EMAIL PROTECTED]
=
Well, now that you mention it ;-), I just put together a catalog of
Struts design patterns and strategies as a followup to a code review.
The first blush is available at
http://husted.com/about/struts/resources.htm#new
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~
Hi Marion,
it sounds like you missed to declare your action in struts-config.xml. But
in your first posting you've written that you did the mapping... Maybe you
have the wrong package name and/or class name in struts-config.xml ? You
should check this.
actionpath=/thisandthat
Matt,
I'm not sure if your statement refers to iPlanet app server or web server,
but we have used the JTurbo SQL Server Type 4 JDBC driver on iPlanet web
server running on Win2k without any issues.
robert
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Thank you for your input! Unfortunately I still get the message
resolveEntity('null',
'file:///C:/WIN32APP/SilverStream37/bin/struts-config_1_0.dtd') Not
registered, use system identifier
after copy and paste your suggestion, and my app still doesn't work as soon
as I select something related
Hi all , I have a MyApplicationResources at the following level .
wardens/WEB-INF/classes/org/breconbeacons/wardens/MyApplicationResources
wardens/WEB-INF/src/org/breconbeacons/wardens/MyApplicationResources
I have also declared the above path in my web.xml.and consructed a DatabaseServlet
in
I didn't think it would cause a problem. I'll look
over it again. If a field is of type int, you don't
need to validate to see if it is an int. Also if you
have a field defined as an int, then you don't know if
someone entered something bad because you will always
get the default value of the
The problem is that my image changes depending on the error message - so I need
a way of determining which image to display.
Oh well, I do everything from the design to the Action servlets, and stop
before the EJBs - so I guess it's only really a concern if someone else was
doing the design.
How do you implement a generic back button in
struts such that it hits the Action Class? When
you use something like:
A HREF=javascript:history.back()Back/A
You go back to the jsp, but miss the Action Class,
which is often a bad thing.
-- Larry Maturo
you realize this is the struts-user list, and not the struts-dev list?
maybe [EMAIL PROTECTED] would work?
dunno if that's your problem or not. :)
-Original Message-
From: Vince Davis [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 11:12 AM
To: '[EMAIL PROTECTED]'
Subject:
Sorry. I cut and pasted the wrong email address. Yes, I've used the
[EMAIL PROTECTED]. Any other suggestions?
-Original Message-
From: Mills, Theo [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 9:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Unsubscribe me!
you realize this is
You can't really use the javascript:history.back() function to hit the
Action class as the history.back does not even hit the webserver. It is an
internal client operation, like most javascript is.
One solution you might want to try is to create a stack object for each
session to track what
On Mon, 20 Aug 2001, Vince Davis wrote:
Ditto. Does the email administrator ever read this list ever??? And yes,
I followed the instructions!
([EMAIL PROTECTED]).Doesn't work.
This works for the STRUTS-DEV list ... it is
[EMAIL PROTECTED] for the user list.
The most common
Craig,
I found Tiles to be very interesting. However, I have a few question
regarding Tiles, that I hope you can help me with or point me to some
sources that I can get my answer from.
My question is I wrote a simple Tiles jsp, and verything work fine till I
introduced the Definition feature
Hi,
I am a new user of the struts package
and am using Tomcat 3.2.3 on Windows 2000 Professional with service pack 1. I have tried to follow the directions on
the installation of Tomcat, as well as that for struts. Normal servlets and JSPs work just
fine, so I think Tomcat is okay.
The
You can also look at putting in the Expires HTTP Header parameter to force
the client to hit the server each time. This forces the back button to go
back to the webserver.
//These Response Headers prevent Client side cache of web pages
//response.setHeader(Cache-Control,
Have a look at the following messages which discuss the addition of such
feature.
In this message you'll find some source code that can help you until
hopefully this gets into the commons.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg02804.html
Fr.
This error is caused because you are calling the wrong ActionServlet, in
web.xml, replace servlet-class with the one below, and add the init-params.
You will also need to make sure that all the commons*.jar packages are in your
WEB-INF lib directory.
After doing this, the only error I am
I had the same problem until I started from scratch with a clean tomcat +
jaxp configuration.
I think there was an XML parsing problem using an appropriate version of
jaxp.
let's try this:
1) unpack tomcat4.0b07 into a $TOMCAT_HOME
2) copy $TOMCAT_HOME/jasper/jaxp.jar and
Gordon Reynolds wrote:
I might misunderstand your intention, but could you implement your 'default'
code as a scriptlet in a template that you reuse for the display of your web
pages?
Actually all the options suggested would solve my doubt. :-) Thanks guys!
I think I'll go
nick,
you are rock:) thanks you so much ... it's works for me now ... I am
rock
danny
-Original Message-
From: nicolas bonvin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Tiles Struts
I had the same problem until I started
Sorry if it is too basic, but i am new on struts...
I have an interate:
logic:iterate id=mcity name=cityReview property=multiCity offset=0
length=6
do something
/logic:iterate
multiCity is a vector...
Suppose I want to display on a table only 2 at the time, I make offset=0
and lenght=2,
I am trying to use dynamically generated forms with Struts. Since the form
is dynamic I will not know the form fields until runtime. How do I define
my FormActionbean in this case? Is there a way to circumvent the
requirement of having a Bean for holding the form data? Can anyone help me
out
I tried bluestone tutorial.
the jsp is simple:
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %
form:form action=custom.do
form:submit value=Display Group /
/form:form
I got the following exception:
javax.servlet.ServletException: Cannot find ActionMappings
Have a look at the following messages which discuss the addition of such
feature.
In this message you'll find some source code that can help you until
hopefully this gets into the commons.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg02804.html
Fr.
I have a few JSPs for the app I am working on that are virtually identical.
Boilerplate on them changes based on how you got to that screen. I was
thinking that I could have a single JSP in these cases, and determine which
boilerplate is to be displayed by some kind of custom tag that evaluates
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 found...
if I understand correctly what you'd like to achieve, one way to do it would
be to use the Templates or Tiles tag library:
- you setup one template: /CarMenu.jsp with the reusable HTML code :
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
html
body
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
hi all,
I have a very interesting problem, and here how it
occurs:
my formJSP have two button: SUBMIT and EXIT.
if the user is authenticated, when the Submit button
is clicked, the form is submitted succesfully and the
user is brought to another JSP page, let say Thank-you
page.
But let say, if
They need to be set on the HttpServletResponse object.
Not being as familar with struts as most people on this list... I am going
to take a stab at this... Somebody help me here
In looking at the Controller Servlet (ActionServlet) I found that it has a
nocache member variable on the
I have a class that extends the ActionServlet. I would like to be able to
change the navigation in the perform method to forward to a different
address in the even that certain conditions have been met. However, it is
not clear to me how to forward from the ActionServlet. Any help would be
Thanks Nicolas and Larry..
Both the use of templates (although I need to check and see if that is
available in 1.0 or not) and the parameter in the path of the forwarding
seem like they should prevent JSP duplication. For this particular
problem, I'm leaning towards the request parameters at
WHAT?!? An insincere offer via unsolicited email? I'm shocked,
appalled and chagrinned...
Anthony Xin Chen wrote:
Hello struts-user,
If you have received a email claiming a great off from
webhosting.com, it is a hoax.
I can show you an example of what i'm using (MySQL):
In struts-config.xml:
data-sources
data-source
set-property property=autoCommit
value=false/
set-property property=description
value=MySQL/
set-property property=driverClass
Hello struts-user,
If you have received a email claiming a great off from
webhosting.com, it is a hoax.
--
Best regards,
Anthony
On Tue, 21 Aug 2001, Jonathan Yang wrote:
Hi,
Can it support target like these:
forward name=new path=/.../ddd.do?caller=ddd target=_top /
because I wanna it can forward to a page with frameset ...
This is not going to be possible.
Frames and Targets are a client-side thing. Servers
see to it that struts.jar is not in your classpath
while you start up tomcat.
Rakesh Ayilliath
[EMAIL PROTECTED]
- Original Message -
From:
Chuck
Carroll
To: [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 10:30
PM
Subject: need help with struts
We have encountered a minor problem using Struts with our back end
architecture at Fidelity Investments.
Using Struts version 1.0, all action references always end up translated
to absolute paths when the JSP is translated to HTML. For example, an
action=foo.do in a JSP is later converted into
Something like this should work:
bean:define
id='urltoredirect'
value='%= /admin/orders/ + ht2.get(productkey) + /ViewOrder.jsp
%'
/
html:link
href='GetOrderServlet'
paramId='urltoredirect'
paramName='urltoredirect'
/
blah blah..
/html:link
--
Martin Cooper
-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 21, 2001 3:49 PM
Subject: Relative URL problem in action taglib processing
Preliminary testing would indicate that this hack does seem to work, but
I can't help but wonder: are we missing
66 matches
Mail list logo