Request attributes and frame sets.

2002-06-07 Thread Paap, Keith

I have a problem with request attributes when used with a frameset.  The
design of the application I'm working with requires frames.  I'm not a fan
of framesets but am trying to overcome some of the limitations...

Many of the actions are actually targeted to _top to allow bookmarking, etc.
The frameset then accesses request attributes to determine what JSP pages
need to be loaded in what frames.  This all works fine.   However when the
additional requests are made to the server to pull in the JSP pages that
request does not carry along the request attributes for the JSP pages that
load in the pages.

For general application stuff we've worked around this by coming up with
some custom objects to set attributes on the session and clean them out
after they are used.  However I want to use the ActionErrors and
 tag.  From what I can tell this can only be set as a session
attribute and given the design the tag cannot see that attribute on the JSP
page since it's done as a separate request from the frameset. 

Anyone have any ideas on how to make the request attributes available to the
pages loaded in the frames?

Keith

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




RE: Example Site Built using Struts

2001-10-25 Thread Paap, Keith

You might want to do some searching through the archives.  There have been
threads on this in the past.
http://www.mail-archive.com/struts-user@jakarta.apache.org/

One that was posted recently that has a nice look and feel is at:
http://www.hallmarkstories.com/hmem/viewHome.do

-Original Message-
From: Robin Roos [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 2:52 AM
To: [EMAIL PROTECTED]
Subject: Example Site Built using Struts


Hello

Can anyone suggest the URLs of a couple of websites built using the Struts
framework?  My company needs such examples before commiting to Struts for
our own site.

I am subscribed, so you can reply to the list or direct to me.

Many thanks, Robin.



RE: java.lang.NoClassDefFoundError -- new guy question

2001-10-03 Thread Paap, Keith

I ran into a "java.lang.ClassNotFoundException:
org.apache.struts.action.ActionFormBean" problem a week or so back and was
able to resolve it just by retrieving the new Digester 1.1 jar and putting
it in the /WEB-INF/lib directory.   Based on information passed along to me
the updated digester has made some changes to help class loading issues.

Keith Paap

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 2:15 PM
To: [EMAIL PROTECTED]
Subject: java.lang.NoClassDefFoundError -- new guy question


Hi All -

I have struts.jar in /WEB-INF/lib and I am receiving a runtime error.
Struts.jar is not in my classpath. My example app works so I'm not sure
where to look..


Thanks.

javax.servlet.ServletException: org/apache/struts/action/ActionForm 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) 
at org.apache.tomcat.core.Handler.service(Handler.java:286) 
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) 
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210) 
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
at java.lang.Thread.run(Thread.java:496) 

Root cause:  

: org/apache/struts/action/ActionForm 
at java.lang.ClassLoader.defineClass0(Native Method) 
at java.lang.ClassLoader.defineClass(ClassLoader.java:486) 
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) 
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) 
at java.net.URLClassLoader.access$100(URLClassLoader.java:56) 
at java.net.URLClassLoader$1.run(URLClassLoader.java:195) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:297) 
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:253) 
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:253) 
at java.lang.Class.forName0(Native Method) 
at java.lang.Class.forName(Class.java:120) 
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563) 
at
_0002findex_0002ejspindex_jsp_13._jspService(_0002findex_0002ejspindex_jsp_1
3.java:164) 
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) 
at org.apache.tomcat.core.Handler.service(Handler.java:286) 
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) 
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210) 
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
at java.lang.Thread.run(Thread.java:496) 

[EMAIL PROTECTED]   612.316.1663



nested iterate using indexed value from outer iterate?

2001-09-21 Thread Paap, Keith

We're having some difficulty tracking down how we could use the value on the
bean in an iterate loop could be used in a next iterate.  Here's the
example:

 
<%-- some category header html goes here --%>

<%-- some html goes here related to each trait of the given
category --%>



The problem is that there is a method "getId()" on the Category class and
that is the indexed value I want to pass as "x" in the property="Traits[x]"
statement.  I can do a bean:write to get the property out of the individual
Category instances but how do I get that into an expression for the nested
iterate?

As a bonus question I set up the Category bean with an attribute name of
"def_categories" using a jsp:useBean to actually instantiate the bean (wait
before you comment on that).  What I would prefer to do is change the
getCategories() method on the Category class to a static method and capture
the array of Category and iterate through it.  Any thoughts how that could
be done would also be appreciated.

TIA, 

Keith Paap




RE: ClassNotFoundException building Struts src with ant

2001-09-21 Thread Paap, Keith

In order to at least move forward I went out and got the binary version of
one of the recent nightly builds.   That at least lets me make use of some
of the newer features I was looking for.

However, if anyone has run into this problem trying to build from source
using Ant I would still be interested in how you got it resolved or even if
anyone has any suggestions.  Ant is one of those 'todo' items on my list to
get over the learning curve but just haven't taken the time yet.


-Original Message-----
From: Paap, Keith [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 8:33 AM
To: '[EMAIL PROTECTED]'
Subject: ClassNotFoundException building Struts src with ant


I'm attempting to build a new distribution version of Struts using Ant but
I'm getting the following exception:

[style] java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.XalanLiaison

The version of Ant that I have is 1.4 and if I look in the ant.jar there is
a package of that name but there's only one class (TraXLiason).  Can anyone
tell me where that class could be found to get the build to go through?
(Just an additional note to mention this is my first attempt at using Ant.)

The source I'm attempting to build is actually the 1.0 source with a few
source files replaced based on the 'indexed' attribute being added in the
html form tags.  Is there is more recent nightly source that anyone could
recommend that has this 'indexed' attribute enhancement?  Would a later
source version help with this exception?

Keith Paap



ClassNotFoundException building Struts src with ant

2001-09-21 Thread Paap, Keith

I'm attempting to build a new distribution version of Struts using Ant but
I'm getting the following exception:

[style] java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.XalanLiaison

The version of Ant that I have is 1.4 and if I look in the ant.jar there is
a package of that name but there's only one class (TraXLiason).  Can anyone
tell me where that class could be found to get the build to go through?
(Just an additional note to mention this is my first attempt at using Ant.)

The source I'm attempting to build is actually the 1.0 source with a few
source files replaced based on the 'indexed' attribute being added in the
html form tags.  Is there is more recent nightly source that anyone could
recommend that has this 'indexed' attribute enhancement?  Would a later
source version help with this exception?

Keith Paap



indexed attribute on TextTag not in tld

2001-09-20 Thread Paap, Keith

I'm trying to use the 'indexed' attribute on the html:text tag and I receive
the following error:

Parse Error in JSP page: The attribute 'indexed' for custom tag 'text' on
line '46' of page '/jsp/map/setup/updateObjectives.jsp' is not declared as
an attribute for this tag, perhaps it should be added to the TLD. 
 
I'm using Struts 1.0 and had downloaded the binaries rather than attempting
to go through the work of building from the source.  The indexed attribute
does show as a valid attribute the API documentation but the error is
correct, it is not in the tld.  Does the 1.0 version not include that
attribute?

I did find the source at http://husted.com/about/struts/indexed-tags.htm
that involves this change.  Is my only chance of using the indexed property
mean I need to go get the source for 1.0 and then apply those changes and
rebuild?  I have not done a build of the Struts source so any direction
someone could provide would be most appreciated.  I also have not yet gone
through the work of getting familiar with ant.

TIA, 

Keith Paap