RE: Why is the reset method called when I submit the form?

2003-01-25 Thread Loren Hall
no, i'm not chaining my actions . . .  I like to do my actions one at a
time.

If nobody knows right off, then this is a non-issue for me, i've worked
around it.  and my next step is 1.1, not solving it.  It is however
perplexing, the code executing doesn't even appear to be mine.

Loren


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:44 AM
To: Struts Users Mailing List
Subject: RE: Why is the reset method called when I submit the form?


Are you trying to chain your actions?

-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 January 2003 21:40
To: Struts Users Mailing List
Subject: RE: Why is the reset method called when I submit the form?




I had similar behavior that I found odd with 1.0.2, the actionform would be
populated, reset was then called, and then validate was called.

Jeremy, my *solution* was to overwrite reset() to do nothing at all. By
creating another method to mimic the reset, I now call reset when it's more
advantageous.


>I guess struts calls reset in order to save all
> your input and then does the validation

I don't get that on two assumptions, (clarification appreciated.)

1) Isn't reset() to clear out old data from a bean being recycled, as
opposed to a method for saving that old data?
2) Isn't the very role of validating to prevent unruly, non-conforming data
from being saved?

Loren



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is the reset method called when I submit the form?


I guess struts calls reset in order to save all your input and then does the
validation

Regards,


PQ

"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Jeremy Cavagnolo [mailto:[EMAIL PROTECTED]]
Sent: January 22, 2003 2:53 PM
To: [EMAIL PROTECTED]
Subject: Why is the reset method called when I submit the form?

It seems that when I submit my form, the reset method is called before
the validate method.  I am using struts 1.0.2.

Any insight?

-Jeremy




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts and OJB

2003-01-25 Thread Jim Theodoridis
Hi all.

Has anyone use Struts and OJB?
I want to use an OR mapping framework an i am searching for the right tool
Theodoridis Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Not spam...I swear--

2003-01-25 Thread Peter A. Pilgrim
Robert Leland wrote:

Try to remain civil if not professional.

"If you can't be good, be careful."  I said Morning after the
night over tequila sunrise IV. Now where is that AlkaSeltzer? 
--
Pete


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread Joel Wickard
Jim Theodoridis wrote:


Hi all.

Has anyone use Struts and OJB?
I want to use an OR mapping framework an i am searching for the right tool
Theodoridis Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 
 

Did you have some specific questions about ojb?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and OJB

2003-01-25 Thread James Mitchell
> -Original Message-
> From: Jim Theodoridis [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, January 25, 2003 4:40 AM
> To: Struts Struts
> Subject: Struts and OJB
> 
> 
> Hi all.
> 
> Has anyone use Struts and OJB?

Absolutely!

> I want to use an OR mapping framework an i am searching for 
> the right tool

OJB is a great tool.  While the docs could be improved (most OSS has
this problem), setup/configuration is quite easy.

> Theodoridis Jim
> 



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
- Mark Twain (1835-1910)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread Joel Wickard
James Mitchell wrote:


-Original Message-
From: Jim Theodoridis [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 25, 2003 4:40 AM
To: Struts Struts
Subject: Struts and OJB


Hi all.

Has anyone use Struts and OJB?
   


Absolutely!

 

I want to use an OR mapping framework an i am searching for 
the right tool
   


OJB is a great tool.  While the docs could be improved (most OSS has
this problem), setup/configuration is quite easy.

 

My beef with ojb is the required "maintenance" tables put in your db.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and OJB

2003-01-25 Thread James Mitchell
Yes, I agree (almost).you can (so I've heard) change it so that
those required internal tables are in another database, but for now I
don't really mind.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
- Mark Twain (1835-1910)




> -Original Message-
> From: Joel Wickard [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, January 25, 2003 8:38 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and OJB
> 
> 
> James Mitchell wrote:
> 
> >>-Original Message-
> >>From: Jim Theodoridis [mailto:[EMAIL PROTECTED]] 
> >>Sent: Saturday, January 25, 2003 4:40 AM
> >>To: Struts Struts
> >>Subject: Struts and OJB
> >>
> >>
> >>Hi all.
> >>
> >>Has anyone use Struts and OJB?
> >>
> >>
> >
> >Absolutely!
> >
> >  
> >
> >>I want to use an OR mapping framework an i am searching for 
> >>the right tool
> >>
> >>
> >
> >OJB is a great tool.  While the docs could be improved (most OSS has
> >this problem), setup/configuration is quite easy.
> >
> >  
> >
> My beef with ojb is the required "maintenance" tables put in your db.
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread Joel Wickard
James Mitchell wrote:


Yes, I agree (almost).you can (so I've heard) change it so that
those required internal tables are in another database, but for now I
don't really mind.

 

Yeah, I just fixed the problem by using a different o/r mapping tool.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need input about user authentication with user self registration strategies

2003-01-25 Thread John Cavacas
Hello everyone,

I'm currently in the planning/proof of concept stages for my second Struts
based web app. My first Struts app was pretty small and simple, so I'm still
new at this.

I spent most of last night looking through the mailing list archives and
searching on the web to find out about the best strategies regarding user
authentication in regards to Struts and J2EE (Servlets/JSPs) are concerned.
I think I have a pretty good understanding of all of the alternatives out
there. From CMA to Filters, to checking for a user session in a BaseAction
class, and some other alternatives. My problem is that I'm not sure what is
the best way to deal with a specific requirement that I have in my
application. First the requirement. My application is a simple news/article
posting web app. I need to be able to let a user (based on permissions) to
edit, delete or archive, an article from the main page, or the article view
without going into the "admin" area. Picture a news item with buttons for
edit, delete, or archive and possibly other administrative functions in the
future. This would use the same JSP as other users would view, but of course
these other users would not be able to see the admin functions. The
application has its own user database table, and also a roles table from
which the permissions are based. These are Admin, editor, contributor,
registered.

My preferred method to do this would be to use CMA with form based
authentication, since I could use it even at the action level. I could use
the Servlet API to detect user roles. However, I also have the requirement
that users can self register and maintain a profile. Tomcat's JDBCRealms
looks interesting, but how standard is that feature in other containers? It
also looks like the database tables required for JDBCRealms have to have a
certain layout which my current database layout doesn't match. I would also
like to keep the application as portable as possible across containers.

Using a Servlet filter also seems interesting, but it leaves the problem of
having to decide at the JSP level how to show the "admin" actions. The same
issue is true with using a BaseAction approach. 

I would really like to avoid a messy set of if/elses in the JSP to have this
done. I've even thought that maybe I should create a custom tag for this.
But I figured I would shoot these questions out to the list before I decided
to go down that path. Sticking a user object into a session object is the
usual way which I have solved this problem in the past using things like PHP
and ASP (ack!) and of course the same thing could be done here too. But I
would really like to use a better approach for this application and remove
any application logic out of the View. 

Any suggestions or ideas that I should consider?

Thanks for reading, I know it's long.

John



This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using keys for template titles

2003-01-25 Thread Ramtin Khosravi
Hi,

I use struts-template taglib (not Tiles) and want to select the title of my
JSPs from the application resources. In other words, I want to use the value
of  as the key to look up a title string (like
the way we do it by ).

How can I do it? Or is there some other way to pass a parameter to the
template JSP?

Thanks,
--Ramtin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[OT] On the fly i18n for any web site.

2003-01-25 Thread James Mitchell
Before using this service, make sure that you don't mind using the
default translation.

http://asksnoop.com/shizzolator.php?url=http://jakarta.apache.org/struts




--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
- Mark Twain (1835-1910)







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Why is the reset method called when I submit the form?

2003-01-25 Thread James Turner
> From: Loren Hall [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, January 25, 2003 5:02 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: Why is the reset method called when I submit the form?
> 
> 
> no, i'm not chaining my actions . . .  I like to do my 
> actions one at a time.
> 
> If nobody knows right off, then this is a non-issue for me, 
> i've worked around it.  and my next step is 1.1, not solving 
> it.  It is however perplexing, the code executing doesn't 
> even appear to be mine.
> 
> Loren

One reason reset is called is because of the notorious checkbox problem.
If you have a persistent form (something in session scope, for example),
and submit a form with the checkbox off where it was on before, the
checkbox would never be cleared if reset was not called.

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and OJB

2003-01-25 Thread Brandon Goodin
I have used OJB in two project. Be sure you know the performance impact. It
is a great tool. But, it will take you a while to learn how to use it
"effectively". The caching is all or none (you can spin your own) and the
fine grained control that you have over object materialization is something
you need to understand. I would say for you to make sure you understand how
to use the Proxy. If you don't you will be creating massive amounts of
objects and slow your performance drastically. IMHO, I don't think that OJB
is the answer for all projects. The reduction that you find in your own code
as compared to the time it takes to become completely familiar with an
evolving code base is pretty dramatic. Like mentioned earlier. I think that
after a 1.0 final version is released then the community will have more time
to update the docs and write some books. When that happens I am going to
take another look at it. Until then... I just can't keep up and I don't
think that it is performant for the "ignorant" (i.e. me :-)) All I can say
is if you are going to learn OJB right then spend some time scouring the
scads of source and see what is truly going on. "Use the source Luke!" :-)
Personally, I just don't have the time for that and I am more productive
using a tweak of the Sun recommended DAO Pattern.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Joel Wickard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 7:00 AM
To: Struts Users Mailing List
Subject: Re: Struts and OJB


James Mitchell wrote:

>Yes, I agree (almost).you can (so I've heard) change it so that
>those required internal tables are in another database, but for now I
>don't really mind.
>
>
>
Yeah, I just fixed the problem by using a different o/r mapping tool.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread Dan Tran
I am investigating quite a few object mapping frameworks and JDO seems to be
my only choice to stick with.   Is it a good assumption since it is a
standard framework?

-Dan


- Original Message -
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 10:30 AM
Subject: RE: Struts and OJB


> I have used OJB in two project. Be sure you know the performance impact.
It
> is a great tool. But, it will take you a while to learn how to use it
> "effectively". The caching is all or none (you can spin your own) and the
> fine grained control that you have over object materialization is
something
> you need to understand. I would say for you to make sure you understand
how
> to use the Proxy. If you don't you will be creating massive amounts of
> objects and slow your performance drastically. IMHO, I don't think that
OJB
> is the answer for all projects. The reduction that you find in your own
code
> as compared to the time it takes to become completely familiar with an
> evolving code base is pretty dramatic. Like mentioned earlier. I think
that
> after a 1.0 final version is released then the community will have more
time
> to update the docs and write some books. When that happens I am going to
> take another look at it. Until then... I just can't keep up and I don't
> think that it is performant for the "ignorant" (i.e. me :-)) All I can say
> is if you are going to learn OJB right then spend some time scouring the
> scads of source and see what is truly going on. "Use the source Luke!" :-)
> Personally, I just don't have the time for that and I am more productive
> using a tweak of the Sun recommended DAO Pattern.
>
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
>
>
> -Original Message-
> From: Joel Wickard [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 25, 2003 7:00 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and OJB
>
>
> James Mitchell wrote:
>
> >Yes, I agree (almost).you can (so I've heard) change it so that
> >those required internal tables are in another database, but for now I
> >don't really mind.
> >
> >
> >
> Yeah, I just fixed the problem by using a different o/r mapping tool.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts and OJB

2003-01-25 Thread V. Cekvenich
I think it is heavyweight, as is Castor (part of J2EE.jar), Hibernate 
(very popular) and not fully SQL based.

Light weight and SQL based (therefore fast) are in my personal order of 
preference: Disconnected RowSet (read up on google, past messages), 
Commons-SQL, IBatis, Scafolding.

htt, .V


Dan Tran wrote:
I am investigating quite a few object mapping frameworks and JDO seems to be
my only choice to stick with.   Is it a good assumption since it is a
standard framework?

-Dan


- Original Message -
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 10:30 AM
Subject: RE: Struts and OJB




I have used OJB in two project. Be sure you know the performance impact.


It


is a great tool. But, it will take you a while to learn how to use it
"effectively". The caching is all or none (you can spin your own) and the
fine grained control that you have over object materialization is


something


you need to understand. I would say for you to make sure you understand


how


to use the Proxy. If you don't you will be creating massive amounts of
objects and slow your performance drastically. IMHO, I don't think that


OJB


is the answer for all projects. The reduction that you find in your own


code


as compared to the time it takes to become completely familiar with an
evolving code base is pretty dramatic. Like mentioned earlier. I think


that


after a 1.0 final version is released then the community will have more


time


to update the docs and write some books. When that happens I am going to
take another look at it. Until then... I just can't keep up and I don't
think that it is performant for the "ignorant" (i.e. me :-)) All I can say
is if you are going to learn OJB right then spend some time scouring the
scads of source and see what is truly going on. "Use the source Luke!" :-)
Personally, I just don't have the time for that and I am more productive
using a tweak of the Sun recommended DAO Pattern.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Joel Wickard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 7:00 AM
To: Struts Users Mailing List
Subject: Re: Struts and OJB


James Mitchell wrote:



Yes, I agree (almost).you can (so I've heard) change it so that
those required internal tables are in another database, but for now I
don't really mind.





Yeah, I just fixed the problem by using a different o/r mapping tool.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:





For additional commands, e-mail:








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Need input about user authentication with user self registration strategies

2003-01-25 Thread V. Cekvenich
inline

John Cavacas wrote:

Hello everyone,

I'm currently in the planning/proof of concept stages for my second Struts
based web app. My first Struts app was pretty small and simple, so I'm still
new at this.

I spent most of last night looking through the mailing list archives and
searching on the web to find out about the best strategies regarding user
authentication in regards to Struts and J2EE (Servlets/JSPs) are concerned.
I think I have a pretty good understanding of all of the alternatives out
there. From CMA to Filters, to checking for a user session in a BaseAction
class, and some other alternatives. My problem is that I'm not sure what is
the best way to deal with a specific requirement that I have in my
application. First the requirement. My application is a simple news/article
posting web app. I need to be able to let a user (based on permissions) to
edit, delete or archive, an article from the main page, or the article view
without going into the "admin" area. Picture a news item with buttons for
edit, delete, or archive and possibly other administrative functions in the
future. This would use the same JSP as other users would view, but of course
these other users would not be able to see the admin functions. The
application has its own user database table, and also a roles table from
which the permissions are based. These are Admin, editor, contributor,
registered.

My preferred method to do this would be to use CMA with form based
authentication, since I could use it even at the action level. I could use
the Servlet API to detect user roles. However, I also have the requirement
that users can self register and maintain a profile. Tomcat's JDBCRealms
looks interesting, but how standard is that feature in other containers? It
also looks like the database tables required for JDBCRealms have to have a
certain layout which my current database layout doesn't match. 

Create a view that does.

I would also

like to keep the application as portable as possible across containers.



It has to be, with any J2EE based container, which I think is all of them.


Using a Servlet filter also seems interesting, but it leaves the problem of
having to decide at the JSP level how to show the "admin" actions. The same
issue is true with using a BaseAction approach. 

Not standard. Look at action - mapping, which uses CMA.
Like you said, just do is_user_in role in action, KISS and then extend.
hth,
.V



I would really like to avoid a messy set of if/elses in the JSP to have this
done. I've even thought that maybe I should create a custom tag for this.
But I figured I would shoot these questions out to the list before I decided
to go down that path. Sticking a user object into a session object is the
usual way which I have solved this problem in the past using things like PHP
and ASP (ack!) and of course the same thing could be done here too. But I
would really like to use a better approach for this application and remove
any application logic out of the View. 

Any suggestions or ideas that I should consider?

Thanks for reading, I know it's long.

John



This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and OJB

2003-01-25 Thread Brandon Goodin
With OJB the JDO implementation is Abstracted over the top of their base
Persistence classes. So it is an abstraction of an abstraction. Personally,
I never used the JDO. So, I would not be the best to inform you about OJB's
implementation of JDO.

All of the prior information I gave you is still valid. I know that the OJB
community is pretty honest about the performance trade-off when you use
OJB's ODMG or JDO implementation. You should probably move this thread over
to them and ask them.

Personally, I get a bit nervous about the overhead that can be created using
a system like this. Especially when it comes to caching. Say you load a
Category Object and that Category contains 500 items and those 500 items
contain on the average of 20 bullet points. If you are not careful about how
you are coding it you will have 500 Category objects cached in memory along
with all of it's nested objects. That is a lot of overhead to be storing in
a cache. Like I said earlier, the caching is all or none.

When loading objects you may find that if you don't eliminate the cache you
wind up with old data in other parts of your app. For example you have a
list of users. When you view that list you initially see all of your users.
But, if you add a new user and your struts app then forwards back to that
user list, without wiping out the WHOLE OJB cache, then your new user will
not show up in the list. Rather, OJB will retrieve the cached version. I
wound up turning off the cache. But then my performance went in the toilet.
DISCLAIMER: I stopped using OJB at 0.9.7 so they may have added better
caching.

The base of OJB is the Persistence classes which I would reccomend you get
familiar with in order to understand the base nature of OJB.The JDO
implementation uses those classes to implement JDO.

I would start inquiring at the OJB mailing list to get more accurate and
updated information.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 12:57 PM
To: Struts Users Mailing List
Subject: Re: Struts and OJB


I am investigating quite a few object mapping frameworks and JDO seems to be
my only choice to stick with.   Is it a good assumption since it is a
standard framework?

-Dan


- Original Message -
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 10:30 AM
Subject: RE: Struts and OJB


> I have used OJB in two project. Be sure you know the performance impact.
It
> is a great tool. But, it will take you a while to learn how to use it
> "effectively". The caching is all or none (you can spin your own) and the
> fine grained control that you have over object materialization is
something
> you need to understand. I would say for you to make sure you understand
how
> to use the Proxy. If you don't you will be creating massive amounts of
> objects and slow your performance drastically. IMHO, I don't think that
OJB
> is the answer for all projects. The reduction that you find in your own
code
> as compared to the time it takes to become completely familiar with an
> evolving code base is pretty dramatic. Like mentioned earlier. I think
that
> after a 1.0 final version is released then the community will have more
time
> to update the docs and write some books. When that happens I am going to
> take another look at it. Until then... I just can't keep up and I don't
> think that it is performant for the "ignorant" (i.e. me :-)) All I can say
> is if you are going to learn OJB right then spend some time scouring the
> scads of source and see what is truly going on. "Use the source Luke!" :-)
> Personally, I just don't have the time for that and I am more productive
> using a tweak of the Sun recommended DAO Pattern.
>
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
>
>
> -Original Message-
> From: Joel Wickard [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 25, 2003 7:00 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and OJB
>
>
> James Mitchell wrote:
>
> >Yes, I agree (almost).you can (so I've heard) change it so that
> >those required internal tables are in another database, but for now I
> >don't really mind.
> >
> >
> >
> Yeah, I just fixed the problem by using a different o/r mapping tool.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Need input about user authentication with user self registration strategies

2003-01-25 Thread John Cavacas
Thanks for your response.
Please see inline

>Create a view that does.

Views are an interesting possibility. However, something like MySQL for
example, doesn't support views. If I was controlling the access to this
functionality in the application then this wouldn't be a problem as I would
be able to "fake" a view in the case someone is running MySQL.

>>I would also
>> like to keep the application as portable as possible across containers.
>> 

>It has to be, with any J2EE based container, which I think is all of them.

>From what I have gathered, not every container supports the JDBC Realm
concept. Resin for example has this sort of concept and it seems to be a bit
more flexible then Tomcat's because you can specify an actual query in the
xml configuration file. This sort of functionality is pretty much non
standard, with the exception of what is in the Servlet specification which
all containers use. However, storing user information and roles in an XML
file is most often not appropriate. I know that other containers, WebSphere
for example, has an interface which you can create for custom authentication
sources.


>Not standard. Look at action - mapping, which uses CMA.
>Like you said, just do is_user_in role in action, KISS and then extend.
>hth,
>.V

Agreed. This is what I would like to do. Having actions mapped to security
roles. I'm just not sure that it will be possible and remain portable.

Thanks again,
John




This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Archive searching [was: Commons source for Struts 1.1b3]

2003-01-25 Thread Eric Rizzo
James Mitchell wrote:

Try this one (click the first link):

http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_
apache_org&restrict=&exclude=&words=commons+libraries


Hah, the key is always in picking the right search terms. I was trying 
various combos of "beanutils" "commons" and "source" without much luck.
Thanks for the pointer, even though that answer doesn't help me much - as 
I said, commons nightly build archives are not old enough.

Still, does anyone know why the Apache-hosted archive 
(archives.apache.org) does not allow text searching of the Struts list? 
mail-archive.com only goes back so far and, IMHO, their interface sucks.

	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Commons source for Struts 1.1b3

2003-01-25 Thread Eric Rizzo
Craig R. McClanahan wrote:

If you want the ***exact*** commons sources that were included in Struts
1.1b3, there is a way to get those too ... but it requires that you use
anonymous CVS access to the source repositories, as outlined at:

  http://jakarta.apache.org/site/cvsindex.html

If you select the commons sources for the relevant packages with tag
"STRUTS_1_1_B3" you will get ***exactly*** the sources that went in to the
1.1b3 build of Struts.


OK , *that* was the detail I was looking for. Thanks! As I said 
originally, I had already gone to the commons nightly build archive 
without luck.

Thanks again,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


smime.p7s
Description: S/MIME Cryptographic Signature


Problem with Struts and NULL EJBs

2003-01-25 Thread Luiz-Otavio Zorzella
I have the following statement in a JSP:



Where a "person" is an EJB. When the person does not belong to any 
group, there is an Exception thrown, which I'd like to avoid so as to 
not have to put conditionals everywhere where the Bean might be null. I 
tried the 'ignore="true"' attribute of "bean:write", but there is still 
an Exception being thrown.

Is there a way to really have the and/or other struts tags be immune to 
these problems?

Thanks,

Zorzella


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Struts and OJB

2003-01-25 Thread Steve Gass
On Saturday 25 January 2003 15:24, Brandon Goodin wrote:
> Say you load a Category Object and that Category contains
> 500 items and those 500 items contain on the average of 20 bullet
> points. If you are not careful about how you are coding it you will
> have 500 Category objects cached in memory along with all of it's
> nested objects. That is a lot of overhead to be storing in a cache.

I'm curious about this sort of thing. In the case of objects which are 
accessed frequently, but seldom change, is 10,000 really all that many? 
I started up the default install of Resin in jProfiler and clicked 
through some of the docs and examples. By the time I got bored there 
were over 250,000 objects in memory, and forcing garbage collection 
didn't have any effect.  Resin was using about 72 megs of RAM.

Assuming that sufficient RAM is available, at what point does storing 
objects in memory become less efficient than creating them each time 
they're needed? Thanks.

Steve

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and OJB

2003-01-25 Thread Brandon Goodin
I think the key is "accessed frequently and seldom changed". I think it is
alright to jam a bunch of objects into the cache as long as it is helpful to
do so. As long as you got the memory pile it on. I think what I was pointing
out had more to do with the lack of control over the cache that OJB
provides. 500 objects is actually not a big deal. But, if they are seldom
accessed it's a waste of memory. OJB is an all or none cache. You can't
decide about caching one object set from another. It caches everything or
nothing. This produces problems for administrative areas where you want
fresh database calls to happen. You can clear the cache in OJB. But, it
winds up clearing EVERYTHING and now you have to work the processor to get
your object cache back up. Kinda defeats the point of caching... don't it?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Steve Gass [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 5:06 PM
To: Struts Users Mailing List
Subject: Re: Struts and OJB


On Saturday 25 January 2003 15:24, Brandon Goodin wrote:
> Say you load a Category Object and that Category contains
> 500 items and those 500 items contain on the average of 20 bullet
> points. If you are not careful about how you are coding it you will
> have 500 Category objects cached in memory along with all of it's
> nested objects. That is a lot of overhead to be storing in a cache.

I'm curious about this sort of thing. In the case of objects which are
accessed frequently, but seldom change, is 10,000 really all that many?
I started up the default install of Resin in jProfiler and clicked
through some of the docs and examples. By the time I got bored there
were over 250,000 objects in memory, and forcing garbage collection
didn't have any effect.  Resin was using about 72 megs of RAM.

Assuming that sufficient RAM is available, at what point does storing
objects in memory become less efficient than creating them each time
they're needed? Thanks.

Steve

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logic:iterate question

2003-01-25 Thread Garth Patil
my previous question regarding use of logic:iterate with a HashMap can be 
cleared up by using the 'name' attribute rather than the 'collection' 
attribute in the tag.
now that i figured that out, i'm having some trouble nesting an iterate. now 
that i have the example below actually able to render, the nested 
logic:iterate only generates one result (although there are many in the 
Collection) before moving on to the next result in the outer iterator. any 
ideas how to fix this?
thanks /gp



   

   

   

   

   

   





From: "Garth Patil" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: logic:iterate question
Date: Sat, 25 Jan 2003 05:59:56 +

i have a HashMap stored in the session (as 'events') i'm trying to use the 
logic:iterate tag to iterate through it in my jsp in a nested fashion. the 
HashMap has a bean as the key and a collection of beans as its value. when 
i try to run the page, i get an error: "Cannot create iterator for this 
collection". any ideas?
my jsp looks like this.



   

   

   

   

   

   



_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



re: Presentation controller code, flags...In the

2003-01-25 Thread Gene Campbell
David,

It's OK in a functional (can it be done) sense.  You
seem to agree in a design sense.  What if you
reimplemented the presentation in such as way that
that presentation control field is no longer
necessary?  The ActionForm will still contain the
field, unless refactored too - bad, sort of.

I don't think we're quite ready for Tiles yet in our 3
year old app.

thanks - gene


From:   "David Graham" <[EMAIL PROTECTED]>

It's perfectly ok for your ActionForm to contain an
event or action 
property 
to determine what a form should do.  The same form
should be used for 
add 
and update and that's one way to accomplish it.  As
far as ui changes 
you 
should look at using Tiles to separate the pieces into
reusable chunks.

David






>From: Gene Campbell <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Presentation controller code, flags...In the
Action or JSPs?
>Date: Fri, 24 Jan 2003 18:26:55 -0800 (PST)
>
>Clearly, the application logic control code goes in
>the Action classes, or classes available to Action
>classes.  And, the application data goes in the
>ActionForm.
>
>What about code and data that exists solely to drive
>the presentation?  For example, consider a field
named
>event.  This field holds various values to control
the
>flow of the presentation.  Should this field be part
>of the ActionForm?  Or, because it isn't business
>data, should it be handled outside of the ActionForm,
>through the request/session objects?
>
>That one is sort of picky.  But, what about a field
>like showDetails?  When it is one value one UI
>experience happens, and when another value, another
>experience happens.  Should this field be in the
>ActionForm, assuming control logic for the field is
>coded in the jsp?  Or should it be in the
>request/session?
>
>Furthermore, what about the control logic to choose
>the UI experience above?  Should that go in the JSP
>turning on portions of jsp markup?  Or, should it go
>in the Action, calling different ActionForwards based
>on value?
>
>The second method (Action-ActionForwards) seem like
>the more MVC way to work, but it might end up it a
>bunch of jsps to maintain, or some nasty jsp includes
>(i.e. which jsp gets the , which gets the
>.)  Combining JSP blocks and switching them on
>and off with control structures reduces the multiple
>jsp problem, but might not be the best design for
some
>reason.
>
>Thoughts?
>
>thanks - gene

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT]Good News

2003-01-25 Thread Peter A. Pilgrim
I was on a Struts 1.0 project at Deutsche Bank last year and now
I am on a new Struts 1.1 project for different clientele.
--
Peter Pilgrim
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSP cannot call an action in its own module

2003-01-25 Thread Milo Hyson
I've scanned the list here and found that many people seem to be having
this same problem, so I'm going to add to it. I have a simple
application with two modules, declared in the web.xml as follows:


 config
 /WEB-INF/struts-config.xml



 config/trackers
 /WEB-INF/trackers/struts-config.xml


The sub-module config file (/WEB-INF/trackers/struts-config.xml)
contains the following action mapping:


type="com.cyberlifelabs.issuetracker.trackers.CreateAction"
name="createTrackerForm" input="/create.jsp" validate="false">
 
contextRelative="true"/>


I have a JSP page called /trackers/create.jsp with the following tag:



Whenever I try to access the JSP, I get the following error:

[ServletException in:create-body.jsp] Cannot retrieve mapping for action
/create'

If I copy the action mapping into the default module
(/WEB-INF/struts-config.xml), it works fine. No matter what value I
enter into the html:form tag (including those beginning with trackers/),
it always seems to look in the default module. I haven't looked at the
source, but if I had to guess I'd say the JSP engine isn't aware of 
sub-modules.

--
Milo Hyson
CyberLife Labs



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: JSP cannot call an action in its own module

2003-01-25 Thread David M. Karr
> "Milo" == Milo Hyson <[EMAIL PROTECTED]> writes:

Milo> I've scanned the list here and found that many people seem to be having
Milo> this same problem, so I'm going to add to it. I have a simple
Milo> application with two modules, declared in the web.xml as follows:

Milo> If I copy the action mapping into the default module
Milo> (/WEB-INF/struts-config.xml), it works fine. No matter what value I
Milo> enter into the html:form tag (including those beginning with trackers/),
Milo> it always seems to look in the default module. I haven't looked at the
Milo> source, but if I had to guess I'd say the JSP engine isn't aware of 
sub-modules.

if you can't find any answer here, please submit a detailed bug report about
this.  It would be best if you could provide an isolated test case and put the
entire build of it in a zip file, and attach it as an attachment to the bug
report.

If you want to do more analysis on this, try to execute your test case in a
debugger and step through your action code, and the Struts framework code, to
see if you can see where it is going wrong.  If you see anything in that,
detail that in your bug report.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




--
To unsubscribe, e-mail:   
For additional commands, e-mail: