Re: why have another xml file?

2002-01-09 Thread Jeff Canna


At the risk of being flamed..

I've been very interested in struts for quite a while now. Actually tried
using it for a project that I was recently working on. After many days of
fighting with the struts-config.xml file the team decided to implement our
own ModelII framework.

We had this implemented in about a half a day. (Keep in mind we did not do
anything with validation or internationalization.) We did not use anything
like a config file . Essentially we used reflection to create the action
class before calling into it. Making this work in this way has greatly speed
up our development. It was very clear when the submit had the wrong class
name in it.

The answers I saw to the original post were in the vane that everyone else
is using XML so why shouldn't we. I haven't seen a good technical reason for
doing this.

I would be VERY interested to understand the need for this file. In seems it
introduces unnecessary complexity into an application and the same
information can be retrieved from a more straight forward mechanism.

Jeff Canna


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




FormTag.lookup problem - getting VERY frustrated!

2001-10-03 Thread Jeff Canna


I'm hoping that someone can help me out, I'm running out of theories...I've
included the stack trace and, what I think is relevant snippets from the
files involved. If someone could even suggest a way to debug this I'd
appreciate it

Below is part of the exceptions stack trace:
javax.servlet.jsp.JspException
  java.lang.Throwable(java.lang.String)
  java.lang.Exception(java.lang.String)
  javax.servlet.jsp.JspException(java.lang.String)
  void org.apache.struts.taglib.html.FormTag.lookup()
  int org.apache.struts.taglib.html.FormTag.doStartTag()
  void
_0002fassayType_0002ejspassayType_jsp_1._jspService(HttpServletRequest,
HttpServletResponse)
.
.
.
.

I have a struts-config.xml that looks like this:

  
  

  

  


  


The AssayTypeActionForm has the following signature:

public class AssayTypeActionForm extends ActionForm {
 public Collection getAssayTypes();
 public String getSelectedAssayType();
 public void setAssayTypes(Collection newTypes);
 public void setSelectedAssayType(String newSelectedAssayType);
}

The jsp looks like this:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>



Assay Type Action Form





Assay Type










+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+   +
+ Jeff Canna [EMAIL PROTECTED]   +
+ RoleModel Software www.rolemodelsoft.com  +
+ Holly Springs, NC  v:(919)557-6352  f:(919)552-8166   +
+   +
+ Your life may be measured by what you reap,   +
+ but it is determined by what you sow. +
+   +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+