Good morning, Tom!
Thinking back to how and why we have a form bean, you'll recall that it's
wise for us to use String properties in our form beans. This is so that we
can avoid type conversions in capturing user input. This ensures that we
don't lose any information that the user has
Generally, what I will do to accomplish this is to use CSS. You can either
use incline styles in the style attribute, or you could specify a style
class with the styleClass attribute.
It would necessarily take a more contrived solution if you weren't able to
arrive at a fixed width for all
Frank,
I don't think you could extract the width from the control's style unless
you'd set it. I'd have to agree with you on that one. Isn't there a
property on the control (width?) you could determine the width from? Maybe
I answered too quick and should have done some research first. I
Hi Joe,
I'm not sure I understand your question, but ...
Here's what I do:
I use form beans to tote data around. My labels, OTOH, are externalized and
use bundles to achieve i18n, and this is all fairly transparent on the page.
Here's what I think you want to do:
If I understand you
Adam,
Nothing put me off CMA :-) I think it's fantastic, if it fits your ticket.
Unfortunately, in the environment I currently build apps for, CMA is not
feasible. Sometimes you get your druthers - sometimes you look at the
standard and decide how you can have your druthers, even if others
. If
that doesn't help, try elaborating more on what you mean. Just for
clarification, you don't have access ot the session on the client side
(since session data is stored on the server), so you can't set values in the
session before the form submits.
HTH,
Eddie Bush
- Original Message
Hi Martin,
The important link here is the key for your row (row.id). Establish a way
to pass that to your edit page, via a hidden field, for example, and that's
really it.
Recall (Struts 101) that we preface all pages (JSPs) with actions. ... so
your action can take the ID value that was
to view it. If you put
thought into how you construct your queries, and have proper indices
created, the user experience shouldn't suffer much.
Hope that helps!
Eddie Bush
- Original Message -
From: Michael Jouravlev [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Dave,
It's about more than that. You can send some amount of data - couldn't tell
you how much. The important thing is that the response has not been
committed. It sounds to me as if Pauls' response has been committed (due to
sufficient output having been sent).
Essentially, you want to
to learn how to use SecurityFilter. That may not be the case for you.
Hope that helps!
Eddie Bush
- Original Message -
From: tarek.nabil [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, May 25, 2005 5:12 AM
Subject: Security in Struts
Hi
, the action classes are the place this coordination takes place.
Doing things this way buys you a lot that is hard for me to convey in words.
I'd strongly recommend using this approach though as it'll be far easier on
you down the road.
Regards,
Eddie Bush
- Original Message -
From
cancel to work properly?
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is an issue if you are using FileAppender.
--
Eddie Bush
Thank you for removing unnecessary dialog when posting a response!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
) is
less about the unimportant ones (me) and more about the important ones
(you)? Is that the point? If not, what is?
--
Eddie Bush
Thank you for removing unnecessary dialog when posting a response!
-
To unsubscribe, e-mail
to
is(n't) compliant with it though? I'd wager it has something to do
with how it loads classes ...
Thanks all!
Frank W. Zammetti
--
Eddie Bush
Thank you for removing unnecessary dialog when posting a response
NetBeans, so I don't recall.
NetBeans knows about the tag attributes because of the TLD files. You
can get better descriptions of the tags' attributes from the
struts-documentation.war app (you might just install it in your
container so you'll have it for reference).
Good Luck!
--
Eddie Bush
=${org.foo.ATTRIBUTE != null}
but it didn't work. Neither did ${!empty org.foo.ATTRIBUTE}.
Erik
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(), etc.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
files?
--
Eddie Bush
Thank you for removing unnecessary dialog when posting a response!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=bayernitem=chapters
--
Wendy Smoak
--
Eddie Bush
Thank you for removing unnecessary dialog when posting a response!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to add flexibility.
Good Luck!
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
...
/c:otherwise
td.../td
/tr
/c:choose
/c:forEach
Y'all would do well to use the JSTL where you can. The documentation
for the Struts taglibs even says that.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL
Smooth, Frank :-)
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
trying to help.
I am sure because I have gone through all the problems in one way or
another related to this many times.
Wasn't Martin the originator of this thread? Maybe you are talking
about a sub-thread issue?
Jack
--
Eddie Bush
objects. Get a connection, use it,
close it, and keep the open time to a minimum. Using a DataSource, you
can open and close connections for almost no cost (in terms of time).
In addition, unit testing that kind of architecture is a major PITA
because of the setup required.
Larry
--
Eddie
. Thanks ;-)
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, if frequently required,
can be resource-intensive and may impact application performance. This is
especially true if the clients and the services are located in different
tiers
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED
you could either post them and/or
email me about what you've found out about it, I'd appreciate it.
Thanks,
Yaakov.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to the servlet
container.
Joe
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
. Standards aren't always
best practice approaches, but getting DataSource instances from JNDI
is a best practice.
... although I do like the idea of caching the DataSource instance, as
mentioned earlier, in a private member of some class in your
persistence layer.
--
Eddie Bush
to the
DataSource. I was simply saying that you should do it only once, not every
time you need it.
Yaakov.
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Friday, January 28, 2005 3:32 PM
To: Struts Users Mailing List
Subject: Re: Database Connection Workflow Question
PROTECTED]
To: Eddie Bush [EMAIL PROTECTED]
There were simple responses that could have been less than 10 lines
but in fact were well over 300 lines. You did not object at all. An
example will follow my signature. I submit that this is where you
might put your efforts, rather than in trying to cut
http://jakarta.apache.org/site/mail.html
Most everyone was likely routed through this when they found the list
to sign-up. Note the section entitled keep your email short and to
the point. Also Ask Smart Questions is good.
I should have thought to mention that before.
--
Eddie Bush
On Fri
On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton
[EMAIL PROTECTED] wrote:
javax.servlet.jsp.JspException: Cannot find bean under name
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Jan 2005 16:53:16 -0800 (PST), Norris Shelton
[EMAIL PROTECTED] wrote:
javax.servlet.jsp.JspException: Cannot find bean under name
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Sorry for the double post. G-Mail hiccuped.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
constants :-)
Again ... no holy wars, please ;-)
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The PMC makes such decisions, but takes the community into account
when making the decision.
--
Eddie Bush
On Sun, 23 Jan 2005 13:13:15 -0800, Dakota Jack [EMAIL PROTECTED] wrote:
At the risk of being flamed, might I ask if this debate, vote,
whatever was public or limited to the PMC
. Once you expose it to the public, that is
not your choice.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, singleton, factory, ... ), depending on what
you're really trying to do.
On Sun, 23 Jan 2005 22:42:20 +0100, Fredrik Jonson
[EMAIL PROTECTED] wrote:
Hello,
I've only just started using struts, so I need some input on
how to approach struts designs...
snip /
--
Eddie Bush
but this component is
already installed in the server. And the Admin person is asking to give
mime types for *.do
Can some one throw some light on me please? What should I do to make
*.do work in Apache HTTP Server? Any idea on Handlers would be helpful.
Thanks
Uma
--
Eddie Bush
JkMount is what I was talking about.
Looks like there is now a JkAutoAlias you can use to auto-map all
applications, if you want them mapped in whole. To do them in part (have
Tomcat serve dynamic content and Apache serve static content), it looks like
you'll still want JkMount and JkUnmount.
.
After all, what have We The People of This Great Nation learned from the
likes of Preston Thomas Tucker? Why, that's simple! The first product
that gains acceptance among the masses is ALWAYS the best product and
shall be questioned nevermore!
--The Open Source Warlord
Eddie Bush wrote:
I
that the list of lists might grow
as the product evolves . . .
Erik
Eddie Bush [EMAIL PROTECTED]
01/20/2005 11:59 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org,
Dakota Jack
[EMAIL PROTECTED]
cc
.
Frankly, the list policemen cause more difficulties on this list than
they solve in my opinion. This, however, was close to the Keystone
Cops. Ridiculous!
Jack
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED
is this
the correct way to do it, because as of this implentation ActionForm
does not seem to catch NumberFormatException (I use SQLQuery as a
number for now...)
thanks,
Alex
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED
.
2 good choices.
I too do not use O/R at all.
It just helps you leverage code that is tested and working.
.V
Eddie Bush wrote:
... actually, some of us. Why? Because our standards (rather, the
standards of the company we work for) say that we're not using some
hot-diggity O/R
of code:
Dakota Jack [EMAIL PROTECTED]
01/20/2005 11:07 AM
I was looking for a filter that detected sessions that had expired and
rerouted the request to a login or other appropriate page.
Jack
--
Eddie Bush
it, send it to them and not the list!
...
On Thu, 20 Jan 2005 09:56:14 -0800, Dakota Jack [EMAIL PROTECTED] wrote:
I thought it would be best to put this where it would be easy to find
for searchers.
--
Eddie Bush
.
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
My blog http://www.sandrasf.com/adminBlog
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED
-mail: [EMAIL PROTECTED]
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
address records can be
corrected.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
Please limit your stack traces! Each line into the trace becomes less
and less meaningful ... unless you're trying to debug the application
server/servlet container. I don't think that's your goal ...
--
Eddie Bush
!
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
From: Andrew Hill [EMAIL PROTECTED]
To: strutsuser user@struts.apache.org
Sent: Friday, December 31, 2004 10:09 AM
Subject: 2005
And a happy new year to you all!
-Andrew
2005-01-01 00:07
--
Eddie Bush
-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
://jakarta.apache.org/poi/
They make it easy to do stuff like this.
On Thu, 23 Dec 2004 12:43:17 +0530, Shiva Narayana
[EMAIL PROTECTED] wrote:
Hey this is new to me plz send me how u r creating the excel sheet..
I ll appreciate for it
Regards
--
Eddie Bush
PROTECTED]
[EMAIL PROTECTED] wrote:
Thanks for your help Eddie! Regex worked perfect.
I had given up hope on getting right regex.
Thanks Again!
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 20, 2004 12
the creation of extra java classes ?
Primarily, the advantage I see is that you don't have to code multiple
sets of classes (1 for data transfer - 1 to use in your code that has
all the real types).
Thanks,
Vijay.
--
Eddie Bush
not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.
--
Eddie Bush
DynaActionClass.
Can I inherit form bean definitions created using DynaActionForm?
I want that I create one form-bean definition for common fields and use this
form-bean definition in definition of form bean for other forms.
Amit Gupta
--
Eddie Bush
(using tags) ?
I have doubt in setting the value
form:checkbox name=advcForm property=advcId value=?/
plz get me a solution.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
little bit so user is
not confused. But I would like to show only one message
irrespective of where the validation failed.
Any Ideas ?
Thanks for help!
Rajesh Shah
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL
,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
via redirect?
Regards,
Ben
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
failed.
Any Ideas ?
Thanks for help!
Rajesh Shah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Any word on when they might open that to GA? I'm curious to get a peek at
it ...
Eddie
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 1:30 PM
Subject: Re: test
If you
Bryan,
Here's some thoughts:
- Leverage the Java language's inherent ability to internationalize
things.
- Leverage commons-resources to internationalize things.
- Use a database to internationalize things.
They aren't necessarily mutually-exclusive options, although there's little
Uma,
That's being generated by the RequestProcessor. That means your
ActionServlet instance loaded and is probably setup right.
Do you have an action in your struts-config with a path of /test1? I'm
betting you don't. You probably want to be using /testme.do, since that's
what you've got
Tomcat expects applications to be inside of the webapps directory. The base
path for your app would be:
$TOMCAT_HOME/webapps/myapp/
For simplicity, let's call this $APP_HOME
Within that directory, you'd reference pages as relative to your context
(like /somePage.jsp) in your struts-config
In order to have a request properly setup, you need to be going through the
controller. To go through the controller, you need to be viewing an action
instead of a JSP page. Try invoking an action that uses the template and
see if the problem persists.
You can't expect Struts to set things
in Eclipse!
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:34 AM
Subject: Re: [OT] Eclips 3.01 + IBM WTP + Tomcat 5
WTP = Web Tools Platform
I've seen the Sysdedo plugin, but I was trying to keep my
,
David
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004 10:05 PM
To: Struts Users Mailing List
Subject: Re: [OT] Eclips 3.01 + IBM WTP + Tomcat 5
FWIW ... seems like having my Tomcat installation burried under Program
Files etc was the culprit. I
and good luck ;-)
Eddie Bush
Thanks and Regards,
Kinjal Sonpal
In the real world, the right thing never happens in the right place
at the right time. It is the task of journalists and historians to
rectify this error.
--Mark Twain
---
avast! Antivirus
quote
You will be introduced to Struts, the primary MVC framework for building
Java Web Applications.
/quot
Doesn't sound like they go into it very deeply. It may be a very good class
for a person that hasn't done any web development using Java technologies
though.
quot
You should have
Has anyone successfully setup IBM WTP with Tomcat 5 under Eclipse 3.01?
Every time I go to fire the server off it fails and says there was a problem in
thread main. I can launch Tomcat just fine from the command prompt or as a
service :-|
My guess is that it's doing something wrong in trying
Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
====
Has anyone successfully setup IBM WTP with Tomcat 5 under
Eclipse 3.01?
Every time I go to fire the server off it fails and says
there was a problem in thread main. I can launch Tomcat just
fine from the command prompt
Commons-Validator :-) You've got the wrong list, my friend. Try:
http://jakarta.apache.org/commons/validator/
They have their very own user list (well, their very own shared user list!)
;-)
http://jakarta.apache.org/site/mail2.html#Commons
It's possible you might get some leads here, but I'd
:-)
Look at commons-logging. It is a little more work up-front to learn how to
work it, but you can do System.err type, and you could always plug Log4J
into it (without changing your code) later if you feel the need ... or the
JDK1.4 logger. It's pretty handy!
Good Luck!
Eddie Bush
Do people really deploy things to production like this? We generally just
publish an EAR or WAR file to the server and keep the source in a versioning
system. It seems like pretty wasteful space on a production server to have
an application plus all the files that make up the application.
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Eddie Bush wrote:
Do people really deploy things to production like this? We generally
just publish an EAR or WAR file to the server and keep the source in a
versioning system. It seems like pretty wasteful space
Our development servers are essentially our own workstations :-) Our
development/test box we may only deploy to via a web interface. It's not so
terribly convenient considering it's not typically necessary to publish
things unless there's been significant advancement. Oh there's some times
that the
designers work isnt lost and make sure its under source control
properly. At the moment this is my major headache, as the designers
are not great with technical things and mostly they use Dreamweaver
exclusively.
Thanks,
Corey
On Mon, 29 Nov 2004 20:31:02 -0600, Eddie Bush [EMAIL PROTECTED
You've got two choices that I see:
1 - Route requests into the controller
2 - Write a filter
You say this is your welcome page. Is this your index? Generally, my index
files contain nothing but a redirect to a global forward named index that
sends the user to an action named /index.
it this weekend.
Happy Thanksgiving!
Eddie Bush
- Original Message -
From: Steven Leija [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 11:45 PM
Subject: Virtual Host Struts Action Form
Hello All,
I'm currenting running a virtual host
... might be a bit simplistic, but could you perhaps name your forwards
after your roles and just have your action handle things that way? ... if
the model is the same ... Then, you wouldn't have to touch the Action class
unless your model needed tweaking.
Another thing you could condier is
I think Joe makes a good point. Shale is what we have as a possible
direction ... and it's being fleshed out. Jerico, better or worse, I don't
think is.
At this point, we're probably better to put our code where our mouths are,
if we don't like the direction things are headed.
flashback
You
into Tomcat's webapps
folder, fire up Tomcat, and play around with it :-)
Feel free to examine the User Guide. There's tons of stuff around that's
meant to make learning Struts easier.
Good Luck!
Eddie Bush
- Original Message -
From: Scott Purcell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
There are obvious benefits to using XSLT as cited earlier (taking one input
to multiple outputs - ie. different clients). I personally think that
debugging the transformations is a major pain. My primary exposure to this
has been through a a couple of ASP/COM apps at work. To me, the pages
, Eddie Bush [EMAIL PROTECTED] wrote:
There are obvious benefits to using XSLT as cited earlier (taking one
input
to multiple outputs - ie. different clients). I personally think that
debugging the transformations is a major pain. My primary exposure to
this
has been through a a couple of ASP/COM
Leon,
Being a developer is like ... being a Jedi Knight. You seek the good and
thrive on it, but are forever tempted by the dark side. Eventually, you
give in to it and learn why it's evil and then go back to the light. That
is, unless you're so enthralled by the dark side that you become
AMEN TO THAT. What a PITA ... UGH I don't like that! PAIN!
Try to debug that mess!
- Original Message -
From: Bill Siggelkow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 8:43 AM
Subject: Re: talking about paradigms
Sorry, I haven't been following this
There used to be (haven't checked on it for a while) a project called
Security Filter that was a security database implementation you could
package with your application. I believe it was a SourceForge project.
One of the projects I'm currently architecting has need for specialized
security -
Perhaps you meant to be looking at :
http://struts.sourceforge.net/struts-flow/
I guess Google likes me more than it does you :-)
- Original Message -
From: Ben [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 6:24 AM
Subject: Re:
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 5:17 PM
To: Struts Users Mailing List
Subject: Re: Need an alternative to bean:define
I would question anyone who told me I had to use something that is going
away in the future (most of Struts
I would question anyone who told me I had to use something that is going
away in the future (most of Struts' taglibs), instead of using a standard
technology (the JSTL).
Are they fully-aware of the decision they're making? Are you running within
a container that supports Servlet Specification
1 - 100 of 117 matches
Mail list logo