Tiles & menus

2006-11-22 Thread Java Programmer

Hello,
I have some troubles with finding examples of using SimpleMenuItem and
 tags within , so far I did menu like this:
- part of tiles-def.xml:

   
   






- part of jsp *tile*



">

So first I import attribute into jsp context, and further iterate
through it with jstl forEach / out tags. Is this good solution? Are
there any better for using SimpleMenuItem in JSP pages?

Best regards,
Adr

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



Re: how to use validation rules from validatior-rules.xml in Struts Actions

2006-11-24 Thread Java Programmer

On 11/23/06, robin bajaj <[EMAIL PROTECTED]> wrote:

Hi Folks,
I have an Email text field that I want to validate against Struts
validation framework's provided "email" Rule in validator-rules.xml.

Can I do this programmatically in Struts Action or ActionForm's java
code instead of
having to declaratively do it in validation.xml. ??

You can implement validate() method in ActionForm class, and use
EmailValidator class part of commons-validator package, as the Struts
use it.

Regards,
Adr

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



Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
Hello James,

Please consider my qualifications for a Java position. My resume in Word
format is attached.

Thank you for your consideration.

Sincerely,

Will Wagers

- Original Message - 
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 8:29 PM
Subject: Re: [OT] Jobs


> I am trying to find 10 descent struts developers to fill open positions.
I
> tell ya, its nice to be needed instead of how it was a year ago where we
> were all under bidding each other.
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> - Original Message -
> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 12, 2004 5:13 PM
> Subject: RE: [OT] Jobs
>
>
> James,
>
> Is that desperate to fill a job vacancy or desperate to get one?
>
> Simon
>
> >-Original Message-
> >From: James Mitchell [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, May 12, 2004 3:14 PM
> >To: Struts Users Mailing List
> >Subject: [OT] Jobs
> >
> >
> >Please forgive the off topic post, but I'm desperate.
> >
> >If you are in or near Atlanta GA, and looking for a Struts
> >job.  Please send
> >me a direct email.
> >
> >
> >--
> >James Mitchell
> >Software Engineer / Open Source Evangelist
> >EdgeTech, Inc.
> >678.910.8017
> >AIM: jmitchtx
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
Oops!

Please disregard my previous post. It was sent in error and ignorance. It
was intended for a private party. Sorry for the inconvenience.

Will

- Original Message - 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 5:07 PM
Subject: Re: [OT] Jobs


> Hello James,
>
> Please consider my qualifications for a Java position. My resume in Word
> format is attached.
>
> Thank you for your consideration.
>
> Sincerely,
>
> Will Wagers
>
> - Original Message - 
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 12, 2004 8:29 PM
> Subject: Re: [OT] Jobs
>
>
> > I am trying to find 10 descent struts developers to fill open positions.
> I
> > tell ya, its nice to be needed instead of how it was a year ago where we
> > were all under bidding each other.
> >
> >
> > --
> > James Mitchell
> > Software Engineer / Open Source Evangelist
> > EdgeTech, Inc.
> > 678.910.8017
> > AIM: jmitchtx
> >
> > - Original Message -
> > From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 12, 2004 5:13 PM
> > Subject: RE: [OT] Jobs
> >
> >
> > James,
> >
> > Is that desperate to fill a job vacancy or desperate to get one?
> >
> > Simon
> >
> > >-Original Message-
> > >From: James Mitchell [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, May 12, 2004 3:14 PM
> > >To: Struts Users Mailing List
> > >Subject: [OT] Jobs
> > >
> > >
> > >Please forgive the off topic post, but I'm desperate.
> > >
> > >If you are in or near Atlanta GA, and looking for a Struts
> > >job.  Please send
> > >me a direct email.
> > >
> > >
> > >--
> > >James Mitchell
> > >Software Engineer / Open Source Evangelist
> > >EdgeTech, Inc.
> > >678.910.8017
> > >AIM: jmitchtx
> > >
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>






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



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



Recommend Struts Plugins for Eclipse?

2004-06-25 Thread e-denton Java Programmer
I am converting from Kawa to Eclipse. Anyone have Eclipse plugins they
recommend for Struts, Tomcat, JBoss, XML, etc development?

Thanks for your opinions.


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



Better way?

2004-07-12 Thread e-denton Java Programmer
Hi,

When I want to open a new browser window to access an offsite URL, I have
been loading a jsp with a frameset containing that URL, i.e. "return new
ActionForward ("/offsiteFrameset.jsp")". For example, to open a URL from a
page of offsite links. Is there a better or more direct way of doing it?

Thanks!


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



Re: R: How to render html embedded in a text-area?

2004-08-03 Thread e-denton Java Programmer
According to the Struts API:

ActionConfig.getPath()
  Return context-relative path of the submitted request, starting
with a slash ("/") character, and omitting any filename extension if
extension mapping is being used.

But,

 System.err.println (mapping.findForward
(Constants.FORWARD_BANNER).getPath());
 System.err.println (mapping.getPath() );

prints:

/banner.do
/offsite

I am expecting "/banner" not "/banner.do". I am using extension mapping. Am
I missing the point? How should I get  "/banner" from
Constants.FORWARD_BANNER?

Thx.




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



Please .dont

2004-08-03 Thread e-denton Java Programmer
(Sorry, I posted this once already under the wrong subject:
Re: R: How to render html embedded in a text-area?)

According to the Struts API:

ActionConfig.getPath()
  Return context-relative path of the submitted request, starting
with a slash ("/") character, and omitting any filename extension if
extension mapping is being used.

But,

 System.err.println
(mapping.findForward(Constants.FORWARD_BANNER).getPath());
 System.err.println (mapping.getPath() );

prints:

/banner.do
/offsite

I am expecting "/banner" not "/banner.do". I am using extension mapping. Am
I missing the point? How should I get  "/banner" from
Constants.FORWARD_BANNER?

Thx.




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



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



Roller as Struts Module

2004-08-04 Thread e-denton Java Programmer
I only have a single context at my ISP, and I want to use Roller Weblogger
(http://www.rollerweblogger.org/page/project). Would it be practical to make
it a module? Any tips or comments appreciated.

I haven't found many useful module examples on the Web.

Thx.


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



Re: Please .dont

2004-08-05 Thread e-denton Java Programmer
Thanks, Kishore, but that will give me the form name. I want the Action path
sans ".do".

- Original Message - 
From: "Kishore Senji" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java
Programmer" <[EMAIL PROTECTED]>
Sent: Wednesday, August 04, 2004 10:08 AM
Subject: Re: Please .dont


> mapping.findForward returns a ForwardConfig and not ActionConfig. If
> you want /banner and not /banner.do, Use
> RequestUtils.getActionMappingName(action).
>
> On Tue, 3 Aug 2004 22:49:48 -0500, e-denton Java Programmer
> <[EMAIL PROTECTED]> wrote:
> >
> > According to the Struts API:
> >
> > ActionConfig.getPath()
> >  Return context-relative path of the submitted request, starting
> > with a slash ("/") character, and omitting any filename extension if
> > extension mapping is being used.
> >
> > But,
> >
> > System.err.println
> > (mapping.findForward(Constants.FORWARD_BANNER).getPath());
> > System.err.println (mapping.getPath() );
> >
> > prints:
> >
> > /banner.do
> > /offsite
> >
> > I am expecting "/banner" not "/banner.do". I am using extension mapping.
Am
> > I missing the point? How should I get  "/banner" from
> > Constants.FORWARD_BANNER?
> >
> > Thx.


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



Bad XML?

2004-10-06 Thread e-denton Java Programmer
I am getting this Tomcat error on my remote server (It runs on my local
server):

"Oct 6, 2004 12:35:25 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 321 column 17: The content of element type
"struts-config" must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config"
must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)"

But, I can't see what's wrong with my XML below:


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




 
 
 
 
 
 
 






 
 
 
 
 
 
 
 
 
 
 
 
 
 



 
 
 
 







 


 
 
  
 

 

  


 

  
  


 

  


 

  


 

  


 

  


 

  



 




  




  







  




  





  





  




  










  




  


 
































;







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



Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Hi,

I want to set an application attribute from an Action.

How do I get the ServletContext from an Action?

Thx.

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



Re: Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Nevermind...

servlet.getServletContext()

getServlet().getServletContext() 

request.getSession().getServletContext()


- Original Message - 
From: "e-denton Java Programmer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 17, 2004 1:00 PM
Subject: Access context from Action?


> Hi,
> 
> I want to set an application attribute from an Action.
> 
> How do I get the ServletContext from an Action?
> 
> Thx.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Latest Struts Install Problem

2004-10-18 Thread e-denton Java Programmer
Hi,

I just tried to install Struts Struts 1.2.4 and got the error below.

Should I be using the binaries or library download (What's the difference?)
?

Thx.


exception

javax.servlet.ServletException: org/apache/struts/taglib/template/InsertTag
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
56)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError: org/apache/struts/taglib/template/InsertTag
 java.lang.Class.getDeclaredConstructors0(Native Method)
 java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
 java.lang.Class.getConstructor0(Class.java:1922)
 java.lang.Class.newInstance0(Class.java:278)
 java.lang.Class.newInstance(Class.java:261)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
a:137)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
07)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
56)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



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



Re: Latest Struts Install Problem

2004-10-18 Thread e-denton Java Programmer
Yep, using templates. Are they no longer supported?

- Original Message - 
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java
Programmer" <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 2:10 PM
Subject: Re: Latest Struts Install Problem


> Are you using the Template library?
> What version of Struts are you moving from?
> That class was deprecated and removed after 1.1.
>
> (BTW, it has been recommended to use Tiles instead of templates for about
2
> years now)
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> - Original Message -
> From: "e-denton Java Programmer" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, October 18, 2004 2:56 PM
> Subject: Latest Struts Install Problem
>
>
> > Hi,
> >
> > I just tried to install Struts Struts 1.2.4 and got the error below.
> >
> > Should I be using the binaries or library download (What's the
> difference?)
> > ?
> >
> > Thx.
> >
> > 
> > exception
> >
> > javax.servlet.ServletException:
> org/apache/struts/taglib/template/InsertTag
> >  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> > 56)
> >
> >
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
> > sor.java:388)
> >
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
> >  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
> > root cause
> >
> > java.lang.NoClassDefFoundError:
> org/apache/struts/taglib/template/InsertTag
> >  java.lang.Class.getDeclaredConstructors0(Native Method)
> >  java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
> >  java.lang.Class.getConstructor0(Class.java:1922)
> >  java.lang.Class.newInstance0(Class.java:278)
> >  java.lang.Class.newInstance(Class.java:261)
> >
> >
>
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
> > a:137)
> >
> >
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> > 07)
> >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> >  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> > 56)
> >
> >
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
> > sor.java:388)
> >
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
> >  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>


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



Where's tlds?

2004-10-19 Thread e-denton Java Programmer
Hi,

Where are the struts tlds supposed to be?

 I downloaded the struts zip (jakarta-struts-1.2.4) and the lib
(jakarta-struts-1.2.4-lib),
but I couldn't find struts-form or struts-template.

Thx.


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



Re: [OT] Hosting Companies

2004-10-23 Thread e-denton Java Programmer
I use http://www.webappcabaret.com/index.html.

- Original Message - 
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, October 23, 2004 2:04 AM
Subject: RE: [OT] Hosting Companies


> Joe,
>
> Wouldn't a hosting company that has a plan with a dedicated JVM + Tomcat +
> Struts plan work for you?  Like this hosting plan description for a
> 'dedicated jvm'.  They also install Tomcat v5.0.XX for an additional
$50.00
> (USD) or so.  Their hosting machines are in Houston, TX.
> http://www.oxxus.net/hosting_java.htm
>
> I use them for e-mail hosting because I haven't put any private Struts
> projects up yet, only one of my client projects has used Struts, so far
> anyway.  And no, I don't get any referral fee for mentioning this. :)
>
> Regards,
> David
>
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 23, 2004 2:28 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Hosting Companies
>
>
> Er Spring, not Swing.
>
> No Frameworks for you. Next!
>
> :-)
>
> > -Original Message-
> > From: Joe Hertz [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, October 23, 2004 2:24 AM
> > To: 'Struts Users Mailing List'
> > Subject: [OT] Hosting Companies
> >
> >
> > I dont see Struts supporting hosting companies on the wiki.
> > It used to be on
> > the site before the resources link pointed you to the wiki IARC.
> >
> > 
> > I just found out that the hosting company I use decided that
> > they won't let
> > you deploy anything using Hibernate (or Swing, or
> > Tapestry...or Jive or
> > Cocoon for that matter -- because they "were all designed for
> > a dedicated
> > server"). Struts however is still okay.
> >
> > Of course the raw JDBC calls I rolled myself are going to
> > scale better than
> > Hibernate (but apparently not iBatis..go figger).
> >
> > And I always thought it was the Tapestry community that
> > thought that Struts
> > was the bloated framework?
> > 
> >
> > Anyone able to recommend a reliable, not too anal, and not
> > too pricy place
> > to deploy an app? I'll be happy to accumulate these for a wiki update.
> >
> > TIA
> > -Joe


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



Struts img tag usage

2004-10-26 Thread e-denton Java Programmer
Hi!

I have been using the Struts img tag instead of the HTML img tag just cause
I was trying to use and learn the Struts tags, e.g. . But, now that I
have tried deploying, I find it doesn't work for me. Apparently, it adds the
jessionid onto the url
(http://www.xxx.com/grafx/logo.jpg;jsessionid=49A25B81DEBD4EF7281DA6FA542BE7
96) which somehow interferes with fetching the image. (It works on the first
load, but on subsequent ones, the cached copy fails.) I have read about the
tag online and in books, but the descriptions were terse with no examples.
So, I find I do not know the purpose or usage of the img (and, I suppose,
similar tags like link) tag.

1. Why does the url with the appended jsessionid fail?
2. When would you want the jsessionid appended?
2. How and when should one use Struts img? Examples please.

Thanks!


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



How handle multiple records in form?

2005-05-04 Thread e-denton Java Programmer
Hi,

I need to accept up to 20 records per form, which may have been edited and
update them in the database. In the past I have tried assigning unique ids
to each form field or using Javascript to create an XML string of the
fields. I don't like either method. Is there a best practice for this?

Thanks,

Will


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



How handle multiple records in form?

2005-05-04 Thread e-denton Java Programmer
Hi,

I need to accept up to 20 records per form, which may have been edited and
update them in the database. In the past I have tried assigning unique ids
to each form field or using Javascript to create an XML string of the
fields. I don't like either method. Is there a best practice for this?

Thanks,

Will


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



Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi,

I recently wrote an Action which in conjunction with an ActiveX object
returns a table from the server to update the DOM in the browser. My
question is: Is this a proper use of an Action, here essentially just a
subroutine I am calling from the client, with no forwarding action? Or
should I have used a servlet for this purpose?

Thanks.


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



Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi,

I recently wrote an Action which in conjunction with an ActiveX object
returns a table from the server to update the DOM in the browser. My
question is: Is this a proper use of an Action, here essentially just a
subroutine I am calling from the client, with no forwarding action? Or
should I have used a servlet for this purpose?

Thanks.


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



Re: [OT] - Blog and Forum plugin

2004-11-22 Thread e-denton Java Programmer
Roller blog for blogging at http://www.rollerweblogger.org/page/project

- Original Message - 
From: "Richard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 4:43 AM
Subject: [OT] - Blog and Forum plugin


> Hi Guys,
> 
> I am tasked to add a Blog and Forum capability on my webapp. Its using
> Struts and JSP. I was wondering if some of you might have some
> suggestions for some open source components that I could use. If its
> not too much please add if you could its advantages and disadvantages.
> 
> Thanks in advance.
> Richard
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



OT Useful Validation Routines

2004-11-26 Thread e-denton Java Programmer
 Hi,

If you aren't using Validator, you might find these useful:

public static boolean isValidEmailAddress (String eMailAddress)
  {
  return eMailAddress.matches
("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_
A-Za-z0-9-]+)");
  }

 public static boolean isValidURL (String url)
  {
  return url.matches
("^https?://([-\\w\\.]+)(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)?");
  } // end isValidURL

Happy Thanksgiving!


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



Re: 2005

2004-12-31 Thread e-denton Java Programmer
And, thanks to all for their help this year!

- Original Message - 
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "strutsuser" 
Sent: Friday, December 31, 2004 10:09 AM
Subject: 2005


> And a happy new year to you all!
> 
> -Andrew
> 
> 2005-01-01 00:07
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: OT constants interface

2005-01-22 Thread e-denton Java Programmer

What makes this sort of interface acceptable?

package java.io;

public interface Serializable {
}

Instead of, maybe...

public interface Serializable {
public final boolean isSerializable {
return true;
}
}

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 22, 2005 3:43 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: constants interface

To summarize Joshua Bloch,

Once you use an interface for constants, you allow users of that
interface to implement the interface to access the constants. 
However, that a class uses a constant internally is an implementation
detail.  The combination of these two things means that an
implementation detail is exported into the classes API.  This is a
poor design choices because: (a) the implementation of the interface
is of no consequence to the users ot the class; (b) the implementation
might confuse the users of the class; (c) if a future release of the
class is modified so that it does not need the constants, it still
must implement the interface to insure binary compatibility; (d) if a
nonfinal class implements such an interface, all of its subclasses
will have there namespace polluted by the constants in the interface. 
That ought to hold you, Frank, until the snow is cleared?

Anyway, there are option: (1) use a class (AClass) instead of an
interface (just change "interface" to "class") which contains the same
constants (AClass.SOME_CONSTANT) and avoid lots of typing as follows:
private static final double PI = Math.PI; (2) if constants are tied to
a particular class, put them in there as with MIN_VALUE in Integer;
(3) if the constants are best viewed as enumerated types, export them
with a type-safe enum class (Maybe different with TIger)  such as:

public class Suit {
  private final String name;
  private Suit(String name) { this.name = name; }
  public String toString() { return name; }
  public static final Suit CLUBS = new Suit("clubs");
  public static final Suit DIAMONDS = new Suit("diamonds");
  public static final Suit HEARTS = new Suit("hearts");
  public static final Suit SPADES = new Suit("spades");
}

 That's about it.  Pennsylvania is so beautiful, Frank.  I cannot
imagine how nice it must be to be in the snow there.  Enjoy!



public class WayOne {
   public void myMethod(){
  String yes = MyInterface.YES;
  //...
   }
}

public class WayTwo implements MyInterface {
   public void myMethod(){
  String yes = YES;
  //...
   }
}


The FIRST way is preferable, because you don't tie down the type, but
the SECOND way is the only sensible way to do it if you use an
interface, because there is no other reason to use an interface. 
However, this is why, in the big picture, why using an interface is
itself a design mistake, as others have noted Joshua Bloch has so
succinctly and pointedly showed.

Jack


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



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



RE: OT constants interface

2005-01-22 Thread e-denton Java Programmer

What makes this sort of interface acceptable?

package java.io;

public interface Serializable {
}

Instead of, maybe...

public interface Serializable {
public final boolean isSerializable {
return true;
}
}

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 22, 2005 3:43 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: constants interface

To summarize Joshua Bloch,

Once you use an interface for constants, you allow users of that
interface to implement the interface to access the constants. 
However, that a class uses a constant internally is an implementation
detail.  The combination of these two things means that an
implementation detail is exported into the classes API.  This is a
poor design choices because: (a) the implementation of the interface
is of no consequence to the users ot the class; (b) the implementation
might confuse the users of the class; (c) if a future release of the
class is modified so that it does not need the constants, it still
must implement the interface to insure binary compatibility; (d) if a
nonfinal class implements such an interface, all of its subclasses
will have there namespace polluted by the constants in the interface. 
That ought to hold you, Frank, until the snow is cleared?

Anyway, there are option: (1) use a class (AClass) instead of an
interface (just change "interface" to "class") which contains the same
constants (AClass.SOME_CONSTANT) and avoid lots of typing as follows:
private static final double PI = Math.PI; (2) if constants are tied to
a particular class, put them in there as with MIN_VALUE in Integer;
(3) if the constants are best viewed as enumerated types, export them
with a type-safe enum class (Maybe different with TIger)  such as:

public class Suit {
  private final String name;
  private Suit(String name) { this.name = name; }
  public String toString() { return name; }
  public static final Suit CLUBS = new Suit("clubs");
  public static final Suit DIAMONDS = new Suit("diamonds");
  public static final Suit HEARTS = new Suit("hearts");
  public static final Suit SPADES = new Suit("spades");
}

 That's about it.  Pennsylvania is so beautiful, Frank.  I cannot
imagine how nice it must be to be in the snow there.  Enjoy!



public class WayOne {
   public void myMethod(){
  String yes = MyInterface.YES;
  //...
   }
}

public class WayTwo implements MyInterface {
   public void myMethod(){
  String yes = YES;
  //...
   }
}


The FIRST way is preferable, because you don't tie down the type, but
the SECOND way is the only sensible way to do it if you use an
interface, because there is no other reason to use an interface. 
However, this is why, in the big picture, why using an interface is
itself a design mistake, as others have noted Joshua Bloch has so
succinctly and pointedly showed.

Jack


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



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



RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
Hi,

The Nitrox JSP Editor installed okay, but now it insists I convert my Tomcat
Projects into Web Application Projects. That's a lot to give up to get a
nice JSP editor. And, when my license expires, how would I convert the
projects back into Tomcat projects--not in one easy step!

How long is the free license good for?

Thanks.

Will


-Original Message-
From: Carlos Chang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 4:10 PM
To: Struts Users Mailing List
Subject: [ANN] Free JSP Editor for Eclipse

Dear Java Developer,

For a limited time, M7 is offering the NitroX JSP Editor for Eclipse for
FREE!*  
Download: http://www.m7.com/free

NitroX has received top scores from industry reviewers such as SD
Magazine, CRN, JavaBoutique, and is officially a finalist for the
upcoming Jolt Product Excellence Award for Best Web Development Tool of
the Year.

The NitroX JSP Editor provides the following features:

* Professional JSP source editor
* Simultaneous 2-way source and visual JSP editors
* JSP 2.0 (including EL) - Unequaled!
* JSTL
* Grapical editor for TLDs
* Graphical editor for web.xml
* Code completion
* Custom tag library support
* + much more
* and it's FREE!

Act now because this offer is available only for a limited time.

Thank you,


M7 Team

* Restrictions apply; please see license agreement for details. 
FREE = No cost, gratuit, gratis, frei, libero...ok, there is a catch;
this offer is only for a limited time. ;-)





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



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



RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
Hi,

The Nitrox JSP Editor installed okay, but now it insists I convert my Tomcat
Projects into Web Application Projects. That's a lot to give up to get a
nice JSP editor. And, when my license expires, how would I convert the
projects back into Tomcat projects--not in one easy step!

How long is the free license good for?

Thanks.

Will


-Original Message-
From: Carlos Chang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 4:10 PM
To: Struts Users Mailing List
Subject: [ANN] Free JSP Editor for Eclipse

Dear Java Developer,

For a limited time, M7 is offering the NitroX JSP Editor for Eclipse for
FREE!*  
Download: http://www.m7.com/free

NitroX has received top scores from industry reviewers such as SD
Magazine, CRN, JavaBoutique, and is officially a finalist for the
upcoming Jolt Product Excellence Award for Best Web Development Tool of
the Year.

The NitroX JSP Editor provides the following features:

* Professional JSP source editor
* Simultaneous 2-way source and visual JSP editors
* JSP 2.0 (including EL) - Unequaled!
* JSTL
* Grapical editor for TLDs
* Graphical editor for web.xml
* Code completion
* Custom tag library support
* + much more
* and it's FREE!

Act now because this offer is available only for a limited time.

Thank you,


M7 Team

* Restrictions apply; please see license agreement for details. 
FREE = No cost, gratuit, gratis, frei, libero...ok, there is a catch;
this offer is only for a limited time. ;-)





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



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



RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
Here's another problem. If I leave my app as a Sydeo Tomcat application,
Nitrox still asks me every time I open a .jsp file if I want to manage it as
a "web application". Then, gives me a notice that it is using the regular
text editor instead (if I click No). So, if I choose not to use Nitrox on a
project, it's going to bug me twice for every .jsp file I open.

-Original Message-
From: Carlos Chang [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 1:18 PM
To: Struts Users Mailing List
Subject: RE: [ANN] Free JSP Editor for Eclipse

Hi Will,

Regarding your question about Tomcat projects:
"By converting into Web application we do not modify any of the user
files, we build a database with all the artifacts. And after expiration
the project is same as what it was earlier."
>From our perspective, all we're looking for is a webinf folder and the
web.xml file.  Hope this helps.

Thanks,

-Carlos

> -Original Message-
> From: Carlos Chang
> Sent: Friday, February 04, 2005 10:22 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: [ANN] Free JSP Editor for Eclipse
> 
> Hi Will,
> 
> For the current offer in place today, the license does NOT expire and
> you will have access to updates for the JSP Editor free for 1 year.
As
> for the project, I'm not familiar with this issue so I'll have to get
> back to you on this.
> 
> Thanks,
> 
> -Carlos
> 
> > -Original Message-
> > From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 04, 2005 4:01 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [ANN] Free JSP Editor for Eclipse
> >
> > Hi,
> >
> > The Nitrox JSP Editor installed okay, but now it insists I convert
my
> > Tomcat
> > Projects into Web Application Projects. That's a lot to give up to
get
> a
> > nice JSP editor. And, when my license expires, how would I convert
the
> > projects back into Tomcat projects--not in one easy step!
> >
> > How long is the free license good for?
> >
> > Thanks.
> >
> > Will
> >
> >
> > -Original Message-
> > From: Carlos Chang [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 02, 2005 4:10 PM
> > To: Struts Users Mailing List
> > Subject: [ANN] Free JSP Editor for Eclipse
> >
> > Dear Java Developer,
> >
> > For a limited time, M7 is offering the NitroX JSP Editor for Eclipse
> for
> > FREE!*
> > Download: http://www.m7.com/free
> >
> > NitroX has received top scores from industry reviewers such as SD
> > Magazine, CRN, JavaBoutique, and is officially a finalist for the
> > upcoming Jolt Product Excellence Award for Best Web Development Tool
> of
> > the Year.
> >
> > The NitroX JSP Editor provides the following features:
> >
> > * Professional JSP source editor
> > * Simultaneous 2-way source and visual JSP editors
> > * JSP 2.0 (including EL) - Unequaled!
> > * JSTL
> > * Grapical editor for TLDs
> > * Graphical editor for web.xml
> > * Code completion
> > * Custom tag library support
> > * + much more
> > * and it's FREE!
> >
> > Act now because this offer is available only for a limited time.
> >
> > Thank you,
> >
> >
> > M7 Team
> >
> > * Restrictions apply; please see license agreement for details.
> > FREE = No cost, gratuit, gratis, frei, libero...ok, there is a
catch;
> > this offer is only for a limited time. ;-)
> >
> >
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



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



RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
Here's another problem. If I leave my app as a Sydeo Tomcat application,
Nitrox still asks me every time I open a .jsp file if I want to manage it as
a "web application". Then, gives me a notice that it is using the regular
text editor instead (if I click No). So, if I choose not to use Nitrox on a
project, it's going to bug me twice for every .jsp file I open.

-Original Message-
From: Carlos Chang [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 1:18 PM
To: Struts Users Mailing List
Subject: RE: [ANN] Free JSP Editor for Eclipse

Hi Will,

Regarding your question about Tomcat projects:
"By converting into Web application we do not modify any of the user
files, we build a database with all the artifacts. And after expiration
the project is same as what it was earlier."
>From our perspective, all we're looking for is a webinf folder and the
web.xml file.  Hope this helps.

Thanks,

-Carlos

> -Original Message-
> From: Carlos Chang
> Sent: Friday, February 04, 2005 10:22 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: [ANN] Free JSP Editor for Eclipse
> 
> Hi Will,
> 
> For the current offer in place today, the license does NOT expire and
> you will have access to updates for the JSP Editor free for 1 year.
As
> for the project, I'm not familiar with this issue so I'll have to get
> back to you on this.
> 
> Thanks,
> 
> -Carlos
> 
> > -Original Message-
> > From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 04, 2005 4:01 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [ANN] Free JSP Editor for Eclipse
> >
> > Hi,
> >
> > The Nitrox JSP Editor installed okay, but now it insists I convert
my
> > Tomcat
> > Projects into Web Application Projects. That's a lot to give up to
get
> a
> > nice JSP editor. And, when my license expires, how would I convert
the
> > projects back into Tomcat projects--not in one easy step!
> >
> > How long is the free license good for?
> >
> > Thanks.
> >
> > Will
> >
> >
> > -Original Message-
> > From: Carlos Chang [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 02, 2005 4:10 PM
> > To: Struts Users Mailing List
> > Subject: [ANN] Free JSP Editor for Eclipse
> >
> > Dear Java Developer,
> >
> > For a limited time, M7 is offering the NitroX JSP Editor for Eclipse
> for
> > FREE!*
> > Download: http://www.m7.com/free
> >
> > NitroX has received top scores from industry reviewers such as SD
> > Magazine, CRN, JavaBoutique, and is officially a finalist for the
> > upcoming Jolt Product Excellence Award for Best Web Development Tool
> of
> > the Year.
> >
> > The NitroX JSP Editor provides the following features:
> >
> > * Professional JSP source editor
> > * Simultaneous 2-way source and visual JSP editors
> > * JSP 2.0 (including EL) - Unequaled!
> > * JSTL
> > * Grapical editor for TLDs
> > * Graphical editor for web.xml
> > * Code completion
> > * Custom tag library support
> > * + much more
> > * and it's FREE!
> >
> > Act now because this offer is available only for a limited time.
> >
> > Thank you,
> >
> >
> > M7 Team
> >
> > * Restrictions apply; please see license agreement for details.
> > FREE = No cost, gratuit, gratis, frei, libero...ok, there is a
catch;
> > this offer is only for a limited time. ;-)
> >
> >
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Catch me up!

2006-03-12 Thread e-denton Java Programmer
Hi,

 

I've been away from my Struts project for a while. I hear there have been
several developments. What's the latest version of Struts I should be using?
What about using other packages with Struts, like Spring, and I hear there
are others. I'd appreciate enough direction to get me restarted on the right
foot.

 

Thx!

 

C# Online.NET

http://wiki.csharp-online.net  

 



UnsupportedClassVersionError

2005-12-08 Thread e-denton Java Programmer
Hi,

I recently uploaded an updated Struts application to a remote server. Now I
get this message (below: UnsupportedClassVersionError). I am using Tomcat
5.0.27. I do have 5.5 on that system, but everything points to 5.0.27 (as
far as I can tell). I am running Java 1.4.2_01_b06. I have the same setup on
my dev machine--except Tomcat 5.5 is not on that system--and everything
works fine. 

Thanks for your help.

 

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:   Resource
parameters for jdbc/portal = ResourceParams[name=jdbc/portal,
parameters={factory=org.apache.commons.dbcp.BasicDataSourceFactory,
maxWait=1, maxActive=10, password=small1,
url=jdbc:mysql://127.0.0.1:3306/fortune?autoReconnect=true,
driverClassName=com.mysql.jdbc.Driver, maxIdle=5, username=fortune}]

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:   Adding
resource ref jdbc/portal

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:
ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory
ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar
eable},{type=auth,content=Container},{type=factory,content=org.apache.common
s.dbcp.BasicDataSourceFactory},{type=maxWait,content=1},{type=maxActive,
content=10},{type=password,content=small1},{type=url,content=jdbc:mysql://12
7.0.0.1:3306/fortune?autoReconnect=true},{type=driverClassName,content=com.m
ysql.jdbc.Driver},{type=maxIdle,content=5},{type=username,content=fortune}]

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:   Resource
parameters for mail/Session = ResourceParams[name=mail/Session,
parameters={mail.smtp.host=mars.webappcabaret.net}]

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:   Adding
resource ref mail/Session

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:
ResourceRef[className=javax.mail.Session,factoryClassLocation=null,factoryCl
assName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Sharea
ble},{type=auth,content=Container},{type=mail.smtp.host,content=mars.webappc
abaret.net}]

2005-12-08 04:30:59 NamingContextListener[/Catalina/localhost]:   Resource
parameters for UserTransaction = null

2005-12-08 04:32:43 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception

java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main
(Unsupported major.minor version 49.0)

  at java.lang.ClassLoader.defineClass0(Native Method)

  at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

  at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

  at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

  at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

  at java.security.AccessController.doPrivileged(Native Method)

  at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

  at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

  at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

  at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:803)

  at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:721)

  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

  at java.lang.Class.forName0(Native Method)

  at java.lang.Class.forName(Class.java:141)

  at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCom
pilerExist(CompilerAdapterFactory.java:140)

  at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C
ompilerAdapterFactory.java:98)

  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)

  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)

  at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

  at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)

  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

  at
org.apache.catalina.core.StandardValveContext.in