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

[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

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

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 m

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 tuto

Re: [Validator] maxlength JavaScript not generated

2005-03-09 Thread Matt Raible
d 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

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.sourceforg

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

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 qui

Re: User Delegation with struts

2005-03-10 Thread Matt Raible
rmation 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----- Fr

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

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

Re: Page Navigation in Struts

2005-03-10 Thread Matt Raible
aging 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! The

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 a

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 Servl

Re: Struts Menu

2005-03-18 Thread Matt Raible
: 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

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

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.

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 :

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 / ar

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. Sp

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 usi

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 t

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).

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

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.

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 developer

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

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. DE

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.

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

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 AppF

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

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 s

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://raibledesig

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 <[EMAI