thanks ted,
we had done exactly what you've said. It works quite fine, and appears to be
the most effortless choice we have.
But still, in the deepness of my heart, I am not agree with the philosophy
of business tier, I think it is a pure localization problem. But I must
admit that adopting this
Can someone please give me an example of how to use bean:message tag for
getting messages from multiple resource bundles. I know we could set the
bundle attribute to point to a particular bundle but its not working. Please
help.
-Rishi
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Hi,
I was trying to create a simple application by using struts, however it ends
up with this error, any one knows what the problem is ?
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from
Hello,
Hello,
The content type for text is setContentType(text/plain);
It works fine in IE,but it is not working in Netscape.
Will any one please look inot this
Regards
Arun
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Rishi
Hope this will help u
%
//
// Put a Locale object in the user's
// session describing the Locale that
// is specified by the browser's language preference (obtained via http
header).
//
String lang = request.getHeader(Accept-Language);
boolean headerSuccess = false;
if
IMHO, localisation is part of the business tier too. With static
messages that apply to all users, Struts provides a common resource and
a common way to access that resource. But the message resource files are
really part of the business tier; Struts is just provide a means to
access them. (This
At this point, just the JavaDoc I'm afraid. Sorry about that.
Scaffold is general extension to Struts. It's like a framework for
writing things with the framework.
There is a very simple approach to DBMS connectivity in Scaffold called
ModelBeans. It works, but in practice it is a little bit
This type of message can also be posted to the USER list, since it does
not involve the present or future development of Struts.
But anyway, the Blueprints are just that -- plans. Struts implements
many of the patterns and strategies described in the BluePrints and in
Core J2EE Patterns
Hiya
I would also consider writing some custom tags to format numbers and dates.
Subclass the Struts' own bean WriteTag bean:write. It is pretty easy
to check for a java.lang.Number or java.lang.String, which you can attempt
to parse into a double.
The only problem is a creating large
Hi,
one thing I'm doing today is:
a) Add formatting strings to the resource bundles
b) Adding util classes which can apply the formatting, either in form object
getter/setter or wherever.
Step b could be done in one of your own tag libs, but I can't be bothered to do that.
This means I can
WHen there is error in the validate() function, my jsp page only displays
ul
/ulhr
Why? How to let the page display the message specified in the validate()
function?
---
Henry Lu
MCIT
That sounds neat, Jonathan. I hope you will share your code when you are
ready -:o)
Right now, a lot of us are in FUD lock because of JSTL and JSF.
Something to consider in proposing new tags is how they would fit in
with the JSTL. The concern is that we don't want to lead people in a
It's suppose to use the one's in the Struts JARs. Under some
circumstances, from what people say, that doesn't seem to happen.
There is a switch in the ActionServlet (validating) that can turn the
DTD validation off if it gets to be a problem.
Hi,
I have had the same error :
Digester.getParser:
javax.xml.parsers.ParserConfigurationException:
Namespace not supported
by SAXParser
(...)
The digester (org.apache.commons.digester) namespace setup seems not
supported by all versions of xml parsers.
I had the same problem with both
Sudhir S. Shetty wrote:
Hi All,
I have an Intranet application hosted on Weblogic Server , the
application is built on STRUTS, I need to know, whenever I start up
weblogic, the server downloads the DTD's for the application i.e. the struts
specific DTD's and the ones specific to
This is a pretty lengthy post so if you're not that interested be warned not
to continue.
I'm trying to develop a struts application that has the ability to have new
beans plugged
into it after it's been deployed.
The idea is someone will come along later and write a new set of component
class
It seems that letting DynaActionForm generate the form bean via info in
struts-config may be the way to go if no extra code is needed in the form
bean. I do have two questions, however.
Does ValidatorForm work with DynaActionForm?
Is DynaActionForm as efficient (system performance) as manually
Currently using Oracle 8.1.7 and Poolman 2.0.4. Like you, we also stay away
from betas.
- Original Message -
From: Mark Woon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 4:12 PM
Subject: Re: Poolman benefits? (was Re: Connection
An approach I've used successfully, which is looks like where you are
going, is to
(1) create a set of standard Actions that can act up a known type of
object, or an object that implements a particular interface, and
(2) pass the type of the bean to create to the standard Action as the
I am new to this list so I have some catching up to do, so forgive me if
this is an old question. Mr. Husted refers to the workflow
proposal/objects in his response. What is the status of the Workflow
proposal and/or how do I track what is happening there? I have read the
proposal, but haven't
The work moved over to the Commons,
http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/workflow/
There is actually some code there, and I put together a quick Rosetta
Stone demo here
http://husted.com/struts/resources/struts-simple.zip
(this really should be named struts-workflow.zip)
Hi Bob,
If you download the latest nightly build you will find an initial
implementation of the Workflow proposal.
Jon.
-Original Message-
From: Bob Williams [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2002 15:33
To: Struts Users Mailing List
Subject: Re: Design advice.
I am new to
I would have thought this was a simple thing, but I must be missing something. Is
there an attribute to the html:radio tag that sets it as selected? I want to have a
group of radio buttons w/ 1 button being the default. I didn't see anything in the
tag lib documentation and I tried coding
I have a dynamic form that is built from an ArrayList of objects (see below
(b) ). Building the form works great. I get multiple rows of widget names
and values. However, I can't seem to collect the data in my Action. The
HTML that is rendered just repeats the same named input fields (see
Add the 'checked' parm to your default radio button, like so...
What is your gender?br
Female input type=radio name=gender value=female checked
Male input type=radio name=gender value=male
_
/\/\ark /\/ichols
Harris I, 2nd Floor
217.558.2919
Ooo. They've got the
This is really cool. I've been struggling with this for a while trying to
convince myself that everything that comes from SUN must be good and
beautiful and that those that were ragging on JSP were just fringe loonies.
I thought the whole struts tag library and tag libraries in general would
shut
The thing on tags is do not use to many tags. Try to avoid writing
tags.
Somehow, the example app on struts has a custom tag and people like to
learn how to write tags, and so there are lots of tags in Struts. This
is a bad habit. Only do it if you must.
Try to do as little code as
Hi all,
I am using Tomcat 4.01; Windows 2000 ; Struts v1.0
I created a tag which displays a message on the screen. I followed the
basic layout of the example that came with struts. by layout I mean:
1. I created a tag under the /classes directory. this time I put it right
under the /classes
When it comes to form input tags, I tend to look at the straight html tags
as a last resortI prefer to use the struts taglib implementation so that
in case the user failed validation tests when submitting the form, the value
they selected when first filling it out would stay selected. Thanks
See also the Velocity/Struts toolset.
http://husted.com/struts/resources/velstruts.zip
and
http://cvs.apache.org/viewcvs/jakarta-velocity-tools/
Same basic idea: expose the Struts API as an object that anybody can
easily use, without having to know that Struts even exists. All the
hooks are
The html tags set checked on their own, based on the value of the
property. The default radio button would be one that is not null.
John M. Corro wrote:
When it comes to form input tags, I tend to look at the straight html tags
as a last resortI prefer to use the struts taglib
For those interested, Ivan Siviero was kind enough to answer my question.
Apparently, you preselect a radio button based on the incoming value from
the form.
So for set of radio buttons...
html:radio property=propertyname value=1
html:radio property=propertyname value=2
you'd preselect the
Hi Vic,
Could you elaborate a lilttle more on why you do not suggest a good number
of custom tags in struts? I'll be buidling a software for a client that
requires a lot of custom tags and am right now evaluating struts.
any input would be helpful, thanks.
- ej -
- Original Message -
Matt,
nicely said. Pretty much what I feel, but could not describe. I guess it comes down
to:
ITS TOO EARLY.
i.e use it for prototypes and dept projects. Don't start designing customer web sites
with it until you have sorted out tools, maintenance, evolving xslt/xml specs and so
on.
Hi
I'm currently using scriptlet to set up a Hashmap of params to pass in a
html:link. Works great.
Is it possible to use bean:define tags to setup the Hashmap without
scriptlets.
Similarly (?) how do I invoke setter methods on a bean I've defined with
the bean:define tag?
Thank you
Rob
Does the artimus example work as far as adding articles. I can search but
not add. I think it has something to do with the Article ID. It says NOT
ASSIGNED before I try to save then error messages come back
*Unable to transfer data
*null
Do I have something wrong with my configuration?
Hmmm. I just tried it again to be sure and it worked.
Maybe it is just slow.
Try this one, maybe you can reach it better.
http://us.f1.yahoofs.com/users/aee2731f/bc/public/Struts+Security+Extension.
jar?bcB4.X8AlFd_32Ts
HTH,
Steve
-Original Message-
From: Rob Breeds
Matt,
Those are very good points. Here is how I deal with each one:
1. You can internationalize using resource bundles with Xalan, because it
allows Java extensions. Another thing on i18n, I've noted that when UI's
are described in XML, you are combining question text, labels, instructions
I'm in the process of reading the article ... so no comments on it yet, but I have
done a little XSL/XSLT and am in the process of converting my personal website to use
it.
1. I18N. Agreed. This is a problem. Having gotten used to I18N in my apps, I really
have no desire to give it up.
A couple of naive questions.
1. Given that the authors of the article mention that the
Cocoon framework uses XML and XSLT to generate HTML
(among other formats), I assume their motivation
for using Struts is to gain the MVC framework. Is this
correct? Does Velocity also have the
Vaughan Jackson wrote:
A couple of naive questions.
1. Given that the authors of the article mention that the
Cocoon framework uses XML and XSLT to generate HTML
(among other formats), I assume their motivation
for using Struts is to gain the MVC framework. Is this
correct?
I'm trying to get some information in order to make a choice between struts
templates and Tiles for our UI design and templating. Where would you choose
one over the other, and what does Tiles offer you that Templates doesn't?
thanks,
sriram
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
The ActionForms are just JavaBeans in the standard request or session
scope, and available to any servlet process in the Application.
Most of the other Struts elements are just application scope objects,
which are also avaialble to any servlet process in the application, or
request attributes
OK -
So, not long ago, having read about MVC and having been introduced to
Struts by discovering it on the Jakarta site, I embarked upon my journey to
learn it. Absolutely frustrated with the documentation (it appers to be
written for people who happen to know a thing or two), and ffrustrated
Steve
That second link gets me the jar. The original link still stops loading at
same point on my machine but now I've got access to a different machine and
that's fine. So it was me! Sorry!
Thanks
Rob
Ok. I've read the article now.
1. They point out, correctly in my humble opinion, that the internationalisation is
best done during the creation of the XML document. This makes sense to me.
2. They do provide a couple of examples of XML/XSL/XSLT.
3. They do not really seem to much in the way
The issue is one of distinct element names when you use an iterator to
create your form. I found the solution by way of the indexed=true
property of html:text It produces a parameter name of element[0].name -
where element is the name given to the iterator object and the bracket
represents the
I have been lurking for a couple of months now and have seen many useful
extensions to the Struts framework. I am curious to understand what thought
has gone into better understand how Struts can be extended in common ways
such that:
(1) Extensions are an add-on/plug-in rather than a rewrite of
- Original Message -
From: Rob Breeds [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 1:12 PM
Subject: RE: Implementing HTTPS in Struts
Steve
That second link gets me the jar. The original link still stops loading at
same point on
Hmmm,
I read everyone's posts, and they are somewhat inspiring. I'd like to see
examples of using Xalan to get my struts message bundle, or other messag
bundles. I'm sure I could spend an hour and figure this out, but if anyone has
ready examples, links, send them my way!
XForms - I'm
http://www.computer-programmer.org/articles/struts/ppframe.htm
I can't quite figure this one out. I even restarted Apache. Anyone else
ever see this type of problem?
Craig.
Craig W. Tataryn
Programmer/Analyst
Compuware
_
Send
Is there a struts-specific tag allowing me to loop through an array (list)
of strings and have them be printed sequentially? I am currently populating
a template JSP from the database - the way I retrieve the page content is by
tagging a contentID to the end of the request, like this:
--- Michael Mehrle [EMAIL PROTECTED] wrote:
However, after giving
it a second thought I was pretty sure that this is a
common task and that
there must be something out there that allows me to
loop through an
array/list/enumeration or something.
Do you mean like the logic:iterate tag?
Couball, James wrote:
I have been lurking for a couple of months now and have seen many useful
extensions to the Struts framework. I am curious to understand what thought
has gone into better understand how Struts can be extended in common ways
such that:
(1) Extensions are an
I've got a problem with forms and frames I hadn't noticed until now. Two
frames - input form in one, which when submitted, the results appear in the
second. Works functionally (results appear in target frame) but the mouse
cursor remains with hourglass image when it is over the source frame.
I
Cody,
I'd suggest not using a custom tag to contain your list and instead just
use a regular bean class.
You can then use the jsp:usebean tag to instantiate the bean and then I
think the iterate tags will be able to call the getUserList method from the
class
Regards,
Richard
At 12:17 PM
Elijah,
Try giving your tag handler class a proper package name and put that in the
app.tld file.
-Max
- Original Message -
From: Elijah Jacobs [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 8:33 AM
Subject: cannot find tag library
Thanks Max,
that worked great.
- ej
- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 3:34 PM
Subject: Re: cannot find tag library
Elijah,
Try giving your tag handler class a proper package name
Hmmm, I created a frameset of html files using the generated html from the
JSPs I was using as my two frame sources - and that works without the mouse
cursor staying in 'busy' mode.
Does that suggest this is a Struts/JSP/tags problem? I can't see how though
because the browser never sees the JSP
Can someone please enlighten me as to the current thinking is on
integrating Struts with Cocoon:
- there seems to be certain amount of thought/discussion that points
toward reinventing the wheel as far as Cocoon's outstanding XML
functionality is concerned
- Cocoon also seems somewhat to have
Hi John,
I ran into something similar with the select/options
tag last week. The solution may be the same. The
tag sets a variable in the form with the user's
selection, and if you set the same variable in
the form in your action class to what you want
selected, it may use that as the
Hi ,
I have installed Tomcat under Program Files/Apache .
The jsp files run when placed under webapps/example .
I want to execute a jsp file placed in C:/webapps/example/ .
What and where should I change ,so that the Tomcat recognises the Jsp located
elsewhere .
Thanks
Regards,
Syed
Be very careful about using DateFormatter's that way. I learned a hard lesson in a
previous project that DateFormater (and even just the format method) is not thread
safe.
Jeff
-Original Message-
From: Peter Pilgrim [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 7:23 AM
Dave Hay wrote:
What if you want, say,
logic:iterate id=category name=TraceForm property=categoryList
...
On html:radio name=category property=value value=on
indexed=true/
Off html:radio name=category property=value value=off
indexed=true/
When using the Upload feature of Struts, is it possible to determine the
content-type of the uploaded file? For instance, how do I figure out that
themovie.mov is a video, or that it's really a jpeg with the wrong extension?
Is this possible, or is it only possible to determine the content type
Sounds like a plan Richard. I shall try it!
Thank you.
- Cody
Richard Yee [EMAIL PROTECTED] on 02/04/2002 02:31:53 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: Re: Questions from an Idiot who Longs
So is the answser to create global Format object and synchronize access?
-Original Message-
From: Jeff Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 5:56 PM
To: Struts Users Mailing List
Subject: RE: Formatting Dates, Integers...
Be very careful about using
I don't agree. If you need to use scriptlets in your JSPs and you use them
over and over on many pages, the scriptlet should be a tag. The tag can be
reused on many pages, the scriptlet can't.
Please explain why This is a bad habit. Only do it if you must. Should
we only re-use code if we
If you are using the ValidatorForm, another good trick is to key off the
page property it provides.
In the reset function, put in a wrapper like this:
if (getPage()==0) {
setForward(null);
setName(null);
setTelephone(null);
Hi all, I'm in the process of trying to get a struts project to compile in
jbuilder 6.
I am new to both the products and I can't seem to get them to work.
I imagine its operator error, but I've seen references to an open source
tool
that you need to use to get jb5 to work with struts- I am
Hi list,
I wonder if I'm doing something really wrong here, this is what I want to do:
html:link page=/membership.do?id=bean:write name='formBean'
property='id'/Membership/html:link
Struts ignores the bean:write tag altogether.
I have to use a normal a href tag for example:
a
Unfortunately, you cannot nest tags within each other. You best best is to
put a global forward in your struts-config.xml, such as:
forward name=membership path=/membership.do/
And then write your a href as follows:
a href=html:rewrite forward='membership'/?id=bean:write name='formBean'
Does anyone know of any examples to import CSV files into a database using
Java? Like Yahoo does with Addresses?
What about importing a VCF file?
Any links, suggestions are appreciated,
Matt
__
Do You Yahoo!?
Great stuff seeking new owners in
Make sure that the struts.jar file is in your web-inf/lib directory in your
project.
You do this by right clicking on the web root in the project pain, selecting
properties, click on dependancies, then make sure the struts library is set
to include all. When you do that, Jbuilder will
Hi,
I can show data correctly in a table by using the following syntax,
tdhtml:text property=deptName size=80//td
But, if I just want to display the data(property), instead of putting data
in a text field, say
tdDepartment A/td
Then, which tag should I use?
Thanks,
Sophia
--
To
bean:write name=formName property=deptName /
HTH,
Matt
--- Cheng, Sophia [EMAIL PROTECTED] wrote:
Hi,
I can show data correctly in a table by using the following syntax,
tdhtml:text property=deptName size=80//td
But, if I just want to display the data(property), instead of
Could someone please shed some light on the following? What would be the
solution for an attempt like this? Consider this code snippet that has an
obviously incorrect syntax:
logic:iterate name=users property=userList id=currentUser
html:link
Hi Rob
I've come across something similar before.
I haven't got time to test this myself right now, but try returning true
from your javascript function. I cant remember the details but this solved a
similar problem once form me
Scott
-Original Message-
From: Rob Breeds [SMTP:[EMAIL
Cody,
You can't nest tags - you can't have one tag inside the 's of another tag.
To do what you want, try this:
logic:iterate name=myBean property=userList id=currentUser
% String ref = admin_userForm.jsp?user_id= + currentUser; %
html:link href=%= ref %%= currentUser %/html:linkbr
/logic:iterate
Sophia,
I guess u can use bean:message key=./
in the td tag.Offcourse put the key value in the
ApplicationResources.property file of struts before.
like
key=prompt.tablevalue...
and in the ApplicationResources file put
prompt.tablevalue=Department A.
Hope it works.
Regards,
Arnab.
-
80 matches
Mail list logo