Erik, Glen, Laurie - Thanks for your help
After doing some more homework about exception handling - I have another
question:
If my Sturts Action calls directly to EJB methods (with no delegate
Layer) - then I have to catch RemoteException for all runtime
exceptions? Or is there a better way to w
Hi All
Please help me to figure out what is wrong in this...
value="<%=com.freescale.npidashboard.common.Constants.FormState.CREATE %>">
value=" Create " styleClass="NPIButton"/>
rg
Vijay
On Wed, 2005-07-20 at 08:43 +0200, Borislav Sabev wrote:
> a k wrote:
>
> >In the process of writing an Action class, I realized that it needs
> >some application functionality (not general utility kinda
> >functionality) that is already part of a method in a different Action
> >class.
> >
> >So,
I tested it worked fine the following code.
Check in u system for paths of
com.freescale.npidashboard.common.Constants.FormState.CREATE and
styleClas
-Original Message-
From: Vijay K Anand [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 20, 2005 1:43 PM
To: user@struts.apache.org
Sub
Hi all.,
long productId;
long productId = 0;
Sting abc;
Sting abc = null
In struts, how the above satements are differ?.
is it compulsary to initialise the value?.
What are all the advantage to initialise the value?.
Regs.,
Senthil
This e-mail and any files transmitted with it are for t
Hi guys,
I have a question about the best way to do some stuff. I am generating
an array of objects (conection) in one action in order to show all of
them in a jsp page, using a tag. Each of these object
has an int attribute that represents an error identification stored in a DB.
So, I have
It is no way different to struts
Primitive types are always initilxed to its defaults...
senthil Kumar wrote:
Hi all.,
long productId;
long productId = 0;
Sting abc;
Sting abc = null
In struts, how the above satements are differ?.
is it compulsary to initialise the value?.
What are all
Hi Amol Yadwadkar
In u r approach u r not mention how u got data. I mean in logic:iterare
u must give id value i.e u must set exact data format in any collection
that will work fine. This my simple solution for your given information
-Original Message-
From: Amol Yadwadkar [mailto:[EMAIL
Hi, Senthil.
if you don't set initial values for fields you declare, they are
initialized as mentioned
in java specification. you can check at
http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.12.5
so,
long productId;
long productId = 0;
are the same.
String abc;
Strin
do you have page directive like
<%@ page import="
com.freescale.npidashboard.common.Constants.FormState.CREATE" %>
regards
ichy
Hello everybody,
I'm working in a struts application with tiles and modules. Its my first
time working with tiles and I felt into a problem: the TilesRequestProcessor
is called twice. This happens when I forward my actions to a tile. If the
same action is forward to a simple page (i.e. a jsp page)
sorry, you don't have to use page directive since you use full package name.
so, another thing to check.
i had a situation when i use and the constant value is
primitive,
i had to write as
to make value as String.
ichy
Hi senthil Kumar
See senthil Struts class exact to any other java class. All class
level variables are takes default values. So not only in struts all java
class in the following initializes are same.
long productId;
long productId = 0;
Sting abc;
Sting abc = null
-Original Message-
From
Mariano García escribió:
Hi guys,
I have a question about the best way to do some stuff. I am generating
an array of objects (conection) in one action in order to show all of
them in a jsp page, using a tag. Each of these object
has an int attribute that represents an error identification st
Fine.
- Original Message -
From: "raghavendra" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Wednesday, July 20, 2005 4:10 PM
Subject: RE: Struts how initialises the value
> Hi senthil Kumar
> See senthil Struts class exact to any other java class. All class
> level var
Jeff,
The target is to define functional buttons because the staff used to such
combinations. There are not sumbit buttons in my application. It is
controlled by images. In whole it is necessary to create windows
interface which is usual with control buttons ( CTRL+S-save, CRTL-C -
copy, CTRL-F fi
Hi all,
In my JSP page, I defined a html:form like this.
...
It works fine and does client-side validation truly.
But when I used to html:button instead of html:submit, it gives an error.
...
Using a html:button tag, how can I do validation wit
I am currently working on my first tiles / struts module program myself. One thing that I had to do was to add the module aware option to the plug-in in struts-config.xml.
I have not had a problem with the request processor running twice. Not sure if this has anything t
Sorry for the off topic, but hopefully someone here has done this before. Im
using a tomcat smtp resource and JavaMail to send e-mail with my system. I
want to secure it and am getting confused. Can anyone give me some clear docs
or help on how to do this.
Thanks
-B
Rivka-
Since you're developing from scratch, you might want to put a layer
in-between your EJBs and Struts. Some will call it business logic,
data access object (DAO), or Helper classes. This allows you to
separate the struts-related concerns from business-related concerns.
It also solves the issu
[EMAIL PROTECTED] schrieb:
In the case you outlined, wizardForm should be placed into the session
scope when leaving the Funds action.
Shouldn't it be in the session scope by specifying
scope="session" in the action tags in the struts-config.xml?
You are not required to use the
struts tags
Hi,
I have already tested it, but unfortunately nothing to do with it. Thanks
for the advice, I will go on looking for a solution.
Ronnie.
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 20 de julio de 2005 14:30
Para: Struts Users
Hi All
How to make checkbox checked in ?
Regards
Vijay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Vijay,
How to make checkbox checked in ?
One way is to prepopulate the form property with the values you want
checked. It works for me.
--
Stéphane Zuckerman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Finally, I found two valuable solutions to my problem.
The first one is MappingDispatchAction, as suggested
by Hubert. It is efficient but I dislike to have so
much entries in my struts-config (my application is
going big enough)
I found a good explanation for it by the frustrated
programmer (who
Hi Guys
How to control char maxlength in ?
Regards
Vijay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You can use JavaScript to do it. That is how I have done it beforehand.
-Original Message-
From: Vijay K Anand [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 20, 2005 9:39 AM
To: Struts Users Mailing List
Subject: TextArea
Hi Guys
How to control char maxlength in ?
Regards
Vijay
Sadly, JavaScript I am afraid.
-Original Message-
From: Vijay K Anand [mailto:[EMAIL PROTECTED]
Sent: 20 July 2005 15:39
To: Struts Users Mailing List
Subject: TextArea
Hi Guys
How to control char maxlength in ?
Regards
Vijay
Yep, not an option in HTML, gotta javascript it, or catch it on the server.
Larry
On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> Sadly, JavaScript I am afraid.
>
> -Original Message-
> From: Vijay K Anand [mailto:[EMAIL PROTECTED]
>
> How to control char maxlength in ?
>
-
Ronnie,
What do you see that makes you think the tiles request is bring processed
twice? Perhaps that indicator can help us determine your problem.
Regards,
David
-Original Message-
From: Ronnie Arosa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 20, 2005 6:19 AM
To: Struts Users Mail
Rivka, I'll add to this:
Pick up "Core J2EE Patterns" from Sun. It is worth the money and will help you.
My solution would be similar to what Ed said. I would use a "manager" class
(aka "business facade", "business delegate", "service manager", etc. although
each one of these may mean something
Hello:
I have a DynaForm with some beans stored in an array:
I have the form-bean declared as session scope for my actions:
The persistent.Feature class has a field text with setText and getText
accessors.
When want wa
On 7/20/05, Martin Morawetz <[EMAIL PROTECTED]> wrote:
> I thought, the supposed behavior is that a bean declared to be within
> session-scope lives within the session as long as the session lives.
> And if it doesn't exist, it gets created by the struts-framework.
Yep. If you use nested business
Here is the code to do it.
I have used it a number of times.
http://javascript.internet.com/forms/limit-textarea.html
Adrian
__
Senior Programmer Analyst, Tax Distributed Systems Development
Tax & Compliance Development, ADP IT
Phone: (909) 592
Hi Ed
I don't have a delegate layer because I see no point in duplicating my
EJB interface (actually my business interface) by creating a delegate
layer. Another layer is time consuming in development and in
maintainance - it seems too much for just wrapping exceptions.
You wrote:
>A quick and d
Hi,
Sometime we cannot upload documents with struts-1.2.4 and tomcat-5.0.28 if
we do that via apache Apache/2.0.49 and mod_jk (via port 443). We get an
error message the page cannot be shown (or something like that).
If we repeat the upload the error doesn't happen.
It is especially strange that
Brian Lalor wrote:
On Jul 19, 2005, at 4:53 PM, Dave Newton wrote:
I'm new to struts, and to web development in general, and after
tinkering with the struts tag libraries, I've decided to switch to
using the JSTL tag library. This requires JSP 2.0 support, which I
should have, as I am us
Well, I'm debugging my source code with Sysdeo's eclipse plugin. I toggled a
breakpoint in one of my action, and founded that it'd been executed twice.
Of course results of my actions are obtained twice (i.e. an insert in a
database is done twice).
I've added the 2 stack traces below this.
This
On 7/20/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
> Yep, not an option in HTML, gotta javascript it, or catch it on the server.
>
> On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> > Sadly, JavaScript I am afraid.
> > From: Vijay K Anand [mailto:[EMAIL PROTECTED]
> > How to control char ma
> On Jul 19, 2005, at 4:53 PM, Dave Newton wrote:
>
> >> I'm new to struts, and to web development in general, and after
> >> tinkering with the struts tag libraries, I've decided to
> switch to
> >> using the JSTL tag library. This requires JSP 2.0 support, which
> >> I should have, as I
From: "Ronnie Arosa" <[EMAIL PROTECTED]>
> Well, I'm debugging my source code with Sysdeo's eclipse plugin.
> I toggled a breakpoint in one of my action, and founded that it'd
> been executed twice.
>
> Of course results of my actions are obtained twice (i.e. an insert in a
> database is done twi
Ronnie,
Here is what I see: you have two traces that both invoke your
Action.execute() with one call (each) from the TilesRequestProcessor. Since
your trace doesn't show two calls to the Tiles Request Processor, that
suggests your browser is submitting twice. The question is why is it
different
From: "Frasso, Anthony" <[EMAIL PROTECTED]>
> There's nothing else I have to configure to use JSTL?
No, just use the correct uri in the <%@ taglib> in the JSP.
The tags in web.xml haven't been necessary since Servlet 2.3, but
most examples (including the Struts example apps) still included them
Frasso, Anthony wrote:
So then I can completely remove the tag from my web.xml file, making
it look like the following?
http://java.sun.com/xml/ns/j2ee";;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";;
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
ht
Hi all,
I am designing a web app/ Its supposed to have 500 concurrent users.
1. Module- Login
The users login using their uid/password and see the stuff in their database
I am planning to use Struts,jsp,action classes in the front end
Now, back end I am thinking about session ejbs which reads da
http://java.sun.com/blueprints/corej2eepatterns/Patterns/SessionFacade.html
Erik
-Original Message-
From: Maya menon <[EMAIL PROTECTED]>
Sent: Jul 20, 2005 3:21 PM
To: user@struts.apache.org
Subject: Hi-New to this group
Hi all,
I am designing a web app/ Its supposed to have 500 conc
Maya menon wrote:
Now, back end I am thinking about session ejbs which reads database tables.
Unless there's a requirement or Very Compelling Reason to use EJB I'd
sure try to avoid them.
Now, what should I use in the middle layer ?
ie, intercation between action classes and session ejb: Fo
Also I will add that the last time I developed (part of ) an application like
yours, the main performance barrier (in my environment at least) was not
marshalling data across the network. It was by far multiple (often redundant)
database accesses per user request. I would suggest you look into c
Thank you dave and Eric for the quick solution regarding session facade.
Now using a business delegate and a session facade, is it a good idea ?
Also, As Dave wrote about session ejbs, please suggest some give work arounds
for a session ejb. Requirement is to read contents from database.
Ma
I don't understand Dave's concern. Perhaps he would elaborate on why he says to
avoid Session beans.
I have developed applications using Session beans wrapping DAOs for search,
etc., along with timer-reloading Entity beans and have seen good results.
However, it may be that he would favor POJOs
http://www.bookpool.com/sm/0764558315
At $25, you're almost stealing it.
-Dennis
Maya menon <[EMAIL PROTECTED]>
07/20/2005 03:35 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: Hi-New to this group
Thank you dave and Eric for the quick so
We use an Axis SOAP interface to communicate to our session beans. I
don't necessarily recommend it, but it does the trick nonetheless...
Regarding EJBs, we saw significant performance hits when conducting
heavy CMP crunching. A simple solution was to employ direct JDBC calls
within the sessio
In my case, I have had bad experience with using CMPs. But with session ejbs
acting as facade and other helper classes [like DAO having SQL code] I have
seen good performances.
Can anyone send me a sample implementation of a business delegate and session
facade ?
Thanks
Mike Darretta <[EMA
Using Business Delegate objects to proxy session facade objects I would
suggest looking at Service To Worker Pattern
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceToWorker.html
Martin-
- Original Message -
From: "Maya menon" <[EMAIL PROTECTED]>
To: "Struts Users Mailin
Maya menon wrote:
Also, As Dave wrote about session ejbs, please suggest some give work arounds
for a session ejb. Requirement is to read contents from database.
There are quite a few decent ways of doing database access; I'd probably
recommend Hibernate at this point but there are a lot of
If you don't get a good answer here I would check the Apache James
project--ML's, docs, etc.
Glen
Brian McGovern wrote:
Sorry for the off topic, but hopefully someone here has done this before. Im
using a tomcat smtp resource and JavaMail to send e-mail with my system. I
want to secure it
I think a good example of the manager classes are in the sample
Struts-based application generated by AppFuse:
https://appfuse.dev.java.net/.
I have yet to see the full benefits of these manager classes, however I
am currently attributing this to my general newbieness with Java web
applicatio
[EMAIL PROTECTED] wrote:
I don't understand Dave's concern. Perhaps he would elaborate on why he says to
avoid Session beans.
Anything EJB-related I've run in to (except in a few instances) has been
mind-blowing overkill, that's all.
I'm not saying they're _never_ the right answer, and I
Hi,
I am pretty new to Hibernate, [no idea at all] can anyone send me a sample
implementation ?
Thanks
Dave Newton <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
>I don't understand Dave's concern. Perhaps he would elaborate on why he says
>to avoid Session beans.
>
>
Anything EJB-re
On 7/20/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> >Another camp would tell you to just use something like a business
> >delegate + iBatis or Hibernate. I cannot comment as I have not used that
> >approach.
> >
> This is the approach I've used the most and it seems to work pretty well
> for me-
> -Ursprüngliche Nachricht-
> Von: Dave Newton [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. Juli 2005 22:20
> An: Struts Users Mailing List
> Betreff: Re: Hi-New to this group
>
> [EMAIL PROTECTED] wrote:
>
> >I don't understand Dave's concern. Perhaps he would
> elaborate on
> -Ursprüngliche Nachricht-
> Von: Dave Newton [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. Juli 2005 22:20
> An: Struts Users Mailing List
> Betreff: Re: Hi-New to this group
>
> [EMAIL PROTECTED] wrote:
>
> >I don't understand Dave's concern. Perhaps he would
> elaborate on
Shalom Rivka,
> -Ursprüngliche Nachricht-
> Von: Rivka Shisman [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. Juli 2005 18:50
> An: Struts Users Mailing List; Ed Griebel
> Betreff: RE: ApplicationException sample
>
>
> Hi Ed
>
> I don't have a delegate layer because I see no poin
Shalom Rivka,
> -Ursprüngliche Nachricht-
> Von: Rivka Shisman [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. Juli 2005 18:50
> An: Struts Users Mailing List; Ed Griebel
> Betreff: RE: ApplicationException sample
>
>
> Hi Ed
>
> I don't have a delegate layer because I see no poin
Maya,
You mentioned that you are providing access to things in the users
database. Are you giving them write access? If not there is little
reason to use Entity Beans (read None) in your application. If you
don't need your application to be distributed, and I didn't see it in
your requirements
Glen Mazza wrote:
If you don't get a good answer here I would check \
SUn's mail mail list or jakrta commons (email) jar.
.V
project--ML's, docs, etc.
Glen
Brian McGovern wrote:
Sorry for the off topic, but hopefully someone here has done this
before. Im using a tomcat smtp resource a
[EMAIL PROTECTED] wrote the following on 7/20/2005 3:44 PM:
Another camp would tell you to just use something like a business
delegate + iBatis or Hibernate. I cannot comment as I have not used
that approach. Personally, I like to write all my own SQL (along with
everything else you can write).
I used JDBC realms for security.
I tend to avoid EJB, even v 3 (it does not support collection) but EJB 3
is not bad (unlike 2.1.. it is bad).
You can run 500 concurnet users on an old laptop, I my tests I get over
$2K per CPU on older servers.
What stress testing tool do you plan to use?
.V
If any one has any sample implementations using ibatis / hibernate, please send
them to me. It would be really helpful
Rick Reumann <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] wrote the following on
7/20/2005 3:44 PM:
> Another camp would tell you to just use something like a business
> delegat
Maya menon wrote:
If any one has any sample implementations using ibatis / hibernate, please send
them to me. It would be really helpful
Check their respective sites; I'm betting both have sample code.
Hibernate, at least, has several books available.
Dave
-
I think there is a Struts wiki page for this also.
.V
Maya menon wrote:
If any one has any sample implementations using ibatis / hibernate, please send
them to me. It would be really helpful
-
To unsubscribe, e-mail: [EMA
Rick's home page has one.
.V
Maya menon wrote:
If any one has any sample implementations using ibatis / hibernate, please send
them to me. It would be really helpful
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Maya,
See inline
On 7/20/05, Maya menon <[EMAIL PROTECTED]> wrote:
> Michael,
>
> Yes: in our web app, in the jsp, there will be a button/checkbox which the
> users can click to let the system know about the status of their work. Now,
> when they click it, it can directly update the database
Here is a solution, JavaScript by the way...