Re: Tiles + WebWork

2006-02-16 Thread Matt Raible
Here's a TilesListener that works for me.  It could probably use some
polishing and a unit test, but it works for me.

http://issues.apache.org/bugzilla/attachment.cgi?id=17721

>From bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38255

Matt

On 2/16/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> 
> Matt,
>
> Just as an addendum, I have plans to eventually implement a listener
> to handle the stuff being done by TilesServlet now.  Unfortunately,
> It's a pretty good ways down the list, which you can see here:
> http://wiki.apache.org/struts/StandaloneTiles.  I'm hoping very soon
> to actually have some time to start working this list.
>
> Greg
> 
>
> Sorry, unsubscribed from the list - but saw your message via a Nabble
> Alert.  Where can I checkout the Standalone Tiles module?  The one I
> saw off of http://struts.apache.org/struts-tiles has
> org.apache.struts.tiles and the tiles-core.jar I found is
> org.apache.tiles.  I'd like to try and create the listener.
>
> Thanks,
>
> Matt
>
>
> On 2/16/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> > Nevermind, I figured it out.
> >
> > http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with
> >
> > Thanks,
> >
> > Matt
> >
> > On 2/15/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > I'd like to use Tiles with WebWork for reasons outlined on my blog:
> > >
> > > http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
> > >
> > > I'm able to get the Tiles tag library to work, because it's
> > > essentially JSPs loading other JSPs at that point. Creating a
> > > tiles-config.xml file is a much better solution IMO - then you don't
> > > need to create JSP-loading JSPs.
> > >
> > > I tried to get WebWork + Tiles working (using a nightly build), but no
> > > dice. The TilesFilter doesn't seem to load the definitions, so I tried
> > > using both the TilesServlet and the TilesFilter. TilesFilter is mapped
> > > to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
> > > guessing the problem is WebWork communicating the name of the tiles
> > > definition to the filter.
> > >
> > > Is it possible to integrate these two frameworks?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles + WebWork

2006-02-16 Thread Matt Raible
Nevermind, I figured it out.

http://raibledesigns.com/page/rd?anchor=how_to_use_tiles_with

Thanks,

Matt

On 2/15/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> I'd like to use Tiles with WebWork for reasons outlined on my blog:
>
> http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java
>
> I'm able to get the Tiles tag library to work, because it's
> essentially JSPs loading other JSPs at that point. Creating a
> tiles-config.xml file is a much better solution IMO - then you don't
> need to create JSP-loading JSPs.
>
> I tried to get WebWork + Tiles working (using a nightly build), but no
> dice. The TilesFilter doesn't seem to load the definitions, so I tried
> using both the TilesServlet and the TilesFilter. TilesFilter is mapped
> to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
> guessing the problem is WebWork communicating the name of the tiles
> definition to the filter.
>
> Is it possible to integrate these two frameworks?
>
> Thanks,
>
> Matt
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tiles + WebWork

2006-02-15 Thread Matt Raible
I'd like to use Tiles with WebWork for reasons outlined on my blog:

http://raibledesigns.com/page/rd?entry=large_sites_powered_by_java

I'm able to get the Tiles tag library to work, because it's
essentially JSPs loading other JSPs at that point. Creating a
tiles-config.xml file is a much better solution IMO - then you don't
need to create JSP-loading JSPs.

I tried to get WebWork + Tiles working (using a nightly build), but no
dice. The TilesFilter doesn't seem to load the definitions, so I tried
using both the TilesServlet and the TilesFilter. TilesFilter is mapped
to *.tile and all my view names in xwork.xml map to viewname.tile. I'm
guessing the problem is WebWork communicating the name of the tiles
definition to the filter.

Is it possible to integrate these two frameworks?

Thanks,

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] What do you use action forms for?

2005-05-11 Thread Matt Raible
#1 - so I generate them from my POJOs using XDoclet.  All the other 
frameworks I use (JSF, Spring, Tapestry and WebWork) allow me to use my 
POJOs directly.

Matt
On May 11, 2005, at 4:02 PM, Michael Jouravlev wrote:
Turns out, that my way of using action forms differs from many other
Struts users' habits. So, I am wondering how do you use action forms.
I could not find the same poll in mailing list archives, so I am
starting this one.
You can answer here in the thread, or in the poll form, which I
created on my site: http://www.superinterface.com/projects.htm But
don't answer in both places ;) I wish wiki had a way to do polls.
What is your preferred way to use action forms?
#1 Prefer not to use action forms at all
#2 For input data only (usually collected from HTML form)
#3 For output only (to be used in JSP)
#4 Same form for input and output
#5 One form for input, another for output
#6 Other
Thanks,
   Michael.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: (OT) Acegi & Struts

2005-05-11 Thread Matt Raible
On May 11, 2005, at 3:26 AM, Marco Mistroni wrote:
Hello all,
Sorry for partially off-topic question, but I am looking
For some feedback..
Is anyone using (or has used, or plan to use) acegi security
system(http://acegisecurity.sourceforge.net/)
 with Struts?
I'm using Acegi as part of AppFuse - of which Struts is the default web 
framework.  Here is a howto for converting from CMA to Acegi Security.

http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAuthentication
I really like Acegi b/c it has many additional features that other 
security systems don't have.  For example, the ability to get the 
user's information at any layer in your application (via a ThreadLocal) 
and the ability to easily control method invocations based on roles.  
It's ACL feature is pretty nice too.

Matt
Any feedback? Any recommendations for other security 'systems' to use
with struts and spring?
Thanx in advance and regards
marco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is struts more performant than JSF

2005-05-10 Thread Matt Raible
On May 10, 2005, at 4:48 PM, Jesse Alexander (KBSA 21) wrote:
Hi
I think this is not an easy question. I got the impression that Struts 
is needing more
JSP-tags to represent a page which seems to slow it down a bit. JSF 
uses more memory
(if you use server-side state) or more bandwidth (if you use 
client-side state) but
somehow processing seems quite optimized. It will be interesting 
comparing
a) Struts vs JSF
b) different state-strategies (client, server, oracle's mixture,...) 
within JSF

For this we would need an application implemented in both Struts and 
JSF, and then
let a server feel the heat of a stress-testing session ;-)
You could hammer on AppFuse and Equinox - they both have Struts and JSF 
versions.

http://demo.appfuse.org/appfuse (Struts 1.2.4)
http://demo.appfuse.org/appfuse-jsf (MyFaces 1.0.7)
http://demo.raibledesigns.com/equinox-struts (same versions as above)
http://demo.raibledesigns.com/equinox-jsf
I haven't seen any performance differences in my experience - but I 
also haven't stress tested either of these applications under 
super-heavy load.  I also haven't had any out-of-memory issues when 
using them in production - so they should make good test cases.

Matt
hth
Alexander
-Original Message-
From: Yan Hu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:50 PM
To: Struts Users Mailing List
Subject: Is struts more performant than JSF
Hi:
I have been playing with JSF lately.  I really like it since it is 
very intuitive.  But as I
understand it, JSF keeps a component tree for each page with JSF 
widgets in it on the server. So
it is heavy weight compared with struts. Could I safely say that 
struts-based apps are a bit more
performant than JSF ones? someone please shed some light on it...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Indexed Properties with Sets

2005-05-08 Thread Matt Raible
I've had much success doing indexed properties with a java.util.List, 
but no luck with figuring out how to do it with a java.util.Set.  Is it 
possible?  With a list, you can use the setProperty(index i, ActionForm 
form) signature, but I haven't been able to figure out how to do this 
with a Set.  Is anyone doing this?

As an alternative, I suppose I could modify my Form -> POJO conversion 
to detect Sets and properly convert List to Set.

Thanks,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hosting cost: Java/Struts apps -versus- PHP apps...help!

2005-05-04 Thread Matt Raible
I believe that www.kgbinternet.com has prices that are competitive with 
PHP hosting.

Their $20 (CAD) is $16 US.
http://www.kgbinternet.com/privatejvm.html
Matt
On May 4, 2005, at 6:43 AM, O. Oke wrote:
Please direct me on how to deal with the comparative
high cost of hosting Java applications.
DETAIL
==
My potential clients/customers already have PHP server
as part of their hosting package.  With Tomcat, it is
a different story; the hosting companies of most of
these potential clients, do not have have Tomcat or
any other server for Java application.  The few
companies that do host Java application, charge extra
for this.
1.  Despite the higher hosting cost of Java
applications, how can I convince a client to go for my
Struts application, if the client has a choice between
my Struts application and a PHP application that does
the same thing?
2.  How do those of you that work freelance deal with
this problem?
3.  Do you know of any hosting company that provides
hosting for the Java application only?
This reminds me of the battle between Betamax
technology and VHS technology.
Thank you.
O'Dele Oke.
Send instant messages to your online friends 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts menu PermissionsAdapter question

2005-05-03 Thread Matt Raible
This should be possible - you just need to implement the 
PermissionsAdapter interface.

http://struts-menu.sourceforge.net/security.html
Matt
On May 3, 2005, at 10:00 AM, Vinicius Caldeira Carvalho wrote:
Hello there! Is it possible to use PermissionAdpter to check a table 
of given roles instead of "hard coding" 'em on a xml? If so, any 
examples?

Regards
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] looking for salary surveys

2005-04-20 Thread Matt Raible
In Denver, the full-time rates vary from around $60K year to $100K.  
It's pretty tough to find the $100/year jobs, and most average in the 
80s-90s for senior developers.  For Contractors, the sky's the limit, 
but most range from $45/hour (junior developers) to $90/hour.  Again, 
senior developers get in the 80s (per hour).  So I ask, why would you 
want to be a full-time employee when you could make twice as much as a 
contractor. ;-)

Just kidding, I know there's lots of reasons to be a full-time employee 
over contracting.

Matt
On Apr 20, 2005, at 9:20 AM, [EMAIL PROTECTED] wrote:
Sure.
(Ack, sorry, mark, for replying directly to you.)
Five years professional programming (at 34 -- had two other short 
careers
as a journalist and graphic artist/designer), *very* strong 
Swing/Threads,
good Struts/JSTL, good JDBC/SQL, decent EJB, JMS, strong XML, strong 
HTTP,
good Linux, novice C++, exceptional graphic design and writing skills 
(if I
do say so myself) in Atlanta, GA.

Maybe that was more than you wanted. ;)
Thanks for any and all opinions! I don't want to short-change myself!
Erik
Original Message:
-
From: Mark Benussi [EMAIL PROTECTED]
Date: Wed, 20 Apr 2005 17:02:01 +0100
To: user@struts.apache.org, [EMAIL PROTECTED]
Subject: RE: [OT] looking for salary surveys
Erik,
I think it would help if you started by telling readers where you live
(Country and Region). I assume my current rates, paid in Albanian Leke 
will
be of little use to you.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 April 2005 16:55
To: user@struts.apache.org
Subject: [OT] looking for salary surveys
I am wrapping up a project and have put myself on the market. 
Recruiters
are contacting me, and I am trying to refine my rate schedule, as I 
haven't
been on the market in more than two years. I would appreciate it if 
any of
you have any good references (salary surveys in particular) concerning
salaries/hourly rates that I could use to generate a baseline.

Thanks,
Erik

mail2web - Check your email from the web at
http://mail2web.com/ .

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

mail2web - Check your email from the web at
http://mail2web.com/ .

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to create a web flow with Struts

2005-04-09 Thread Matt Raible
Dakota Jack wrote:
I will answer your question after clarifying BaTien's failure to
respond to your question and his shameless promotion of another
product through subterfuge.  He is creating confusion.  That is the
whole point of Struts-Shale.
Please be forewarned that Struts-Shale is not Struts.  Struts-Shale is
an entirely different product, something like an incipient version of
Tapestry, which has nothing in common with Struts except it too is a
framework.  BaTien is not being completely fair or honest with you in
his response.  He is, in effect, trying to get you to seek a solution
that has nothing to do with your initial inquiry, in order to promote
his love for JSF, which is antithetical to Struts as we know it.
The "we" BaTien talks about, in my opinion, is a small group of
zealots trying to save a fairly old framework idea, JSF, from the
trash heap.
Now -- YOUR QUESTION.
 

While you may be correct in BaTien's intentions, he does mention a 
worthwhile project: Spring Web Flow.  This is a web flow (wizard) 
framework that was developed on top of Struts initially and can very 
much be used with Struts. 

http://forum.springframework.org/viewtopic.php?t=4604
There is a sample application (BirthDate) in Spring's CVS and it will be 
a part of a PR2 release on Sunday night.  I plan on looking at Spring 
Web Flow this weekend and integrating into a Struts project next week.

Matt
I would need some clarification of your question to answer it.  What
do you mean by "the web flow will take the user to all the
applications necessary to fulfill
the service"?  User navigation information is very easy to save to a database.  

Jack

On Apr 9, 2005 8:43 AM, Duong BaTien <[EMAIL PROTECTED]> wrote:
 

Néstor Boscán wrote:
   

Hi
I have a new project were I have to create an application that is a web flow
of multiple standalone applications. Basically the user picks a service and
the web flow will take the user to all the applications necessary to fulfill
the service. We want to be able to save in a database the user navigation
information. Has anybody done something like this with struts?
Regards,
Néstor Boscán

 

I have not done this. But this is the direction we are heading to.
Craig, the inventor of Struts Commons-Chain and Struts-Shale, has
proposed a DialogController and is trying to incorporate features of
Spring Web Flow.
I found it is very useful as a state engine. You may take a look at
Struts-Shale. I am also interest to what you are doing in this area.
BaTien
DBGROUPS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 2:12 PM, Anil wrote:
Matt Raible  raibledesigns.com> writes:
As far as drop-downs, I typically populate all (or most) of mine from 
a
database at application startup using a ServletListener.  I stuff 
these
into the application scope as Lists of LabelValue beans.  Then I code
up a ReloadAction that can call my Listener to reload them all.  I've
found this useful so I don't have to restart the app if data changes.

Matt

If I have edit screens for the drop-downs, I'll replace the List in
application scope after saving.
If the application scope has been used to store the drop-down values, 
how will
you handle the updates on data in application scope in clustered 
environment?
Is there any way to get rid of the problem?

I tend to do this mostly for drop-downs that are pretty much static, 
but might change once a week/month.  I'm probably over-engineering in 
most cases - but once the infrastructure is setup, it's easy to do.  In 
a clustered environment, I'd probably keep the same solution and take 
the hit on application startup.  Otherwise, you could do request-scoped 
lists when you load your forms - or use something like XmlHttpRequest 
(the DWR project is nice - http://drw.dev.java.net) to populate 
drop-downs when your pages loads.  Spring MVC is pretty slick in that 
their form controllers have a "referenceData()" method that's 
specifically designed to populate drop-downs and such.

Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 1:00 PM, Christine Huang wrote:
On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote:
The servlet container is *not* required to leave your load-on-startup
servlet loaded for the entire duration of the webapp's lifetime
(although, in practice, most containers do).  For example, the
container could unload a servlet that it sees isn't being used, or if
it has memory contention issues, or for whatever reason is desired.
Of course, if you're talking about ActionServlet, it will get reloaded
again on the next request, but that will cause your init() method to
run again -- wasting a whole bunch of time in many cases.
A ServletContextListener, on the other hand, guarantees that
contextInitialized() will get called at startup time (before any
requests have been processed), and contextDestroyed() will get called
at shutdown time (after the last request), no matter what happens in
between.
Craig
Craig,
Thanks for the information about ServletContextListener. But I wonder
what you do to reload updated data from database without restarting
using ServletContextListener. Have another action to call it reload()
like Matt Riable said?
Just in case you're interested in some code:
StartupListener: http://tinyurl.com/3wvk9
ReloadAction: http://tinyurl.com/6webx
Note that my StartupListener extends Spring's ContextLoaderListener.  
This is because servlet 2.3 containers do not guarantee listener order 
initialization.  If you're using Spring, I recommend this approach.  If 
not, you don't need to extend anything.

Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
As far as drop-downs, I typically populate all (or most) of mine from a  
database at application startup using a ServletListener.  I stuff these  
into the application scope as Lists of LabelValue beans.  Then I code  
up a ReloadAction that can call my Listener to reload them all.  I've  
found this useful so I don't have to restart the app if data changes.   
If I have edit screens for the drop-downs, I'll replace the List in  
application scope after saving.

Matt
On Apr 8, 2005, at 12:03 PM, Christine Huang wrote:
If those drop-down values are not dynamic, I would use a application
scope bean.
If it is dynamic, like credit card profiles in a dropdown list for a
particular user,  I will declare it as ActionForm property.
I would like to hear about other people's solution.
Christine
On Apr 8, 2005 12:18 PM, Anil <[EMAIL PROTECTED]> wrote:

Leon Rosenberg  anotheria.net> writes:
Sorry, but what exactly do you mean with meta information?
Leon
-Ursprüngliche Nachricht-
Von: news [mailto:news  sea.gmane.org] Im Auftrag von Anil
Gesendet: Freitag, 8. April 2005 02:34
An: user  struts.apache.org
Betreff: Meta Information in Action Form
Hi All,
Is it good approach to keep the meta information in action form ?
Thanks in advance.
Regards,
Anil.
 
-
To unsubscribe, e-mail: user-unsubscribe  struts.apache.org
For additional commands, e-mail: user-help  struts.apache.org



Hi Leon,
Thanks for the reply. Meta information is like drop-down values that  
are being
shown in a JSP page. In my case, this data should be fetched from  
database.
Before going to the JSP page, I have to make sure that the drop-down  
values
exist somewhere in scope. Here my question is, Is it ok to keep this  
kind of
information in Action Form?

Thanks,
Anil.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Obtaining size of java.util.Collection through Struts/JSTL

2005-04-05 Thread Matt Raible
Greg Pelly wrote:
What is the prefered way to obtain the size of elements that implement the
Collection interface, such as a Vector?  I would like something like:
 elements exist in
this Vector!
But since the method is called "size()" and not "getSize()," Struts can't
handle it.  Right now I am using scriptlets:
<%
 java.util.Vector v = request.getAttribute("myVector");
%>
...and later...
<%= v.size() %> elements exist in this Vector!
Any advice?
Greg
 


Source: http://raibledesigns.com/page/rd?anchor=struts_tip_o_the_day
Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts + Spring or Struts versus Spring

2005-03-30 Thread Matt Raible
On Mar 30, 2005, at 5:35 AM, Ted Husted wrote:
Spring is a large project with several components. The Spring Core
works just fine with Struts. You can use it to instantiate your
business objects from Struts Actions.
Aside from Spring Core, the Spring project also includes a Spring MVC
component. Spring MVC does overlap with Struts. Spring MVC is a fine
framework. Use whichever one works best for you.
Yes, Struts + Spring + hibernate (or iBATIS) is an excellent approach.

If you'd like to see some sample apps that use Struts + Spring + 
Hibernate (or iBATIS), checkout AppFuse or Equinox (a.k.a. AppFuse 
Light).

http://appfuse.dev.java.net
http://equinox.dev.java.net
For a tutorial of developing a Struts + Spring + Hibernate application, 
you can checkout the Sample Chapter from Spring Live 
(http://www.springlive.com).


;-)
Matt

-Ted.
On Wed, 30 Mar 2005 13:22:00 +0200, Rodolfo García Esteban/CYII
<[EMAIL PROTECTED]> wrote:
Hi,
I have been reading about frameworks and I have seen something about
Spring, and I have a lot of doubts. Spring is complementary or is then
same place?. In some places said that Spring is complementary thats
threats about the middle tier, but I have seen some examples and 
Spring
replaces the action servlet and has his own Controller. What do you 
think
Spring is compatible with Struts?, is better Struts than Spring? is 
better
Spring. Do you think the solution Struts + Spring + hibernate could 
be a
good approach?

Best Regards

Rodolfo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ANN] Bridgetown 0.9.2 Beta Release

2005-03-29 Thread Matt Raible
Care to tell us why you're re-inventing the wheel when there's Spring 
and Hivemind?  Why is Bridgetown better than these frameworks?

Matt
On Mar 29, 2005, at 5:42 AM, Peter A. Pilgrim wrote:
Yet another IoC container / AOP framework hybrid written and 
programmed by
experience J2EE developer / architect.

Latest new features :
* AOP Service Assembler default implementation
* Lumber Jacque virtual transaction service management architecture
* Support for JTA virtual transaction service management
  ( initial support for WebLogic Server 8.1 )
* Support for Expresso Framework
* Support for Hibernate OR/M transaction
* Transaction properties, propogation, and AOP integration
* Pointcut and Joinpoint XML configuration
* Convenience advice classes for method interceptor
* Method injection
* Constructor injection
For more info surf to http://bridgetown.sf.net/
Download from 
https://sourceforge.net/project/showfiles.php?group_id=116209

Thanks for your time.
This is Peter Pilgrim. Out
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: General: blankline in jsp question??

2005-03-23 Thread Matt Raible
Eain Mat wrote:
yes I can remove blank line in source  but this will cause less 
readability in code.
I like the option to trim whitespace in web.xml. can you please provide me more information or reference?
 

Just locate the "jsp" servlet in $CATALINA_HOME/conf/web.xml and add the 
following :

   
   trimSpaces
   true
   

Eain
Jason Lea <[EMAIL PROTECTED]> wrote:
I do this sort of thing:
%>%>%>
So that there are no blank lines for those parts.
also for tomcat 5.5 (not sure when it was added) there is an option in 
the default web.xml

between   -->
[false] -->
Which gets rid of whitespace when it compiles the JSP page.
Eain Mat wrote:
 

let say I included some tag library in my jsp and everytime, I have a blank 
line in my source, I will have a blank line in response too. Is there way to 
strip off or filter out those blankline.
Eain

   

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: List Archive

2005-03-23 Thread Matt Raible
tarek.nabil wrote:
Hi,
I think the List Archive link on the main page for the Struts project is
broken. I tried it several times and it always gives me this message
Error occurred
Required parameter "listId" or "listName" is missing or invalid 

This has been the case for the past 2 weeks, I think. The current URL is
http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=241
 

You might try mail-archive.com:
http://www.mail-archive.com/user%40struts.apache.org/
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using constants in JSP pages

2005-03-21 Thread Matt Raible
I wrote a tag library to expose contants to a JSP page.  Granted, it's  
not as portable as HashMap in the app context, but it seems to work.

http://raibledesigns.com/wiki/Wiki.jsp?page=ConstantsTag
Matt
On Mar 21, 2005, at 8:27 AM, Marsh-Bourdon, Christopher wrote:
Agreed, but with my fluff most ides (Eclipse, JBuilder etc) will parse  
and
throw an exception/error if the ... in <%= ... %> is undeclared or  
there is
a typo there.  That at least gives David the answer (albeit a bit of  
hash)
David was after.

Cheers
Christopher Marsh-Bourdon
www.marsh-bourdon.com
-Original Message-
From: Haroon Rafique [mailto:[EMAIL PROTECTED]
Sent: 21 March 2005 15:20
To: Struts Users Mailing List
Subject: RE: Using constants in JSP pages
On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher

MC> This is my way of doing this, and it may be a tad crap.  In the  
page
MC> tag at the top of the JSP I add one or more imports like so:
MC>
MC> <%@ page language="java" import="com.marsh-bourdon.Constants" %>
MC>
MC> I then just refer to the constants within the page like so:
MC>
MC> <%= Constants.KEY_FOR_SOMETHING %>
MC>
MC> This should then be checked by your ide for typos etc.
MC>
MC> Cheers
MC>
MC> Christopher Marsh-Bourdon
MC> www.marsh-bourdon.com
MC>

Hi David, Christopher,
I'm sure other people will pipe in shortly, but a variation of this has
been discussed in the mailing list before. From the archives:
http://www.mail-archive.com/user@struts.apache.org/msg06778.html
In a nutshell:
1) Provide a method in your Constants file which puts all your  
Constants
in a Map
2) At app startup make that map available to the application (e.g., in  
the
context
3) Use JSTL, to now access your constants directly without scriptlets.

David, from your original email, I'm sure you could figure out a naming
scheme to put constants from foo package and bar package under  
different
names in the context (like Constants_foo and Constants_bar, etc). That
should achieve 1).

To achieve 2), you could possibly use the following  construct.





Since you're talking about JSP pages, I'm not at all sure how you can  
get
the compiler to spot mistakes. But with the above JSTL, you could, at
least, see it in a visible manner on the JSP page that an undefined
constant was used.

Hope this was helpful.
Cheers,
MC> -Original Message-
MC> From: David Kennedy [mailto:[EMAIL PROTECTED]
MC> Sent: 21 March 2005 14:18
MC> To: Struts Users Mailing List
MC> Subject: Using constants in JSP pages
MC>
MC>
MC> Most of our pages have a header/navbar which performs some  
highlighting
MC> of the current page's category etc. This means all pages must  
define
MC> beans to say things like, "My category is FOO, my sub-category is  
BAR"
MC>
MC> I would like to get the compiler to spot typos:
MC> (1) To make sure FOO matches one of the defined categories in the
navbar.
MC> (2) To make sure the category variable itself is correct.
MC>
MC> I can achieve (1) by defining a simple constants class and using  
the
MC> 'unstandard' taglib:
MC> 	
MC>
MC> How can I achieve (2)? A little paranoid I know, but I've already
MC> defined "fo" by mistake in a couple of places(*), and there  
doesn't seem

MC> to be any advantage to using a constant if it is in turn defined by
MC> another hand-typed variable!
MC>
MC> All I can think of is
MC> 
MC> but if I'm going to use <%= %> I might as well just write
MC> 	<%= com.foo.Constants.FOO %>
MC> rather than use bind at all!
MC>
MC> (*) Where obviously the real var names are longer and easier to  
typo
MC> than foo.
MC>

--
Haroon Rafique
<[EMAIL PROTECTED]>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- 
-
The information contained herein is confidential and is intended  
solely for the
addressee. Access by any other party is unauthorised without the  
express
written permission of the sender. If you are not the intended  
recipient, please
contact the sender either via the company switchboard on +44 (0)20  
7623 8000, or
via e-mail return. If you have received this e-mail in error or wish  
to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender. 3166
--- 
-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Menu

2005-03-18 Thread Matt Raible
Good to know - thanks for reporting back with the solution.
Matt
On Mar 18, 2005, at 2:57 AM, Vijaya S wrote:
Hi Matt,
I solved the menu problem I was having. The problem was that I was 
missing
log4j and commons_lang jar files in my web app lib.

Thanks,
Vijaya
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Monday, March 14, 2005 7:32 PM
To: Struts Users Mailing List
Subject: Re: Struts Menu

On Mar 14, 2005, at 5:31 AM, Antony Joseph wrote:
Hi Vijaya,
You will need an entry in the web.xml similar to the one below:
  
/WEB-INF/struts-menu
/WEB-INF/struts-menu.tld
  
You should only need this if the URI in your JSP taglib declaration
points to the URI in your web.xml.  2.3 Servlet containers will scan
JARs and pick up the URIs from there.
Can you post your displayer mappings (from the top of menu-config.xml)
and the struts-menu part of your JSP?
Also, what version of Struts Menu are you using?
Matt
If you are still having problems, check out the application
https://workeffort.dev.java.net . It uses struts-menu.
- Original Message -
From: "Vijaya S" <[EMAIL PROTECTED]>
To: "Struts User mailing List" 
Subject: Struts Menu
Date: Mon, 14 Mar 2005 10:47:58 +0530
Hi,
Has anyone successfully implemented Struts Menu in your application?
I am
getting an error as
'The displayer mapping for the specified MenuDisplayer does not
exist'.
I have done the following
1. In my struts-config I have included the plugin
2. I have placed my menu-config.xml under WEB-INF.
3. My jsp has the corresponding taglibs included
4. struts-menu jar is placed under the lib directory of my
application.
Am I missing anything else? I posted my problem in struts-menu user
list but
no replies. If anyone of you is successful with struts-menu, can you
please
tell me what I am doing wrong?
Thanks,
Vijaya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antony Joseph
http://www.logicden.com
https://workeffort.dev.java.net
--
___
NEW! Lycos Dating Search. The only place to search multiple dating
sites at once.
http://datingsearch.lycos.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Menu

2005-03-14 Thread Matt Raible
On Mar 14, 2005, at 5:31 AM, Antony Joseph wrote:
Hi Vijaya,
You will need an entry in the web.xml similar to the one below:
  
/WEB-INF/struts-menu
/WEB-INF/struts-menu.tld
  
You should only need this if the URI in your JSP taglib declaration 
points to the URI in your web.xml.  2.3 Servlet containers will scan 
JARs and pick up the URIs from there.

Can you post your displayer mappings (from the top of menu-config.xml) 
and the struts-menu part of your JSP?

Also, what version of Struts Menu are you using?
Matt
If you are still having problems, check out the application 
https://workeffort.dev.java.net . It uses struts-menu.

- Original Message -
From: "Vijaya S" <[EMAIL PROTECTED]>
To: "Struts User mailing List" 
Subject: Struts Menu
Date: Mon, 14 Mar 2005 10:47:58 +0530
Hi,
Has anyone successfully implemented Struts Menu in your application? 
I am
getting an error as
'The displayer mapping for the specified MenuDisplayer does not 
exist'.

I have done the following
1. In my struts-config I have included the plugin
2. I have placed my menu-config.xml under WEB-INF.
3. My jsp has the corresponding taglibs included
4. struts-menu jar is placed under the lib directory of my 
application.

Am I missing anything else? I posted my problem in struts-menu user 
list but
no replies. If anyone of you is successful with struts-menu, can you 
please
tell me what I am doing wrong?

Thanks,
Vijaya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antony Joseph
http://www.logicden.com
https://workeffort.dev.java.net
--
___
NEW! Lycos Dating Search. The only place to search multiple dating 
sites at once.
http://datingsearch.lycos.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Of Struts and Tiles and Portals

2005-03-11 Thread Matt Raible
On that note, how about how to install Jetspeed and deploy a Struts app  
to it? ;-)

http://raibledesigns.com/page/rd? 
anchor=installing_jetspeed_and_deploying_struts

Matt
On Mar 11, 2005, at 5:38 AM, Ted Husted wrote:
If you wanted to use "conventional" portlets with Struts, you're
suppose to able to do that.
* [http://portals.apache.org/]
*  
[http://portals.apache.org/jetspeed-2/multiproject/portals-bridges- 
struts/]

-- HTH, Ted.
On Thu, 10 Mar 2005 14:03:27 -0700, Wendy Smoak <[EMAIL PROTECTED]>  
wrote:
My next project looks like it will be a portal-type app to display
information about our operation.  Different people will be allowed to  
see or
will choose different things, based on what they do within the  
organization.

So I asked Google about Struts and Tiles and Portal, and, well,  
didn't find
much.  Is Cedric's page dated 2002 still current enough to work from?
http://www.lifl.fr/~dumoulin/tiles/

Any suggestions on how to get started with this, or does anyone  
possibly
have an example to share?

--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page Navigation in Struts

2005-03-10 Thread Matt Raible
M Murali wrote:
Thank you very much. I am confused, Is there any way I can use the taglibs with 
out using table tag. I already have a table designed, some columns have check 
boxes,some have edit boxes ..etc. I don't want to change the table display. 
Just needed some thing which suports paging with out effecting  existing 
display. Is it possible with these.
May be  am I missing some thing here ??
 

You could use the pager taglib for this.
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html
Matt
Thanks

Matt Raible <[EMAIL PROTECTED]> wrote:
You're in luck! There's a number of tag libraries to simplify this:
http://displaytag.sf.net
http://valuelist.sf.net
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
Demos: http://raibledesigns.com/page/rd?anchor=there_s_a_new_sorting
Matt
On Mar 10, 2005, at 5:22 PM, M Murali wrote:
 

Does any one know, how the navigation can be done. I just want to have 
a dynamic pages generation depending on number of rows in recordset , 
Pave Prev --- Page Next
Is there any good sample how this can be implemented or any jar files

Thanks
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page Navigation in Struts

2005-03-10 Thread Matt Raible
You're in luck!  There's a number of tag libraries to simplify this:
http://displaytag.sf.net
http://valuelist.sf.net
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
Demos: http://raibledesigns.com/page/rd?anchor=there_s_a_new_sorting
Matt
On Mar 10, 2005, at 5:22 PM, M Murali wrote:
Does any one know, how the navigation can be done. I just want to have 
a dynamic pages generation depending on number of rows in recordset , 
Pave Prev --- Page Next
Is there any good sample how this can be implemented or any jar files

Thanks
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: getting init-params from web.xml

2005-03-10 Thread Matt Raible
servlet.getServletContext() should work.
Matt
On Mar 10, 2005, at 2:44 PM, Omar Didi wrote:
is there a way to either get  or  from 
web.xml inside an Action class.
i know within a jsp or servlet i can use 
getServletContext().getInitParameter("com.index"). this method doesn t 
work inside an Action class.
thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: User Delegation with struts

2005-03-10 Thread Matt Raible
I would use the aforementioned suggestion and use a Filter with a  
RequestWrapper to mimic the request.isUserInRole stuff - then you can  
use the "role" attribute in your action-mappings, your tiles  
definitions, and with .

This is what Acegi Security does:
http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/core/ 
src/main/java/net/sf/acegisecurity/wrapper/

Matt
On Mar 10, 2005, at 11:09 AM, Betty Koon wrote:
Matt,
Thanks for the info.  We already have our own Authentication  
mechanism.  I
am just thinking about how is it to make use of current role  
information to
determine what get shown on the UI.  Does that mean I have to write  
custom
tag lib to deal with this.

For isUserInRole, does this only comes in handy for forwarding to an  
Action.
It can't really control what gets shown on the screen right?

-Betty
-Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 9:55 AM
To: Struts Users Mailing List
Subject: Re: User Delegation with struts
You could look at using the Acegi Security Framework.  I've used it to
replace J2EE container authentication in AppFuse - and didn't have to
change any code.  Works with request.isUserInRole and all that + it
allows you more fine grained control on the internals.
http://acegisecurity.sourceforge.net
Unfortunately, it's got a bit of a learning curve - but most good
open-source software does. ;-)
Matt
On Mar 10, 2005, at 10:49 AM, Betty Koon wrote:
Hi all,
Anyone has any good strategy or pointers for doing
user/role delegation with struts.  We are not using
J2EE container authentication.  We will have our own
role model.  I will like more fine grain control on
turning on and off visual elements with different
role
information.  Thanks.
-Betty


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] CSS site/forum ?

2005-03-10 Thread Matt Raible
I use http://www.experts-exchange.com for a lot of CSS and JavaScript 
issues and it works quite well.  I think you have to pay to ask 
questions now - but it's worth it.

Matt
On Mar 10, 2005, at 11:17 AM, Scott Piker wrote:
Hey all,
Sorry for the OT post, but I know a number of folks here are quite
skilled with CSS.  We're having some really annoying cross-browser CSS
formatting issues and I was wondering if someone could direct me to a
good site/forum where I could find common compatibility issues between
IE and other browsers (Firefox, especially).
Our biggest issue right now is that the ultra-cool dropdown menus we
developed a while ago look great in IE, but are practically unusable in
Firefox.
(Some days, you almost wish Firefox never got so popular and you only
had to worry about IE.  Heresy!)
Thanks in advance,
- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


time validation mask (hh:mm)

2005-03-10 Thread Matt Raible
I'm trying to validate that the proper format has been used to enter a 
24 hour time.  I'll admit I'm not a regex expert, but I thought the 
following would work.  Actually, I got it from a regex expert friend, 
so I'm just assuming it should work.


time

((?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9])


However, this seems to allow alpha-numerics (i.e. 2:00p or 2:00x), when 
I only want digits in the first two places, followed by a colon, 
followed by two more digits.  24:59.  If course, it'd be nice if users 
could enter 1:24 too, but that's not a requirement.

Thanks,
Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: User Delegation with struts

2005-03-10 Thread Matt Raible
You could look at using the Acegi Security Framework.  I've used it to 
replace J2EE container authentication in AppFuse - and didn't have to 
change any code.  Works with request.isUserInRole and all that + it 
allows you more fine grained control on the internals.

http://acegisecurity.sourceforge.net
Unfortunately, it's got a bit of a learning curve - but most good 
open-source software does. ;-)

Matt
On Mar 10, 2005, at 10:49 AM, Betty Koon wrote:
Hi all,
Anyone has any good strategy or pointers for doing
user/role delegation with struts.  We are not using
J2EE container authentication.  We will have our own
role model.  I will like more fine grain control on
turning on and off visual elements with different
role
information.  Thanks.
-Betty


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Validator] maxlength JavaScript not generated

2005-03-09 Thread Matt Raible
Thanks for confirming I wasn't crazy Bill.  It turned out that my 
 tag has a "page" attribute defined and I was missing 
page="1" for this particular field.

Thanks,
Matt
On Mar 8, 2005, at 6:58 PM, Bill Siggelkow wrote:
It should be ... I just looked at the latest build and the JS function 
is defined in the validator-rules.xml and the function itself is 
located in my commons-1.1.4 jar in the maven repository.

On 2005-03-08 18:26:23 -0500, Matt Raible <[EMAIL PROTECTED]> 
said:

I coulda sworn that JavaScript was generated for maxlength validation 
rules, but in my current App (Struts 1.2.4), they don't show up.
In validation.xml, I have:
 
 
 
 
 maxlength
 1800
 
 
The JavaScript that's generated for it is:
 function outageForm_maxlength () {
 }
And here's my field:

 styleClass="comments" cols="40" rows="5" style="height: 80px"/>
Server-side validation works fine.
Thanks,
Matt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
I saw that - good stuff! ;-)
On Mar 9, 2005, at 11:33 AM, Antony Joseph wrote:
Matt, I have you in one of my jokes on the iBATIS forum.
- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Re: [Help] I need tutorial which tells us how to integrate 
Struts and Hibernet
Date: Wed, 9 Mar 2005 11:11:23 -0700

AppFuse has tutorials for using Hibernate, XDoclet and Struts.  It
also uses Spring to glue all the different pieces together:
http://raibledesigns.com/appfuse/tutorials
Matt
On Mar 9, 2005, at 3:18 AM, Pham Anh Tuan wrote:
Hi all,
Who can help me or show me where I can get tutorial which tells
me how to integrate Struts and Hibernet.
thanks for advance
Anh Tuan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antony Joseph
http://www.logicden.com
https://workeffort.dev.java.net
--
___
NEW! Lycos Dating Search. The only place to search multiple dating 
sites at once.
http://datingsearch.lycos.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
AppFuse has tutorials for using Hibernate, XDoclet and Struts.  It also 
uses Spring to glue all the different pieces together:

http://raibledesigns.com/appfuse/tutorials
Matt
On Mar 9, 2005, at 3:18 AM, Pham Anh Tuan wrote:
Hi all,
Who can help me or show me where I can get tutorial which tells me how 
to integrate Struts and Hibernet.

thanks for advance
Anh Tuan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts DB Access :: Best Practices

2005-03-09 Thread Matt Raible

Equinox (http://equinox.dev.java.net) allows you to use Struts+Spring 
and any of the following persistence engines:

Hibernate
iBATIS
JDO (JPOX)
OJB
Spring JDBC

Personally, I like Hibernate when I get to create my schema, and iBATIS 
when it already exists.  iBATIS is the easiest to learn/use in my 
experience.

Matt
On Mar 9, 2005, at 4:40 AM, karthikeyan balasubramanian wrote:
Hi all,
  Thank you all for inputs.
  Now my list has grown big :
1. Castor
2. JDO
3. iBATIS
4. Hibernate
5. OJB
I looked at iBATIS, it seems to be simple and easy to use.  I will
also check out
others and let you know my thoughts.
  Have a great day.
Karthikeyan B
On Wed, 09 Mar 2005 11:31:50 +0100, Sebastian Hennebrueder
<[EMAIL PROTECTED]> wrote:
I do not completely agree here. You can choose from where you come and
to where you go using Hibernate.
As other approach I only know EJB and here it depends on the tools you
have. With xDoclet your start with the class and go to the db over the
mappings.
Regards
Sebastian Hennebrueder

http://www.laliluna.de
Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB
Günther Wieser wrote:
i prefer to use OJB for persistence, because i like the approach of 
coming
from the object world and define the mapping to the database, while
hibernate (and others) tend to come from the database and help you 
generate
classes.
OJB is very easy to use, and you won't see anything related like 
PK-FK or
"id" within your java code which makes it easy to read and has 
nothing
database related in it. but if you have the need to tune performance 
etc.
OJB gives you access to everything, inluding using stored procedures.

kr,
guenther
--
Günther Wieser
creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com
-Original Message-
From: karthikeyan balasubramanian 
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 9:19 AM
To: user@struts.apache.org
Subject: Struts DB Access :: Best Practices

Hi all,
  I am planning to use Tomcat/Struts/MySQL in my project.
  Database operation's can involve more selects and little bit of
update/insert operations.
  I want to know what is the best way to access database using 
struts.

  I did a research and found few good ways:
  1. Struts using Castor.
  2. Struts using JDO.
  I found Struts with Castor easy to use.  What you guys/gals think 
on "What
is the best practices to access DB from Struts?.

  Any inputs here would enable me to make good decision :)
  Looking forward for yours response.
  Have a great day.
Karthikeyan B
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Validator] maxlength JavaScript not generated

2005-03-08 Thread Matt Raible
I coulda sworn that JavaScript was generated for maxlength validation 
rules, but in my current App (Struts 1.2.4), they don't show up.

In validation.xml, I have:




maxlength
1800



The JavaScript that's generated for it is:
function outageForm_maxlength () {
}
And here's my field:

Server-side validation works fine.
Thanks,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AppFuse Questions?

2005-03-02 Thread Matt Raible
I heard there were some questions regarding AppFuse on this mailing 
list.  Just wanted to let you know that I'm listening, so feel free to 
ask any questions you have.

Matt
AppFuse Lead Developer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]