Is there a simple way (e.g. standard tag with some oddball parameter),
which will let me do a standard c:url or html:link, except,
rewrite the leading http://; as https://;?
I don't want to insert a hack scriptlet every time I want to do this..
Would rather use a tag. But I can't seem to find
On Fri, 2002-10-25 at 00:55, Hookom, Jacob John wrote:
I guess I'm lost as to why CachedRowSet is a zero copy?
The source code for the basicPortal's still copies all the data into another,
internal collection.
Regards,
Jacob
Here's how my thinking has evolved since I opened
On Fri, 2002-10-25 at 10:33, Craig R. McClanahan wrote:
Conceptually, one can imagine a RowSet implementation that did not copy
anything unless you tried to *modify* existing data, at which point it
would keep dirty copies of the data that was changed. As long as the
underlying ResultSet
I'm banging my brain against the sides of my skull trying to think of a
way to do zero-copy JDBC persistence with Struts.
What I mean by zero-copy is, basically, pass as much raw data as
possible between the Model layer and the View layer. In pragmatic terms,
this probably means taking a JDBC
On Fri, 2002-10-04 at 15:28, David Graham wrote:
This is a layer above all persistence frameworks (JDBC, JDO, EJB, OJB,
etc.)
that your application programs to. If you decide to change persistence
frameworks, most of your code remains unchanged because it doesn't know
which one you're using.
I was wondering how people handle frequent content updates with
Struts/JSP? At my company, I'm building a site for which much of the
static content (including things like the CSS stylesheet) will
probably undergo frequent revision. I'd like to open it up for easier
access, such as via FrontPage,
I was wondering if there are others out there who have read the
(preliminary) JSF (Java Server Faces) drafts, tutorials, etc., with
opinions on how they relate to Struts?
With Craig the spec lead on JSF, and Craig also being a primary mover
(as well as original inventor) of Struts, I am hoping
true (which is good news for Struts folks).
Craig
On 6 Sep 2002, Bryan Field-Elliot wrote:
Date: 06 Sep 2002 12:33:37 -0600
From: Bryan Field-Elliot [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED
On Fri, 2002-07-05 at 15:50, Adolfo Miguelez wrote:
The only way that I have seen to do something similar, is the mini-project
SIMPER (Struts resources page), which is able to work out dynabeans
(actually they are hashmaps in their guts), following a database schema, for
it
I have successfully deploy Apache Axis (the new beta version) in the
same webapp as a Struts application. This takes a little cut-and-pasting
from Axis's web.xml file into yours, but it works fine.
Bryan
On Tue, 2002-04-02 at 02:10, Struts Newsgroup wrote:
Subject: Soap and Struts
I imagine that it would be a relatively simple task, to write an adaptor
of some sort to map the JSF event model onto Struts actions.
Bryan
On Tue, 2002-04-02 at 12:41, Robert wrote:
I went to the JSF session at JavaOne and the most asked question for the
JSR group was What about
Field-Elliot [EMAIL PROTECTED]
wrote:
I imagine that it would be a relatively simple task,
to write an adaptor
of some sort to map the JSF event model onto Struts
actions.
Bryan
On Tue, 2002-04-02 at 12:41, Robert wrote:
I went
Your assumptions are most likely wrong. Whether or not your Servlet
container supports hot-redeploy is a general question, and not at all
specific to Struts. Therefore, the question of whether to strip out
Struts from your application shouldn't even be on the table with repsect
to your concerns.
.
thanks,
Theron
Bryan
Field-Elliot To: Struts
On Wed, 2002-03-13 at 12:02, John M. Corro wrote:
I've found that every
service provider that I've worked w/ or seen that provides a shared JVM
won't allow you to deploy classes. In those situations I've had to write
everything in JSP - SUCKS!
Of course that's silly, because JSP pages are
I was wondering if anyone has any positive experience with open-source
charting libraries, with Struts?
I need to generate a chart on the server (from a Struts action) and send
it back to the client as a Jpeg, PNG, etc.
I have messed with (a tiny bit) JFreeChart and Chart2d. Both appear (at
the instructions at
http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html#xvfb
with no luck and went back to Xvfb. Let me know if you get it working.
Matt.
-Original Message-
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
Sent: 10 March 2002
You are running the 2.1-beta of Poolman. While I did not see the
specific bug you refer to (StackOverflowException), I did see other
bugs, including a random and occasional NullPointerException. Since
2.1-beta has been in beta since October, and since there have been no
development since then,
I'm no expert (having just picked up poolman a week ago) but, it appears
to me that you don't have poolman.xml in the right place. It needs to be
in either of the following places:
1. In the WEB-INF/classes directory (this is what I do)
2. Jar'd up, and then put the Jar in the WEB-INF/lib
Many database have their own extensions for encryption, or one-way
hashing, used for things like password storage. That's probably the best
choice you could make.
Bryan
On Thu, 2002-03-07 at 19:36, Andrew H. Peterson wrote:
Is there a struts preferred method of handling
Simper's representation of a database row is in the class SimperBean.
SimperBean is a relatively shallow extension of the DynaBean (actually
DynaBean is an interface -- BasicDynaBean is a concrete class which
SimperBean extends) -- see the commons project BeanUtils for the
source to DynaBean.
m-m is not yet supported in an elegent way by Simper. In the docs I
mention 1-1 and 1-m but I don't mention m-m for this reason.
As a tempoary workaround to get going, create another field in your
portfolio_stock table, called id, and use it as a (pseudo) primary-key
(assigning it unique values,
According to the website:
http://wwwcodestudiocom/
Poolman is no more What a bummer for me as I just learned it and
deployed it on a new project less than a week ago!
Previously, I was using the pooling mechanism built into Struts, but due
to many folks refering to it as not industrial
Yes,
There are two functions with Simper where we do mapping of
java.sql.Types to Java classes, and vice versa.
The error you're getting is that the functions mentioned above don't yet
understand java.sql.Type of -1. Do you know offhand what type that is?
It can be added easily to Simper, I can
It's an unimplemented placeholder for a future version, in which I hope
to implement a basic optimistic concurrency pattern. If your tables have
an integer column dedicated to versioning, Simper will automatically
increment it on every update, after first testing to be sure that the
value hasn't
which
allows nulls, which is totally different).
Bryan
On Tue, 2002-03-05 at 20:47, Ted Husted wrote:
It's probably null. I've noticed that different pools handle this
differently. I believe Resin returns zero instead.
Bryan Field-Elliot wrote:
Yes
The best approach is to use a database-specific extension (since paging
is not part of SQL standard syntax).
I use PostgreSQL which has very nice and easy paging support (using
LIMIT and OFFSET keywords).
I've tried to do it once before using Oracle but had some trouble (as I
recall the rownum
On Mon, 2002-03-04 at 19:20, Matt Read wrote:
I can see a solution where in validation() methods I check that the session
is still valid but this seems clumsy to me Is it good MVC design for the
request to be handled by the Model before the Controller gets to see it? Am
I
I don't think what you guys are discussing, is too far off from the
Simper framework I've developed:
http://www.netmeme.org/simper/
It doesn't have anything to do with the current Nesting library, but, it
does many of the things you've discussed in this thread, including
automatic change
How would you compare Poolman to the various pooling systems within
Jakarta (such as DBCP, or the one built into Tomcat 4 if I'm not
mistaken?) I can't keep track of them all
Thanks,
Bryan
On Sun, 2002-03-03 at 07:23, Ted Husted wrote:
For a production application, use Poolman
Simper is a simple JDBC persistence mechanism for Java web apps It
features many of the interesting features of EJB, such as automatic
transaction demarcation (by way of Servlet Filters), and automatic
change detection of database rows (by way of DynaBeans) Lastly, the
notation by which you
forward=/WEB-INF/docroot/signup.jsp /
Jeff Krueger
-Original Message-
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 1:54 PM
To: Struts Users Mailing List; Ted Husted
Subject: Re: changing from *.do to /do
Put this inside the head block of all your JSP pages:
html:base/
Here is a URL to the docs for this tag:
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#base
It solves exactly this problem.
Bryan
On Wed, 2002-02-27 at 10:39, Rob Breeds wrote:
Hi
I hope this is me being dumb
|
|| Field-Elliot |
|| bryan_lists@ne|
|| tmeme.org |
|| |
|| 27/02/2002 |
|| 17:49 |
|| Please respond |
|| to Struts
On Wed, 2002-02-27 at 11:56, Ted Husted wrote:
It originally came up in response to inquiries about how to enforce MVC.
If all the JSPs are under WEB-INF, then the only possible way to get to
them is through an action. Users can't just bookmark a JSP and pop into
the middle of something.
You want to set a session-level boolean value (actually Boolean, not
boolean, since you can only store proper objects in the session scope),
indicating whether the user has logged in.
Here are three ways to build a framework with Struts to check for
logged-inness. I've used all three in
.
On Sun, 2002-02-24 at 14:07, Robert Claeson wrote:
Bryan Field-Elliot wrote:
3. Don't use Struts at all for your login check. Instead, use Servlet
Filters (requires a Servlet 2.3 container such as Tomcat 4.0).
You could, of course, also use J2EE's declarative AI features
Take a look at my Simper package, which does basically this:
http://www.netmeme.org/simper
Still rough around the edges, but within a week or so, I hope to make a
polished project out of it (hosted at SourceForge). I've been saying
within a week or so for about a month now :( but will really
Consider double-checking that productArrayList is in fact a
session-scope object (or request-scope), and not a page-scope object. If
it's page-scope, then it won't be visible to included pages.
On Mon, 2002-01-28 at 13:43, Brian M. Zhang wrote:
Hi,
I have a jsp page which
I love the simplicity of Templates as well. The bummer with them is,
they aren't nestable, as far as I can tell (can anyone tell me
differently?).
On Tue, 2002-01-15 at 02:09, flare wrote:
On 14 Jan 2002 at 23:12, Michael Mehrle wrote:
Hi guys/gals:
I'm new to the
Thanks for the long opinion Ted. I agree with most of what you
discussed, which is that the Actions should be delegating to a real
business layer of back-end classes and methods, which can be re-applied
to a non-Struts front-end.
It's your first paragraph which I'd like to continue to discuss
Thanks again Ted,
I didn't mean to imply that my View developers were also developing
their own Tags. They aren't. Instead, I develop the Model, which
includes back-tier business logic to perform actions, and return a bean
(or a collection of beans) as a result. High-level business method names
Hi all,
I wanted to collect a few opinions on programming style with respect to
Struts and JSP.
The following have been my guiding principles for the last several
Struts projects I've done:
1. When a JSP page needs to ALTER the model (e.g. data will be written),
a Struts Action should be used.
I've tried this with Struts but found it to be unwieldly in the
struts-config.xml file.
Do you make an action, and a forward, for every single real JSP
page?
Kind of a pain in the buttocks if you ask me, but I see where you're
going with the idea of centralizing access control, exception
Hi,
I apologize for this being off topic, but while this has nothing to do with Struts, still I think this is a list where I might find knowledgable people with good info.
I'm looking for a good, cheap secure ID card or ID KeyFob solution, which I can integrate with my Struts
Thanks for the insights Ted,
Please help me if I'm misinterpreting. But looking at your code, it
seems like your populate still takes a plain Bean as it's destination,
although it can use a property set (in this case, a ResultSet) as the
source. This reduces the proliferation of Value (or
Ted,
I read your rebuttal tonight re: Barracuda, and I have questions about
one of your points. Actually this has nothing to do with Barracuda:
-
Reflection
Every recent report I've seen says reflection is no longer a point of
concern. Ditto for object creation and garbage collection.
Some end-user thoughts on the design of the Workflow system --
For the foreseeable future, I'll be building sites which need to be
accessed from multiple devices, with different presentation
requirements. This includes the standard desktop browser, but also
includes WAP, and likely also
We've successfully deployed an application using Struts 1.0b1 and it's
working fine. Yesterday however, we introduced an SSL certificate onto
the web server, and now, when my application is accessed via HTTPS
instead of HTTP, certain exceptions occur on a regular basis. One of
them is in
There is a security risk here as you describe, if (and only if) you are using
a generic introspection-based function (like Struts' PropertyUtils.copyBean)
to copy the values from the UserForm object to the User object. There are
several ways to avoid this --
1. Don't put an admin flag "setter"
Christian,
You kick ass!
Apologies to the sensitive but that was a great explanation of a very
obscure but important problem.
Bryan
Christian Cryder wrote:
I usually just lurk on this list, but I think I'll pipe in here.
m:
Bryan Field-Elliot
To:
[EMAIL PROTECTED]
Sent: Monday, May 07, 2001 1:14 PM
Subject: Re: Potential Security Flaw inStruts MVC
There is a security risk here as you describe, if (and only if)you are
using a generic introspection-based function (lik
a little more than what
I have.
- jeff
- Original Message -
From:
Bryan Field-Elliot
To:
[EMAIL PROTECTED]
Sent: Monday, May 07, 2001 4:38 PM
Subject: Re: Potential Security Flaw inStruts MVC
Either you are misunderstanding Struts,
. array)
5. action (another one) copies EJB to list
6. jsp displays results using iterate tag for the list
Thanks again, I appreciate!
P.S.
I'm very very new for such development environment (struts + EJB), please be
patience 8)
Chris
-Original Message-
From: Bryan Field-Elliot [mailto
Chris,
I don't have an example for you, but I have written a brief post-mortem
analysis of a major project just finished which used EJB and Struts. It
can be found here:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg06088.html
It was posted to this group, but no one had
I'm just wrapping up a fairly major project which was built on top of
Struts (thereby giving me a chance to learn it). I'm a little mixed
about the experience, not being entirely sure the value add was there. I
definitely feel "helped" by Struts' form validation infrastructure, and
I would
ur aversion tostateless and why they won't work for you in this situation, so that I canlearn more.Thanks, your questions and contributions here are very useful to me.Bill HinesSun Certified Java ProgrammerHershey Foods Corp-Original Message-From: Bryan Field-Elliot [mailto:[EMAIL PROTEC
Bill --
I think the important design point to make, is that you want your
business logic (including rules of behavior, state machine, etc) to be
encapsulated within the EJB tier. This makes for tidier code and a more
elegant design, and also makes your code more client-neutral. One of the
Hmm I didn't catch that nuance... thanks for pointing that out, it does
indeed change the picture.
In any case, I finally got my own application to work as intended --
using one JSP page, one ActionForm, and one Action --
1. The JSP page's initial invocation notices that there is no
I'm having a design problem with my system, which is not really Struts
specific, but since there are a lot of EJB users here, I thought I'd
throw it on this list for comments --
My business logic is all implemented in a Stateful EJB Session bean. All
Struts users get one instance of the
s are per-user, rather than
global.
Comments before I dive in the deep end?
Thanks,
Bryan
Abraham Kang wrote:
Hi Bryan,
Can you put the stateful session bean within a JavaBean with synchronized
methods so that all access to the stateful session bean is through the
JavaBean?
--Abr
Now that I think about it, perhaps a solution to this would be a great
general-purpose configuration feature for Struts. On a
per-web-application level (e.g. in struts-config.xml), there might be an
option such as:
syncronize_requests = x
where x might be:
none - the default -- the
er will catch if you change signatures in one place and not theother. And your Remote interface is empty, since it just "joins" theEJBObject and Ixxx interfaces.Food for thought, there are many other ways to do this.--jason-----Original Message-From: Bryan Field-Elliot [mailto:[EMAIL PROT
Message-----From: Bryan Field-Elliot
[mailto:[EMAIL PROTECTED]]Sent: Thursday, April 05, 2001
12:15 PMTo: [EMAIL PROTECTED]Subject: Re:
Frames, concurrency, and EJB Stateful Session beans - a probl
em.So in your scenario (as a proposed solution to my
problem), I would add syncronizat
And your Remote interface is empty, since it just "joins" theEJBObject and Ixxx interfaces.Food for thought, there are many other ways to do this.--jason-Original Message-From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 05, 2001 11:33 AMTo: [EMAIL PROTEC
Good grief, I've spent half the evening trying to understand the "proper
way" in Struts to present the user with a pre-populated editable form
(using ActionForm, a JSP page, and an Action). And, I am not even
certain I have it figured out quite yet.
My first point, is that the struts-example
I am doing EJB development with Struts also.
Good design dictates that basic validity checking should occur nearest the
client; probably the ActionForm.validate() method is the best place. In a
perfect world, you'd do this way way out on the client via Javascript, but
that would open itself up to
I've posted this general comment three times now, with no response -- I
am wondering if anyone is receiving my postings?
The issue is, in implementing an ActionForm bean, are we expected to
supply default values whenever the constructor is called, or whenever
the reset() method is called, or
I am struggling right now with how to properly and efficently document
my Struts application for my JSP developer (who is by no means a Java
expert). Specifically, I want to document each Action as well as each
ActionForm that I code, including things like:
1. the pages I expect the user to
Reposted from earlier as I think this is an important design issue and I never got any comments on it --
I am working wth ActionForms, one of which contains
some list boxes and some checkboxes. In building my ActionForm class, I am
noticing in the docs (under "Form Construction Tags") warnings
Using 1.0 beta --
I have many "global forwards" in my config. All of my "input forms" are
represented as global forwards. e.g.:
global-forwards
forward name="logon" path="/jsp/logon.jsp"/
/global-forwards
In my action mappings, those which require ActionForms have an "input" tag:
action
I am trying to use copyProperties()
to copy everything FROM a standard bean, TO an enterprise javabean (entity
bean). When I do so, I get the following exception:
Name: java.lang.IllegalArgumentExceptionMessage: object is not an instance of declaring class Stack:
I've been tearing apart my problems using copyProperties in an EJB environment;
The scenario is that I am using PropertyUtils.copyProperties to copy everything FROM a simple bean, TO an EJB entity bean.
Earlier tonight I thought that the hangup was over the destination bean,
perhaps because it
(I am reposting this message from a few days ago,
because I realized that my original post was a reply to another message,
and that even though I had changed the subject line, perhaps tree-viewing
mail clients would show it is part of another conversation, which I didn't
really intend. I just
Question reposted (never got any responses) -- please respond, someone :)
Question about creating ActionForm beans --
What kinds of data types are supported? I could not find a reference to
this in the docs. For example, I want to have an input box on my forms,
where the user can enter a
Question -- in evaluating names of properties (get/setter methods), does
it do a case-INsensitive match, or case-sensitive?
Due to the tool I'm using, some classes have method names like:
getcc_number()
putcc_number()
while others will have it as:
getCc_number()
putCc_number()
Will these be
New to Struts here --
Question about creating ActionForm beans --
What kinds of data types are supported? I could not find a reference to
this in the docs. For example, I want to have an input box on my forms,
where the user can enter a number. Or, they can leave it blank. I want
"blank" to
I'm exercising my new copy of TogetherJ, and at the same time learning
Struts for the first time. I was wondering if anyone has had any
experience trying to model a Struts application using Together? (e.g.
which diagram types did you use, etc.)?
Regards,
Bryan
78 matches
Mail list logo