RE: sorting drop down values in a drop box in jsp

2004-03-10 Thread Brian Lee
You can also use the BeanComparator class from the commons package instead 
of writing your own Comparator class.

It's pretty fast and allows for more flexibility (i.e. passing in the sort 
property, etc etc)

BAL

From: Wendy Smoak [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: sorting drop down values in a drop box in jsp
Date: Wed, 10 Mar 2004 12:04:13 -0700
 From: as as [mailto:[EMAIL PROTECTED]
 Looking for  aeasy way to sort entries in the drop down in my
 jsp, that are populated using the bean and html: select tag
 with options: collection:
 my code as of now is below:
 html:select style=width:225px property=fullName
 html:options collection=teachers property=teacher
 labelProperty=fullName/
 /html:select
I do this to display a bunch of checkboxes sorted by either the account
number or the cost center.
In the Action:
  HttpSession session = request.getSession();
  Map accountMap = (Map) session.getAttribute( accountMap );
  Map newMap = new TreeMap( new CostCenterComparator() );
  newMap.putAll( accountMap );
  session.setAttribute( accountMap, newMap );
  accountMap = null;
And now the Map sitting in session scope is sorted by cost center.
Sorting it by Account is the natural order, so I just make a new TreeMap
with no Comparator, and dump the items in.
It's a little different with List than Map.  What type of Collection is
'teachers'?
And you don't have to put it in the session, it might be in the request,
or be a form property.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Fast. Reliable. Get MSN 9 Dial-up - 3 months for the price of 1! 
(Limited-time Offer) http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

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


RE: javascript delete function wih struts

2004-03-10 Thread Brian Lee
You will want to change the event on your submit from onclick to onsubmit 
and modify the set function to return the agree variable (the form will 
submit if the onsubmit handler returns true).

So it will look something like this:
function set(target) {
var agree = false;
agree = confirm(Are you sure you want to delete?);
if ( agree ) {
document.forms[0].dispatch.value=target;
}
return agree;
}
html:submit onsubmit=set('delete');Delete/html:submit

If you don't change the onclick event handler then your form would always 
submit, just some times with the dispatch.value set to delete, other times 
it would be the default value.

BAL

From: Qinjian Jian [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: javascript delete function wih struts
Date: Wed, 10 Mar 2004 14:29:48 -0500
Do it like this:

function set(target) {
var agree = false;
agree = confirm(Are you sure you want to delete?);
if ( agree ) {
document.forms[0].dispatch.value=target;
}
}
Hope this is helpful

Tim Jian



-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 1:55 PM
To: Struts Users Mailing List
Subject: javascript delete function wih struts
Hi

I want to show a pop up (delete confirmation in my page) when user
clicks on delete button.The pop up will show Are you sure you want to
delte-yes or no
If user clicks on yes, then my page should set a page variable names
dispatch to delete.ANd then call my form's post action, which will
route it to the next page...
how do i accomplish these two tasks for the onlye one button click?
Thanks in advance,
Sam.
My code below:



SCRIPT LANGUAGE=JavaScript

function set(target) {document.forms[0].dispatch.value=target;}

/script

table border=1 width=100%



tr

th

html:submit onclick=set('delete');Delete/html:submit

..



so basically i want a pop up when user clicks the above Delete button
(struts uses html:submit  to generate a HTML button) and when i click
on the yes on this pop up, i want the set(target) to get set
Thanks in advance for help,

Sam.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get a FREE online computer virus scan from McAfee when you click here. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Cookies And Session Problems

2004-03-10 Thread Brian Lee
It looks like your two browser sessions are sharing the same memory used to 
store cookies. So your application server treats requests from both browsers 
as in the same session (since they send the same jsessionid cookie). In IE 
you used to be able to correct his by checking launch in new process in 
Tools|Internet Options, but I no longer see this in IE 6.0.2800.1106

If you open your site in IE and in Mozilla at the same time you will have 
separate sessions.

BAL

From: Ciaran Hanley [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED],   
[EMAIL PROTECTED]
Subject: RE: Cookies And Session Problems
Date: Wed, 10 Mar 2004 20:30:49 -

Yes my problem was I was storing everything at application level thank you.

Now I am storing values at session level but I'm still having problems.

If I open up two clients details by right clicking on one link and opening
the other clients link, the users details will overwrite one the first
client.
That's because in the Action class which gets the users details I call:

request.getSession().setAttribute(chosenCL,client);

Then when the next client is selected this will call this again and
overwrite the first clients value, so pressing refresh on first page I will
see the values for the second client.
I suppose what I need is to store it in the scope of the page? But I'm not
sure. Can anybody help me here
Thanks



-Original Message-
From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED]
Sent: 09 March 2004 13:03
To: Ciaran Hanley
Cc: Struts Users Mailing List
Subject: Re: Cookies And Session Problems
I think that i've found the problem. Please, look below :

Ciaran Hanley wrote:

Hi thanks for your reply,

I am using form based authentication. Cookies are enabled. I am storing 
all
session information using request.getSession() for example:


request.getSession().getServletContext().setAttribute(user, 
loggedUser);

stores the user bean in the session.


Ciaran, you must use request.getSession().setAttribute(
user,loggedUser );
When you use

request.getSession().getServletContext().setAttribute(user, loggedUser);

	you're putting your bean at application scope...



-
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]
_
Store more e-mails with MSN Hotmail Extra Storage – 4 plans to choose from! 
http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/

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


RE: [OT] Case insensitive Map keys

2004-02-13 Thread Brian Lee
Have you tried just using new Integer(str.hashCode())? It should be pretty 
quick. Its implementation is similar to yours below but has fewer operations 
so it should be faster (and more standard).

BAL


From: Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED]
To: Struts Users Mailing List 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: RE: [OT] Case insensitive Map keys
Date: Fri, 13 Feb 2004 17:12:44 +0100
-Mensaje original-
De: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 13 de febrero de 2004 14:38
Para: 'Struts Users Mailing List'
Asunto: RE: [OT] Case insensitive Map keys

I'm trying the following:

public class KeyGeneratedMap extends HashMap {
public Object put(Object key, Object value) {
return
super.put(this.generateKey(key.toString()), value);
}
public Object get(Object key) {
return
super.get(this.generateKey(key.toString()));
}
/**
* This generates an integer object for Strings and are
case insensitive, that is
* Hello and heLLO generate the same Integer object value
*/
private Object generateKey(String str) {
int len = str.length();
int h=0;
char val[] = str.toCharArray();
char c;
for (int i = 0; i  len; i++) {
c=val[i++];
if(c=97  c =122)
c-=32;
h = 31*h + c;
}
return new Integer(h);
}
}
This by now is three times faster than using toUpperCase for storing and
retrievinig items from the hash. What do you think?
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Viernes, 13 de Febrero de 2004 02:53 a.m.
To: Struts Users Mailing List
Subject: RE: [OT] Case insensitive Map keys
oops!! thanks for correcting me freddy.

well in that case, if you map is not modified frequently, try the
FastHashMap from the Apache Commons. either you override and read and
write your own.
-Original Message-
From: Villalba Arias, Fredy [BILBOMATICA]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: [OT] Case insensitive Map keys


Navjot,

I believe this is exactly what Guillermo CLEARLY stated he had already
tried (and is not efficient enough for him).

If you had taken a little bit longer and read carefully, then maybe
you'd have noticed.

Regards,
Freddy.

-Mensaje original-
De: Navjot Singh [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 12 de febrero de 2004 13:14
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: RE: [OT] Case insensitive Map keys

yes. here it is.

public CIMap extends HashMap
{

public Object get(String key)
{
return super.get(key.toLowerCase());
}

public Object put(String key, Object value)
{
super.put(key.toLowerCase(),value);
}
}

This was simple implementation. By the time you ask the Q and wait for
reply. you could have written on your own.

Navjot Singh


-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 5:24 PM
To: 'Struts Users Mailing List'
Subject: [OT] Case insensitive Map keys


Hi:
Does anyone know an implementation of Map where keys are String and
case insensitive? I want to do this:

map.put(propertyName, DATA);

And then, I should be able to get the value like this:
Object obj = map.get(PROPERTYNAME);

Or like this:
Object obj = map.get(propertyname); //or whatever. case insensitive.

We tried using toUppercase when putting and toUppercase when getting,
and using equalsIgnoreCase but this is not as efficient as we need.
May there be a way to calculate a hash for strings in upper or lower
case to result in the same value?

Thanks in advance.

Guillermo.


NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido
exclusivamente a las personas direccionadas en el mail y puede
contener informacion (i)de propiedad exclusiva de Interbanking S.A. o
(ii) amparada por el secreto profesional. Cualquier opinion en el
contenido, es exclusiva de su autor y no representa necesariamente la
opinion de Interbanking S.A. El acceso no autorizado, uso,
reproduccion, o divulgacion esta prohibido. Interbanking S.A no
asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted
ha recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo,
notificando al remitente. No debera utilizar, revelar, distribuir,
imprimir o copiar este mensaje ni ninguna de sus partes si usted no 

Re: NEWBIE: [CLOSED] difficulties getting simple no bean page working...

2004-02-12 Thread Brian Lee
That compiles because you just overloaded the execute method. Upon 
execution, the base Action's execute would run and nothing would call your 
execute.

BAL

From: Timothy Stone [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: NEWBIE: [CLOSED] difficulties getting simple no bean page 
working...

List,

Too close and too embarrassed to say what it was. Okay, I'll say...

Timothy Stone wrote:

List,

I'm a Struts newbie with a lot of general hours in Tomcat. I want to 
advance my development with Struts 1.1 and Model 2.
...snip...

Step 3. Create the Action subclass

package webAppDev;

import javax.servlet.http.*;
import org.apache.struts.action.*;
public class SearchAction1 extends Action {
public ActionForward execute( ActionMapping mapping, Action form,
  HttpServletRequest request,
  HttpServletResponse response )
throws Exception {
return( mapping.findForward( success ) );
}
}
Can you see it? I incorrectly pass an Action object where Action#execute 
expects an ActionForm! Typo Grande. Where I say Action form, I meant to 
type ActionForm form.

Now explain how that compiles? Action is not a subclass of ActionForm.

...snip...

Many thanks,
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Click here for a FREE online computer virus scan from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Struts Dilemma

2003-11-06 Thread Brian Lee
You don't need the getIsActive method in your bean. If you have isActive, 
you can use the line:
logic:equal name=myBean property=active value=true

According to the bean spec any boolean attributes should use isFoo instead 
of getFoo.

BAL

From: Khalid K. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Struts Dilemma
Date: Thu, 6 Nov 2003 19:48:53 -0800
I do the following:

// in the bean
Public boolean isActive() {
if (blah)
return true;
return false;
}
// if I know that this method will be used in jsp, I also write the
following:
Public boolean getIsActive() {
if (isActive())
   return true;
return false;
}
// in jsp
logic:equal name=myBean property=isActive value=true
  printout whatever...
/logic:equal
It works...

Khalid

-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 9:30 AM
Subject: Struts Dilemma
Often when writing a bean for use by a tag, I seem to be writing a
equivalent method that returns a string value for a boolean property.
For example:

If I mean to pass a boolean property isInactive, I am also writing a
getInactiveFlag which returns N or Y based on isInactive.
I use inactiveFlag in my tag definition and inside my tag I check for
Y or N.
Am I totally missing something or is there a better way to do this?

TIA



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.536 / Virus Database: 331 - Release Date: 11/3/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.536 / Virus Database: 331 - Release Date: 11/3/2003


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Frustrated with dial-up? Get high-speed for as low as $26.95.  
https://broadband.msn.com (Prices may vary by service area.)

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


RE: Is there a way to disable the browser's Back button without sending an httprequest?

2003-09-03 Thread Brian Lee
You can also include a line like this in each jsp:
window.history.forward(1);
This will effectively negate the back button.

BAL

From: Mark Galbreath [EMAIL PROTECTED]To: Struts Users Mailing 
List [EMAIL PROTECTED],   Jing Zhou [EMAIL PROTECTED]
Subject: RE: Is there a way to disable the browser's Back button without 
sending an http request?
Date: Wed, 3 Sep 2003 07:15:31 -0400

Set a token in request scope and use Struts logic tags to test is presence
and value, then forward or not.  Simple.
Mark

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:53 PM
To: Struts Users Mailing List
Subject: Is there a way to disable the browser's Back button without
sending an http request?
It looks to me the answer is NO, although we could use Java script
location.replace('url'). But the statement sends out an http request.
I would like to know if there is a different answer to it.

Jing
Netspread Carrier
http://www.netspread.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8: Get 6 months for $9.95/month. http://join.msn.com/?page=dept/dialup
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Re: Vacancy

2003-08-29 Thread Brian Lee
I think they want a recent photo for racial profiling purposes.

I once had a Gattica moment, when a company had me come down for a 
preliminary interview. After talking for a few moments they said I was good 
to go. I asked why we couldn't have done this over the phone and the 
recruiter went on to explain how they didn't want the wrong element in the 
position. Needless to say I promptly rejected the offer.

It's sad to hear that racism is alive and well in business around the world, 
not just in Manhattan.

BAL

From: James Harman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Vacancy
So that they can determine if you would be a good model for the company's 
corporate clothing line.

David Stemm wrote:

Why would you need a recent photo for an application?

- Original Message - From: Indra Gunawan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 8:27 PM
Subject: FW: Vacancy



PT. BenihInti Subur Intani (BISI), Charoen Pokphand (CP) group, is one
of the Plantation and Plant Research export oriented National company. We 
are developing a web based application for supporting our growing
business.
We are now having a vacancy for System DEveloper position for our Pare,
Kediri site.

We seek candidate with specific criterias as mentioned below:
1. At least Bachelor degree in Computer science with GAP =2.75
2. Ability in JAVA and JSP is a must.
3. Fully understanding in RDBMS concept.
4. ability in Oracle/MySQL is highly valued.
Full application include :
-CV or Resume
-Your Recent Photo or scanned Photo
-Copy of your certificates
Send your full application to [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] or by postal service to
Attn : P.Suryanto, EDP
PO BOX 1261, Surabaya
-
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]
_
MSN 8: Get 6 months for $9.95/month. http://join.msn.com/?page=dept/dialup
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: J2EE IDE

2003-08-27 Thread Brian Lee
IntelliJ costs $500 now. When I bought it was $200. That given I would still 
spend $500 on this tool as it is the only ide I've ever used (was always a 
textpad  macro kind of guy). If you're a contractor it will pay for itself 
in the first month by time saved. It's about the only software tool I pay 
for.

The refactoring and autocompletion tools have saved hours of my life.

BAL

From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: J2EE IDE
Date: Wed, 27 Aug 2003 16:28:12 +0100
I've tried to avoid getting sucked in, but here I go...

Isn't IntelliJ a commercial product? From what I can work out
form their web site, it's a $500 licence for version 3.0 (cheaper
if you qualify for an academic licence). Eclipse is free.
One thing that Eclipse does lack (surprisingly) is support for
XML (although the XMLBuddy plug-in does an OK job), and J2EE.
Having said that, most of my development work is done with
XDoclet, so the lack of J2EE support is not a big issue.
The thing that really makes Eclipse appeal to me is that it
integrates with CVS and ClearCase (among others), so I can
check in/out within the environment, has various SQL plug-ins
so I can work with the db, JBoss IDE so I can start/stop/
debug into my app server, etc.
Dan.

PS These comments are personal and do not reflect the views or
opinions of my employer, whose standard disclaimer undoubtedly
appears below...
--
Danny Yates


_
Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful.
When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued 
by
the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige 
using MSN Messenger http://entertainment.msn.com/imastar

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


RE: J2EE certified

2003-08-15 Thread Brian Lee
They force you to buy their testing prog at $2k. The bare minimum to verify 
your app as a j2ee app is $17k for the first year, $15k for each additional. 
They'll also charge $10k if you need any support during the verification 
process.

It's just a way for sun to make money. Sun doesn't verify your verification 
so anyone can pay $17k, lie on the checklist and get a sun verified product.

BAL

From: Bill Chmura [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: J2EE certified
Date: Fri, 15 Aug 2003 01:53:38 -0400
Off that page there is a non-working link to a free trial version.
Maybe you can claim your app passed in the free trial version :)


   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 11:11 PM
   To: 'Struts Users Mailing List'
   Subject: RE: J2EE certified
  
  
   I guess since it is only verifying the war/ear, the
   thousands $$$ are not worth it. Plus, less than 10 products
   are j2ee verified (
   http://java.sun.com/j2ee/verified/thirdparty.html ).
  
   I was 'told' by a colleague to get my app 'J2EE certified'.
   Never heard of a web application getting certified which
   was why I asked it here, since many j2ee experts are
   lurking in here. :)
  
   Thanks for the responses.
  
   Amin
  
   -Original Message-
   From: Adam Hardy [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 5:16 PM
   To: Struts Users Mailing List
   Subject: Re: J2EE certified
  
   Ah, you meant verified, not certified! Well why didn't you say? ;)
  
   I guess Sun have to make money somehow - although at a charge of 15
   grand per year, I think I'll skip the Verified Designation
   for my j2ee app.
  
  
  
  
   On 08/14/2003 05:52 AM Thamarajah Dharma wrote:
http://java.sun.com/j2ee/verified/avk_enterprise.html
   
   
   
   
   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 8:26 AM
   To: 'Struts Users Mailing List'
   Subject: OT: J2EE certified
   
   
   Simple question, is there or is there not a certification for
   a J2EE web
   app?
   
   Struts question,
   
   I'm getting this error, nothing else. In tomcat, there's
   the Servlet
   action is currently unavailable error. Any ideas?
   --- error
   
   javax.servlet.UnavailableException: Parsing error
   processing resource
   path
at
   org.apache.struts.action.ActionServlet.handleConfigException(A
   ctionServl
   et.java:1035)
at
   org.apache.struts.action.ActionServlet.parseModuleConfigFile(A
   ctionServl
   et.java:1014)
at
   org.apache.struts.action.ActionServlet.initModuleConfig(Action
   Servlet.ja
   va:955)
at
   org.apache.struts.action.ActionServlet.init(ActionServlet.
   java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   - snip
   -
   
   Amin
   
   -Original Message-
   From: Adam L [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 10:22 AM
   To: Struts Users Mailing List
   Subject: Re: J2EE certified
   
   J2EE encompasses a lot more than just a web application.
   JMS, EJB, XML
   processing/manipulation, SOAP, CORBA / IDL, JavaMail..
   just to begin
   with.
   
   
   - Original Message -
   From: Mohd Amin Mohd Din [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Sent: Wednesday, August 13, 2003 9:14 PM
   Subject: RE: J2EE certified
   
   
   
   Struts is the de facto framework for J2EE. Does this mean
   
   my app using
   
   Struts is J2EE certified? Or is the such a thing as J2EE
   
   certified web
   
   app.
   
   Plus, not all question on the list are about struts
   
   -Original Message-
   From: Shane Mingins
   [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 10:03 AM
   To: 'Struts Users Mailing List'
   Subject: RE: J2EE certified
   
   So where's the Struts question?
   
   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Thursday, 14 August 2003 2:01 p.m.
   To: 'Struts Users Mailing List'
   Subject: RE: J2EE certified
   
   I meant getting a web application certified
   
   -Original Message-
   From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 9:59 AM
   To: Struts Users Mailing List
   Subject: RE: J2EE certified
   
   
   
   Amin
   
You can take the SCWCD (Sun Certified Web Component
   
   Developer),
   
   its for JSP and Servlets. You have to have
   JCP to take this exam.
   
   Raghu
   
   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, August 13, 2003 11:02 AM
   To: [EMAIL PROTECTED]
   Subject: J2EE certified
   
   
   A colleague mentioned to me 

RE: J2EE certified

2003-08-15 Thread Brian Lee
The main advantage is marketing. Since only a few apps are verified, you can 
tell your clients My product is j2ee verified by sun, but company x is not. 
Who knows what it will do?

Not much of an advantage. But remember all the fud that bea threw back when 
IBM didn't certify their app server?

In my opinion it's not that essential, but then one of my current clients is 
verifying a couple of their major products.

BAL

From: message message [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: J2EE certified
Date: Fri, 15 Aug 2003 19:34:21 +0400
what is the point of verified application ?
Assuming you are referring to the verifier tool which comes with the j2ee 
bundle
from java.sun.com


From: Brian Lee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: J2EE certified
Date: Fri, 15 Aug 2003 10:24:55 -0400
They force you to buy their testing prog at $2k. The bare minimum to 
verify your app as a j2ee app is $17k for the first year, $15k for each 
additional. They'll also charge $10k if you need any support during the 
verification process.

It's just a way for sun to make money. Sun doesn't verify your 
verification so anyone can pay $17k, lie on the checklist and get a sun 
verified product.

BAL

From: Bill Chmura [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: J2EE certified
Date: Fri, 15 Aug 2003 01:53:38 -0400
Off that page there is a non-working link to a free trial version.
Maybe you can claim your app passed in the free trial version :)


   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 11:11 PM
   To: 'Struts Users Mailing List'
   Subject: RE: J2EE certified
  
  
   I guess since it is only verifying the war/ear, the
   thousands $$$ are not worth it. Plus, less than 10 products
   are j2ee verified (
   http://java.sun.com/j2ee/verified/thirdparty.html ).
  
   I was 'told' by a colleague to get my app 'J2EE certified'.
   Never heard of a web application getting certified which
   was why I asked it here, since many j2ee experts are
   lurking in here. :)
  
   Thanks for the responses.
  
   Amin
  
   -Original Message-
   From: Adam Hardy [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 5:16 PM
   To: Struts Users Mailing List
   Subject: Re: J2EE certified
  
   Ah, you meant verified, not certified! Well why didn't you say? ;)
  
   I guess Sun have to make money somehow - although at a charge of 15
   grand per year, I think I'll skip the Verified Designation
   for my j2ee app.
  
  
  
  
   On 08/14/2003 05:52 AM Thamarajah Dharma wrote:
http://java.sun.com/j2ee/verified/avk_enterprise.html
   
   
   
   
   -Original Message-
   From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 8:26 AM
   To: 'Struts Users Mailing List'
   Subject: OT: J2EE certified
   
   
   Simple question, is there or is there not a certification for
   a J2EE web
   app?
   
   Struts question,
   
   I'm getting this error, nothing else. In tomcat, there's
   the Servlet
   action is currently unavailable error. Any ideas?
   --- error
   
   javax.servlet.UnavailableException: Parsing error
   processing resource
   path
at
   org.apache.struts.action.ActionServlet.handleConfigException(A
   ctionServl
   et.java:1035)
at
   org.apache.struts.action.ActionServlet.parseModuleConfigFile(A
   ctionServl
   et.java:1014)
at
   org.apache.struts.action.ActionServlet.initModuleConfig(Action
   Servlet.ja
   va:955)
at
   org.apache.struts.action.ActionServlet.init(ActionServlet.
   java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   - snip
   -
   
   Amin
   
   -Original Message-
   From: Adam L [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 10:22 AM
   To: Struts Users Mailing List
   Subject: Re: J2EE certified
   
   J2EE encompasses a lot more than just a web application.
   JMS, EJB, XML
   processing/manipulation, SOAP, CORBA / IDL, JavaMail..
   just to begin
   with.
   
   
   - Original Message -
   From: Mohd Amin Mohd Din [EMAIL PROTECTED]
   To: 'Struts Users Mailing List' [EMAIL PROTECTED]
   Sent: Wednesday, August 13, 2003 9:14 PM
   Subject: RE: J2EE certified
   
   
   
   Struts is the de facto framework for J2EE. Does this mean
   
   my app using
   
   Struts is J2EE certified? Or is the such a thing as J2EE
   
   certified web
   
   app.
   
   Plus, not all question on the list are about struts
   
   -Original Message-
   From: Shane Mingins
   [mailto:[EMAIL PROTECTED]
   Sent: Thursday, August 14, 2003 10:03 AM
   To: 'Struts Users Mailing List

Re: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Brian Lee
Isn't Tata Consultancy Services an odd name for an IT biz. It sounds like 
a cosmetic surgeon's office or something.

BAL

From: Puneet Agarwal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] - [TOPIC]  - [VOTE]
Date: Tue, 5 Aug 2003 10:37:44 +0530
Regards,
Puneet Agarwal
Tata Consultancy Services,
C-56, Phase - II, NOIDA 201305 (India)
Struts ... Action ... Struts in Action ... Action in Struts ...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Brian Lee
I guess it's just my potty brain at work. Ta ta is like a 10 year old's 
slang for female breasts.

BAL

From: Puneet Agarwal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] - [TOPIC] - [VOTE]
Date: Wed, 6 Aug 2003 09:54:22 +0530
www.tcs.com : Check-it-out guys its a billion dollar company...!!!

Regards,
Puneet Agarwal
Tata Consultancy Services,
C-56, Phase - II, NOIDA 201305 (India)
Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031)
FAX              : +91-120-246 1521
Struts ... Action ... Struts in Action ... Action in Struts ...



Brian Lee
[EMAIL PROTECTED]To: 
[EMAIL PROTECTED]
tmail.com cc:
   Subject: Re: [OT] - [TOPIC] 
- [VOTE]
08/05/03 06:59
PM
Please respond
to Struts
Users Mailing
List





Isn't Tata Consultancy Services an odd name for an IT biz. It sounds like
a cosmetic surgeon's office or something.
BAL

From: Puneet Agarwal [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] - [TOPIC]  - [VOTE]
Date: Tue, 5 Aug 2003 10:37:44 +0530


Regards,
Puneet Agarwal

Tata Consultancy Services,
C-56, Phase - II, NOIDA 201305 (India)

Struts ... Action ... Struts in Action ... Action in Struts ...


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

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
-
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]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: [OFF TOPIC] JavaScript + select tag question

2003-08-14 Thread Brian Lee
The line I wrote doesn't reference the value property of the select, it 
references the value property of the selected option.

I could have also written:
document.formname.selectelementname.options[document.formname.selectelementname.selectedIndex].value
but I saved a couple of bytes since a select has a collection of options you 
can leave off the .options and just use [i].

document.formname.elementname works in both ie (since 3 or 4) and moz so I 
use it. Moz usually keeps pretty good kosher in regards to the w3c 
standards.

BAL
From: Adam Hardy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OFF TOPIC] JavaScript + select tag question
Date: Wed, 06 Aug 2003 17:10:40 +0200
Might be OT, but I still think the selectbox element doesn't have a value 
property - only an options collection, so -

x = document.forms[0].elements[anySelectbox].selectedIndex;
item = document.forms[0].elements[anySelectbox].options[x].value
BTW do you know if using the name directly as in

document.formname.selectelementname

is kosher W3C?

Adam

Brian Lee wrote:
The line you want will look like this:
document.formname.selectelementname[document.formname.selectelementname.selectedIndex].value
BAL


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OFF TOPIC] JavaScript + select tag question
You may be right - might have to use the .index property instead.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript + select tag question
I believe that document.forms[0].elements[anySelectbox].value will be
invalid. .value only works on non-select form-elements. AFAIK without
testing it now.
Mark Galbreath wrote:
 If you read the API you will see that JavaScript functions are built
 into the Struts html:select tag:

 http://jakarta.apache.org/struts/userGuide/struts-html.html#select

 so you have several event handlers to use for transferring control.
 E.g., html:select property=myBean  onClick=myFunction( 'myBean'
 )//html:select

 script type=text/javascript
   function myFunction( docObject ) {
 var string = document.forms[ 0 ].elements[ ' + docObject + '
 ].value;
 var selected = string;
 location = /search.do?action= + docObject + selectedItem= +
string;
   }
 /script

 And map an action path for search.do in your struts-config.xml file.

 Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 7:37 AM

 I would like to do the following :

 I have a form with different fields and drop down boxes
 When A drop down box is selectd I would like to do a submit that looks
 more or less like this :

 submit=/search.do?action=dropdownbox1selectedItem=item



 -
 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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
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]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: [OFF TOPIC] JavaScript + select tag question

2003-08-06 Thread Brian Lee
The line you want will look like this:
document.formname.selectelementname[document.formname.selectelementname.selectedIndex].value
BAL


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OFF TOPIC] JavaScript + select tag question
You may be right - might have to use the .index property instead.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript + select tag question
I believe that document.forms[0].elements[anySelectbox].value will be
invalid. .value only works on non-select form-elements. AFAIK without
testing it now.
Mark Galbreath wrote:
 If you read the API you will see that JavaScript functions are built
 into the Struts html:select tag:

 http://jakarta.apache.org/struts/userGuide/struts-html.html#select

 so you have several event handlers to use for transferring control.
 E.g., html:select property=myBean  onClick=myFunction( 'myBean'
 )//html:select

 script type=text/javascript
   function myFunction( docObject ) {
 var string = document.forms[ 0 ].elements[ ' + docObject + '
 ].value;
 var selected = string;
 location = /search.do?action= + docObject + selectedItem= +
string;
   }
 /script

 And map an action path for search.do in your struts-config.xml file.

 Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 7:37 AM

 I would like to do the following :

 I have a form with different fields and drop down boxes
 When A drop down box is selectd I would like to do a submit that looks
 more or less like this :

 submit=/search.do?action=dropdownbox1selectedItem=item



 -
 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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


ResponseUtils.write and null properties

2003-08-04 Thread Brian Lee
Is the intended behavior of ResponseUtils.write to write out the String 
null to the print writer if the property supplied is null?

It seems that Weblogic's JspWriter will not write out null if null is 
provided, but sun's j2ee reference server will.

BAL

_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


RE: [OT] Use of Static Methods

2003-07-09 Thread Brian Lee
From: David Graham [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]

 2) It is not correct to say that static methods can't be overriden. They
 can
 be overridden with another static method. You can't override a static
 method
 to be non-static, however.
That's incorrect.  Static methods cannot be overridden.
Actually, that's incorrect. Static method can be overridden.

foo.java
public class foo{
public static void bar(){}
}
baz.java
public class baz extends foo{
public static void bar(){}
}
compiles

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Could not deserialize context attribute

2003-06-25 Thread Brian Lee
It seems like Struts puts a couple of non-serializable objects into the 
application scope (RequestProcessor, ValidatorPlugIn) but does not remove 
them in the ActionServlet.destroy.

You can do the quick thing, extend ActionServlet and override the destroy() 
method to remove the objects from the ServletContext. Or you can do the long 
thing and wait for my patch to get committed and go into the nightly build.

You also need to make sure that all your objects in the Session context 
implement Serializable.

BAL

PS- are you running weblogic?

From: Abhinav (Cognizant) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Could not deserialize context attribute
Date: Wed, 25 Jun 2003 19:57:36 +0530
When I compile my code already deploed in the server and then try to access 
my page
I get 'Could not deserialize context attribute' exception.

Any ideas, Why

 InterScan_SafeStamp.txt 
 InterScan_Disclaimer.txt 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


NotSerializableException exceptions on restart

2003-06-16 Thread Brian Lee
When my web app (wls7) reloads a struts app it has a couple of 
java.io.NotSerializableException exceptions in the log file for the 
following objects:
org.apache.struts.config.impl.DefaultModuleConfigFactory
org.apache.struts.action.RequestProcessor
org.apache.struts.validator.ValidatorPlugIn

We're running 1.1 RC1. Should these classes be Serializable if they are 
going to be in the application scope or am I doing something wrong?

I saw that DefaultModuleConfigFactory is now Serializable in the latest rc2 
but what about the others? Should I submit a patch or change my app?

Thanks,
BAL
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


RE: [OT] Java Trivia

2003-06-13 Thread Brian Lee
Take it easy Hanover.

BAL

From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: RE: [OT] Java Trivia
Date: Fri, 13 Jun 2003 07:03:23 -0400

You're hilarious.

not.

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 2:04 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia
if (FRIDAY[13].length != FRIDAY.size){
laugh();
}
Regards,
Daniel
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, 13 June, 2003 11:24 AM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia
Well it is [FRIDAY] the 13th...

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, 13 June 2003 01:54
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia
And thanks for making it worse.

-Original Message-
From: Steven Sajous [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 1:39 PM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia
this was the worse thread I have seen here for sure.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:04 PM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia
Or string could have been some other class than String, I don't recall
seeing the declaration shown in the original post
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:26 AM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia
and here I thought it was a trick question, where you had subclassed String
as string class and added a public member length.   ..
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia
okay, okay, let it rest.  I feel st00pid enough already!

-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:51 AM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia


 if( test.equals(   )) { return false; }

  for( int i = 0; i  months.length; i++ ) {

if( test.equals( months[ i ] )){

I see no 'string.length'

If you are refering to the months.length, then this is a language
convenience for determining the length of an array, which 'months' surely 
is
since you have 'months[ i ]'

In the same way +27 is a language convenience

-
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]


-
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]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: Singletons in Tomcat

2003-06-06 Thread Brian Lee
It is not unique to the session. It is unique to the classloader which 
usually means that each web app will have its own singleton.

Usually, you'll just end up with one per server.

BAL

From: Brian Kidney [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Singletons in Tomcat
Date: Thu, 5 Jun 2003 14:26:19 -0230
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If I have a class in my application which is a singleton, is there only one 
object per server (Tomcat in my case), or is it unique to the session (ie. 
each user gets a different instance)?

Brian

-BEGIN PGP SIGNATURE-
Version: PGP 8.0
iQA/AwUBPt92MuLP0vXx30WgEQKtFQCfX4gkSYSwqx9+Zij4IfQU9DxA6L4An2gY
hUqwLgvXo/4W5scinkxmIF7j
=Osto
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: Singletons in Tomcat

2003-06-06 Thread Brian Lee
Thanks, I didn't have that url handy. It's just a little tricky because the 
webapp classloaders function differently than other java classloaders.

BAL

From: Steve Raeburn [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Singletons in Tomcat
Date: Thu, 5 Jun 2003 12:39:05 -0700
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Steve

 -Original Message-
 From: Brian Lee [mailto:[EMAIL PROTECTED]
 Sent: June 5, 2003 10:06 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Singletons in Tomcat


 It is not unique to the session. It is unique to the classloader which
 usually means that each web app will have its own singleton.

 Usually, you'll just end up with one per server.

 BAL

 From: Brian Kidney [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Singletons in Tomcat
 Date: Thu, 5 Jun 2003 14:26:19 -0230
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 If I have a class in my application which is a singleton, is
 there only one
 object per server (Tomcat in my case), or is it unique to the
 session (ie.
 each user gets a different instance)?
 
 Brian
 
 -BEGIN PGP SIGNATURE-
 Version: PGP 8.0
 
 iQA/AwUBPt92MuLP0vXx30WgEQKtFQCfX4gkSYSwqx9+Zij4IfQU9DxA6L4An2gY
 hUqwLgvXo/4W5scinkxmIF7j
 =Osto
 -END PGP SIGNATURE-
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 -
 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]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Tiles memory leak

2003-06-06 Thread Brian Lee
Has the tiles memory leak issue been properly rectified in the latest struts 
release?

BAL

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Tiles memory leak

2003-06-06 Thread Brian Lee
Do you know what the bug id is? I can't find it in bugzilla (searching for 
all bugs for the Tiles Controller).

Thanks,
BAL
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tiles memory leak
Date: Fri, 06 Jun 2003 07:59:34 -0600
Tiles doesn't leak memory, it consumes a lot of memory under certain 
conditions.  There is a bug report on it in bugzilla.  It will not be fixed 
for 1.1.

David

Has the tiles memory leak issue been properly rectified in the latest 
struts release?

BAL

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: Tiles memory leak

2003-06-06 Thread Brian Lee
Scratch that request (if you haven't already). I've found it and learned how 
to use the reply button properly.

BAL

From: Brian Lee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tiles memory leak
Date: Fri, 06 Jun 2003 10:26:44 -0400
Do you know what the bug id is? I can't find it in bugzilla (searching for 
all bugs for the Tiles Controller).

Thanks,
BAL
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tiles memory leak
Date: Fri, 06 Jun 2003 07:59:34 -0600
Tiles doesn't leak memory, it consumes a lot of memory under certain 
conditions.  There is a bug report on it in bugzilla.  It will not be 
fixed for 1.1.

David

Has the tiles memory leak issue been properly rectified in the latest 
struts release?

BAL

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [OT] JavaScript Debugger For Client-Side Validation

2003-03-31 Thread Brian Lee
Mozilla supports F5 refresh and is free. Opera is $39 (infinitely more 
expensive). With Mozilla and IE around I see no compelling reason to pay 
money to view pages.

BAL

From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [OT] JavaScript Debugger For Client-Side Validation
Date: Mon, 31 Mar 2003 11:05:07 -0700
Oh how we all love a good browser war :-).  Mozilla is ok but amateur.  
Opera has those features and they are implemented better than Mozilla's.

Quick examples:
Ctrl-N in Opera opens new tab.  Ctrl-N in mozilla opens news window.  Why 
provide tabs and then default to opening windows?

F5 and Ctrl-R in Opera refresh the page to fit with the Windows standard 
and old netscape diehards.  Mozilla uses Ctrl-R only.

Maybe minor issues but Opera is the more polished browser.

David



From: Dan Allen [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] JavaScript Debugger For Client-Side Validation
Date: Mon, 31 Mar 2003 11:59:53 -0600
MOZILLA!  There isn't a person I have introduced to mozilla, both
microsoft lovers and haters alike, that do not swear by mozilla now.
If tab browsing, dom inspector, javascript console or javascript
debugger doesn't catch your interest, then you are just not
interested in software.  Mozilla rocks.  I rest my case.
Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Frodo]: I wish it need not have happened in my time.
[Gandalf]: So do I, and so do all who live to see such times.
But that is not for them to decide. All we have to decide is
what we do with the time that is given to us.'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: [OT] Contract Work: Going Rate?

2003-03-28 Thread Brian Lee
An employer's FICA contribution is only 7.5% (the employee pays the other 
7.5%).

BAL

From: Sterin, Ilya [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Andrew Hill ' [EMAIL PROTECTED], 'Struts Users Mailing 
List ' [EMAIL PROTECTED]
Subject: RE: [OT] Contract Work: Going Rate?
Date: Fri, 28 Mar 2003 07:03:58 -0700

I'm still not understanding why you are having problems believing those
rates?
Here, an average IT employee salary for full time staff employee, is
$30+/hour.  An employer, spends about another 20% on benefits, madical,
dental, etc...  So the employer, really faces about a $36-$40 average
expense on an employee.  Now, if this contract is say 1 year or less, then
there is a drawback of having someone stay, when they are not needed after
the work is done.
Now, $40 dollars, is just per employee expense.  Now, each employer has to
pay FICA tax, for each on staff employee, which is about 15% more.  So now
were are up to about the $50 round about figure per hour.  Lets see, then
there is office expenses, etc... so the figure is getting higher and higher
and that's just the average.
Now, an average rate for a contractor is about $50, which actually saves 
the
company money, for outsourcing it, then also allows them to only be billed
for hours as needed, so if one week there is a break, and no work is done,
there is no bill, at least some of the time, since as we know, consultants
always find ways to bill:-)

Now, getting to higher figures of say $75/hour-$150/hour, those are usually
for expert consultants.  Say, I know people who've written books on the
subject, and they have the credibility to charge that much, etc...  Also
past experience, thorough knowledge of technology, being a core team
developer of this particular technology or similar ranking.  Also, most of
those rates are for shorter term projects.
I hope this helps you understand this a bit better.  An averag McDonald's
employee is costing the company about $25/hour, so if the burger flipper 
was
smart, he or she would break a deal of $20/hour and call it a day:-)

Ilya

-Original Message-
From: Andrew Hill
To: Struts Users Mailing List
Sent: 3/27/03 9:02 PM
Subject: RE: [OT] Contract Work: Going Rate?
Half right. :-)

I guess low is a distinctly relative term. Especially when comparing
apples  oranges (or salary  contract) ;-.
Rates here may be low compared to US or UK contract rates (are they
really so high?  - still have trouble believing those figures!), but as
for those in India, Russia, etc... they would get a fraction of the
going rate here, and there are probably folk doing the same stuff
elsewhere who get even less.
-Original Message-
From: Scott Barr [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 March 2003 07:44
To: Struts Users Mailing List
Subject: RE: [OT] Contract Work: Going Rate?


Yeah, but we both (i think Andrew is an Aussie) live in Australia. Land
of low wages
Scott
www.exergonic.com.au
On Fri, 2003-03-28 at 06:26, Sterin, Ilya wrote:
30*3000 is more than your whole entire career earnings?  Where are you
from?
India? Russia?
In US that's an average developer contract salary, and $30/hour is a
charge
that most contractors will laugh at here.
Ilya

-Original Message-
From: Andrew Hill
To: Struts Users Mailing List
Sent: 3/27/03 1:32 AM
Subject: RE: [OT] Contract Work: Going Rate?
These are USD per HOUR?

Crikey! You could retire after a couple of years on that!
Nah that cant be right. I did a bit under 3000 hours last year, multiply
by
30 and convert to local currency adds up to more than Ive earned in my
whole
working life (4+ years). A lot more...
Are those fair dinkum rates or are you just having us on?

Five weeks holiday??? OT pay???

Yeh. Thought so. Its a joke. hehe. You had me going there mate!

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 16:08
To: Struts Users Mailing List
Subject: Re: [OT] Contract Work: Going Rate?
These are some going full time rates for a London based e-learning
company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays
OT
on projects that need it, but actually limit the number of hours in a
week
that an employee can be in the office. (Something about a work/life
balance,
whatver than means :-)
All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$
These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly
week-day/sat --
2*hourly sun).
Contractor have to pay all the insurance and stuff, so I'd dap about
22-40%
on top of each of these + a little extra if your gonna have to live in
an
expensive part of town.
NOTE to the lawer.  It only becomes illegal if it can be proven 

RE: [FRIDAY] Microsoft

2003-03-21 Thread Brian Lee
All of your arguments below are true, but the concern over the TMC report is 
that if .Net runs apps 50% faster than J2EE then why not use W2k for the app 
servers running .Net and ditch your J2EE app server. That's the scary 
argument. Since .Net can communicate with any J2EE apps pretty seamlessly 
using SOAP, you could have j2ee frontends on top of .Net logic etc.

Portability is one of j2ee's main benefits, but it can't come at a 
completely steep performance cost.

BAL

From: Sterin, Ilya [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Ted Husted ' [EMAIL PROTECTED], '[EMAIL PROTECTED] ' 
[EMAIL PROTECTED]
Subject: RE: [FRIDAY] Microsoft
Date: Fri, 21 Mar 2003 09:11:34 -0700

I think however powerful .NET might be, it'll never reach it's full
potential, due to the fact that it only really runs on M$ platforms.
Yes, there is the Mono project, which is an attempt to port .NET to Linux,
but it will never be full fledge as M$ only release 80% of the .NET
infrastructure to the public.
Here is the issue.  The industry is greatly adopting the Linux platform, 
for
servers and currently even workstations.  This is a major move, as we have
fortune 500 clients who are planning on switching the full infrastructure 
to
Linux.  Which means replacing Unix (Solaris, HP-UX, and AIX) as well as NT,
to all run Linux.  With these advancements, and Microsoft surely loosing 
the
battle on the **server side**, .NET is not really looked at as a serious
solution at many enterprises, though they'll have to adapt Windows as their
server side platform, which is rare, especially in bigger companies, who
currently run on Unix/Linux.

Ford Motor Company for example, has adapted J2EE as the global
infrastructure, and .NET argument was shut down, the same day it came up.
I think .NET is a totally viable and powerfull solution, but being that 
they
are controlled by M$ and will not be portable to multiple platforms, it
becomes almost a non-argument in most companies which run heterougenous
environments, and I'd argue that that's almost 99.99% of all companies.

Ilya

-Original Message-
From: Ted Husted
To: [EMAIL PROTECTED]
Sent: 3/21/03 7:31 AM
Subject: Re: [FRIDAY] Microsoft
As developers, I think its our job to develop, making the best use of
the best tools available.
I may be involved with a .NET project this summer. And if I am, you can
bet I'm bringing along the C# renditions of my favorite tools. Ant,
Hibernate, Lucene, Maverick (similar to Struts), Velocity, all have .NET
projects churning away at SourceForge. Some of these still need some
work, but its work we know how to do.
The nice thing about this article is that it echoes what I have been
telling clients. .NET is a nice quick-to-market platform, but its
immature and still needs to be augmented by the products real, live
enterprise developers have been building in Java over the last few
years.
Although the skills most of us bring to a project have less to do with
the tools themselves, and more to do with how we use the tools. After
all, no matter how good you are using product X today, it's liable to be
a very different product two years from now.

-T.

--
Ted Husted,
Struts in Action http://husted.com/struts/book.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: One-time initializing in struts

2003-03-13 Thread Brian Lee
You might want to try extending ActionServlet and calling your torque.init 
stuff in your new ActionServlet.init.

Something like this:
MyActionServlet extends ActionServlet{
init(){
super.init;
Torque.init(Torque.properties);
}
}
BAL

From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: One-time initializing in struts
Date: Thu, 13 Mar 2003 14:35:16 +0800
Struts PlugIn might be the best option for that. Check the docs. Dont think
its supported in 1.0 though, just 1.1. (With each 1.1.x version having a
different interface!)
-Original Message-
From: Karl [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 14:26
To: Struts Users Mailing List
Subject: One-time initializing in struts
Is there a way to do one-time initialization in struts without having to 
put
check logicn in every action?

I want to use turbine as my persistance back-end but I need to call
Torque.init(Torque.properties); somewhere.
-
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]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: unwanted emty lines in produced html

2003-03-12 Thread Brian Lee
Hundreds of blank lines affect rendering speed of a browser and can affect 
performance of heavily hit sites. Although each line is negligible with 
thousands of users you end up paying for the extra bandwidth.

Plus browsers still have some quirks with blank lines. I.e. it can make an 
image look misaligned or cause a link's underline to extend beyong the text.

BAL

From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 08:24:57 -0700
How are empty lines affecting the display of the html?  AFAIK, browsers 
ignore blank lines.

David



From: Igor Lyubimov [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 16:17:07 +0100
Hallo!

I use struts-tiles framework for my web application.

When I look in produced html code, I see wery much empty lines. In this 
case I become broken design. (Some divs have incorrect size, table cells 
are broken etc.)

As I understand this problem, this emty lines are produced by embedded 
java statements and struts/tiles tags like:

% ... %
%@ ... %
...
tiles:useAttribute ... /
So, how can I control the output? I need to be able to use in my code 
constructions (as stated above) and I do not like to have one emty line 
per construction. I do not like to have very long lines in my code too.

Have anybody solution for this problem?

Thanks a lot,

--
_
 |   |
 | knipp |   Knipp  Medien und Kommunikation GmbH
  ---   Technologiepark
Martin-Schmeisser-Weg 9
D-44227 Dortmund
 Dipl.-Mathematiker Igor Lyubimov   Fon: +49-231-9703-0
 [EMAIL PROTECTED] Fax: +49-231-9703-200
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  C e B I T  2003   Besuchen Sie uns
  H a n n o v e r   auf unserem Stand:
  12.3.-19.3.2003   Halle 6, C 52/560
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: unwanted emty lines in produced html

2003-03-12 Thread Brian Lee
When you pay by the Gig and you just spent an extra couple grand because of 
the thousands of line breaks in your app it comes into effect.

I'm waiting for the app servers to have a suppress carriage return setting 
or something like that. ColdFusion used to have something like this (didn't 
work very well).

But a smart way to get rid of carriage returns would be to make sure your 
jsp is valid xhtml then run it through a formatter to remove carriage 
returns between tags as part of your build process.

BAL

From: Witbeck, Shane [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 10:49:57 -0500
If you are really anal ;) about line breaks, etc. you could use the regular
expression tablib to get rid of them by wrapping each JSP. Im sure there is
a performance hit with this but it saves you from having to change every
line of source in the JSPs.
Shane

-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 10:41 AM
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html
Hundreds of blank lines affect rendering speed of a browser and can affect
performance of heavily hit sites. Although each line is negligible with
thousands of users you end up paying for the extra bandwidth.
Plus browsers still have some quirks with blank lines. I.e. it can make an
image look misaligned or cause a link's underline to extend beyong the 
text.

BAL

From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 08:24:57 -0700

How are empty lines affecting the display of the html?  AFAIK, browsers
ignore blank lines.

David



From: Igor Lyubimov [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 16:17:07 +0100

Hallo!

I use struts-tiles framework for my web application.

When I look in produced html code, I see wery much empty lines. In this
case I become broken design. (Some divs have incorrect size, table cells
are broken etc.)

As I understand this problem, this emty lines are produced by embedded
java statements and struts/tiles tags like:

% ... %
%@ ... %
...
tiles:useAttribute ... /

So, how can I control the output? I need to be able to use in my code
constructions (as stated above) and I do not like to have one emty line
per construction. I do not like to have very long lines in my code too.

Have anybody solution for this problem?

Thanks a lot,

--
_
  |   |
  | knipp |   Knipp  Medien und Kommunikation GmbH
   ---   Technologiepark
 Martin-Schmeisser-Weg 9
 D-44227 Dortmund
  Dipl.-Mathematiker Igor Lyubimov   Fon: +49-231-9703-0
  [EMAIL PROTECTED] Fax: +49-231-9703-200
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   C e B I T  2003   Besuchen Sie uns
   H a n n o v e r   auf unserem Stand:
   12.3.-19.3.2003   Halle 6, C 52/560


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


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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

_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-
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]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [OT] How to make a method deprecated

2003-03-06 Thread Brian Lee
You can just add @deprecated to the javadoc for that class or method.

Example:
/**
* Does something.
* @deprecated
*/
foo(){

BAL

From: Chiming Huang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [OT] How to make a method deprecated
Date: Thu, 6 Mar 2003 08:27:14 -0800 (PST)
Hi,

In java, I would like to make a method deprecated.  So that javac will 
complain if a program uses the deprecated method.  What should I do?

Thanks in advance.

Chiming



-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


RE: How fast is bean:message?

2003-03-04 Thread Brian Lee
MessageFormat has always been very slow. I wonder how much faster this would 
be going through a better templating system like Velocity.

I'm a little swamped right now or I would be posting the difference in this 
message.

BAL

From: James Childers [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: How fast is bean:message?
Date: Tue, 4 Mar 2003 09:17:57 -0600
The only caveat I would give is that messages that have parameters are on 
the order of 100 times slower than those that do not. I did some tests on 
this a while back and found that the MessageFormat class is the bottleneck. 
I wrote some unit tests against MessageTag that tracked the time to perform 
the parsing. Taking the String Humpty Dumpty sat on a wall as the first 
test case and {0} sat on the wall as the second (and passing it the 
appropriate parameter) gave the following results:

50 unparameterized requests took 296 milliseconds.		// Humpty Dumpty 
sat on a wall
5000 parameterized requests took 10607 milliseconds.			// {0} sat on a 
wall

YMMV, but if so let's try and find out why. The disparity here is just 
incredile.

-= J

 David Graham wrote:

  It's as fast as it takes to lookup a key in a hashmap.  If that's
  unacceptable then you should write a different jsp for
 each language with
  hardcoded text.

 I'm searching a more automated solution. If the design has to
 be changed
 every translated JSP should be changed automatically, so
 something like a
 preprocessor would be great.

 cu,
boris

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


_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


Re: best practice: date widget

2003-02-28 Thread Brian Lee
My current project uses something like this, but with wrapper class around 
Calendar (since Date.day/month/year is deprecated). Also makes it easier 
once you start to use TimeZone and Locale.

BAL

From: Bill Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: best practice: date widget
What is the best-practice with Struts for making something like an HTML
date-widget control, that has three different input fields but maps to a
java.util.Date in a form bean?  The idea is I want to be able to put
something like
html:date property=startDate/

in a JSP page, and call Date d = formBean.getStartDate() from a Java
action.  The output HTML should look like
select name=startDate.month
  option value=1January/option
  ...
/select
input type=text name=startDate.day
input type=text name=startDate.year
and there should be a way to validate to make sure this is a valid date
(February 31 not allowed.)
Any ideas would be appreciated.  Thanks!

-- Bill



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


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: [OT] Must be desperate times for M$

2003-02-28 Thread Brian Lee
The real reason behind this is that with M$'s new activation feature, China 
can't steal their office and os software as easily.

BAL

From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: [OT] Must be desperate times for M$
Date: Fri, 28 Feb 2003 16:19:56 -0500
In order to develop its software industry and maintain security, China
has produced its own version of Linux, Red Flag Linux, as well as its
own office productivity suite, RedOffice, which go head-to-head with
Microsoft's Windows and Office packages.
Oh, I love this.  China says, 'put up or shut up'!!!

http://news.com.com/2100-1007-990526.html?tag=fd_top



--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/
People demand freedom of speech to make up for the freedom of thought
which they avoid.
- Soren Aabye Kierkegaard (1813-1855)


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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Bigdecimal conversion error : urgent

2003-02-14 Thread Brian Lee
I'm glad I was able to help.

BAL


From: usha [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Bigdecimal conversion error : urgent
Date: Fri, 14 Feb 2003 13:03:37 +0800

Hi Brian

i don't want use the nighty build instead as you suggested to extend the 
ActionServlet i am doing that.
Thanks a lot for the help

Usha..

Brian Lee wrote:

This has been fixed in the latest nightly build. If you specify 
convertNull=true as an init param in your web.xml for the ActionServlet, 
it will default the BigDecimal form property to null instead of trying to 
create a new BigDecimal(null)- which throws a ConversionException.

If you can't get the nightly build, you'll need to extend ActionServlet 
and create an init() method that contains these lines:
   super.init();
   ConvertUtils.register(new BigDecimalConverter(null), 
java.math.BigDecimal.class);

This should work for you.

BAL

From: usha [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Bigdecimal conversion error : urgent

Hi

when i am copying the null value to the bigdecimal field it gives the 
error like following. i read that we need to set the  usedefault to true. 
where i need to set the default value to true.


org.apache.commons.beanutils.ConversionException: No value specified
   at 
org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148)

   at 
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265)


Thanks
usha


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



_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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]



_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: Bigdecimal conversion error : urgent

2003-02-13 Thread Brian Lee
This has been fixed in the latest nightly build. If you specify 
convertNull=true as an init param in your web.xml for the ActionServlet, it 
will default the BigDecimal form property to null instead of trying to 
create a new BigDecimal(null)- which throws a ConversionException.

If you can't get the nightly build, you'll need to extend ActionServlet and 
create an init() method that contains these lines:
   super.init();
   ConvertUtils.register(new BigDecimalConverter(null), 
java.math.BigDecimal.class);

This should work for you.

BAL

From: usha [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Bigdecimal conversion error : urgent

Hi

when i am copying the null value to the bigdecimal field it gives the error 
like following. i read that we need to set the  usedefault to true. where i 
need to set the default value to true.


org.apache.commons.beanutils.ConversionException: No value specified
   at 
org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigDecimalConverter.java:148)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:359)
   at 
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265)

Thanks
usha


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


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



Re: convertNull problems

2003-02-11 Thread Brian Lee
Did you set convertNull=true for the ActionServlet in the web.xml.

BAL


From: Ben Sion [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: convertNull problems
Date: Wed, 12 Feb 2003 11:08:43 +1300

I am try trying to use the convertNull parameter of ActionServlet, so 
that
when the user does not enter a value into a field that is mapped to an
attribute of type Long in my form, the attribute = null rather than 0.
However I am getting conversion errors. The excerpt from my sevlet log:

Feb 12 11:07:24 2003: The ServletException contained the following root
cause exception:
Feb 12 11:07:24 2003: org.apache.commons.beanutils.ConversionException: For
input string: 
 at
org.apache.commons.beanutils.converters.LongConverter.convert(LongConverter.
java:149)
 at 
org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:615)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:656)
 at
com.sybase.jaguar.servlet.JagRequestDispatcher.service(JagRequestDispatcher.
java:922)
 at 
com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:90)
 at
com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:131)
 at 
com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:804)
 at 
com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:338)
 at
com.sybase.jaguar.servlet.ServletServiceImpl.doService(ServletServiceImpl.ja
va:52)
 at

The action servlet definition in my web.xml looks like this:
  ...
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-nameconvertNull/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  ...

and my form:
  public final class InputParametersForm extends ValidatorActionForm {

private Long batchNumber;
private Long organisationCode;
private Long status;
  ...


Any suggestions?

thanks in advance
Ben


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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: design question about action chainning(As quoted in :Struts in action...byTed Husted et al..)

2003-01-31 Thread Brian Lee
Isn't the action becoming part of an API a good thing?

Having reusable action classes that can be strung together through 
struts-config is pretty useful in that you don't have to have as much 
coding. You can then have a work pipeline of sorts without having to create 
extra action classes or modify more code.

BAL

From: Ted Husted [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: design question about action chainning(As quoted in :Struts in 
action...by Ted Husted et al..)
Date: Fri, 31 Jan 2003 13:06:30 -0500

The best example of waht I'm calling an Action relay is how Struts handles 
validation. If validation fails, the request is forwarded to the input 
property, which could be another Action. This is done to complete the 
response, rather than continue with processing the action.

This same technique is often used after a lookup, where one Action does the 
lookup but another Action is used to complete the response, usually to 
setup any tools the page might need to render.

In an Action chain, control is not forwarded simply to complete the 
response but to continue processing. One action doesn't do some similar 
activity because that's the another actions job. The request/response 
transaction begins to be distributed between several Action, and this is 
where Action stop being destinations and start becoming an API.

Most often, whatever processing the Action in a chain are supposed to be 
doing can be refactored into base actions or utility classes, so the 
funcationality can be reused using standard object-orientated techniques.

-Ted.


--
Ted Husted,
Struts in Action http://husted.com/struts/book.html


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


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Brian Lee
You should be able to do this without JavaScript if you use the meta 
refresh tag. Set the url to the page that takes a long time and the refresh 
to 0 (immidiately). Then in your jsp/servlet/whatever that takes a long 
time, do not put any ouput until the long process has completed.

IE/NS shouldn't move the user from the current page to the next until an 
output stream from the web server is sent.

something like this:
meta http-equiv=refresh 
content=0;url=http://whatever.com/myLongAction.do;

BAL

From: Hookom, Jacob John [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?
Date: Thu, 30 Jan 2003 09:28:03 -0600
I've done the please wait page for uploads before, I made a div layer that 
sat on top of the page when the submit button was hit.  The layer that 
poppped up had an option to cancel to prevent users from hanging on a bad 
request.

-Jacob

	-Original Message-
	From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
	Sent: Thu 1/30/2003 9:21 AM
	To: 'Struts Users Mailing List'
	Cc:
	Subject: [OT] RE: Automatic refresh - IS THIS POSSIBLE?



	Flash can launch spacecrafts.  This is chicken feed.

	-Original Message-
	From: Andrew Hill [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 10:22 AM
	To: Struts Users Mailing List
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Can Flash do it? ;-)

	-Original Message-
	From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, 30 January 2003 23:13
	To: 'Struts Users Mailing List'
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Not AFAIK.  Sorry.

	-Original Message-
	From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 9:56 AM
	To: [EMAIL PROTECTED]
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Any solution without using JavaScript?

	Regards,


	PQ

	This Guy Thinks He Knows Everything
	This Guy Thinks He Knows What He Is Doing

	-Original Message-
	From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
	Sent: January 30, 2003 9:37 AM
	To: 'Struts Users Mailing List'
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?

	Yes, it's possible.  I've done it with a processing... animated progress
	bar (though for some reason it works better in Navigator than IE).  You 
can
	see it after you enter your credit card information at
	http://shop.t-mobile.com.  :-)

	Mark

	PS.  I'll send you the code this weekend if you reply privately with your
	credit card number and exp. date.

	-Original Message-
	From: Roger Fortier [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 9:21 AM

	Check out this article from JavaPro magazine.

	Send Users a Browser Message

	http://www.javapro.com

	Click Archives, then select the January 2001 issue from the archives.

	-Original Message-
	From: Sowbhagya Valli Suryadevara 
[mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 5:57 AM

	We are using the struts  tiles  framework in our project. There is a
	particular request that consumes a lot of time (20 seconds). Instead of
	showing a blank page is it possible to show a Please Wait  message while
	the processing is happening in the background. Then when the processing is
	over the page should come up automatically.

	IS THIS POSSIBLE?



	-
	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]


_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


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



RE: how to call more than one Struts Action for a given HTTP request

2003-01-27 Thread Brian Lee
I have a question about action chaining in theory.

I'm not sure what you mean by action chaining, but I tend to want to make my 
actions as generic as possible so that they can be called multiple times.

For example, I worked on an app that did a lot of session work. So I would 
make a LoaderAction and a DoerAction. The loader would load an object into 
session and the doer would display or edit or delete or whatever.

I would end up with a struts-config.xml that looked something like:
action type=LoaderAction
forward name=next path=DoerAction/
/action

And there would be one entry in struts-config.xml for each different kind of 
load and forward. So there might be LoaderActionForDelete, 
LoaderActionForEdit, etc etc.

This has made things easier for me and others on my team as we don't need to 
modify any code or to create a new action class to load up an object, etc 
etc.

Are you saying this is bad?

BAL

From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: how to call more than one Struts Action for a given HTTP 
request
Date: Mon, 27 Jan 2003 20:25:04 +0800

You are referring to Action chaining?
This is discouraged as it leads to all sorts of problems...

...but wheres the fun in that eh?

If you want to chain actions you can have the first actions actionForward
point at the next, etc...
Be aware that the RequestProcessor will repopulate the form from the 
request
for each action you forward to. (You can of course modify this behaviour by
overridding the RequestProcessor - which is pluggable - with you own
subclass of it).

However, as I mentioned, action chaining generally tends to be a bad idea,
and a perceived need for it can often indicate a flaw in your design.

-Original Message-
From: Souravmay Das [mailto:[EMAIL PROTECTED]]
Sent: Monday, 27 January 2003 20:14
To: [EMAIL PROTECTED]
Subject: how to call more than one Struts Action for a given HTTP
request


Hi All,
I have a question can we call more than one Struts action for 
a
HTTP Request. Do you have any idea how to do it. The basic idea of having
more than one Struts actions, is for getting more fine grained reusable
component.

With regards,
Sourav Das



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


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



Re: [OT] Programming Challenge

2003-01-24 Thread Brian Lee
Get the current day. Figure out what day of the week it is.
i.e. Today is Jan 24, Fri. Then get the number of days between then and now. 
Then mod it by 7 to get the number of days to shift. This should all be able 
to work in JavaScript.

But I think it might be easier to get a JavaScript Date object and use the 
getDay() method to get the day of the week (0=Sunday).

example:
var myDate = new Date(July 4, 2006);
var iDayOfWeek = myDate.getDay();

You'll find that July 4, 2006 is actually a Tuesday

BAL




From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Subject: [OT] Programming Challenge
Date: Fri, 24 Jan 2003 10:16:23 -0500
MIME-Version: 1.0
Received: from exchange.sun.com ([192.18.33.10]) by 
mc4-f22.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 24 
Jan 2003 07:17:07 -0800
Received: (qmail 23348 invoked by uid 97); 24 Jan 2003 15:18:14 -
Received: (qmail 23186 invoked by uid 98); 24 Jan 2003 15:18:12 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Struts Users Mailing List struts-user.jakarta.apache.org
Delivered-To: mailing list [EMAIL PROTECTED]
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Message-ID: 005401c2c3bb$8f4cf040$3201a8c0@mgalbreathc810
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N
Return-Path: 
[EMAIL PROTECTED]
X-OriginalArrivalTime: 24 Jan 2003 15:17:07.0809 (UTC) 
FILETIME=[A8CCCD10:01C2C3BB]

Anybody know the algorithm for randomly calculating the day of the week,
given a particular date?  E.g., July 4, 2006 = Wednesday.  I need to do 
this
in JavaScript and for some reason (too much wine last night?) I can't get
brain engaged.

Mark



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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: [OT] Not spam...I swear--

2003-01-21 Thread Brian Lee
Only objects that implement java.io.Serializable should be serialized.

Although it might be possible to serialize a class that doesn't implement 
Serializable, the interface exists for a reason. Use it to flag that your 
class is safe to be serialized.

BAL

From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Not spam...I swear--
Date: Tue, 21 Jan 2003 14:30:30 -0500

He was probably confusing serializable with default synchronization.  Any
Java object can be serialized.

-Original Message-
From: Attila Szegedi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 12:49 PM

Wrong. Hashtables are serializable just fine.

Attila.

- Original Message -
From: NoSect [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

 Vectors are also serializedhashtables not.



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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



RE: [OT] Eclipse IDE

2003-01-21 Thread Brian Lee
I've got it running on my linux beowulf cluster of xboxes. It responds very 
quickly.

BAL

From: Jacob Hookom [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Eclipse IDE
Date: Tue, 21 Jan 2003 13:39:56 -0600

My amiga runs NetBeans just fine

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Eclipse IDE

Win2k, 1Ghz Pentium 3, 512 MB RAM, Sun JDK 1.4.1 and the menus still don't
respond like a native application.  It's either Swing or NetBeans use of
Swing that is slowing it down.  Plus, it's at least 30 MB larger than
Eclipse.


David






From: Joel Wickard [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Eclipse IDE
Date: Tue, 21 Jan 2003 13:13:39 -0600

Durham David Cntr 805CSS/SCBE wrote:

on a P4 with the Sun's newest runtime environment, it runs great.



I've got a p3 @ 900 / 256 ram and I think it runs fine.


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


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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


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


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



RE: [OT] Not spam...I swear--

2003-01-21 Thread Brian Lee
You can use Externalizable as well as any other class that extends 
Serializable (hurrah for OO).

If you put a non-Serializable object into an array and try to serialize bad 
things will happen (same thing with Collections or if you define a class as 
Serializable and then create non-Serializable members).

Good rule of thumb: don't serialize anything that's isn't a Serializable 
object.

BAL

From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Not spam...I swear--
Date: Tue, 21 Jan 2003 15:49:13 -0500

You can also use the Externalizable interface as well as place any object 
in
an array and serialize the array.

Mark

-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:44 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Not spam...I swear--


Only objects that implement java.io.Serializable should be serialized.

Although it might be possible to serialize a class that doesn't implement
Serializable, the interface exists for a reason. Use it to flag that your
class is safe to be serialized.

BAL

From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OT] Not spam...I swear--
Date: Tue, 21 Jan 2003 14:30:30 -0500

He was probably confusing serializable with default synchronization.
Any Java object can be serialized.

-Original Message-
From: Attila Szegedi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 12:49 PM

Wrong. Hashtables are serializable just fine.

Attila.

- Original Message -
From: NoSect [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

  Vectors are also serializedhashtables not.



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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



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


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



RE: Important Struts Question

2003-01-15 Thread Brian Lee
He forgot to add that the position paid 25/hr. :)

BAL


From: Mark Galbreath [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Important Struts Question
Date: Wed, 15 Jan 2003 17:24:49 -0500

Uh ohrecruiter spam now?

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:08 PM

Hey Gang,

Does anyone live in Northern California who is an expert with Java, J2EE,
Servlet, Struts--JSP of course--and Web Logic?  Perhaps you have a friend
who does?

This would be for a year long contract with a Fortune 500 company in the
East Bay of the San Francisco Bay Area.

Please contact me immediately at 650-583-3600 to discuss this terrific
opportunity.

Cheers!
Aileen
Aileen Cardenas
Technical Recruiter
Apex Systems, Inc.
1250 Bayhill Drive, Suite 101
San Bruno, CA  94066
650-583-3600
650-583-3668 Fax
www.apexsystemsinc.com




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


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



Re: using javascript

2003-01-13 Thread Brian Lee
I think the problem here is that there is a built-in javascript reset() 
method that's overriding your custom reset().

Try calling your method doReset() or something else.

BAL

From: LUCERO,DENNIS (HP-Boise,ex1) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: ' ([EMAIL PROTECTED])' [EMAIL PROTECTED]
Subject: using javascript
Date: Mon, 13 Jan 2003 12:58:24 -0500


Hello, I am trying to call a java script function and it is not working, 
are
there any known issues with this sort of thing.


Here is some code:

html:form action = SomeAction
html:select property = someProp onchange = reset()
html:options
collection=aCollection
property=key
labelProperty=value
 /
/html:select

more selections:
close the form:

script language=JavaScript
function reset()
{
  alert(woo woo);
}
/script




We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming



_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



Too much log info in b3

2003-01-10 Thread Brian Lee
I just upgraded my app to the latest 1.1b3 release of struts. Now I am 
getting insane logging regardless of what I set ActionServlet's debug init 
param to in the web.xml. I've tried 0 yet I still get tons of debugging.

One possibility is that my app does set up a root hierarchy in log4j with a 
DEBUG priority, but I wouldn't think this would affect struts logging.

Any ideas?

Thanks,
BAL





_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



RE: 2 submit buttons with different action

2002-12-24 Thread Brian Lee
Have two submit buttons with different names and values.
Have a property for each in your form.
In your validate method check the value of each. Only the button that was 
clicked will have a nonnull value.

Example:
html:
input type=submit name=submit value=foo
input type=submit name=back value=bar

form class:
...
private String submit;
private String back;
...

validate method:
if (foo.equals(getSubmit())){
//do validation
}else{//getBack() should return null or empty string
//skip validation
}

I hope this helps.

BAL
  -Message d'origine-
  De : Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]]
  Envoye : mardi 24 decembre 2002 16:29
  A : Struts Users Mailing List
  Objet : 2 submit buttons with different action
 
 
  Hi,
 
  I have 2 buttons on one jsp, one is submit button
 and
  the other is back. I want to use only one action
 form
  to handle both the events, I am using
  DynaValidatorForm.
  So the problem i amfacing is, the fields get
 validated
  even if i press the back button,
  Is there a way to make sure that the validation
 occurs
  only when i press submit button
 
 
 
  =
  A$HI$H



_
The new MSN 8: smart spam protection and 3 months FREE*.  
http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_smartspamprotection_3mf


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



File Upload max size error clears out rest of form

2002-09-05 Thread Brian Lee

I have a form that has a couple of FormFiles on it. If they are under the 
max size then everything goes well and validation works as you would expect.

If one of them exceeds the max size, the other form properties are nulled 
out. I come back to my input with the error message for my file and then 
every other field fails validation.

Is there any way to stop the rest of my form being emptied if an uploaded 
file exceeds the max size?

Thanks,
BAL



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Multipart data doesn't start with boundary error when forwarding

2002-09-04 Thread Brian Lee

I'm getting the following error: Multipart data doesn't start with 
boundary when I attempt to forward a request on to another action.

Here's my config:
action path=/createPub
type=com.nciinc.sde.console.publish.CreatePublishingAction
name=createPubForm
scope=request
input=/createPubView.do
validate=true
forward name=success path=/createPubView.do/
/action

The action class executes and then I get the above error when trying to 
forward on to the success action. I also get the error if validation fails 
and I try to forward on the input action.

The createPubView action calls a very simple Action class that just clears a 
VO out of the session and forwards to a JSP.

The createPubView action class is never invoked as struts errors out prior 
to calling the action. It looks like it errors when trying to populate my 
form (from the looks of the stack trace).

I do not get the error if I replace the input or forward with an input or 
forward directly to the JSP and not to an action.

I have read about this error on the mailing list archive but cannot resolve 
the problem successfully. I have the latest build that has the 
RequestProcessor patch.

Any help is appreciated.

Thanks,
BAL

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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