? ;-
in article [EMAIL PROTECTED], Erik Price at [EMAIL PROTECTED] wrote on
5/19/03 8:29 AM:
Hi,
I am soliciting advice from other struts and web developers. I am
moving my in-progress project (JSP servlets only) to Struts framework
after having been converted at a JUG meeting, and am planning things
Mark Galbreath wrote:
I am not looking for a war here. All I ask is to get the damn thing right
before offering it as a release to our community.
Release early, release often.
Most open source software would -never- get released if people waited
till they got the damn thing right before
Reinhard wrote:
Ted wrote:
If you are starting from scratch, then I would strongly recommend *not*
using the datasource manager. The datasource manager was a Good Thing
three years ago, but, at this point, has outlived its usefulness in most
environments.
I'm a bit upset.
Any advice on what
Jerry Jalenak wrote:
Just curious - how do most of you return errors from your business model?
Do you simply return an integer value (-1, 0. 99?) and then interpret it in
the action? Or do you return a error string that maps to something in
ApplicationResources? Any other techniques? I'm
Simon Kelly wrote:
And talking of impossible requirements .
Does anyone know how to include svg into html without having it in a separte
downlaod able file?
All my svg and html are dynamically created and I need to mirge them both
and send out one page.
All help would ... well help
Gary Kephart wrote:
I have a web site at http://www.pobox.com/~encyclopaedia_wot. It contains 100's of pages of HTML of mostly text. I'd like to migrate this to JSPs and use Templates/Tiles because:
1) I want to better standardize the layout
2) I want the content writer to not have to worry
Gary Kephart wrote:
As far as database, take a look at the content now and see what you think. The big stumbling block is that the content writers are remote, and so I'd have to set up some sort of remote database access and my content writers don't have much, if any, db experience.
Or you
Pat Quinn wrote:
where do you keep the initial resultset? Or do you execute the query
each time the user requests to page?
What would be nice if i could execute an sql statement which would give
me a sub set of the results as contolled by a start and end position i
specify e.g.
Select
Jerry Jalenak wrote:
I am looking for a lightweight, Java based weblogger that can be *easily*
integrated into an existing Struts-based web application. I looked at
Roller, but it requires Tomcat 4 (which we aren't on yet - still running
Tomcat 3.3!). I found the MiniBlog by Russell Beatie,
Jerry Jalenak wrote:
I have an order screen where a client can, well, order one or more items.
The struts action picks up the item number and hands it off to a business
class. The business class goes to the database (DAO), and based on what
comes back, either returns a JavaBean containing the
Jerry Jalenak wrote:
Erik -
Thanks. I'm beginning to look at ways to handle returning status using
exceptions. The idea of 'wrapping' each exception by layer is very
appealing
No problem. While exceptions are awesome, I don't want to give the
impression that they should be used for
Jerry Jalenak wrote:
Erik, David, and Mike -
Thanks for the replies - interesting to note that all three of you suggested
basically the same answer, that of using the exception mechanism.
I think it's just that one of the cool things about Java over PHP or C
is that we have exceptions, and
Erik Price wrote:
Side note: I like returning Object from a method -- it's rarely, rarely
necessary, and in Java, it's a pain to deal with Object instances
(because you can't send an arbitrary message to an object, you have to
make an explicit cast to appease the compiler).
Uh, mental
Paananen, Tero wrote:
The disadvantage of this approach is that you'll be
tieing your implementation to a specific db vendor
at that point. DB vendors implement such functionality
differently, from what I've seen.
Yep.
I've yet to see an application that does NOT target a
specific db though.
Reinhard wrote:
Thanks Erik,
Ted already gave a very short advice, but with your words, the sun is shining
again ;-)
Erik wrote:
The DataSource management system used in your container. Tomcat for
instance, has its own place to specify this
Ok, I declared my datasources in server.xml
Jerry Jalenak wrote:
Erik,
You're right - I asked the wrong question (how to return error and not how
to return status), so thanks for sticking with me on this thread. I've
started looking at the Type-Safe Enum pattern; except for providing a
'type-safe' construct in which to code return
Bailey, Shane C. wrote:
I'm trying state my opinion and learn (from replies).
About the only thing in that statement that I know is verifiably screwed up
is that Ant has no $var and I apologized and rectified what I meant in one
of my recent posts.
Whachu talkin' 'bout Willis?
I hadn't read
Jerry Jalenak wrote:
confused-look-on-face
Erik -
How then do you return a simple status from your business model to your
action? There is not an 'exceptional condition' - simply a return value
that the action can use to select the appropriate forward (for instance).
As I've been looking
Bailey, Shane C. wrote:
Scriptlets are more powerful (you can do ANYTHING Java can do), faster, is a
standard (it is the Java language you know) and if you are going to spend
time learning a new language (${var} == pooPoo) then you would be better
off learning Java (assuming you don't already
Laurent PETIT wrote:
Hello,
I'm looking for a good book related to the Test first driven development
area.
[...]
I browsed the amazon customer reviews for the classical books on the subject
(Kent Beck, ...) but was still afraid of something : are this book really
connected to reality when you
Linus Nikander wrote:
Thank you for the reply. But I'm looking for books, not online articles or
documentation. I know I can probably find book recommendations at the sites
you point to, but I was trying to save myself the effort of searching for
them and of evaluating their recommendations by
Alen Ribic wrote:
Security is really my week side but AFAIK your Container Manager Security
does have certain container specific configurations and even requirement for
additional java classes to be coded.
No.
As I said Security Filter component has a small, simple realm interface
that is
You have two choices.
1) Use a simple Collection and test the values with many if statements.
This is the option you are using right now.
2) Wrap the Collection in a custom object that contains the logic needed
to determine which values are appropriate. Then in your JSP you can
simply call
Martin Naskovski wrote:
Hello all. Is there an app that demonstrates the use of Struts EJB as a
persistence layer? I checked out Struts-Resume from Matt Raible, but it
uses Hibernate... Is there anything available w/EJB's? Thanks.
http://xpetstore.sf.net/
There are two implementations of
message message wrote:
How come there is so much free ware available especially from sourceforge ?
The whole point of sourceforge is to foster the development of open
source/free software by providing web hosting, CVS repositories, mailing
lists, and most other needs traditionally used by
Anubhav Kale wrote:
Hello
I want to create a simple JSP page with login and password fields. If i/p is correct (verified against a database) I should give user access to some JSP pages. If user tries to go to these JSP pages directly without entering correct username and password then he should
Mainguy, Mike wrote:
When I return a currency or date value, the client has a specific format
they want it in. i.e. $1,000.000 or 02/02/2003.
Do you mean you are using an input tag for display purposes (i.e.
returning data to the browser with an input tag that has a default value).
Erik
Ionel Gardais wrote:
Hi,
I am using the invalidate() method to force logout of the logged client
but even after a call to this method, clients can navigate to a secured
content without beeing prompt for their password.
Do you know what the problem is and/or how to solve it ?
This only works
[EMAIL PROTECTED] wrote:
Hello,
I use one form with data of type A and within an iteration of data with type B. Each member of B has its own submit button thus I can in the following action do some work with exactly this entry (e.g. make changes to a database).
Question: how does the action
Erez Efrati wrote:
I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 8:06 PM
To: Struts Users Mailing List
Subject: Re: Working with Struts + Dreamweaver
Erez Efrati wrote:
I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually
Yansheng Lin wrote:
I thought it's already Firday in Munich, no?
And I think Mark made a valid point. Some of the questions can be answered by
simply doing a search on Java Developer's Forum. But I guess a lot of people
are like me, feel good about this mailing list and wanna ask questions
Jason Meredith wrote:
Chaps
I am sure this question has been asked before, if it has please point me in
the right direction (URL - example)
A user log's into a web site, once the user has been authenticated, a
session is created , there are many different actions that a user can
perform, and it
Rise and fall of the American empire
What's funny is that many misguided fools will accuse you of being
unpatriotic if you *don't* support globalism, et al.
Erik
Vic Cekvenich wrote:
Together with low demand
http://news.com.com/2100-1022_3-5051028.html?tag=lh
Yan, Charlene wrote:
All,
I need to rewrite some ASP codes in Java. What are the Java equivalent to Asc(String) and Hex(Number) in VB? I appreciate any insight from you!
I don't know VB. I assume Hex(Number) transforms the number to
hexadecimal. You can get the hexadecimal representation
Goldy J wrote:
Hello,
I am facing a peculiar problem . I have a Action Class1 which gets RS from DB. I set the elements of FormBean1 and add them into a ArrayList1. So at the end of my Action Class1 i have a Array List 1 which has objects of my formbean1.
I call this ArrayList1 in my JSP1
Navjot Singh wrote:
correct me if i am wrong
The filter servlet is hit before the request reaches the main servlet -
ActionServlet in struts case. As the request has not even reached
ActionServlet, ActionMapping object has not been initialized as of now.
You can always have the access code
Yansheng Lin wrote:
To them, Online spreadsheet data-entry is a reasonable request. They don't want
to change their ways of practise, what can we do? They are paying us!
Darn, life is so hard!
Can you embed an applet that replicates spreadsheet functionality into a
web page?
Erik
Raible, Matt wrote:
We had the same requirement from our client - and we actually implemented
it! Using JavaScript and the DOM, we're able to add/delete rows, sort by
columns, have tabs for different sheets - pretty slick IMO.
That is cool. DOM is unwieldy, but it's an incredibly powerful
Christian Cryder wrote:
to me, JSF looks like a souped up version of Struts. It
seems like its taking an awful long time to deliver anything. Its not going
to be open source when its finally released either (has this changed?).
Are you referring to the RI? If so, that's unfortunate.
In
short,
Ajay Patil wrote:
Hello,
I found out that it is possible to make the Action class thread-safe
by over-riding RequestProcessor (processActionCreate method) so that
it creates a new Action instance for each request.
I would like to know the implications and possible problems ?
If anyone has
Andrew Hill wrote:
Yep more memory and more time for the garbage collector - but in fact its
probably insignificant - your already creating an actionform (if its request
scoped) , a request object, and all sorts of other things as by products of
processing the request. This is just one more
Craig R. McClanahan wrote:
JavaServer Faces is a lot of things, one of which is support for rendering
standard HTML components so that it's usable out of the box (but
components are not tied to ONLY render HTML -- that's up to which renderer
you choose to use). The best way to prevent horrible
Marc Gibert Ginestà wrote:
Hi!
We're starting a project based on Struts with EJBs for the business
logic and JSPs for the view.
So far, we've successfully coded Actions that call stateful Session EJBs
that talk to Entity EJBs.
The problem we have is on the view (JSPs). How is the JSP
[EMAIL PROTECTED] wrote:
When using the client side validation, there is always a javascript pop up box that says something along the lines of 'Your a thick b*stard, fill in xxx!' Our client requirement is that we produce a list of errors at the top of the page, (the red UL kinda thing), which
Happy Bastille Day to all FR struts users.
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Saman Ghodsian wrote:
Hi everyone,
Just starting with struts, I'm looking for xdoclet for
struts, where I can put attributes on my model source code
and it will generate all the Action, form, etc and xml files
for me. Any ideas? Pointers appreciated..
Saman Ghodsian wrote:
Hi thanks for the reply,
Any information or sample code on how to use those?.
Maybe not those tags particularly, but example of XDoclet use at
http://xpetstore.sf.net/
Erik
-
To unsubscribe,
Davidson, Glenn wrote:
As an aside, Dog Food has a specific tech meaning? If it is not to much
trouble what exactly does it mean in techie
http://www.catb.org/~esr/jargon/html/D/dogfood.html
Erik
-
To unsubscribe, e-mail:
Justin F. Knotzke wrote:
Hi,
I am having a small issue with a Mac (of which I know nothing). When
uploading a file on Linux or on Windows all of the data arrives
correctly. However with files larger then 500K or so on a Mac, not all
of the data arrives (say 506 when 512 should have
Paananen, Tero wrote:
So when you say persistent user repository, do you
mean something that the programmer manually store in
the DB or is there some API that we can query
it on the web server?
manually store in the DB (or flat files, whatever),
unless you're using a product that provides this
K.C. Baltz wrote:
I use a SessionListener to record the SessionIDs when they are created.
I'm not sure yet how I'm going to handle the Set filling up with
SessionIDs. I'll have to find some way to expire them.
Someone just told me recently (on this list) about using SoftReference
and
NYIMI Jose (BMB) wrote:
In my view, it's a much better solution to have one object that can be used to locate
other objects. I call this an
application context object, although I've also seen it termed a registry or application
toolbox. Any object in the
application needs only to get a
Nimish Chourey , Tidel Park - Chennai wrote:
Hi all ,
I want to know if there are applications that implements Session
Management using EJB's rather then using the HttpSession on Web tier .
I want to know the pros and cons of this approach . For all the RD that I
have done , it seems
Hohlen, John C wrote:
Craig:
I added a comment to the Bugzilla report with a link to the thread. Thanks for the idea.
Do you or anyone else know if WebLogic 6.1 requires that servlet context attributes to be serializable? How can I figure that out?
Not trying to be sarcastic at all,
Shane Mingins wrote:
After the lawyer cashed the check, the insurance company had him arrested on
24 counts of ARSON With his own insurance claim and testimony from the
previous case being used against him, the lawyer was convicted of
intentionally burning his insured property and was
David Graham wrote:
Static methods are evil for many reasons including philosophical (they're
not OO) and practical (you can't override their behavior). You should use
a Singleton class with non-static methods.
And the generally accepted way to get a reference to the singleton is
with a
Brian Lee wrote:
That's incorrect. Static methods cannot be overridden.
Actually, that's incorrect. Static method can be overridden.
foo.java
public class foo{
public static void bar(){}
}
baz.java
public class baz extends foo{
public static void bar(){}
}
compiles
Let's settle this before
sriram wrote:
James,
As explained by you, I have done the following:
I need list of countries in a drop-down box in .jsp page.
I have an EJB that maps to country table in database.
In that I've a method getAllCountries() that returns a collection.
In that method, I've used LabelValueBean and
David Bolsover wrote:
I ended up writing my own application security manager - when the user logs in,
his permissions are loaded from DB and then checked before any action is
performed - with appropriate errors if a violation is detected.
Where are you doing the checking, in the Action?
Erik
David Erickson wrote:
Ok well lets suppose you want to protect 100% of your content, perhaps minus
the login.jsp or what not page. We just spent a couple hours brainstorming
how to protect our webapp. We want flexibility above and beyond what
container security provides, so we want to use our
Rick Reumann wrote:
On Thu, 2003-07-03 at 14:41, Erik Price wrote:
I am really confused as to why you don't want to use a Filter. It seems
that they were developed specifically for situations like the one you
describe
Here's the problem I'm having with the securityFilter stuff that I'm
Brian McSweeney wrote:
Hi all,
I know this has been discussed previously, but Id like some user
feedback.
Im going to start writing test cases soon, and Id like to know
peoples experience
using the various frameworks available.
First off, my environment: Im using Struts talking to ejbs
David Erickson wrote:
Just curious how others have gone about protecting the resouces within their
webapp.. in our personal setup we would like to control access to every
resource if possible, we have our own custom login page that sets session
variables, and pulls the data from the database.
We
David Erickson wrote:
Is it based on using security restraints and having all your users set into
groups in the tomcat-users.xml file? If so our problem is we don't want to
have users based into groups but want to give permissions to users
individually to many different things.. and we want to
Richard Raquepo wrote:
Another option would be to configure the DS in struts but register it with
a
singleton (Service Locator) that can retrieve the datasource in your data
access classes.
maybe you can give me some link about this? tutorials maybe? any code maybe?
:p
As you wish:
Take the red pill.
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Adam Hardy wrote:
I would use container-managed security. All the secured pages should go
in a directory which is the target of a security constraint in the
deployment descriptor. This forces the user to log in when trying to
access any secured pages. In the actions where a user-object is
Filip Polsakiewicz wrote:
Hi,
i have a problem with url-patterns in web.xml
i need a pattern that matches /webdav/*, /webdav/hello/* and so on. I.e.
webdav and all subdirectories.
i tried
url-pattern
/webdav/*
/url-pattern
Maybe:
/webdav/*/*
Erik
Mike, this seems like a great idea. But wouldn't it be easier to just
have the html:errors property=prop/ tag output the appropriate
span type directly? This would avoid incurring the extra overhead
of XSLT, and would work on non-XML-valid pages (not that I think very
highly of
Adam Hardy wrote:
Erik Price wrote:
I would use container-managed security. All the secured pages should
go in a directory which is the target of a security constraint in the
deployment descriptor. This forces the user to log in when trying to
access any secured pages. In the actions where
Simon Kelly wrote:
Hi all,
Does anyone know of a conveniant way to stop the http:// line in the
browsers from showing the *.do at the end of the site address?
Personally I hate using sites that put the content into a single-frame
window because sometimes I like to see the current page's URL
= null;
this.map.remove(identity);
}
}
return result;
}
Jacob Hookom
Senior Programmer/Analyst
McKesson Medical Surgical
Golden Valley, MN
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003
Alen Ribic wrote:
What I whish to avoid is that a file does not get loaded as a property each
time the value object is needed but only when a image viewing is required.
(e.g. a view image link is clicked in manager role view)
Store a reference to the file (perhaps a String pathname) rather than
Wendy Smoak wrote:
So far I've resisted, but I have a feeling my next Struts app is going to
get sucked into a frame. The department that handles the website likes to
appropriate content, and of course it looks more unified if things don't pop
out into their own browser window like I'm doing
Alen Ribic wrote:
Hi all
Where do you think is the best place to initialise your persistence, ORM,
system in Struts?
Action classes, etc.?
I would like to make the Struts framework least aware of my Persistence
system.
One place (easy to set up) is to just create a static initializer block
in
It's not The Green Futures of Tycho by William Sleator is it?
Erik
Ted Husted wrote:
Martin Cooper wrote:
The Struts team is proud to announce the release of Struts 1.1 Release
Candidate 2.
As many of you know, one of the stepping stones in getting RC2 out was
falling back to the 1.02
(The perils of mailing list Reply-to munging.
Sigh my apologies, list.)
Erik
Erik Price wrote:
It's not The Green Futures of Tycho by William Sleator is it?
Erik
Ted Husted wrote:
Martin Cooper wrote:
The Struts team is proud to announce the release of Struts 1.1 Release
Candidate
There is an internal app that is used at my company and I am tossing
around the idea of investing a little time and energy into making a
simple web front-end for accessing data in this app. However, it does
not use a traditional database with JDBC connections, so I could not
maintain a
Hookom, Jacob wrote:
create primary keys for your data, create an identity object to represent
legacy data, create a hashmap or cache interface and use either LRU's or
Softly referenced caching. Pretty straight forward. Logic would be select
primary keys + lastModified if changed or not found,
Alen Ribic wrote:
My friend, I must admit that I have never applied inheritance on static
nested classes in my life.
(Not at least that I can remember :) )
I'm not to sure what the minimal access control level for static nested
classes is from point of nested inheritance and Struts system.
Maybe
Sloan Bowman wrote:
I will do my best to explain this but I will also point you in the
right direction. First off you need to read the Java Blueprints on using
DAO with J2ee. This will teach you the best methods of using Databases
by using the DAO to encapsulate the DataSource . Here is
Adam Hardy wrote:
I am starting a new app and trying to work out the best design approach.
At the moment I want to get the app up and running, and so I'm just
going to use tomcat and struts and achieve MVC by seperating out the
database access into factory classes.
At some point after I've
Mike Jasnowski wrote:
Actually I wasn't referring to OLE as in M$ speak, Ole is just a short
version of Old :)
But not much shorter! ;)
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
David Graham wrote:
Actually I wasn't referring to OLE as in M$ speak, Ole is just a short
version of Old :)
By short, do you mean the same amount of characters ;-) ?
For some reason the POJO term really irritates me. I'm not sure why
we need a special nomenclature for Java objects.
NB,
Adam Hardy wrote:
You think one day HTTP will allow real types like int and date?
Let's hope not! KISS.
You can use SOAP for something like that.
;)
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Brandon Goodin wrote:
Netbeans is not easily upgraded as new Tomcat releases become available and
the Swing environment can be burdensome and buggy unlike SWT (which is what
eclipse is built on).
Kind of FUD there -- SWT and Swing are equally burdensome/buggy on
MacOSX. That said, on Windows
Adam Hardy wrote:
MVC is never used as a term in the Microsoft world that I know of.
But this makes complete sense, in a sick way. In a MS environment,
portability probably isn't as big a concern, and while there are
certainly other reasons to use MVC, it strikes me that the biggest is to
Giampiero De Ciantis wrote:
I have basically a shopping cart application and I am wondering what is the
easiest way of updating the quantity of each item in the shopping cart.
Populating the page with the list of cart items is easy. I have no clue how
I will process the Dynamic form elements
[EMAIL PROTECTED] wrote:
I'm currently working on a web app which will be available publicly. In the
past I've secured my webapp using Tomcat's form based security. This works
fine if you require a user to log in as soon as the webapp is initiated (as
is the case with most internal web apps).
Giampiero De Ciantis wrote:
Sorry, I didn't explain myself.
Basically the page that shows the cart contents will have an unknown number
(Cardinality 0..*) of items listed. Beside each item there will be a text
box where the user can input the quantity of the item that they want to
order. When
Brandon Goodin wrote:
David,
I agree. But, it would be nice to be able to access Java Objects from a
scripting language. For example, If someone wanted to use Lucene to index
their site, and the site already exists in php. Then it would be appropriate
to be able to interact with the Lucene java
Navjot Singh wrote:
Hi List,
I have 2 methods that i am calling in same sequence.
+ txnMethod1()
+ txnMethod2()
I wish either both of them get _executed_ or none of them.
Can i rollback the state to what was before method1's
_execution_ if method2 fails?
Is it possible or i should start
Johan wrote:
Maybe to simple :-)
consider the following snippet
int x = 0;
try {
x=x+10;
x=x+10;
somethingMightThrowingAnException(x);
x=x+10;
} catch (Exception e) {
}
if somethingMightThrowingAnException(x) is not throwing an exception x
would be 30 in the end. but if
Jerry Jalenak wrote:
Not sure what you mean by 'defensive copies' Is there something special
I need to do in my bean so I end up with a 'true' duplicate, and not just a
second reference?
Defensive copies... described in Josh Bloch's Effective Java. Getter
methods return a copy of the
Jerry Jalenak wrote:
So, something like this?
private String myString;
public String getMyString()
{
String returnedString = this.myString;
return (returnedString);
}
I'm not sure how this applies to my cloning issue
Well, String
Erik Price wrote:
But you're still not safe yet.
What if somehow someone had held onto a reference to one of the Date
objects passed into the constructor?
Date myEvilStart = new Date();
Date end = new Date();
Period p = new Period(myEvilStart, end);
// at this point is p immutable
Jerry Jalenak wrote:
Erik,
Thanks for the lesson - and I'll get out and get a copy of Josh's book. In
the meantime I've also discovered that 'clone' basically does a shallow copy
- i.e. if there is a nested construct of javabeans, clone will only copy the
hightest level, and then place
Rajat Nayer wrote:
I can upgrade to Tomcat 4.x version .. i do not see
any issue there.. just need to know the link to a
tutorial that helps me build a simple EJB-Strust
appln.
Try Xpetstore:
http://xpetstore.sourceforge.net/
Uses EJB, Struts, Xdoclet, Hibernate, JBoss, etc
Erik
Ed Yu wrote:
You are better off using JNDI lookup to get the datasource. This is
suppose to be universal (Tomcat and Jrun seems to work identical)
although I've found a couple of differences among containers.
Do you know of a decent how-to document on designs to use this method
rather than
1 - 100 of 135 matches
Mail list logo