Re: Why My JSTL Tag Cannot Do What Struts Tag Does?

2006-06-22 Thread Bill Schneider
would work. -- Bill . <% User user = (User)pageContext.getAttribute( "user" ); %> I don't use this method at all (I prefer jsp:useBean), but maybe the "user" in getAttribute() should be capitalized as "User"? - Scott -- Bill Schn

Re: [OT] Re: Is JSF ready?

2005-12-14 Thread Bill Schneider
like everything else it's a trade-off. Your cost-benefit analysis is going to depend on your individual app. Personally, I'm just salivating over the MyFaces treeTable plus AjaxAnywhere, because I haven't found a way to get the same widget off-the-shelf with Struts. :-) -- Bill

Re: OT: Best AJAX framework

2005-11-10 Thread Bill Schneider
ascript in your Struts app, it's no problem, but if you want to add AJAX to your app while still using Struts' client-side validation, you will have a problem with Rico, prototype.js, JSON, and any other library which modifies the base javascript Object class. -- Bill Schneider Ch

another ActionForm-to-POJO binding tool: xsnapshot 1.1 beta released

2005-09-29 Thread Bill Schneider
omewhat lacking, as there are only two regular contributors to the project and we both have very limited time to devote to it (darned customers!) But the example app in the source distribution would show you how to set it up. -- Bill -- Bill Schne

Re: Being Lazy with Hibernate

2005-09-20 Thread Bill Schneider
quot; pattern. If you're using Spring to manage your Hibernate SessionFactory, you can just pop the OpenSessionInViewFilter in web.xml and go. The only thing to watch out for is that any writes back to the database need to be within transactions. -- Bill -- Bill Schneider Chief Architect

Re: Login with authentication from database

2005-08-08 Thread Bill Schneider
k the way you'd do that is to set up multiple security realms in Tomcat (one per application or one per database) and then configure your security constraints in the web.xml for each application. Your Tomcat books should have more details on how to do that than I can provide I'm afrai

Re: [OT] DTOs are evil

2005-08-05 Thread Bill Schneider
P.S. By the way, Rod Johnson also said persistent objects that contain only getters and setters are evil too (same page as dto, 27). In my understanding it means hibernate and ibatis which use such objects are at least as evil? How are you supposed to represent data anyway then? the issue is not

Spring on Struts

2005-07-12 Thread Bill Schneider
e stateful UI components, with a clearer separation between stateful client-side components and sorta-stateless (well, there's that HttpSession thing) server-side ones. -- Bill -- Bill Schneider Chief Architect Vecna Technologies, Inc. 5004 Lehigh Road, Suite B College Park, MD 20740 [EMA

Re: Using struts forms as Value Objects: your opinion?

2005-07-08 Thread Bill Schneider
objects should use typed interfaces to ensure marshaling to and from presentation format (string types) is pushed as far up the application stack as possible. This also enables other, potentially type-aware, presentation / client tiers to be built on top of the same value objects (e.g. for a web-servi

[slightly OT] alternatives to Tiles?

2005-06-30 Thread Bill Schneider
touch a config file for every single page I add, and being able to grab headers/footers from another context. Has anyone seen anything that has Tiles' request/response cycle and runtime footprint, but configures like SiteMesh? :-) -- Bill -- Bill Schneider Chief Architect Vecna Technologie

Re: Strange error-page behavior

2005-06-26 Thread Bill Schneider
I've found that the directive in web.xml works only if the error is thrown from an Action, before the JSP is processed. Putting <%@ page errorPage="/errorPage.jsp" %> in your JSP may help. I believe Tomcat always uses RequestDispatcher.forward for directives, which breaks if the response is

[OT] Re: Displaying mulitpage results

2005-02-22 Thread Bill Schneider
sion) but it seems to be the widespread accepted practice. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7253 x1140 f: 301-699-3180 - To

Re: Displaying mulitpage results

2005-02-21 Thread Bill Schneider
r instance) for server-side performance tuning when you really need it. -- Bill -- Bill Schneider Chief Architect Vecna Technologies, Inc. 5004 Lehigh Road, Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7594 f: 301-699-3180 -

Re: how to integrate struts project with hibernate?

2005-02-17 Thread Bill Schneider
*all* beans, not just LabelValueBeans. If your own beans happen to have properties called "label" and "value", will work out of the box. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-

Re: common information in every view

2005-02-17 Thread Bill Schneider
oller, rather than using a base action class. This would give you greater separation of concerns: loading (possibly cached) menu items is handled specifically by the tile that displays the menu, rather than by each individual action. -- Bill -- Bill Schneider Chief Architect Vecna Technologies

Re: Caching Appliction Level Data?

2005-02-15 Thread Bill Schneider
s network as well as processing overhead for marshalling and unmarshalling cached objects. In summary, J2EE webapp performance involves a lot of tradeoffs. Caching is important but has to be used judiciously to be beneficial. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehi

Re: including one layout .jsp inside another?

2004-08-31 Thread Bill Schneider
I raised exactly the same question on this list a week or two ago. I'm glad to see someone else attempting the same thing. Two workarounds came out of that discussion--structure your tiles defs differently, or futz with and . The first approach doesn't scale well, because for every page that

Re: Tiles: multiple layers of layout

2004-08-23 Thread Bill Schneider
Thanks for the detailed explanation. So, if I want to represent an HTML page that has two levels of layout (a tile that extends a layout tile, which inserts another tile that also extends a layout tile) it sounds like the "right" way to do the tiles definition is something like this:

Re: Tiles: multiple layers of layout

2004-08-20 Thread Bill Schneider
The idea is that most tiles extend .mainLayout and look like HEADER [body] FOOTER But some tiles extend .nestedLayout instead, which in turn extends .mainLayout for two layers of navigation: HEADER Nested Header [nested body] Nested Footer FOOTER The nested header+body+

Tiles: multiple layers of layout

2004-08-19 Thread Bill Schneider
ways do something in mainLayout.jsp like // foreach imported attribute { // } This works but doesn't feel right. Is there a better way to export attributes or otherwise preserve the current Tiles context through a tiles:insert or tiles:get? -- Bill -- Bill Schneider Chief Architec

> Re: Theoretical debate

2004-06-18 Thread Bill Schneider
DTOs from XDoclet tags in a POJO data model. That way you get _both_ real DTOs and Form Beans without writing all the classes by hand, and you can copy between DTOs and form beans with BeanUtils.copyProperties. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suit

Re: Theoretical debate

2004-06-18 Thread Bill Schneider
to migrate an ad-hoc/Model 1 servlet or JSP to Struts. -- Bill -- Bill Schneider Chief Architect Vecna Technologies, Inc. 5004 Lehigh Road, Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7594 f: 301-699-3180 - To unsubscrib

Re: J2EE Login -- Howto?

2004-06-15 Thread Bill Schneider
tely, but hopefully this points you in the right direction. There may also be a more elegant solution by registering a custom JAAS CallbackHandler or LoginContext; you might want to look into this as well. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B Colle

Re: How to renderize a image?

2004-05-26 Thread Bill Schneider
ts' ActionServlet already appears to do that. So you have to write an actual servlet. Hope this helps, Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-86

Re: Help with using declarative error handling

2004-05-17 Thread Bill Schneider
rcDatabaseException" >> path="/common/exceptionTrcDatabase.jsp" >> /> >> >> I have created a JSP, exceptionTrcDatabase.jsp, that contains this element: >> >> >> >> However, whenever I test this code (by deliberately creating the re