Latest and Greatest 1.0 User's Guide

2001-01-19 Thread Craig R. McClanahan

I've just posted the most recent version of the Struts documentation on the
Struts web site at:

http://jakarta.apache.org/struts/

The User's Guide pages have had the XSLT stylesheet used to create them spruced
up a bit, so that the visual appearance is similar to the rest of the Struts
documentation.

Craig McClanahan





Re: Experience with/best practices to avoid memory leaks or memory related problems with Struts

2001-01-19 Thread Craig R. McClanahan

Laine Donlan wrote:

> All -
>
> I was wondering if anyone had experience with Struts as it relates to
> managing the amount of objects created by the Framework.  I am
> relatively new to Struts as well as jsp development and would appreciate
> any pointers or 'things to keep in mind' to avoid resources being
> wasted.
>

Of the objects related to the framework itself, I would make the following
suggestions:

* Struts supports form beans in either request scope or session
  scope.  If your form is all on one page, and the bean has properties
  for every form field, request scope avoids having the form beans
  hang around in memory between requests (but, on the other hand,
  this requires Struts to create a new one on each form submit).

* For form beans (or application beans in general) that you store in
  the user's session, be sure to clean up after yourself by calling
  session.removeAttribute() when you no longer need a bean.

The remaining objects in the Struts framework are either created once and
shared, or managed for you automatically.

>
> Thanks in advance.
>
> Laine

Craig McClanahan






RE: javax.servlet.ServletException when running struts-example on JRun 3.0 / NT 4.0 SP5

2001-01-19 Thread Abraham Kang

I got it working with JRun but is
D:\JRun30\servers\default\scb\WEB-INF\classes part of the struts example you
are trying to run.  I don't think
D:\JRun30\servers\default\scb\WEB-INF\classes is supposed to be on your
classpath.  Is this the classpath in JRun (viewable from the JMC) or the
machine's system variable (if on NT) or environment variable on UNIX?

--Abraham

> -Original Message-
> From: Guillaume Lahitette [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: javax.servlet.ServletException when running struts-example on
> JRun 3.0 / NT 4.0 SP5
>
>
> Hi all,
>
> I deployed the release v0.5 of struts-documentation, struts-test and
> struts-example WAR files into my JRun 3.0 server.
>
> struts-documentation and struts-test run perfectly fine but when I invoke
> http://localhost:88/struts-example/, I'm faced with the exception below.
>
> I've checked servlets are preloaded correctly, all TLD files are present
> where expected, etc
>
> I included an output of my CLASSPATH to help find out what ressource is
> wrong/missing
>
> Thanks for your help!!!
>
> Cheers,
>
> Guillaume.
> 
> Guillaume Lahitette Work: 281 966 3757
> Software Engineer  Fax:281 966 3801
> Cable & Wireless   [EMAIL PROTECTED]
>
> javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo:
> method (Ljava/lang/String;ZZLjava/lang/String;)V not found]
> javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo:
> method (Ljava/lang/String;ZZLjava/lang/String;)V not found
> java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo:
> method (Ljava/lang/String;ZZLjava/lang/String;)V not found
>   at
> allaire.jrun.jsp.JRunTagLibraryInfo.buildAttributeInfo(JRunTagLibr
> aryInfo.ja
> va:234)
>   at
> allaire.jrun.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java,
> Compiled Code)
>   at
> allaire.jrun.jsp.JRunTagLibraryInfo.initialize(JRunTagLibraryInfo.java,
> Compiled Code)
>   at
> allaire.jrun.jsp.JRunTagLibraryInfo.(JRunTagLibraryInfo.java:61)
>   at allaire.jrun.jsp.JSPParser.directive(JSPParser.java:775)
>   at allaire.jrun.jsp.JSPParser.parse(JSPParser.java, Compiled Code)
>   at allaire.jrun.jsp.JSPParser.writeXML(JSPParser.java:152)
>   at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:124)
>   at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:68)
>   at allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java:403)
>   at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:375)
>   at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:201)
>   at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)
>   at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>   at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java,
> Compiled Code)
>   at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDisp
> atcher.jav
> a, Compiled Code)
>   at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
>   at
> allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
>   at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java,
> Compiled Code)
>   at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
>   at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
>
>
> CLASSPATH=D:\JRun30\lib\ext\activation.jar;D:\JRun30\lib\ext\ejb.j
> ar;D:\JRun
> 30\l
> ib\ext\jaxp.jar;D:\JRun30\lib\ext\jdbc.jar;D:\JRun30\lib\ext\jms.j
> ar;D:\JRun
> 30\l
> ib\ext\jndi.jar;D:\JRun30\lib\ext\jta.jar;D:\JRun30\lib\ext\mail.j
> ar;D:\JRun
> 30\l
> ib\ext\parser.jar;D:\JRun30\lib\ext\xml4j.jar;D:\JRun30\lib\ext\po
> p3.jar;D:\
> JRun
> 30\lib\ext\servlet.jar;D:\JRun30\lib\jrun.jar;D:\JRun30\lib\instal
> l.jar;D:\J
> Run3
> 0\servers\lib;D:\JRun30\servers\lib\jruntags.jar;D:\JRun30\servers
> \default\l
> ib;D
> :\JRun30\lib\ejipt.jar;D:\JRun30\lib\ejipt_client.jar;D:\JRun30\li
> b\ejipt_to
> ols.
> jar;D:\JRun30\lib\jsp.jar;D:\JRun30\lib\ssi.jar;D:\JRun30\lib\wddx
> .jar;D:\JR
> un30
> \lib\xt.jar;D:\JRun30\lib\rhino.jar;D:\JRun30\servers\default\scb\
> WEB-INF\cl
> asse
> s;D:\Oracle\Ora81\jdbc\lib\classes12.zip;"D:\Program
> Files\Cohera\bin\coherasql.
> jar";D:\TIBCO\TIBRV\LIB\tibrvj.jar;D:\TIBCO\TIBRV\LIB\tibrvjweb.ja
> r;D:\Tibco
> \Ada
> pter\SDK\java\Maverick30.jar;D:\Tibco\Adapter\SDK\java\SdkServices
> 30.jar;D:\
> Tibc
> o\Adapter\SDK\examples;D:\TIBCO\Repository\jars\TibRepoClient.jar;.
>
>




javax.servlet.ServletException when running struts-example on JRun 3.0 / NT 4.0 SP5

2001-01-19 Thread Guillaume Lahitette

Hi all,

I deployed the release v0.5 of struts-documentation, struts-test and
struts-example WAR files into my JRun 3.0 server.

struts-documentation and struts-test run perfectly fine but when I invoke
http://localhost:88/struts-example/, I'm faced with the exception below.

I've checked servlets are preloaded correctly, all TLD files are present
where expected, etc

I included an output of my CLASSPATH to help find out what ressource is
wrong/missing

Thanks for your help!!!

Cheers,

Guillaume.

Guillaume Lahitette Work: 281 966 3757
Software Engineer  Fax:281 966 3801
Cable & Wireless   [EMAIL PROTECTED]

javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo:
method (Ljava/lang/String;ZZLjava/lang/String;)V not found]
javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo:
method (Ljava/lang/String;ZZLjava/lang/String;)V not found
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo:
method (Ljava/lang/String;ZZLjava/lang/String;)V not found
at
allaire.jrun.jsp.JRunTagLibraryInfo.buildAttributeInfo(JRunTagLibraryInfo.ja
va:234)
at
allaire.jrun.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java,
Compiled Code)
at allaire.jrun.jsp.JRunTagLibraryInfo.initialize(JRunTagLibraryInfo.java,
Compiled Code)
at allaire.jrun.jsp.JRunTagLibraryInfo.(JRunTagLibraryInfo.java:61)
at allaire.jrun.jsp.JSPParser.directive(JSPParser.java:775)
at allaire.jrun.jsp.JSPParser.parse(JSPParser.java, Compiled Code)
at allaire.jrun.jsp.JSPParser.writeXML(JSPParser.java:152)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:124)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:68)
at allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java:403)
at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:375)
at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:201)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java, Compiled Code)
at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)


CLASSPATH=D:\JRun30\lib\ext\activation.jar;D:\JRun30\lib\ext\ejb.jar;D:\JRun
30\l
ib\ext\jaxp.jar;D:\JRun30\lib\ext\jdbc.jar;D:\JRun30\lib\ext\jms.jar;D:\JRun
30\l
ib\ext\jndi.jar;D:\JRun30\lib\ext\jta.jar;D:\JRun30\lib\ext\mail.jar;D:\JRun
30\l
ib\ext\parser.jar;D:\JRun30\lib\ext\xml4j.jar;D:\JRun30\lib\ext\pop3.jar;D:\
JRun
30\lib\ext\servlet.jar;D:\JRun30\lib\jrun.jar;D:\JRun30\lib\install.jar;D:\J
Run3
0\servers\lib;D:\JRun30\servers\lib\jruntags.jar;D:\JRun30\servers\default\l
ib;D
:\JRun30\lib\ejipt.jar;D:\JRun30\lib\ejipt_client.jar;D:\JRun30\lib\ejipt_to
ols.
jar;D:\JRun30\lib\jsp.jar;D:\JRun30\lib\ssi.jar;D:\JRun30\lib\wddx.jar;D:\JR
un30
\lib\xt.jar;D:\JRun30\lib\rhino.jar;D:\JRun30\servers\default\scb\WEB-INF\cl
asse
s;D:\Oracle\Ora81\jdbc\lib\classes12.zip;"D:\Program
Files\Cohera\bin\coherasql.
jar";D:\TIBCO\TIBRV\LIB\tibrvj.jar;D:\TIBCO\TIBRV\LIB\tibrvjweb.jar;D:\Tibco
\Ada
pter\SDK\java\Maverick30.jar;D:\Tibco\Adapter\SDK\java\SdkServices30.jar;D:\
Tibc
o\Adapter\SDK\examples;D:\TIBCO\Repository\jars\TibRepoClient.jar;.




Radio buttons

2001-01-19 Thread SPandith

Has anyone had luck using radio buttons?

Sharmila

Sharmila Pandith
Software Engineer
iXL Inc.

phone: 212-500-5180
AIM: spandith
Yahoo: spandith
MSN: spandith

This message is intended only for the use of the Addressee and may contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
recipient, dissemination of this communication is prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify us immediately. 





Re: Need some help please

2001-01-19 Thread Ted Husted

On 1/19/2001 at 12:52 PM [EMAIL PROTECTED] wrote:
> How do I set the value of the radio button to the value of the


Using the current builds, you would do something like this (taken from
the example application). 

Build a bean to hold the collection of radio button options. Store it
in the request context.

<%-- In real life, these would be loaded from a database --%>
<%
  java.util.ArrayList list = new java.util.ArrayList();
  list.add(new org.apache.struts.example.LabelValueBean("IMAP
Protocol", "imap"));
  list.add(new org.apache.struts.example.LabelValueBean("POP3
Protocol", "pop3"));
  pageContext.setAttribute("serverTypes", list);
%>


Reference the bean in the options tag.

  

  

In your case, I think it might be

  

  


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





Need some help please

2001-01-19 Thread SPandith

Hi,

I have the following code in the iterate tag:




  


  



<% String pID = "dispCategories.do?id=4"; %> 





  




How do I set the value of the radio button to the value of the


Thanks 
Sharmila Pandith
Software Engineer
iXL Inc.

phone: 212-500-5180
AIM: spandith
Yahoo: spandith
MSN: spandith

This message is intended only for the use of the Addressee and may contain
information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended
recipient, dissemination of this communication is prohibited. If you have
received this communication in error, please erase all copies of the message
and its attachments and notify us immediately. 





RE: Please Help: Struts issues in Weblogic5.1.0 (sp5+)

2001-01-19 Thread Anderson, Trey

In reference to your question, it looks like WLS 6.0 has changed it's classloader 
hierarchy to be more J2EE compliant.
As a result the servlet's and the jsp's have the same classloader identified by 
object.class.getClassLoader().  With
respect to classloaders, all seems well with WLS 6.0.  However I just got it to work 
last night.

As for WLS 5.1 spX the only hope I've found is a hack provided by Erik Pearson at the 
following URL.  I have not
attempted his suggestion.

http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml

-ta

 -Original Message-
From:   Magnus Petersson [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, January 19, 2001 1:16 AM
To: [EMAIL PROTECTED]
Subject:Ang: Please Help: Struts issues in Weblogic5.1.0 (sp5+)

I have encountered exactly the same problems and solved them the 
same way as described by Eric Pearson. This solution seems to work 
well as long as we run on WLS 5.1 sp6.

There is another issue though. In WLS 5.1 sp8 the load-on-startup 
tag in the deployment descriptor has been fixed and works as it should.
This sounds nice at first but the problem is that this causes the 
servlets to be loaded before the jsps and therefor loaded by the 
wrong classloader. In other words, Struts does not work with sp > 
6.

If anyone has a solution to this problem I would really appreciate 
to hear about it.

I would also like to hear about experience running Struts on WLS 
6.0. Has anyone had any problems?

Greetings Magnus Petersson



Sänd svar till [EMAIL PROTECTED]
Till:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]
org>
Kopia:   
Ärende: Please Help: Struts issues in Weblogic5.1.0 (sp5+)

I am new to struts and find it a very exciting and powerful solution 
which I would like to implement into all our
solutions.

After implementing a small sample application, I have encountered 
the dreaded ClassCastException and am trying to
understand it's cause and appropriate solution.  After navigating 
through past postings I have found the following
website by Erik Pearson.

http://archive.covalent.net/jakarta/struts-user/2000/10/0009.xml
 

On this site he goes into an explanation of the cause and a description 
of what seems to be the only solution.

1)   Could someone please validate this solution?
2)   Is there an alternative solution for avoiding this classloader 
problem?
3)   I read that the root cause of this issue is the fact that Weblogic 
5.1.0 is not 100% J2EE compliant.  If this is
true would using Weblogic 6.0, which is J2EE compliant resolve this 
issue?
a.   What new issues could arise?  Solutions?

I would very much appreciate guidance in this matter,
-ta












Re: Ang: Please Help: Struts issues in Weblogic5.1.0 (sp5+)

2001-01-19 Thread Wong Kok Wai

I've having no major problem with WLS 5.1 sp8. I find
sp8 is rock solid for Struts and I don't need to apply
any of the workarounds (like adding a startup class).
The only exception I like to add is I'm deploying my
web application in an un-jarred fashion.



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



AW: Container doesn't seem to allow *.do

2001-01-19 Thread Oliver . Lauer

Hi, 

I work with Iplanet6.0 and the *.do-URL works fine using within any JSP-Page
as action-parameter in a form-tag and within requesting directly via URL,
but it doesn't work using a *.do-URL as a forward-tag like: . 

Here I have difficulties in calling:

 RequestDispatcher rd =
getServletContext().getRequestDispatcher(path);
rd.forward(request, response);

with the follwing IPLANET6.0-message:

'SERVLET-filetype_not_mapped: Mime mapping not found for file, while
displaying static content'

Does anybody if and how it works with IPLANET6.0 ?

Thanks
Oliver


-Ursprüngliche Nachricht-
Von: Steve Croft [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 15. Januar 2001 22:10
An: [EMAIL PROTECTED]
Betreff: Re: Container doesn't seem to allow *.do

I believe iWS 4.1 has the ability to map so maybe the same technique is 
possible in the app server - I have not done this myself, so it may be 
totally wrong, but check out the section, "Using Regular Expressions in 
rules.properties", Appendix C,  in the iWS Programmer's Guide to Servlets:

http://docs.iplanet.com/docs/manuals/enterprise/41/servlets/contents.htm
Obviously this is indirect help since you'll have to see if something 
similar exists for the App Server.

Steve



Frank Starsinic wrote:

> I noticed that as well. It seems to me that the Netscape/Iplanet server
> is always behind on supporting java thingys like the latest in the JSP
spec,
> servlet spec, etc.  that's always been frustrating to me.
> 
> you may have to create several x.do, y.do, z.do mappings to get it to
work.
> either that or switch to apache and tomcat or Jrun.
> 
> frank
> 
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 11, 2001 8:19 PM
>> To: [EMAIL PROTECTED]
>> Subject: Container doesn't seem to allow *.do
>> 
>> 
>> It looks like iPlanet 6.0sp1 does not allow the servlet
>> mapping of *.do.
>> How can I work around this?
>> 
>> Lou Farho
>> Sr. Engineer
>> Level (3) Communications, Inc.
>> 720-888-7751
>> 




Re: Getting Struts to Work with Weblogic x.x SPx

2001-01-19 Thread tm64

Hi. 
So far, I use Struts privatly on TC3.2.
In order to use it at work (which would be just great!) it would need to function rock 
solid on Weblogic.
I did not try this myself yet, but I am reading the messages about problems. I 
understand that this is about servletengine specification vs. implementation. 
Can we - any soon - expect Weblogic (5.x) to be a stable basis for Struts or should TC 
be always seen as the better choice? Thanks.
Timur Mervarz


-
Get free personalized email from Lycos at http://de.lycosmail.com