Is it possible to define the screen definition in the
struts-config.xml? I think this will be more flexible.
__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
Yes, that's a good idea, applicable for static screens.
We should still allow for programmatic definitions, though. Servlets or
servlet filters are good candidates for creating dynamic screen
definitions.
david
Wong Kok Wai wrote:
Is it possible to define the screen definition in the
Hi there,
the problem described, looks exactly like the one Gordon Maclean addressed the
first time. I also ran into it and sent out the mail I attached below, which
proposes a bugfix with the request to incorporate it as soon as possible.
Gordon's previous mail describes the problem very very
Hi there,
I just started digging into multipart requests and I have encountered
the following problem: how can I register my own implementation of a
multipart request handler with a particular action. I tried adding a
'multipartClass' attribute to the action mapping but Struts complained
that
If the validate() method does the type checking then we must implement
type
conversion code and type checking code in every single form bean we
write!
On large systems, this is sometimes very unfun.
Any thoughts?
You could use a Visitor pattern for an application Validator. Each form
would
Instead, I am experimenting with overriding the struts
processActionForm() to notice when the form is created and call a
form.create() method on my ActionForm subclass, passing the
request/session in at that time. This seems to be working nicely - i
still have to have all requests for the
Hi guys,
Just wondering about the situation that arises when an Action class is
changed in a running struts environment.
I was under the impression that a single instance of an action class is
created and run inside multiple threads, yet if I recompile the class and
re-run the action then
A bug
report has already been filed for this bug. It's bug 697.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=697
-Original Message-From: Brian
Bowman [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February
28, 2001 8:39 AMTo: [EMAIL PROTECTED]Subject:
Problem since beta1
I
Shamdasani Nimmi-ANS004 writes:
In some of the e-mails I have seen nested syntax being used for property attribute,
e.g.,
html:text property="mailingAddress.street"/
what does that mean? Is it that the getMailingAddress() method of
the bean will be called,
Yes.
and then what
A kind of "screen configuration" (called instances) is proposed in
Components project, which can be seen as an extension of Templates.
Screens are defined in a configuration file. You can also have different
configuration files for different Locale : appropriate screens will be loaded
Hi, Jens,
When I had asked a question about calling jsp directly, I was concerned,
that a user can see a directory or see a link (as I do) and call this
jsp directly from a browser query / input line. The user likes to
experiment.
That is all. He does not know what is a view jsp or logic jsp.
I have tried to use a jsp expression as the value for the page attribute
(page=%= jsp %) but the and translate as less than greater than
symbols. I have also tried using the escape character \ before and after
the and , but I get the same result in my source HTML:
a
Please, could I get the answer from gurus. I need some build that has image
tag fixed - Sundar
- Original Message -
From: "Sundar @eSaravana" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 5:49 PM
Subject: Has the image tag property attribute problem been fixed?
Maybe you need to add pre>.../pre> HTML tag before your a>
tag.
"Anderson, Jessica" wrote:
I have tried to use a jsp expression as the value
for the page attribute
(page=%= jsp %>) but the and > translate as less than greater
than
symbols. I have also tried using the escape character \ before
I don't have the latest html dtd but a peek into _form.dtd confirms that you
CAN use expression for the href attribute.
tag
namelink/name
tagclassorg.apache.struts.taglib.form.LinkTag/tagclass
attribute
namehref/name
requiredfalse/required
If the objects I am storing in my hashtable are of a bean type how would I access the
properties of the bean in iterate? e.g., if the bean has get methods for properties
Code, name, countryName, etc. I want to display these thru iterate tag on my JSP.
-Nimmi
-Original Message-
From:
Thanks Kevin,
I ended up specfying the url in a variable and accessing it as a variable in
the tag. works fine. thanks for the help.
Jessica
-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: RE:
Jessica,
I think what you want is this:
html:link href='%= "http://localhost:8080/internal/" + jsp + ".do" %'
Note that the string concatenation has to happen inside the JSP expression,
and that single quotes are used for the attribute because double quotes are
needed for the string literal.
I thnk that the problem with Cocoon 1 is that there is not a really good way
to integrate it with other frameworks. It kind ot stands on its own. And it
can intefere with other applications. There is a hack servlet wrapper that
was posted by the Cocoon developers to do it but there are security
I am confused how to architect in struts a form that has
multiple checkboxes where several can be checked and i need
to iterate through the results.
problem :
user has designed form [a table] with several columns that
identify an item(s) from a datasource and a checkbox column.
when the
Daniel,
I have only small suggestion for you, because I do not know yet how
struts can help with multiple checkboxes. You can use taglibs/input
library (project Taglibs). It includes Checkbox tag and an example for
multiple checkboxes.
Hope this help.
Maya
Daniel Kern-Ekins wrote:
I am
Hello,
The ifParameterExists tag seems not be working, has anyone else came
across the same problem?
shah
The company I work for wants to create a web version of an existing
application. We have created a static web site which we are using as the
prototype for the real thing. We now need to make the site active. Can
anyone offer any tips on good ways to convert a static web site into a
Struts
There is a new virus going around.
The worm is called "W32.mybabypic.worm", and is recognized by the following:
Subject = "My baby pic!!!"
Body = "Its my animated baby picture !!"
Attachment = mybabypic.exe
Get a copy of "Extreme Programming Explained" by Kent Beck. It's not
struts-specific at all but will show you how to proceed.
James Howe wrote:
The company I work for wants to create a web version of an existing
application. We have created a static web site which we are using as the
I see that someone suggested using just a button and that worked. I have
done
things simular in the past and found this to work.
The function you call on the onClick "preformAction" in this case needs to
return false. This is because you are submitting the form in the method.
However if this
Shouldn't there be a "border" attribute for the html:image tag? Or is it
there and I overlooked it?
Hi,
Could someone help me with replacing the JSP code below with iterate tag
logic:iterate ? I have tried various permutations of logic:iterate but have been
unsuccessful.
---
jsp:useBean id="user" scope="session"
On Wed, Feb 28, 2001 at 01:18:54PM -0700, David Geary wrote:
I see template screens as a first step towards Cedric's Components. Template
screens provide the foundation necessary for Components: Programmatically
defining screens.
Slightly off-topic but relates to the template tags. I've
On Wed, Feb 28, 2001 at 01:59:59PM -0600, [EMAIL PROTECTED] wrote:
Shouldn't there be a "border" attribute for the html:image tag? Or is it
there and I overlooked it?
As I see struts is tied to the strict HTML 4.01 DTD which does not have
this attribute. You are supposed to use CSS for
Hello you beautiful people,
I am a newbie to struts and our company has to decide whether to go
with struts or not. I have a very important question that will decide the
fate of our project...
Basically we want to control the flow (of the user) when he goes to various
pages.
For
If I recall correctly, that error happens when the database isn't being
found. Is the Oracle listener running and properly configured? If it is and
you can connect from other applications then maybe your jdbc url is wrong.
Your url should look like this:
jdbc:oracle:thin:@SERVERNAME:1521:SID
Could someone help me with replacing the JSP code below with
iterate tag logic:iterate ? I have tried various permutations
of logic:iterate but have been unsuccessful.
--
-
jsp:useBean id="user" scope="session"
You can definitly do this in Struts as it stands (correct me if I'm wrong).
What will help this along is the Workflow Processing TODO in the TODO 1.1
document on the struts homepage. When that is completed you will be able to map
out this flow in some graphical type means.
Craig T.
"Nanduri,
Thanks. I was missing the @
Hopefully that's the worst question I ask
-Tom
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:42 PM
To: [EMAIL PROTECTED]
Subject: RE: data-sources for oracle
If I recall correctly, that error
Here's what I do in some code, if it's any help - am sure you can manipulate it:
logic:iterate id="parameter" name="ParametersForm"
property="parameterList"
TR
TD WIDTH="50%"FONT SIZE="2" FACE="Helvetica,Verdana,Arial"
COLOR="BLACK"
bean:write name="parameter"
Wes,
I did try your code(and this is what I was trying before myself too) but the table
still comes out to be blank whereas if I use the code below the supplier rows are
displayed. So what's the problem?
Anyone else with suggestions?
-Nimmi
-Original Message-
From: Wes Hodges
Is there a problem that getSuppliers() method returns a Hashtable and not an ArrayList?
-Nimmi
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:59 PM
To: '[EMAIL PROTECTED]'
Subject: RE: PLEASE HELP: How would I use the
Are you using an older JDK? This tag requires JDK 1.2 or later.
Just a thought,
Dave
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 5:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: PLEASE HELP: How would I use the iterate tag
No, I am using JDK 1.3
-Nimmi
-Original Message-
From: D'Orto, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:11 PM
To: '[EMAIL PROTECTED]'
Subject: RE: PLEASE HELP: How would I use the iterate tag here?
Are you using an older JDK? This tag requires JDK 1.2 or
Yes, there is. See Craig McClanahan's explanation in the archives:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg03625.html
Hope this helps.
--
Martin Cooper
Tumbleweed Communications
- Original Message -
From: "Shamdasani Nimmi-ANS004" [EMAIL PROTECTED]
To: [EMAIL
Are the taglibs defined properly (in the jsp and in web.xml)? Do any struts
tags work?
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 5:13 PM
To: '[EMAIL PROTECTED]'
Subject: RE: PLEASE HELP: How would I use the iterate tag
Before your loop, try to setCollection() / getCollection() and check
getLength(). This way you will know exactly, if you are getting your data.
Shamdasani Nimmi-ANS004 wrote:
No, I am using JDK 1.3
-Nimmi
-Original Message-
From: D'Orto, David [mailto:[EMAIL PROTECTED]]
Sent:
Martin,
According to Craig's email:
--
When you iterate over a Hashtable (or any other Map), the elements of
the iteration are of class "Map.Entry", which has two properties --
"key" and "value".
logic:iterate id="impl"
What Craig is saying here seems inconsistant with the docs for iterate:
... a Map (whose values are to be iterated over), ...
However you could add this line right inside of the loop
bean:define id="supplier" name="supplierMapEntry" property="value"
type="com.full.package.SupplierBean"/
On Tue, Feb 27, 2001 at 06:15:05PM -0600, Shamdasani Nimmi-ANS004 wrote:
Hi,
In some of the e-mails I have seen nested syntax being used for property attribute,
e.g.,
html:text property="mailingAddress.street"/
what does that mean? Is it that the getMailingAddress() method of the bean
Wes,
I did try the code below but it still doesn't work. Anyone has any other suggestion?
Imagine all this trouble when all I want to do is to make my "WORKING" JSP code look
cleaner by using iterate tag:
TABLE
logic:iterate id="supplierMapEntry" name="user" property="suppliers"
Hallo Maya,
Maya Muchnik wrote:
Hi, Jens,
When I had asked a question about calling jsp directly, I was concerned,
that a user can see a directory or see a link (as I do) and call this
jsp directly from a browser query / input line. The user likes to
experiment.
That is all. He does not
You should be able to use nested properties:
bean:write name="item" property="value.code"/
bean:write name="item" property="value.country"/
bean:write name="item" property="value.countryName"/
--
Martin Cooper
Tumbleweed Communications
- Original Message -
From: "Shamdasani
I have tried both of the ways below without any luck:
logic:iterate id="supplier" name="user" property="suppliers"
TR
TDFONT face = "Arial"bean:write name="supplier"
property="value.code"//FONT/TD
TDFONT face = "Arial"bean:write name="supplier"
You defitnely can do that, altough its still a bit messy, and after checking
other sources, mailings I noticed there are basicly 2 kinds of ways to
tackle this:
1:
one actionservlet, one formbean and let the actionservlet decide wich form
to show, the bean has to be in the session for incremental
Because it's simple?
Martin
Jens Rehphler wrote:
Hi all,
I'm watching this list quite a while and wondered why so
many people try to call there JSP pages directly from the
browser. In my understanding of the MVC pattern all requests
to your web application must be handled from the
With option 1 below (the wizard option), you can ease the form-checking by
adding a hidden tag called "page" in each JSP, and adding a page property to
your form bean. Then your validate() method can decide what to validate
based on which page was submitted. You can also use the token support in
I've now got the beta-1 build and it works fine with the PostgreSQL driver,
which I'm very happy about.
Mosy things seem to be working fine, I've got my own ActionServlet extending
the base one, overloaded the initDataSources() method so I can create my
own database singleton objects for
I'm wondering about the logic behind the form tags. Here I have a simple
form that is created by iterating over a collection. The iterator exposes
the variable "item" which is a String for this simple case. The name
attribute of bean:write treats "item" as a variable, while the value
attribute
Hi David,
It maybe useful to study the portlet concept in
JetSpeed. I see your proposal and portlet essentially
different way to implement dynamic screen layout.
--- David Geary [EMAIL PROTECTED] wrote:
I see template screens as a first step towards
Cedric's Components. Template
screens
Maya Muchnik wrote:
Wayne,
Thank you for your suggestion. I put copies of jaxp.jar and parser.jar from
jaxp1.0.1 package (Sun Microsystems) to /usr/java/jre/lib/ext and the file
was compiled.
Does anyone know why and what case we need to have crimson.jar, xlan.jar?
The JAXP/1.0 (and
"Kan Leung, MK" wrote:
Sorry if you find if this is a bit off topic. ;)
Hi all,
Hope this is not a FAQ. (I spent 2 hours to do net search but didn't
get a good answer)
It is actually a pretty subtle point, and on-topic in my book :-)
8
jsp:useBean name="abc" scope="session" /
James Howe wrote:
At 05:35 PM 2/26/2001 -0800, you wrote:
James Howe wrote:
Is there some reason why the base tag defined in the HTML tag library
doesn't let you specify the optional target attribute? I'm working with a
frames based web application and I need to use both the href
Shamdasani Nimmi-ANS004 wrote:
Hi,
Could someone please tell me what I am doing wrong below:
user is a bean in session scope in my JSP and its getSuppliers() method returns a
hashtable where keys are Suppliers Ids and elements are Supplier beans.
logic:iterate collection="%=
Maya Muchnik wrote:
Hi,
In "A Walking Tour of the Struts App", the author has mentioned that "There is only
one object for each action (URI), so your action objects must be
multi-thread safe". Is the example itself is multi-thread safe?
I am asking this, because are several actions here,
Mark Balster wrote:
FileInputStream inFile = new
FileInputStream(getServletContext().getRealPath(messages.getMessage("Log.Pro
pertiesFile")) );
You should also be aware that this will only work if your servlet container
unpacks your web application into an open directory
We're using in a pilot project the JSP pattern from TJ4.2. We're now
thinking of doing more customization along those lines:
- Improvement of the existing JSP pattern:
- add the bean name to the dependency link between the JSP and the used
beans.
- automatically create the corresponding
What's your problem actually ? I tried to use Log4 in my project using
struts as well and I didn't get any, I just out my 'log4j.properties'in
the classpath and put some 'Category' variables in my codelike this
public class ListBillerAction extends ActionBase
{ private static Category cat
Hi,
Anyone know how to setan action class to
process the POST request only. So that when user try toaccess www.abc.com/action.do?action=doGET.
It can redirect user toerror page.Or put in this way, how do action
classreact differently for each doGet and doPost request?
regards,
Kiat Kin
Nick Pellow wrote:
I was considering an approach where coders wrote validation code in Java
(we all know java!)
yet the Struts framework executed it. You would extend or implement a
common java class/interface defining a single method,
public ValidationErrors validate(); say.
That is
66 matches
Mail list logo