struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Maurer <>
Subject RE: Obtaining valid ModuleConfig.
Date Wed, 29 Jan 2003 14:11:40 GMT
Is it really in request context? sounds more for application context!

-----Original Message-----
From: James Nord []
Sent: Mittwoch, 29. Jänner 2003 15:13
Subject: Obtaining valid ModuleConfig.


I'm using the following snippet in taglib code but it fails as 
config==null.  (Stuts 1.1 b3)

         public int doEndTag() throws JspException {
            ModuleConfig config = (ModuleConfig)
            if (config == null) {
                System.out.println("config  == null");
            if (config.getPrefix() == null) {
                System.out.println("config.getPrefix() == null");
            try {
                pageContext.forward(config.getPrefix() + page);
            } catch (Exception e) {
                throw new JspException(e.toString());
          return (SKIP_PAGE);

The code is based on the example that comes with struts.  I presume I'm 
missing something obvious but I'm new to Struts and can't track it down.
Could someone give me some pointers before I tear all my hair out ;-)



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

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

View raw message