Hello everybody,
I have a form with several items which the user can select.
When he submits the form, I open a new form. This form contains
informations which depends on the value selected in the last form.
How can I get this value in the java classes (xxxForm and xxxAction) and in
the jsp
test
Hi i didn't get a response or a suggestion regarding BMO (Session Beans
) Thus i would like to know what this acronym stands for . I have come
across a UML class diagram that connects a BMO TO a DAO (Data Access
Object ) via Query / Update.Has or does BMO SOMETHING TO DO WITH
Business Method
Antigen for Exchange found validate.js matching =*.js file filter.
The file is currently Removed. The message, Rejected Message, was
sent from [EMAIL PROTECTED] and was discovered in Herz,
Stefan\Inbox
located at ZDF/ZDF_MAINZ/NT_49613125.
ScanMail for Microsoft Exchange has detected virus-infected attachment(s).
Sender = [EMAIL PROTECTED]
Recipient(s) = [EMAIL PROTECTED]
Subject = Rejected Message
Scanning Time = 08/14/2001 10:33:35
Action on virus found:
The attachment validate.js matched file blocking settings. ScanMail has
cedric?,
I downloaded the latest(20010731) version of tiles from
http://www.lifl.fr/~dumoulin/tiles/ and tried to deploy the tiles-tutorial
webapp inside of tomcat4.0-b7 (as well as other tomcat versions just to make
sure); unfortunately, here's the error I get upon requesting
Hi everybody,
I have finished my first Struts application (well, nearly finished), and I
thought you may want to have a look at it. You can find it at work at
http://www.webappcabaret.com/turgayzengin , and also I have a place on
sourceforge where you can find the source code at
Hi,
how can I get a locale object in the construtcor of a ActionForm class?
In a login-form I want to set a selectbox containing language
descriptions to the right value (de or en or fr etc). I think the
best way to do that would be an initialisation with the current locale
in the constructor of
Just want to clarify the flow of data in Struts:
1. Controller receives request.
2. Controller looks up mapping for Action and what ActionForm to use.
3. Controller Creates a new instance of ActionForm, invokes it's reset
method.
3a. If request contains parameters, Controller populates form by
3. Controller Creates a new instance of ActionForm, invokes it's
reset method.
The instance of the ActionForm either already exists (created by
a previous Action) or is created when the HTML for the form is
generated (as the form is being given to the user for modification).
Reset is not
I had to update the following part:
http://www.netstore.ch/mesi/strutstutorial/part2.html#Heading6
(I left out the dependencies tab, which prevented the struts.jar from being
in the war file...)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
I get the error on your page???
Server Context Not Available. Possible reasons:
Turned Off
Does NOT exist
Busy (in which case you may try again).
-Original Message-
From: Turgay Zengin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:35 PM
To: [EMAIL PROTECTED]
Subject:
Hi to all Struts developers.
A few days ago i posted two different questions to this mailings.
Unfortunately it seems as if nobody noticed these mails. I am sorry but i
have to post them again, because i urgently need any clues.
Here are the questions:
1)ResponseUtils.filter
Hi Torsten!
without having tested this, but have you ever tried to convert 'Ändern'
instead of 'Auml;ndern'?
Best regards,
Bernhard
Hi,
Among the possible reasons:
Turned Off (May be, I try not to turn the context off, but once I did to
change a class)
Does NOT exist (not possible, it is there :))
Busy (in which case you may try again). (may be)
So, please try again...
I suggest that you write to my e-mail address about
Hi Torsten, Bernhard !
without having tested this, but have you ever tried to convert 'Ändern'
instead of 'Auml;ndern'?
Without testing it myself but looking at the sourcecode 'Ändern' should
remain unchanged.
This probably could work as a temporary fix. On the long run we will
need a proper
Hartmut Bernecker [EMAIL PROTECTED] wrote:
Hi,
how can I get a locale object in the construtcor of a ActionForm class?
In a login-form I want to set a selectbox containing language
descriptions to the right value (de or en or fr etc). I think the
best way to do that would be an
Hi Bernhard, Michael,
without having tested this, but have you ever tried to
convert 'Ändern'
instead of 'Auml;ndern'?
Without testing it myself but looking at the sourcecode
'Ändern' should
remain unchanged.
I've tested it and you are right: It remains unchanged. The filter method
test hope it gets thru.
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.comBuy Music, Video, CD-ROM and Audio-Books from http://www.planetmonline.com
How to Build Deploy a New Application
in Tomcat and Weblogic.???
=
Ing. Jose Efrain Gutierrez C
Web Developer/Softtek Monterrey Mexico
ICQ:2293612
yahoo hotmail:jefrainmx
_
Do You Yahoo!?
Construye tu página personal en Yahoo!
Are there any plans to turn the ApplicationResources.properties into an
actual xml document?
It would make the file more manageable, IMO, by conforming to a standard
found in other struts property files, such as struts-config, and allow
messages to be returned as actual html or text blocks,
My understanding is that there are some class issues with EAServer and that
the fix has not yet been made public. This si the latest info I could get
from the EAServer newsgroups.
Claude
Malcolm Wise [EMAIL PROTECTED] on 08/13/2001 06:54:21 AM
Please respond to [EMAIL PROTECTED]; Please
Craig,
Thanks!
Mark
[EMAIL PROTECTED] 08/13/01 07:03PM
On Mon, 13 Aug 2001, Mark Chen wrote: I
remembered that I read some article about separating business object
from ActionForm using Some kind of util class built from Struts to
extract info from business object or value object.
Anyone know of any examples of how to use the
saveToken(), resetToken(), and isTokenValid() methods - for prevention of
submission of forms multiple times.
I can't find anything in the docs.
Specifically I want to be able to use them in the situation where I *don't*
have a html:form in my page -
With regard to a standard XML format for localized data, have you taken a
look at TMX? http://lisa.org/tmx/
We wrote a very simple MessageResources subclass that reads TMX files via a
SAX parser. The advantage is that there are lots of translation tools out
there to translate TMX file.
If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String automatically?
=**
If you are not the intended recipient, employee or agent responsible for delivering
the message to the
yes
-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 14:55
To: '[EMAIL PROTECTED]'
Subject: get/set on properties in a form bean
If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String
Hi everyone,
i have written a simple jsp page, which will use the descriptor-file
struts-html.tld from struts.
But i wanted to run this page at Tomcat and i got the following error:
org.apache.jasper.compiler.CompileException:
C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open
I have a multi-page form to manipulate a 2-level tree structure, so one of the
variables of my ActionForm specifies which branch of the tree is shown, and I have no
problem switching between branches to view the data. I'm using another variable to
define a cancel/commit status of the form,
Are you sure, the file struts-html.tld is located in
C:\Tomcat\webapps\ROOT\WEB-INF\ ?
Tomcat can not find this file - thats the simple reason.
-Ursprüngliche Nachricht-
Von: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 14. August 2001 15:54
An:
Is anyone using an HTML editor to initially create a jsp and then putting in
the Struts forms into the page? I would like to know if there are any
problems when the JSP with the struts forms is put back into the HTML editor
to make layout changes. ( I am using Dreamweaver as the HTML editor)
Hi,
I have a frame based implementation.
frame 2
frame 1
frame 3
All actions are invoked from frame 1.In frame 2 and 3 ,I have
html:errors.
Now in case of error, Iam populating ActionErrors and also calling
saveErrors.But Iam displaying the
Seems like Tomcat cannot find the .tld file where it expects. I suggest that
you don't put your files under ROOT context, but under webapps as a new
directory.
i.e. If your application's name is ebi then create a directory
c:\tomcat\webapps\ebi and put everything under that.
For your current
yes of course,
the file struts-html.tld is locatet in C:\Tomcat\webapps\ROOT\WEB-INF\
-Ursprüngliche Nachricht-
Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 14. August 2001 16:19
An: [EMAIL PROTECTED]
Betreff: AW: can't test my jsp page
Are you sure,
ENOUGH ALREADY!!!
On Friday 14 July 2000 12:59 am, you wrote:
Hi everybody
is there any book where i can find strut related material???
praveen
I'm not sure, but I would guess Business Model Objects.
On Tuesday 14 August 2001 02:21 am, you wrote:
Hi i didn't get a response or a suggestion regarding BMO (Session Beans
) Thus i would like to know what this acronym stands for . I have come
across a UML class diagram that connects a BMO
Ok, maybe you have set up Tomcat not properly.
In the Tomcat directory there's the file conf/server.xml where you have to
declare the path for your application. There you have a section like:
ContextManager
.
.
.
Context path=/myproject
The server is doing that, not the messenger. I had that happen to one of
my previous messages also...
Troy Hart
Richard,
I can think of 2 things that may cause the data structure to not persist.
1. The framework might be calling an implemented reset() method on your
formbean. To get multi-page formbeans to work, I had to avoid
implementation of this method (since it is called between requests). 2.
You
Title: RE: get/set on properties in a form bean
Hi Mike,
Yes it support basic type conversion, however it does not support more complex type conversion like dates String -- java.util.Date. In the case of dates, their format depend on local settings (and other more specific conventions,
Thanks, sorry for being snippy.
On Tuesday 14 August 2001 09:01 am, you wrote:
The server is doing that, not the messenger. I had that happen to one of
my previous messages also...
Troy Hart
[EMAIL PROTECTED]To:
[EMAIL PROTECTED]
Hello,
I'm new user of struts framework and I have a problem.
I would like to make an internationalized application with _everything_
internationalized. This means that I have a nice graphics (menu too) on
my pages in several language versions. I would like to obtain a LOCALE
key (object) from
Sorry to have to ask this again, but I got
no response to my original question. This
time I only asking about the most important
subset of the problem, so hopefully it will
get a response.
I have a table I fill using the iterate tag.
In the table I have a link that is generated
from the iterate
Title: RE: get/set on properties in a form bean
Denis,
Thanks
for your more enlightening reply! I use the same pattern as you. My FormBeans
use Strings to represent dates and I convert to/from java.util.Date within my
Action classes. I use static utility methods for parsing and formatting,
Maybe i will find the time to write a corrected filter method. What i don't
know is: Who is responsible for the ResponseUtils class? Is it Craig R.
McClanahan? Should i post the method code to this mailing list or send it
directly to him?
Craig wrote the original class. I don't know wether he's
Hi, I am trying to get that iterate tag to work.
I am interating through a vector a displaying the results. I have one field
that I want the user to update hence I have made it a text box. When the
page displays, the data is correct but when the user enters something into
the text box and hits
"Juraj Kazda" [EMAIL PROTECTED] wrote:
Hello,
I'm new user of struts framework and I have a problem.
I would like to make an internationalized application with _everything_
internationalized. This means that I have a nice graphics (menu too) on
my pages in several language versions. I
Our company is considering adopting the Strut framework into our web
development. One thing that has grabbed my attention is that the
pre-popping of FormBeans from MT objects occurs in an Action before
forwarding the page to the next View. This seems to dictate that the each
action directly
Alex Colic [EMAIL PROTECTED] wrote:
I am interating through a vector a displaying the results. I have one field
that I want the user to update hence I have made it a text box. When the
page displays, the data is correct but when the user enters something into
the text box and hits submit,
You will need to use Indexed To Tags developed by Dave which is not part of
Struts 1.0. I have tested it--It works !!!
http://husted.com/about/struts/indexed-tags.htm
From: Alex Colic [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Subject: ActionForm not being
William,
The action does not directly know the next view or previous view. The
action object returns a generic ActionForward object with a success,
failure, etc. or a more specific contacts, roles, etc if you have
sub-screens with that information. The controller uses struts-config.xml
to
Why don't you put it inside a Custom Tag? That way you don't put it in the
presentation layer.
I think with the code sample that Craig shows us is possible.
%
DataSource ds = (DataSource)
application.getAttribute(org.apache.struts.action.DATA_SOURCE);
...
%
Am I right?
Regards
Hi,
I'm new to the struts world so forgive me if I sound ignorant.
I 've been using the struts 1.0b3 release and I will like to use
a tag that is not defined in that release. The tags i want to use is
logic:empty and logic:notEmpty.
I want to know when is the next release going to be
On Tue, 14 Aug 2001, Beuck, Torsten wrote:
Hi Bernhard, Michael,
without having tested this, but have you ever tried to
convert 'Ändern'
instead of 'Auml;ndern'?
Without testing it myself but looking at the sourcecode
'Ändern' should
remain unchanged.
I've tested it
Hi,
were using the indexed properties tags and it'd be useful to know the
current index in the jsp (to do some javascript stuff). Is there any
standard way to access the current index in the iterator?
1) write a custom tag to return:
IterateTag iterateTag = (IterateTag)
On Tue, 14 Aug 2001, Efrain Gutierrez wrote:
How to Build Deploy a New Application
in Tomcat and Weblogic.???
For Tomcat, there is an Application Developer's Guide included in the
documentation (just fire up Tomcat and follow the documentation
links) that discusses the basic concepts of
is automatically called when? When the form is first created by the
Controller?
=**
If you are not the intended recipient, employee or agent responsible for delivering
the message to the intended recipient, you are hereby notified that
On Tue, 14 Aug 2001, Halvorson, Loren wrote:
With regard to a standard XML format for localized data, have you taken a
look at TMX? http://lisa.org/tmx/
We wrote a very simple MessageResources subclass that reads TMX files via a
SAX parser. The advantage is that there are lots of
Mike Dewhirst [EMAIL PROTECTED]
is automatically called when? When the form is first created by the
Controller?
No, it is called always before the controller populates it from the
request.
--
gR
There is an easy way to internationalize your graphics without having to
mess around with the Locale yourself.
Consider that you might normally create an image link like this:
html:img src=image.gif .../
but you want the HREF to the link to be different for different
Locales. First, change
so if I have old data in there, it will be overwritten, plus validate() will
be invoked afterwards if I have validate=true in the config?
-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 17:02
To: [EMAIL PROTECTED]
Subject: Re: ActionForm.reset()
Hi Nicola,
Believe there is a way to extract it already (but never used it)...but If you
only need the index for javascript, can't you obtain it from the name of your
indexed field ie pass the field in as a param to your function?
I do this with a button defined with
When you write your iterator tag add the attribute: indexId=somevalue
Then you can use the bean tags to access indexId which returns the current
index of the iterator! :-)
-Chris
Christopher Assenza
Phone: 412.201.6026
Fax: 412.201.6060
Email: [EMAIL PROTECTED]
ACCESSDATA
Moving Your
All,
I am curious if anyone has written an action class that will download a file to
the browser. Not have the browser open a file, but have the download box popup
everytime after a action. I know how to set the header information and mime type, but
what do you return for the
Jeff,
I have done it. Just return null, and it works fine.
btw, I have a wierd problem when I use it with frames - I lose the output
*after* I do the download ie other actions are still excecuted, but I don't see
any output! Can you let me know if you run into anything similar?
Thanks,
On 14 Aug 2001 [EMAIL PROTECTED] wrote:
All,
I am curious if anyone has written an action class that will
download a file to the browser. Not have the browser open a file, but
have the download box popup everytime after a action. I know how to
set the header information and mime
Hi Kent, Luis,
I do agree that a datasource should be in the logic
layer, not in the JSP/prsentation layer, but I have a
problem to populate the JSP combo box with data that
is retrieved from the database when they first logn
the page. And I think getting a datasource here is
good enouhg :) . Do
In my Action class I catch errors if they occur. What I want to know is can
I create an ActionErrors object within my Action class and add an error to
it like I do in a Form class. Basically what I want to do is shown in the
code below. My .jsp page that failure points to has the html:errors/
You certainly can. You just need to save the errors before you return, using
saveErrors(request, errors);
Cheers,
Dave
Shawn Sohl [EMAIL PROTECTED] on 08/14/2001 01:51:53 PM
Please respond to [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED],
'[EMAIL
you need to save errors
before return and after errors.add
saveErrors(errors);
this should work.
- Original Message -
From: Shawn Sohl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 10:51 AM
Subject: findForward and Errors
In my Action
oops! sorry.
this is correct
saveErrors(request,errors);
- Original Message -
From: Rama Krishna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 11:05 AM
Subject: Re: findForward and Errors
you need to save errors
before return and after errors.add
Hi all,
I sent this email
before. I did not get any feedback yet. I still need helpfor
this.thank you.
Here is my problem:
I have the the following line for automatic refresh
:
META http-equiv="Refresh"
content="2;/jsp/GetMaps.jsp" /
The above line is conditionally added to the html
I have to modify an application that have a Custom
ActionServlet, but can i declare another in the
struts-conf and how did i use...!!! ?
Thanks in advance...
=
Ing. Jose Efrain Gutierrez C
Web Developer/Softtek Monterrey Mexico
ICQ:2293612
yahoo hotmail:jefrainmx
Hello,
I'm trying to get the localized text based on
the locale that I set on my pageContext.
The MessageResources object seems to be ignoring
the locale when I try to retrieve the string,
it uses the default locale instead of the new locale.
I first create a locale object to set
the
Hi
Since Tiles will be incorporated in 1.1, does this
mean that it will be used instead of or in tandem with Templates.Also I
noticed that the Template code that David Geary has in his recent JSP book is
more recent than is currently in Struts. Does anybody know of any plans to
update
Not sure I understand you - could you post some more info?
Not quite sure why you can't pass info in the link? Do you want a hidden field
instead?
Cheers,
Dave
Larry Maturo [EMAIL PROTECTED] on 08/14/2001
11:11:45 AM
Please respond to [EMAIL PROTECTED]; Please
respond to [EMAIL
Did I see a message saying Struts 1.1 will support Tiles?
Larry,
Hi. You are correct that you cannot access the session using Javascript.
Are you using the same form for all three pages? If so, you could use a hidden
field, and set it in p1, and then in the action from p3. Presumably what you
display in p2 depends on the value you pass -
Hi again,
You can set the value of the hidden field from your action, if it is part of
your form bean.
Also, do you have an action prior to displaying p2 which fills the form etc?
Inserting a simple one may make it easier to do what you're trying to do...
Cheers,
Dave
Larry Maturo
Dear Ladies Gentlemen,
Welcome to the GREATEST SEX SHOW on the ENTIRE NET !
We now offer you to ENTER the world´s No.1 voted SEX-SERVER on the WEB !
By far the largest and most incredible content of LIVE SEX is now served to users
WORLDWIDE!
EVERYTHING is offered 100% ANONOMOUSLY you
Hi Dave,
You wrote:
You can set the value of the hidden field from your action, if it is part of
your form bean.
Actually, I need to set it in p3, which has an entirely different form than
p2, so setting it in p3's form bean would not help.
You wrote:
Also, do you have an action prior to
But you can get a copy of the form for p2, in your p3 action, set the value in
p2's form and save it in either request or session scope before you forward to
it. That way struts will find it and use it, instead of creating a new one, and
you have access to your value in p2's action.
cheers,
I know that the template taglib in Struts 1.0 was contributed by
David Geary and is based on his JavaWorld article. In his recently
published Advanced JSP book, he presents an enhanced version of the
library. He added some interesting features, like the ability to
nest and extend regions, and
Hi Dave,
Interesting. I hadn't thought about that at all.
You are correct. I already do that for p3, since
I need to populate it with the correct data so
the user does not have to re-enter data they have
already entered. I just never considered that
I can do that for any page from any page.
To anyone interested,
Itlooks like I got rid of the errors when
initializing Tomcat. I had to copy struts.jar, and all the commons-*.jar to
Tomcat's lib directory.
Is this how it is supposed to be ? I like the idea
of separating Struts' stuff from the container (in my case Tomcat).
If
Hi,
I run across a little problem I dont know how to
solve, please help.
I have three buttons: OK, RESET, and EDIT and one
text-field. Under normal case, after entering the text
in the text-field, user will click on one of the three
buttons,And I handle the button-events as followed in
my
Well never mind i'll stick to Business Method Objects for now.BMO
Cheers Chukie
Troy Hart wrote:
I'm not sure, but I would guess Business Model Objects.
On Tuesday 14 August 2001 02:21 am, you wrote:
Hi i didn't get a response or a suggestion regarding BMO (Session Beans
) Thus i would
Hi there.
I have an Action that's tossing a very nice HashMap object at a Struts page.
Is there a way (using Struts) that I can refer to the individual values in
the Hash by using their keys? I see how I would iterate (although I'm not
crazy about this functionality), but that's not what I'm
you should also take a look a at the Mapper framework contributed by
Francois Rey and available at http://husted.com/about/struts/mapper.zip
it includes an i18n package that contains a TMXResourceBundle.
while a TMX file is rather abstract at first sight, as Loren mentioned it
has the advantage
Craig,
Thanks for your reply. I have tested the code in the logonAction
class it does work. However, it only works when you use a key in the
properties file. If I have this code in a catch statement, how can I use
the actual error message with the getMessage() method of the exception
On Tue, 14 Aug 2001, Shawn Sohl wrote:
In my Action class I catch errors if they occur. What I want to know is can
I create an ActionErrors object within my Action class and add an error to
it like I do in a Form class. Basically what I want to do is shown in the
code below. My .jsp
91 matches
Mail list logo