Hi,
Does anyone have any experience using Struts 2 to implement a web app
that provides faceted search? (Using Lucene/LARQ etc.)
I'm wondering what the best approach is, using SiteMesh/Tiles ie, when
it comes to the architecture/design of the web app.
The basic idea is to provide the user with a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Shyamsunder,
Reddy, Shyamsunder wrote:
> 1.How to make sure that ActionServlet doesn't create any session using
> request.getSession(true) before the Request Processor class is classed.
I don't believe that Struts ever calls request.getSession(tr
Hi,
I am developing a Struts 1.1 based application to be deployed in Web
Sphere Application Server 5.1. There is no login page in the application,
but I nee d to make sure that valid session exists with each request and
session should be created only once at one place. So I have a subclass the
ex
PM
To: Struts Users Mailing List
Subject: RE: Design issue
Hi,
I usually access my cached droplist data directly from the jsp - eg have
placed a bean called "ReferenceDataCache" on application scope with
getter methods. In jsp I can simply call:
I also try to keep my struts
I didn't see a case where (2) is better.
Ideas from other folks? Thanks.
-Original Message-
From: Information Guzzler [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 6:32 PM
To: Struts Users Mailing List
Subject: Re: Design issue
Definitely (1) if you are strictly foll
onger needs it!
Just my 2c
Regards,
Paul
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: Sat 2/3/2007 9:39 AM
To: Struts Users Mailing List
Subject: Design issue
Think about a typical struts app, and on the jsp there are text field
and drop downs.
Definitely (1) if you are strictly following MVC.
Is there any specific scenario wherein (2) seems good to you? If there is
then explore ways to force it thro' controller
On 2/2/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
Think about a typical struts app, and on the jsp there are text f
Think about a typical struts app, and on the jsp there are text field
and drop downs. There are two approaches:
(1) the action populates all the text fields and drop downs from the
Database, and then set the value into the actionform, then the JSP will
get the values from the actionform
(2) the
Hello
In a tiles-def.xml is/how it possible to have a
Without going to the complexity of a making it a tile then a controller for the
tile? It appears that value can only be a jsp.
Alternatively is it possible to create a "non-visual" jsp that will
automatically either post a value in
tag look at the "validate"
attribute in the config?
Scott Mulligan
-Original Message-
From: Angelo zerr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 1:47 PM
To: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation
Hi,
Me, I use DispatchAction, and
On 5/16/06, Dave Newton <[EMAIL PROTECTED]> wrote:
Remember the days when newsgroups had a daily or weekly FAQ posting?
Whaddya think?
We have wiki now. (I believe that wiki needs a bit of reorganization)
* Any more or less important/frequent issues should be reflected in
wiki. I believe tha
?
Scott Mulligan
-Original Message-
From: Angelo zerr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 1:47 PM
To: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation
Hi,
Me, I use DispatchAction, and I prefer call validate in my action,
inst
Chaudhary, Harsh wrote:
> I would go with the declarative approach. It lends to more flexibility.
>
Not really.
If I'm doing something the exact same way every time I'd much rather
handle it by implementing a method (that you'd have to implement anyway)
and not bother with a config file change
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>> If we are speaking of the real "FAQ" i can contribute ;-) Have some cool
>> links of you guys here...
>
> Sounds like a Wiki to me :) There is a page for Struts FAQs (probably
> more than one) already on the Wiki. Go to it, I'm certain everyone w
On Tue, May 16, 2006 3:19 pm, C. Grobmeier wrote:
> Good idea. But i think Dave is speaking of a FAQ which is not just
> summing up what happened this week on the struts list, but he is
> speaking of a "real" FAQ, with the most important links (to the wiki) etc.
>
> If we are speaking of the real "
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>>
>> Remember the days when newsgroups had a daily or weekly FAQ posting?
>>
>> Whaddya think?
>>
>
> Not a bad idea, but someone would have to put it together each week. You
> voluntering? :) It would work if you simply put it together and poste
I would go with the declarative approach. It lends to more flexibility.
Harsh.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 1:27 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: - Design Issue with Struts
On Tue, May 16, 2006 2:02 pm, Dave Newton wrote:
> Frank W. Zammetti wrote:
>> Create two different mappings, one for the initial view (which has
>> validate set to false), one for the submission (with validate set to
>> true).
>>
>
> Create a base action that has separate handlers for GET (initial
Frank W. Zammetti wrote:
> Create two different mappings, one for the initial view (which has
> validate set to false), one for the submission (with validate set to
> true).
>
Create a base action that has separate handlers for GET (initial page
hit) and POST (form submission).
Remember the d
Hi,
Me, I use DispatchAction, and I prefer call validate in my action, instead
of struts launch automaticaly validate (validate="true" in action). So in my
struts-config, I have just one mapping for an action (I set
validate="false"). After in my dispatchAction I design my DispatchAction
with sev
Hi,
Create two different mappings, one for the initial view (which has
validate set to false), one for the submission (with validate set to
true).
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EM
When I go to a page for the 1st time, the validation takes affect. Obviously I
don't want that, I only want to validate upon submitting. How do I get around
this?
My form extends ValidatorActionForm
My Action Mapping in Struts-Config:
--
You won't get into any problems w/ only 5 users if you just have a field
in table viewed_by_userId.
.V
karthikeyan balasubramanian wrote:
Hi all,
This may not be exactly struts question but here is my scenario:
1. I will be reading data from a single table and displaying it to some
users.
2
Hi all,
This may not be exactly struts question but here is my scenario:
1. I will be reading data from a single table and displaying it to some
users.
2. Assuming that there are 5 users at one time records read by one user
should
not be seen by others.
3. This single table size can be huge.
i guess the extreme case would be that your entire web app having only
one Action class to handle every page. and EVERYTHING will be in that
one big Action class... validation, business, logic, even persistence
functions!! the whole web app in one class!! only one class to
maintain!! woohoo!!
The idea would be to use BusinessDelegate to decouple your business
logic from the web-tier. Use your struts Actions to get stuff out the
request, session, etc. Then pass plain old java objects (POJOs) to
the methods of your BusinessDelegate.
This way the business logic inside is not dependent o
Here's a concrete example of why it's not a good idea...
I had a Struts-based application that I was recently asked to expose (some functions
of) as Web Services. Well, this started me down my whole Struts Web Service Enablment
Project route, but the point is that because it had to be quick, qu
Is the Business Delegate a web-tier component? which
helps in decoupliong the web -tier component from the
business tier component or is it a business tier
component?
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> What he (Matt) said.
>
> If you are going to tie your Business Delegate clas
What he (Matt) said.
If you are going to tie your Business Delegate class to web tier APIs,
there is not really much point in having them at all -- you could just
do your business logic in the Action.execute() method directly and
save having to maintain two classes. (That's a sub-optimal idea as
I had already put this point across telling that the
business delegate should be designed to service any
kind of client.But we have a senior member on our team
who says that anyway beyond the business delegate the
session object is not passed on thereon further to the
ejb's etc, so it is a matter o
It's a bad idea because what if in the future you want to use that
business logic elsewhere? What if you want to use it in a webservice or
in a GUI standalone application. The business logic should have to know
nothing about web servers and HttpSession objects, unless your business
is buildin
Hi,
We have been mulling over an issue where , we have
people on our team who are proposing to pass the
HttpSession which we have in our Action classes to the
buisness delegate(which is an ordinary java class
which encapusulates calls the session facade). While
the j2ee blueprint for the business
esday, May 25, 2004 3:09 PM
To: 'Struts Users Mailing List'
Cc: 'Dhanesh Vasandani'
Subject: RE: Design Issue - Unchanged data getting submitted
Hi,
Update record problem:
I assume that you have a Header record and multiple child records for this
header. To ensure that only t
42 PM
To: Struts Users Mailing List
Cc: Dhanesh Vasandani
Subject: Design Issue - Unchanged data getting submitted
Dear all,
We have a application built using Struts.
Below is the architecture in brief :
JSP à Action Class à Business Delegate à Session Façade à Database
We are
/CompositeEntity.htm
l
(Then search for 'Store Optimization (Dirty Marker) Strategy' on the page)
robert
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 10:12 AM
To: Struts Users Mailing List
Cc: Dhanesh Vasandani
Subject: Design Issue -
Dear all,
We have a application built using Struts.
Below is the architecture in brief :
JSP à Action Class à
Business Delegate à
Session Façade à
Database
We are not using Action forms. We are using
Value Objects (VO) to pass data between web tier and App tier (from action
Hi Brad,
I've used the iframe solution on a project, as well. It worked for me.
However, I think there are some drawbacks. You loose visual control over what's going
on in the hidden iframe. I loaded .jsp into the iframe that wouldn't even compile and
didn't notice, because I didn't see the com
D]
Sent: 12 May 2004 14:49
To: 'Struts Users Mailing List'
Subject: RE: Design Issue/Question
We use this solutions quite a bit... in fact we have the form in a hidden
iframe which the user does not see but appears for developers for debbuging
purposes.. when the action completes javascrip
The way i've done it, i have an iframe with 0 width/height, and load a url
into it. e.g.
iframe1.location='additem.do?code=item1';
Daniel.
-Original Message-
From: Nimmons, Buster [mailto:[EMAIL PROTECTED]
Sent: 12 May 2004 14:49
To: 'Struts Users Mailing List'
selection was saved (or not in case of error) this has worked extremely well
for us
-Original Message-
From: Brad Balmer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 8:47 AM
To: Struts Users Mailing List
Subject: Re: Design Issue/Question
So I would create a frame on my page that
EMAIL PROTECTED]
Sent: 12 May 2004 13:46
To: Struts Users Mailing List
Subject: Design Issue/Question
I have an application where a user is adding items for a customer. The
form where the user will be on will have a list of products to choose
from, and can add a product for the customer by clicking o
the dynapi(a cross
platform dhtml library) is good for this type of thing.
http://dynapi.sourceforge.net/dynapi/
cheers,
-
shaun
>
>
> Daniel.
>
> -Original Message-
> From: Brad Balmer [mailto:[EMAIL PROTECTED]
> Sent: 12 May 2004 13:46
> To: Struts Users Ma
iling List
Subject: Design Issue/Question
I have an application where a user is adding items for a customer. The
form where the user will be on will have a list of products to choose
from, and can add a product for the customer by clicking on the checkbox.
The issue I am having is that I need to hav
I have an application where a user is adding items for a customer. The
form where the user will be on will have a list of products to choose
from, and can add a product for the customer by clicking on the checkbox.
The issue I am having is that I need to have the application do an
insert into
On 08/04/2004 12:24 Adam Hardy wrote:
I've got a design issue re nested beans and DTOs from EJB, the classical
(if that's not stretching it) monkeys-bunches-bananas situation.
I was wondering how people solve the issue of putting the nested beans
together from the data in the datab
I've got a design issue re nested beans and DTOs from EJB, the classical
(if that's not stretching it) monkeys-bunches-bananas situation.
I was wondering how people solve the issue of putting the nested beans
together from the data in the database.
I am creating my DTOs from a CMP
46 matches
Mail list logo