ValidatorForm NoClassDefError every other Tomcat reload

2003-08-14 Thread struts
Hi-

After extending a form bean from an ActionForm class to a 
ValidatorForm Class I get a java.lang.NoClassDefFoundError on every other Tomcat 
Reload. 

On even reloads I get the NoClass error.  
On odd reloads everything works fine.


The error message points to this line in my addUserAction class.
   User user = new User();

User is the form bean that extends ValidatorForm.  When I switch back to extends 
ActionForm there are no problems.


I get the problem when working in NetBeans 3.5 with a 4.06 Internal Tomcat on WinXP.  


I don't have any problems when I run the same code from a Linux Tomcat 5 server.

I added my test code to the struts-blank war from the jakarta-struts-1.1-b3 distro



I'm new to Struts so my question is:
Is it my poor coding that is bringing about the bug?
Or is it a Struts doesn't work on Tomcat Version  problem. Or a possible NetBeans/ 
Struts bug.

I've listed my code and settings below.



Cheers,

David Sperling









/***   Error
root cause 

java.lang.NoClassDefFoundError: org.apache.struts.validator.ValidatorForm
at com.hakodatecgi.bbs.action.AddUserAction.execute(AddUserAction.java:37)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)



/*  validation.xml








 
 



/* struts-config



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





 








  
   

   
  

  



/** User.java


package com.hakodatecgi.bbs.om;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;
/**
 */
public class User extends ValidatorForm {
private String userName;
  
public java.lang.String getUserName() {
  return userName;
}

public void setUserName(java.lang.String userName) {
  this.userName = userName;
}
   
}

/* AddUserAction


package com.hakodatecgi.bbs.action;

import com.hakodatecgi.bbs.om.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class AddUserAction extends Action {

  public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {


request.getSession().setAttribute("mode", "add");

// Create a new user for the form
User user = new User();
request.getSession(true).setAttribute(mapping.getName(), user);
return mapping.findForward("success");

  }
}


/* inputUserForm.jsp


<[EMAIL PROTECTED]  import="com.hakodatecgi.bbs.om.*" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
This is the edit customer Page This is the mode is:  
userName







/* UserAUDAction.java

package com.hakodatecgi.bbs.action;

import com.hakodatecgi.bbs.om.User;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.LookupDispatchAction;

public class UserAUDAction extends LookupDispatchAction {
  
  protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("user.add.button.label", "add");
return map;
  }
  
  public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {
if (isCancelled(request)) {
  return mapping.findForward("cancel");
} else {
  return super.ex

Session info?

2003-08-14 Thread development
Hi all,

anyone knows how to keep session information if i ActionForward to a new 
URL??

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


RE: J2EE certified

2003-08-14 Thread Bill Chmura
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 something about getting J2EE
  > >>
  > >>certified. I
  > >>
  > >>>could only find getting an application server certified 

RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread message message
There are girls here too.
If you can't get one here then you can't get one there either.

From: "Mark Galbreath" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: [OT] - [TOPIC] - [VOTE]
Date: Tue, 5 Aug 2003 07:58:54 -0400
Will there be girls?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:50 AM
Another off topic note - With the increased need for professional Struts
Training, I decided to begin offering Struts Training Classes for beginner
through advanced users.  This would be outside the scope of my involvement
with Struts-Atlanta.
Struts-Atlanta is (and always will be) FREE.  The training classes/packages
would not be free and probably not be cheap (costs for instructors and
classrooms are not cheap).  As I said, I haven't formalized the packages
yet, but more info on this will follow.  Email me privately if you (or your
company) are interested.


-
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: Cannot find bean "XXX" in any scope - error

2003-08-14 Thread arindam . samanta

thanks..it is working...
BTW..what's his name?
Thanks,
 Arindam







   

"Nagendra  

Kumar O V S" To: <[EMAIL PROTECTED]>   
   
<[EMAIL PROTECTED]cc:  
 
go.com>  Subject: Re: Cannot find bean "XXX" in 
any scope - error  
   

08/05/2003 

05:45 PM   

Please 

respond to 

"Struts Users  

Mailing List"  

   

   




   

 hi,   

 u don't have to declare any classes .. the framework pick it up from the classpath

   



   

 is absolutely correct & should work for u...  

   

 BTW, FYI my brother-in-law is working in ur company   

   

 -- nagi   

 ---Original Message---

   

 From: Struts Users Mailing List   

 Date: Tuesday, August 05, 2003 05:16:56 PM

 To: Struts Users Mailing List 

 Subject: Re: Cannot find bean "XXX" in any scope - error  

   

 Thanks Nagi..the error for Form bean is gone...but now the error is   

 displayed for the descriptor class..".Cannot find bean

 OpenFailureDescriptor in scope request"   

 Property openFailures in tayloringForm is a List which holds  

 OpenFailureDescriptor objects.

   

 i have tried changing the logic:iterate as below  



   

 Should i declare all the descriptor or value objects somewhere?   

   

 Thanks,   

 Arindam   

   

   

   

  

RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Mark Galbreath
Not really...after they screw up your system, they say, "ta-ta!"

-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] - [TOPIC] - [VOTE]


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]



RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Andrew Hill
and beer?

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 August 2003 19:59
To: 'Struts Users Mailing List'
Subject: RE: [OT] - [TOPIC] - [VOTE]


Will there be girls?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:50 AM

Another off topic note - With the increased need for professional Struts
Training, I decided to begin offering Struts Training Classes for beginner
through advanced users.  This would be outside the scope of my involvement
with Struts-Atlanta.

Struts-Atlanta is (and always will be) FREE.  The training classes/packages
would not be free and probably not be cheap (costs for instructors and
classrooms are not cheap).  As I said, I haven't formalized the packages
yet, but more info on this will follow.  Email me privately if you (or your
company) are interested.



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



Html tag question

2003-08-14 Thread Jones, Marty B.
I have an array of Project objects that are stored within a ActionForm class
(say ShowFileDiffsForm).

I have a getter and setter on the ShowFileDiffsForm:
Project[] getProjects()
void setProjects(Project[] projects)

The Project object itself has the attributes:
int id;
String name

My question is how can I build a logic:iterate tag to iterate over the array
of project objects.?

Here is what I have so far


   []


The one thing that I don't know how to do is to write the name and the
project id out for each iteration.  ]

Can anyone shed any light on this?



Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



Re: logic tags with mapped properties

2003-08-14 Thread André
Yes, it is supported.

--- André Moreira <[EMAIL PROTECTED]> wrote:
> Gurus,
> 
> do logic tags suport mapped properties?
> 
> In other words, I want to have a HashMap wrapped
> inside a java bean and use its values in a tag like
>  property="mappedProperty(key)" value="true"/>
> 
> Any help is appreciated.
> 
> Regards, 
> 
> André.
> 
> =
> 
> "O mundo é bom pra quem sabe viver."
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=

"O mundo é bom pra quem sabe viver."

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Mark Galbreath
Will there be girls?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:50 AM

Another off topic note - With the increased need for professional Struts
Training, I decided to begin offering Struts Training Classes for beginner
through advanced users.  This would be outside the scope of my involvement
with Struts-Atlanta.

Struts-Atlanta is (and always will be) FREE.  The training classes/packages
would not be free and probably not be cheap (costs for instructors and
classrooms are not cheap).  As I said, I haven't formalized the packages
yet, but more info on this will follow.  Email me privately if you (or your
company) are interested.



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



RE: [OT] Retrieve all messages ever sent to this list

2003-08-14 Thread Mike Whittaker
http://jakarta.apache.org/mail/struts-user/

--
Mike W

>-Original Message-
>From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
>Sent: 05 August 2003 16:01
>To: Struts Users Mailinglist
>Subject: [OT] Retrieve all messages ever sent to this list
>
>
>Hi,
>is there a way to retrieve all messages which have been sent to this
>mailinglist until now? I'd like to save all messages on my Laptop as a kind
>of reference.
>
>Thanks, Filip
>
>
>
>


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



RE: Delete Validation -- with Vector displayed

2003-08-14 Thread Mike Jasnowski
You can populate an ActionErrors object in your actionform, or in an action
depending on where you're validating.  You populate the ActionErrors list
with ActionError objects,  so in your form you might

ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(msgKey,arg0,arg1,...));
return errors;

 If from within an Action,  you'd do the the same, exception you wouldn't
return it, you'd save it to the request:

saveErrors(request,errors);

Where "request" is the HttpRequest object that was passed to your
action.execute() method.


 You're msgkey would point to a parameterized msg that might look like this:

 The entity {0} you requested is in use by the following other entities {1}

 You might have to do some special processing to make the list of entities
appear as a single parm if the number if variable.


HTH,
Mike Jasnowski

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Delete Validation -- with Vector displayed


This is what I have in my JSP already - to validate other fields of the form
bean:
<%--  Error Messages --%>
















I get those validations/messages from the 'Validate' method in the form bean
along with the applicationResources.properties file.

I have a check for the 'errors' object in my action class.
1. How can I write my delete-validation in a way that does not conflict with
all of the above?
2. you mentioned 'Return an ActionError...'. Where would I return it
to/from? How can I declare a new ActionError and add it to errors??



-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:10 PM
To: Struts Users Mailing List
Subject: RE: Delete Validation -- with Vector displayed


Return an ActionError with a message parameterized to include the names of
the entities, then on the JSP, render that errors collection.

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:08 PM
To: 'Struts Users Mailing List'
Subject: Delete Validation -- with Vector displayed


Hello Everyone,

I have a 'Delete' button in my JSP (a submit button). As the button is
submitted, a method gets called (from the Action class) to do the following:
1. checks if the field is NOT used by entities 2. Based on 1, either the
field gets deleted, or the field does not get deleted and a Vector of
entities using the field is returned.

How can I validate/ display a message to the user in case the field is used
and cannot be deleted? The error message should also include the entities
using the field (which is a Vector, or a string).


Thank you,

Mona



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

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 our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.

*


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



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

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 our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.

*


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



-
To unsubscribe, e-mai

Re: [OFF TOPIC] JavaScript + 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 +  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 +  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 +  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  tag:
>
> http://jakarta.apache.org/struts/userGuide/struts-html.html#select
>
> so you have several event handlers to use for transferring control.
> E.g., 
>
>  ].value";
> var selected = string;
> location = "/search.do?action=" + docObject + "&selectedItem=" +
string;
>   }
> 
>
> 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=dropdownbox1&selectedItem=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: [Q] Struts and date formatters

2003-08-14 Thread bmoritz
1.1

> Which version of struts is that? I am using 1.02 and
> for bean:write, neither type or formatKey are allowed
> attributes
> 
> 
> --- [EMAIL PROTECTED] wrote:
> > There is a "struts way" of doing it (at least, I
> > think, it's the struts
> > way). You just have to declare the parameter of your
> > bean as a java.util.Date and
> > have a property named
> > org.apache.struts.taglib.bean.format.date in your
> > standard properties file, e.g.
> > org.apache.struts.taglib.bean.format.date=dd.MM.yy.
> > The same works for numbers, too. You can also
> > specify your own property by
> > using the formatKey-Property of the bean:write-Tag
> >
>
(http://localhost:8080/struts-documentation/userGuide/struts-bean.html#write)
> > 
> > Björn
> > 
> > > OK, thanks, I'll look into it.
> > > 
> > > I was hoping for a default struts way to do it,
> > but it
> > > seems I have to do it "by hand".
> > > 
> > > 
> > > 
> > > --- Alex Shneyderman <[EMAIL PROTECTED]>
> > wrote:
> > > > Well the other way is what you are doing already
> > > > except instead of
> > > > attaching the bean as a date attach it as a
> > > > preformatted string. Using
> > > > the same SimpleDateFormat. 
> > > > 
> > > > The reason you are getting your "strangely"
> > > > formatted string is because
> > > > JSP does yourBean.toString () hence the behavior
> > you
> > > > are seeing.
> > > > 
> > > > Alex.
> > > > 
> > > > > -Original Message-
> > > > > From: Riaan Oberholzer
> > > > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, August 06, 2003 8:41 AM
> > > > > To: Struts Users Mailing List;
> > > > [EMAIL PROTECTED]
> > > > > Subject: RE: [Q] Struts and date formatters
> > > > > 
> > > > > Is there a solution without using JSTL? I run
> > on
> > > > BEA
> > > > > WebLogic 6.1sp2 and there is a known bug which
> > > > limits
> > > > > the number of external jars you can import
> > into an
> > > > > application. Do a google search for
> > > > > CR064391_610sp2.jar for more details on that.
> > > > > 
> > > > > Anyway, we cannot upgrade to a new version
> > soon,
> > > > which
> > > > > means we have to reduce the number of libs we
> > > > import.
> > > > > It sucks, but its reality. :(
> > > > > 
> > > > > 
> > > > > 
> > > > > --- Alex Shneyderman <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > Use JSTL's formatDate tag. Very easy to use
> > and
> > > > lets
> > > > > > you format your
> > > > > > date any way you want it. Example:
> > > > > >
> > > > > >  > > > > > pattern="-MM-dd HH:mm" />
> > > > > >
> > > > > > it is that simple.
> > > > > > Alex.
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Riaan Oberholzer
> > > > > > [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Wednesday, August 06, 2003 8:30 AM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: [Q] Struts and date formatters
> > > > > > >
> > > > > > > I am using the  tag and for
> > date
> > > > > > fields
> > > > > > > (java.util.Date), I get the (rather ugly)
> > > > full:
> > > > > > >
> > > > > > > Wed Aug 06 12:08:07 CEST 2003
> > > > > > >
> > > > > > > I have tried to do:
> > > > > > >
> > > > > > > DateFormdat df =
> > > > DateFormat.getDateTimeInstance();
> > > > > > > SimpleDateFormat sdf =
> > (SimpleDateFormat)df;
> > > > > > > sdf.applyPattern("-MM-dd hh:mm");
> > > > > > >
> > > > > > > But it gets ignored how/where can I
> > change
> > > > the
> > > > > > > default pattern that struts uses to format
> > > > dates
> > > > > > with?
> > > > > > >
> > > > > > > Thanks.
> > > > > > >
> > > > > > > __
> > > > > > > Do you Yahoo!?
> > > > > > > Yahoo! SiteBuilder - Free, easy-to-use web
> > > > site
> > > > > > design software
> > > > > > > http://sitebuilder.yahoo.com
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> -
> > > > > > > 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]
> > > > > >
> > > > > 
> > > > > 
> > > > > __
> > > > > Do you Yahoo!?
> > > > > Yahoo! SiteBuilder - Free, easy-to-use web
> > site
> > > > design software
> > > > > http://sitebuilder.yahoo.com
> > > > > 
> > > > >
> > > >
> > >
> >
> -
> > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > 
> > > > 
> > > > 
> > > >
> > >
> >
> -
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additio

Re: AW: / /OREF:CPT62B02 Refreshing a JSP exactly once

2003-08-14 Thread Adam Hardy
they don't show up on there for 24 hours sometimes. But you will find 
the links to quicker mail archive sites there, where you should be able 
to see just posted messages.

Frederic Dreier wrote:
have a look at :

http://www.mail-archive.com/struts-user%40jakarta.apache.org/

Regards,

dreier

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 5. August 2003 08:59
An: [EMAIL PROTECTED]
Betreff: / /OREF:CPT62B02 Refreshing a JSP exactly once


Hi, someone posted a reply to the above question that I posted. I
unfortunately saw the reply only while deleting all the posts. Really
sorry - I don't mean to waste anoyone's time but can the person that
posted a reply please repost?
Many thanks



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



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


Re: image as link in diaplay taglib?

2003-08-14 Thread Dan Tran
Here is an example

 

-D
- Original Message - 
From: "Rick Col" <[EMAIL PROTECTED]>
Newsgroups: Struts
Sent: Tuesday, August 05, 2003 9:25 AM
Subject: image as link in diaplay taglib?


> Hi,
>
> I need expert advices from this forum about display
> taglib.
>
> I am trying to make an image as link on one of he
> columns, how could I achieve that? If you have used
> dipslay taglib, please advise.
>
> I appreciate your help.
>
> regards,
>
> rick
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com

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



struts website webmaster fyi: link 404

2003-08-14 Thread Adam Hardy
Hi,
on this page
http://jakarta.apache.org/struts/resources/enabling.html

the "JavaServer Pages Standard Tag Library (JSTL) Early Release" is 
obviously out-of-date.

Sorry for mailing the whole list but I'm not sure who it should go to.

Adam

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


RE: [OT] - [BEER] - [VOTE]

2003-08-14 Thread Hibbs, David
-1

While it can be difficult to decide what to read, making me stop to think
what an abbreviation means won't speed things up.  It also won't help
newbies.

Feel free to use whatever [PREFIX] system you want, but don't expect people
to understand or read because of it.

OTOH, +1 to the [BEER], [FRIDAY], and [OTHER] tags. 
=)


> -Original Message-
> From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 12:08 AM
> To: [EMAIL PROTECTED]
> Subject: [OT] - [TOPIC] - [VOTE]
> 
> 
> With growing traffic on this mailing list, it has become difficult to
> search for mails to read or not to read.

> By doing so we can apply message filtering rules to sort the mails and
> read/answer those that interest you.
> I hope this would lead to better participation in the forum.

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



RE: uploadfile path

2003-08-14 Thread Yansheng Lin
The way it worked before was that you could specify a FormFile field in your
form and cast it to DiskFile right away in your Action class.  If you can get
hold of an old upload-example.war, you would see the example uses DiskFile,
which is totally different from current example.  Now you cannot do that
anymore.  Problem being casting CommonsMultipart to DiskMultipart doesn't work
anymore.

Now you need an extra step, which is what you posted(a beautiful solution btw, I
overlooked:)


   



-Original Message-
From: Alok Tijoriwala [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 9:47 AM
To: Struts Users Mailing List
Subject: RE: uploadfile path


Hi Yan,

I have been using the DiskFile with struts1.1. Works
fine. I would be glad if you can give me more details
on the problem.

regards
Alok
--- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> I had a problem using DiskFile when upgrading to 1.1
> though.  Somehow you cannot
> convert/cast a FormFile to DiskFile anymore...  I
> think there was a post to dev
> list about this too.  It brings down your production
> code!!!
> 
> -Original Message-
> From: Alok Tijoriwala
> [mailto:[EMAIL PROTECTED] 
> Sent: August 6, 2003 9:33 AM
> To: Struts Users Mailing List
> Subject: Re: uploadfile path
> 
> 
> Hi Danielle,
> 
> You will have to use the DiskFile class which
> implements the FormFile interface.
>  In the struts-config.xml , your controller
> configuration should be as under:
> 
processorClass="com.abnamro.waf.struts.WAFRequestProcessor"
> tempDir="/upload" maxFileSize="10K"
>
multipartClass="org.apache.struts.upload.DiskMultipartRequestHandler">
>value="true"/>
>   
> 
> Regards
> Alok
> --- Dan Tran <[EMAIL PROTECTED]> wrote:
> > Folow the Struts upload example, you can trace
> thru
> > how Struts gets the
> > client file and upload to server where you have to
> > do extra work to copy
> > data from FormFile (its stream buffer)  to the
> your
> > choice of server
> > location.
> > 
> > -Dan
> > 
> > - Original Message - 
> > From: "Yansheng Lin" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'"
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 06, 2003 8:18 AM
> > Subject: RE: uploadfile path
> > 
> > 
> > >  > enctype="multipart/form-data">
> > > 
> > > 
> > >
> > > theFile is type of FormFile.  You can go from
> > there.
> > >
> > > -Original Message-
> > > From: Daniel Massie
> > [mailto:[EMAIL PROTECTED]
> > > Sent: August 6, 2003 2:35 AM
> > > To: Struts Users Mailing List
> > > Subject: uploadfile path
> > >
> > >
> > > I am trying to upload a file using html:file
> which
> > is received as a
> > > FormFile, the problem is I need to find out this
> > files absolute path. Hwo
> > > can I retrieve this information?
> > >
> > > Thanks
> > > Daniel
> > >
> > >
> > >
> >
>
-
> > > 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]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> 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]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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



RE: Struts optimization

2003-08-14 Thread Andrew Hill
Given the limitations of html thats not really practical without using
frames or IFrames. :-(
Certainly tiles doesnt provide anything of that sort.

Theoretically you might be able to do something sort of like that using a
hidden iframe to send the request and receive the response, a bunch of
javascript and dom manipulation to copy and transform that response into a
replacement for the specific part of the page, and of course you would spend
a lot of time designing and itegrating such a technique.

In this case that would be overkill and the benefits would not come close to
matching the effort required.
This link may interest you though:
http://developer.apple.com/internet/javascript/iframe.html

-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 6 August 2003 18:04
To: [EMAIL PROTECTED]
Subject: Struts optimization



Hi,

I m using tiles, but i would like to kwnow
if it's possible to refresh only one page of the tiles layout.
Thus, the browser should load only the data page(body) which has
changed,
And not all,footer, header, menu bar, etc...
Is it possible to do with STRUTS, like the HTML frameset do?


How can i do that with struts tiles or other?
Give me example, please.

Laurent.



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


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



Re: Newbie problem with

2003-08-14 Thread David Graham
This looks suspiciously like a test question.  I'll give you a hint:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

David

--- Rupinder Singh Mazara <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
>   I needed help in clarifying what the following line of code would mean
> to
> a struts application
> 
>  id="app2" toScope="session" />
> 
> a) Try to find a object of the type "logic.AppContext" in the session
> scope
> called "appContext"
> b) Name the instance retrieved as "app2"
> c) If the object is not found create one and save it to the session
> scope
> ( toScope )
> 
> regards
> 
> Rupinder
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Retriving data from model to view

2003-08-14 Thread Cristiano Monteiro dos Santos
Hi there, guys!

I'm new at Struts and I have a doublt about how to retrieve data from a database using 
the Action classes to send them back to the view layer. I have read that it's a bad 
idea to mix form-beans with the model elements and that I'm supposed to take data from 
those form-beans, populate an entity and them pass this entity to my business layer.

Is this thougth valid in the way back? Am I supposed to send back to my jsp's only 
form-beans or I can send entitys directly from my model?

TIA!
-CMS

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



Re: RE: validating a html:select box

2003-08-14 Thread David G. Friedman
Erez,

In that field validation, you can overload the sentence given back on that error.  
After  add something like:



Then just add an application resource line such as:
month.too.short=Please select a valid month.
Or
month.too.short=Please select a valid {0}
to show the field name you put as arg0 in your validations xml configuration file.

Regards,
David

---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 03:06 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: validating a html:select box

> 
> I guess I'd have to change the msg key to something else than the
default message telling the value is out of range. 
What happens with html:radio? Is this also the way also to validate
radio options? If no radio is selected (and I know this is off topic,
well a bit) would the browser send a value?

Thanks,
Erez

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 4:59 PM
To: Struts Users Mailing List
Subject: Re: validating a html:select box

Erez,

The Struts Validator has an intRange function.  It's in the Validator
User Guide: 
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Here's an example from that page so you can set your min & max as 1 & 12
to prevent the zero (label "month"?) from being submitted:






min
10


max
20




---Original Message---
From: Erez Efrati <[EMAIL PROTECTED]>
Sent: 08/06/03 02:41 PM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: validating a html:select box

> 
> I have a selection box with options where the first is valued 0 (=not
selected) with some label saying: "month". How can I use the Struts
validator to validate the user has actually chosen a value other than 0?
Do I have to write one of my own? I wish the validwhen was around...

By the way the 'birthMonth' is an int (not a string).

Here is a snip of my page:















Thanks a lot,
Erez



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



validations it would be really nice to have

2003-08-14 Thread David Thielen
It would require using the locale but 3 really nice validations would be:

state, zip code, and phone number.

- dave

Re: method to get new Id to next action when old Id is in request?

2003-08-14 Thread Michael Ruppin

--- Adam Hardy <[EMAIL PROTECTED]>
wrote:
> I have two actions chained together. They both take
> the same formbean. 
> The first is sectionInsert.do and the second, which
> sectionInsert 
> forwards to on success, is sectionEdit.do
> 
> sectionInsert.do receives the properties of a
> Section in the request 
> parameters, including id=0 where it is 0 because it
> does not exist in 
> the DB yet. So it inserts the new Section into the
> DB and returns the 
> new id, which is needed by sectionEdit to put into
> the html for the edit 
> page.
> 
> I originally thought I could save the new id to the
> formbean and this 
> would get passed on, but sectionEdit instantiates
> its own formbean and 
> fills it with the request parameters - include id=0.

Out of curiosity, is it really making a new one, or
just putting the request data in to the existing Form,
again?

> Is there an intuitive way of passing on the new id?
> 
> I already use sectionEdit.do as a first action by
> calling it with an id 
> on a querystring, where the formbean picks it up. I
> would like to use a 
> method that is easy for both these situations.
> 
> I'd appreciate any inspiration.

How about putting in another Form property which will
never be populated from a request?  If this property
is populated, ignore the property Struts populated
from the request.  I guess this depends on my
assumption above, but if Struts really is making a new
Form, you could still put this new property in the
request, and make sure it happens only in the Action
you chain from, and never from the HTML you render.

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: sample struts w/ I18N and validator

2003-08-14 Thread Sergey Smirnov
struts-validator.war shipped with Struts distributive is a good example
covered both I18N and validators. You can take it from
http://forum.exadel.com/viewtopic.php?t=120 with illustration of
application Web Flow.

Regards,
Sergey Smirnov

"David Thielen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi;

Does anyone know of a simple sample struts page (like logon) that includes
Internationalization and validators so it shows how to use everything?

thanks - dave





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



RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Mark Galbreath
+1

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:12 AM
To: Struts Users Mailing List
Subject: RE: [OT] - [TOPIC] - [VOTE]


When I'm in a hurry to get through my inbox, I rely on 2 industry standard
categories/criteria for sorting...

[BEER]
[OTHER]


;)

--
James Mitchell
Software Engineer / Struts Evangelist http://www.struts-atlanta.org
770-822-3359 AIM:jmitchtx




> -Original Message-
> From: message message [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 7:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OT] - [TOPIC] - [VOTE]
>
>
>
> What is the criteria of the list ?
>
>
> >From: "James Mitchell" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> ><[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: [OT] - [TOPIC]  - [VOTE]
> >Date: Tue, 5 Aug 2003 06:20:51 -0400
> >
> >-1
> >
> >We tried this a long time ago.  Fact is, it would be impossible to 
> >categorize discussions by any label.  Especially when you consider 
> >how topics can vary from one area to another or could be a mix of 
> >more than a few that you listed.
> >
> >Your best bet is to just go through what you can and delete the rest. 
> >There is a massive amount of knowledge transfer being spread among 
> >the threads here (and other lists), so it is up to you to get what 
> >you need or save what
> >you might need in the future.  I have a technique where I save (what I
> >consider) important discussions in subfolders within my mail
> client.  That
> >makes for quicker searches among relevant messages.
> >
> >
> >--
> >James Mitchell
> >Software Engineer / Struts Evangelist http://www.struts-atlanta.org
> >770-822-3359
> >AIM:jmitchtx
> >
> >
> >
> >
> > > -Original Message-
> > > From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, August 05, 2003 1:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OT] - [TOPIC] - [VOTE]
> > >
> > >
> > > With growing traffic on this mailing list, it has become difficult 
> > > to search for mails to read or not to read. For better 
> > > participation in the forum, we can have following norm.
> > >
> > > We can have the Subject of mails prefix any of the following
> categories.
> > > If all agree we could request ASF people to publish these on
> the struts
> > > site too.
> > >
> > > By doing so we can apply message filtering rules to sort the mails 
> > > and read/answer those that interest you. I hope this would lead to 
> > > better participation in the forum.
> > >
> > > [OT]  -Off Topic
> > > [FB]  -Form Bean
> > > [AF]  -Action Form
> > > [RP]  -Request Processor
> > > [AS]  -ActionServlet
> > > [SC]  -Scope Related mails
> > > [GE]  -General Error
> > > [DG]  -Design Consideration
> > > [PR]  -Problem in Struts
> > > [TL]  -Tiles
> > > [T-BE] -Bean Tag Library
> > > [T-HT] -HTML Tag Library
> > > [T-NS] -Nested Tag Library
> > > [T-LG] -Logic Tag Library
> > >
> > > etc
> > >
> > > Shall we start voting for this...!!!
> > >
> > > 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 ...
> > >
> > >
> > > --
> > > ---
> > > 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]
> >
>
> _
> 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]


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



Location of JSPs for TILES

2003-08-14 Thread Cameron Hickey
I am having some problems getting TILES to work properly when I put my
JSPs into folders.  The error I get is:

Unable to compile class for JSP An error occurred at line: -1 in the jsp
file: null

Which I assume means that it cannot find the JSP file I have specified
in my tiles-defs.xml.  

If I have my files here:

/WEB-INF/jsp/proptypelist.jsp

and this in the tiles-defs.xml

  


  

Then everything works fine.

BUT, if I put the same file a level deeper:

/WEB-INF/jsp/prop/proptypelist.jsp

with def:






then I get the error.

Any idea why this would be happening?

Are there limits to how deep or where the templates should be located
for use with TILES?  Is there a way to configure this?

Thanks for any assistance

Cameron Hickey


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



Tiles related question

2003-08-14 Thread JavaXML Developer
I am new to tiles and want to learn it quickly. Is there any tutorial , sample program 
anywhere including introduction to tiles?
 
Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: java.lang.ClassCastException: net.msl.stackdates.web.Carrier

2003-08-14 Thread Nagendra Kumar O V S








  hi,
  the type attribute in the iterate should be Fully qualified Java 
  class name of the carrier(i.e, exposed by the id attribute)..
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, August 
  05, 2003 04:09:07 PM
  To: [EMAIL PROTECTED]
  Subject: / 
  /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: 
  java.lang.ClassCastException: net.msl.stackdates.web.Carrier
   I have a bean that's an arraylist that contains Carrier 
  objects. I'mtrying to access the name property on the Carrier object 
  but keepgetting the above error.I've tried nested:iterate but with 
  no luck - keep getting a nullpointer 
  exception."java.util.ArrayList" 
  scope="application">face="Verdana">BLAH...face="Verdana">BLAHHelp 
  will really be 
  appreciated...Tx-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



[newbie]: forwarding to a URL from Action class

2003-08-14 Thread Shyam A
Hi,

I have an application that is accessed from another
application and I need to return a user to the
original application when the user logs out/times out
of my application.

I always get a "HTTP - Bad Request" error when I try
to forward to a URL from my DispatchAction class. I
have tried defining the URL in my struts-config and
used the following code in the Action class methods:

return (servlet.findForward("login"));

Also, I get the same result if I define the URL as a
constant and use the code below:

return (new ActionForward(Constants.URL));

The reason I guess is that the ActionForward object
uses a relative path and inserts a "/" at the
beginning of the URL.

Any help would be greatly appreciated.

Thanks,
Shyam


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Iterating on ArrayList present in a View

2003-08-14 Thread David Graham
--- Meka Struts <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> * I have an ArrayList which contains objects of type Strings. 
> * This ArrayList is being set in the view
> 
> Can somebody tell me how can i iterate the ArrayList present in the
> View?

Using the JSTL:




David

> 
> *  I have implemented iterate tag on ArrayList containing some
> BussinessObjects (BO's), and the ArrayList was set into the session
> using 
> 
> session.setAttribute("ArrayList", alObj);
> 
> Regards,
> 
> MekaToka


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Class Not Found Exception with Tiles controllClass

2003-08-14 Thread David Graham
What class is it not finding?  Assuming everything compiles ok, this is a
runtime classpath problem.

David

--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> I'm getting a 'Class not found' exception when I try to use a
> controllerClass in a Tiles definition
> 
> 
> 
>  name="membersolutions.portalLayout.splitscreen"
>   path="/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp" >
>   
>   
>value="/WEB-INF/tiles/commonLayouts/static/topframe.jsp" />
>   
>/>
>value="/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp" />
>   
> 
>   
>  
>
controllerClass="com.labone.membersolutions.framework.tiles.controller.NewsC
> ontroller"
>   name="disclaimer.controller"
>   path="/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp"/>
> 
> 
> 
> The "NewsController" looks like this...
> 
> 
> 
> package com.labone.membersolutions.framework.tiles.controller;
> 
> import javax.servlet.ServletContext;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> import org.apache.struts.tiles.ComponentContext;
> import org.apache.struts.tiles.Controller;
> 
> public class NewsController implements Controller
> {
>   public void perform(ComponentContext cc, HttpServletRequest request,
> HttpServletResponse response, ServletContext sc)
>   {
>   request.setAttribute("MemberSolutionsNews", "this is the
> daily news");
>   }
> }
> 
> 
> 
> I can't see the problem; I've checked the archives for similar issues
> but
> didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual or
> entity to which it is addressed. If you are not the intended recipient
> or the person responsible for delivering the transmission to the
> intended recipient, be advised that you have received this transmission
> in error and that any use, dissemination, forwarding, printing, or
> copying of this information is strictly prohibited. If you have received
> this transmission in error, please immediately notify LabOne at the
> following email address: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



DynaActionForm BUG?

2003-08-14 Thread amind

All the multiboxes have different names. The checkboxes are rendered
dynamically. I have checked the names, and the values returned by the
multiboxes in the html generated. Everything is fine. Hit a wall when I
try to click on 1 multibox( a set of checkboxes ) somehow the date
received is taken from another multibox. I've printed out the data in the
Action class, It's just simply weird. Maybe struts to the latest version
might do the trick?

Amin

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:37 AM
To: Struts Users Mailing List
Subject: RE: DynaActionForm BUG?

> I have a big form with a number of multibox tags. It seems that there
> are mixup of data from one multibox to another. Is this a documented
> bug or does it have to do something with jvm or tomcat? I have tried
> on solaris and windows xp both environments seem to have the same
> problem

Do your multibox tags have the same name? How are you generating your
multiboxes, and what is the resultant HTML? What are the results of
inspecting the enumeration of request parameters that are being received?

-= J
http://catb.org/~esr/faqs/smart-questions.html

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



FW: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
Was just browsing thru validator sources and here is I think a "new"
non-deprecated way. Pelase, correct me if I am wrong someone.

So instead of 
   getResources().getMessage ("host.name");

One would do something like:

((MessageResources) request
   .getAttribute(Globals.MESSAGES_KEY)).getMessage (null,
"host.name");

null is for Locale if you have a locale you want the message for specify
it there, other wise default will be taken. 

Alex.

> -Original Message-
> From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 9:55 AM
> To: 'Struts Users Mailing List'
> Subject: RE: How to use ActionError with two keys?
> 
> 
> You can get the value for your key like this from within your action.
> getResources().getMessage ("host.name")
> 
> so your resources:
> 
> errors.required=Required {0}
> host.name=Hostname
> 
> and the code:
> 
> new ActionError("errors.required", getResources().getMessage
> ("host.name"));
> 
> The only thing is this method getResources() is deprecated. But I am
sure
> there is some substitution for it.
> 
> Alex.
> 
> > -Original Message-
> > From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 06, 2003 9:47 AM
> > To: Struts Users Mailing List
> > Subject: Re: How to use ActionError with two keys?
> >
> > And how can I do that?
> >
> > How can I get the string assigned to for example "errors.required"?
> >
> > Zsolt
> >
> >
> >
> >
> > On Wed, 2003-08-06 at 15:36, Prashanth.S wrote:
> > > Hi
> > > i think u need to use positional parameter substitution instead of
> using
> > another key
> > > like {0},{1} etc in actionerror and replace them with actual
values in
> > properties file..
> > > HTH
> > > prashanth
> > >
> > > Zsolt Koppany <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > how can I use ActionError with two keys. The example below show
what I
> > > would like to do:
> > >
> > >
> > > new ActionError("errors.required", "host.name")
> > >
> > >
> > >
> > > Zsolt
> > >
> > >
> > >
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: FormFile[]

2003-08-14 Thread Andrew Hill
No. Unfortunately you cannot have multiple file fields on a form with the
same name, like what you can with other field types. :-(

In the application I am working on we also had a need to upload multiple
files for a field.

The way I got around the problem was to keep the form in session scope, and
the setter method in the form only takes a single FormFile, but what it does
is to append that formFile to a collection of FormFile inside the form.

The user can only upload one file at a time this way, so after selecting the
file for the field they click an 'add or remove files' button to submit the
request to a DispatchAction. The setter method is called by struts with the
form file, and internally it adds it to the collection. The method in the
DispatchAction for this then forwards back to the input page again.

The names of those files the user has uploaded so far are listed as text
above the file selection box. (I put a checkbox next to each so that they
user can also select files they have already uploaded to be deleted if they
change their mind about using it.) When the user has finished uploading
files (and removed any they realised they didnt want after all) they click
the real submit button and the form is processed... I provide a seperate
getter method with a different name to allow the action to retrieve the
entire collection of formfiles for its processing.

-Original Message-
From: Aswathy Remani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 12 August 2003 18:14
To: [EMAIL PROTECTED]
Subject: FormFile[]


Hello,

I have one variable of type FormFile[] in form class.

Is it possible to pass the array of Uploaded files to Form ?

For me its giving ClassCastException when I submit the Form

Looking forward to hear from u

Thanks&Regards

Aswathy


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



RE: StrutsTestCase using weblogic 8.1

2003-08-14 Thread Sachin
Hi Doug,
 Have you able to write TestCases for Struts1.1 in StrutsTestCases
becuase i can able to run with Struts1.0 but not with Struts1.1

Thanks
sachin

-Original Message-
From: Chalmers, Doug [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 8:07 PM
To: [EMAIL PROTECTED]
Subject: StrutsTestCase using weblogic 8.1


Hi folks,

I'm trying to set up Cactus/StrutsTestCase etc to try out testing methods on
an existing (ongoing) application and coming across several problems. I've
got the mock method almost working, but it's failing cos the test I've tried
needs database access. Trying to get it to run the tests when the app is
deployed in weblogic but keep getting NoClassDefFound errors for aspectj
classes. I've tried different version of the jar file but the classes it
complains about are always there. Im pretty sure the classpath is fine, but
it just doesn't like it. I've tried adding the classpath to the application
but that didn't make any difference. Anyone seen this problem before?

Weblogic 8.1
Struts 1.0/1.1
Cactus 1.4
StrutsTestCase  - tried various versions for 1.0 and 1.1 of struts. All 2.3
Servlet.

Cheers,

Doug Chalmers
Software Development
Petrotechnics Ltd.



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




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



RE: Help please - indexed field in ActionForm

2003-08-14 Thread Nicholas L Mohler





Hi Dave,

There was a good thread about using indexed properties a little over a week
ago (7/28-7/30).  Find that thread and you should find all of the answers
that you need in order to use and process indexed properties on your form.
Even though the thread wanders a little, everything that you need is there.

Nick



   

  Erez Efrati  

  <[EMAIL PROTECTED]To:   "'Struts Users Mailing 
List'" <[EMAIL PROTECTED]>
  et.il>   cc: 

   Subject:  RE: Help please - indexed 
field in ActionForm 
  08/07/2003 09:09 

  PM   

  Please respond to

  "Struts Users

  Mailing List"

   

   





You could also try the following:


 label:


You could also make use of the  and get rid of the
name="myForm", but this a bit more advanced.

Don't forget to put :
<%@ taglib uri="/tags/struts-html-el" prefix="html-el" %>

HTH,
Erez

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 1:39 AM
To: Struts Users Mailing List
Subject: Re: Help please - indexed field in ActionForm

Hi;

Thank you - this is part of what I need.

Is there any way to iterate through the lines if I don't know up front
how
many lines there will be? I tried the with the c JSTL and it doesn't
work.

thanks - dave


- Original Message -
From: "Gary Kephart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 4:55 PM
Subject: RE: Help please - indexed field in ActionForm


class MyActionForm
{
  private static final MAX_ENTRIES = 50;
  private String[] text;

  public MyActionForm()
  {
text = new String[MAX_ENTRIES];
  }

  public String[] getText() {return text;}

  public void setText(int index, String newText) {text[index] =
newText;}
}

my.jsp

  

  Label 1:
  Label 2:
  

  



Gary Kephart| New Century Mortgage
Web-Based Application Developer | http://www.ncen.com
[EMAIL PROTECTED]   | 340 Commerce
949-797-5660| Irvine, CA  92602-1318


> -Original Message-
> From: David Thielen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 3:46 PM
> To: Struts-Users
> Subject: Help please - indexed field in ActionForm
>
>
> Hi;
>
> I've been fighting this all day with no luck. And it has to
> be a simple thing to do.
>
> I have a form where I have N lines in it. Each line needs to
> have some text displayed and an edit box.
>
> How do I set this up in the .jsp file and in the ActionForm?
> I've found a number of examples on the web but they all have
> incomplete code and my guesses for the rest of the code have
> not been right so far.
>
> thanks - dave
>

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



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



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






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



RE: Application Design Document -- Struts Studio - Independent opinion

2003-08-14 Thread Mike Jasnowski
Here's another Eclipse based Struts diagram tool.  I haven't used it, I
don't know if it just renders the config, or if it is interactive and
enables you to edit the config thru the diagram.

http://www.improve-technologies.com/alpha/struts-config-editor/images/plug-i
n.gif

-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion




I haven't downloaded any test application.
Test application came with the Swing GUI IDE.

I know exactly what the problem is.
The message says
INFO: Starting Coyote HTTP/1.1 on port 8880
That clearly isn't the case.
There is no server running on port 8880.
Port programming is beyond the intellect of Struts Studio staff.

The message is just a message.
The message bears no resemblence to the state of the server.

Another words Struts Studio people tried to cheat by
Putting a message saying server starting when they knew nothing of port
programming
nor did they tried to find out about port programming even though they
have the source code.

All the Strut Studio  people did was download free ware and then cash in on
it.
It takes more than putting a swing GUI  on Free Ware to build an IDE.



>From: "Cameron Hickey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Application Design Document -- Struts Studio - Independent
>opinion
>Date: Tue, 5 Aug 2003 19:43:48 +0300
>
>I followed the same procedure you described for struts studio, and was
>quite surprised that the browser opened up, and actually did work.  I
>don't know why you had this problem, but you probably should not be so
>quick to blame it on the test application you downloaded.  There are
>possibly dozens of factors related to whether this sample function will
>work, most of which probably have to do with the custom configuration
>you have on your computer.
>
>For me, more relevant criticism of Struts Studio includes:
>
>   - Scrolling with a wheel mouse in the code view does not work.
>   - There is no simple way to zoom in and out on the schematic
>view.
>   - There are almost no keyboard shortcuts.
>
>This application is by no means a robust enterprise IDE, but it does a
>very nice job generating diagrams of your struts configuration, which
>can be very useful for debugging applications, or explaining to others
>how they work.  It also makes some of the manual modifications to all
>the different properties much simpler and quicker than straight text
>editing.
>
>Cameron
>
>
>
>-Original Message-
>From: message message [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 05, 2003 7:04 PM
>To: [EMAIL PROTECTED]
>Subject: RE: Application Design Document -- Struts Studio - Independent
>opinion
>
>
>After reading this thread I downloaded Struts Studio.
>Installed it.
>I started up the studio.
>Selected the Struts-config tab.
>Noticed a message  saying  starting Coyote HTTP 1.1 on port 8880.
>
>I then went to the Start game  icon where the message says right click &
>
>select run.
>So I did.
>
>The browser started automatically saying "The page cannot be displayed".
>
>As I have no doubts in my ability to start an IDE.
>It must be the Sh***it waste of time studio which can't run a simple
>sample
>program.
>
>I just wanted to share this information with everybody because this kind
>of
>thing happend alot with java sh***it tools.
>
>
>
>
>
>
>
>
>
>
>
>
>
> >From: "message message" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: RE: Application Design Document
> >Date: Tue, 05 Aug 2003 18:43:44 +0400
> >
> >
> >WAS 5.0 Struts Diagram -
> >Do you know if that is available as a plug-in for Eclipse 2.1
> >
> >
> >>From: "Syed, Nazeer" <[EMAIL PROTECTED]>
> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>Subject: RE: Application Design Document
> >>Date: Tue, 5 Aug 2003 10:18:59 -0400
> >>
> >>There Struts Diagram in WSAD5.0 Which I ofen use to draw navigation
> >>
> >>Other tools like Struts Studio are also helpful.
> >>
> >>Thanks
> >>Nazeer
> >>
> >>
> >>-Original Message-
> >>From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, August 05, 2003 10:07 AM
> >>To: Struts (E-mail)
> >>Subject: Application Design Document
> >>
> >>Hi everyone,
> >>
> >>I just finished developing a web application using Struts and our
>client
> >>is asking us to provide a design document for the application.
> >>
> >>I was wondering, if among the struts community, there's a certain
> >>template or even ideas for how such a document should look like and
>what
> >>it should include.
> >>
> >>I was especially thinking of a diagram that illustrates the actions
>and
> >>their relationship with the JSP's and the Model. Does 

RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
hi James , I am still working on it , but I have a simple question ,
beside database based MessageResources, I still want to use 
present file based  MessageResources feature of struts(in the case of any problem with 
my message code), 
I am using config parameter to specify which kind of 
Message will be created , 
if the config parameter is not database , to create
struts message resources I am using 

"MessageResourcesFactory.createFactory().createResources(config) " ,

is that correct or enough to do this ? 


/ here is code fragment /

public class TebMessageResourcesFactory extends MessageResourcesFactory 


   public MessageResources createResources(String config) {

if (config == null || "Database".equalsIgnoreCase(config)  )

// return own MessageResources class that reads messages from DATABASE

   return new TebMessageResources(this, config, this.returnNull);

else 

   // return struts MessageResources class that reads messages from FILE SYSTEM
   
  return  MessageResourcesFactory.createFactory().createResources(config);
   }



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 2:12 PM
To: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
Cc: Struts Users Mailing List
Subject: RE: is there any way to load Message Resources from back-end
database instead of properties files?


> we have own tables that holds locations, resources and messages,
> I have a persistent class that gets all data from database.
> I need is a class that extends the class that reads messages
> from properties files, override the method that reads from disk file,

You need 2 classes minimum.

public class MyMessageResourcesFactory extends MessageResourcesFactory {
public MessageResources createResources(String config) {
return new MyMessageResources(this, config, this.returnNull);
}
}

public class MyMessageResources extends MessageResources
implements Serializable {
public MyMessageResources(MessageResourcesFactory factory, String
config) {
this(factory, config, false);
}
public MyMessageResources(MessageResourcesFactory factory, String
config, boolean returnNull) {
super(factory, config, returnNull);
}

public String getMessage(Locale locale, String key) {
   //call your DAO here
}
}

You would tell Struts to use your implementation by configuring it in the
struts-config:

  
  


My hack for supporting multiple keys and Modules was to use the parameter to
designate alternate keys and/or modules.

Let me know if that helps you.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx





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



RE: [OT] - [TOPIC] - [VOTE]

2003-08-14 Thread Mark Galbreath
[WGAF]?!

Wasn't it you whining about all the traffic on this list?

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 1:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] - [TOPIC] - [VOTE]



Also I think it is owned by one family known as the TATA of India.

I think I know the history of this company  or I could be thinking of 
another one.
There used to be car called Morris Minor built by British Leyland. When
Leyland stopped building it so the car became obsolete. TATA  bought the
equipment/plant & machinery from British Leyland. They then started building
the Morris minor in India.

You can still buy a new morris Minor in India.

There is currently an advert on TV about the Renault Clio where the guy gets
an elephant to sit on the car to shape like a Renault Clio.


>From: Kwok Peng Tuck <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: [OT] - [TOPIC] - [VOTE]
>Date: Wed, 06 Aug 2003 08:30:43 +0800
>
>It's quite a big company in India.
>
>message message wrote:
>
>>
>>I think it is originally Car company like General Motors
>>or should I say Skoda.
>>
>>>From: "Brian Lee" <[EMAIL PROTECTED]>
>>>Reply-To: "Struts Users Mailing List" 
>>><[EMAIL PROTECTED]>
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [OT] - [TOPIC] - [VOTE]
>>>Date: Tue, 05 Aug 2003 09:29:46 -0400
>>>
>>>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]
>>>
>>
>>_
>>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]
>>
>>
>>
>
>
>-
>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]



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



RE: Extending Tiles Role Attribute

2003-08-14 Thread Raible, Matt
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15188

-Original Message-
From: Terry Brick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 2:29 PM
To: [EMAIL PROTECTED]
Subject: Extending Tiles Role Attribute


Hi,
I really need to ability to specify multiple roles in
my tiles tags (using the "role" attribute) like we can
with Actions.  I did a quick text search on the struts
source and it looks like maybe it's using Strut's
RequestProcessor.  In case anyone has done this, I'm
just hoping someone can point be to the right
direction so I can quickly implement something.  Any
pointers?
Thank you

Struts 1.1

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Concept clear for Indexed properties

2003-08-14 Thread Sridhar Kotagiri
Hi,
   I want to make my concept clear 
1)I have an ActionForm which contains an ArrayList this stores collection of beans 
which are called IpAddress
2)Now I write the setter and getter methods for ArrayList in the ActionForm
3)The Actual part
Do I need to write the getter And setter methods with indexed property in the 
ActionForm for IpAddress or ArrayList
when Im using the first one Im able to diplay the jsp page but when I submit it its 
throwng BeanUtils.populate() exception
If Im using the second one Im unable to display the jsp page it throws no getter 
methods for arrayList
Im sure that in the first case the getter method with indexed property for IpAddress 
is being called.

Thanks!
Sridhar

-Original Message-
From: Sridhar Kotagiri 
Sent: Friday, August 08, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: BeanUtils.Populate exception(Indexed Properties)


I'm totally confused you say that I need to write these methods 
public void setAlist(int index,IpAddress ip)
{
alist.add(alist.set(index,ip));
}
public IpAddress getAlist(int index)
{
return (IpAddress) alist.get(index);
}

instead of

public void setIpAddress(int index,IpAddress ip)
{
alist.add(alist.set(index,ip));
}
public IpAddress getIpAddress(int index)
{
return (IpAddress) alist.get(index);
}

int the ActionForm 

Thanks!
Sridhar


-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:03 AM
To: 'Struts Users Mailing List'
Subject: RE: BeanUtils.Populate exception(Indexed Properties)


> 4)Now Im able to diplay in the jsp page but when I submit 
> this page its throwing 
> javax.servlet.ServletException: BeanUtils.populate at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java
> :1098)  exception.

See the response I made a couple of hours ago on this same issue. I just
came through one of these. The problem in my case, and probably in yours, is
that when Struts tries to populate your form bean on submission, it calls
the indexed getter for alist. It expects to get a bean of type
"com.register.struts.account.IpAddress" . In my case, I had created an array
of the proper type and length, and was returning an element of this array.
But my "reset" method did not assign anything to the elements of the array,
so I was returning nulls. Struts reacted to the null by throwing the "No
bean specified" error.


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



image instead button for submiting a struts form ?

2003-08-14 Thread Florent LOTHON
Hello,

is there a simple way to make an image submiting a form with  ,
 or  struts Tag ?

Flo


--
Ce message est protege par les regles relatives au secret des correspondances ; il 
peut en outre contenir des informations a caractere confidentiel ou protegees par 
differentes regles et notamment le secret des affaires ; il est etabli a destination 
exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou 
reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, 
doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete 
modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et 
d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore it may 
contain privileged or confidential information that is protected by law, notably by 
the secrecy of business relations rule ; it is intended solely for the attention of   
the addressee . Any disclosure, use, dissemination or reproduction (either whole or  
partial) of this message or the information contained herein is strictly prohibited 
without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can not be 
assured.  AGF declines any  responsibility for  this message in the event of  
alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the 
sender of the wrong delivery and the mail deletion. 
--



RE: [Q] Struts and date formatters

2003-08-14 Thread Riaan Oberholzer
I have used JSTL and found it very nice, but then I
have to export the property somehow from the struts
bean to jstl... right? How do I do it?

I use (in simplistic form):


  


How would this translate to (I assume) a combination
with JSTL?


--- Alex Shneyderman <[EMAIL PROTECTED]> wrote:
> Use JSTL's formatDate tag. Very easy to use and lets
> you format your
> date any way you want it. Example:
> 
>  pattern="-MM-dd HH:mm" />
> 
> it is that simple.
> Alex.
> 
> > -Original Message-
> > From: Riaan Oberholzer
> [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 06, 2003 8:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Q] Struts and date formatters
> > 
> > I am using the  tag and for date
> fields
> > (java.util.Date), I get the (rather ugly) full:
> > 
> > Wed Aug 06 12:08:07 CEST 2003
> > 
> > I have tried to do:
> > 
> > DateFormdat df = DateFormat.getDateTimeInstance();
> > SimpleDateFormat sdf = (SimpleDateFormat)df;
> > sdf.applyPattern("-MM-dd hh:mm");
> > 
> > But it gets ignored how/where can I change the
> > default pattern that struts uses to format dates
> with?
> > 
> > Thanks.
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > 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]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Actions Best Practice

2003-08-14 Thread Adam Hardy
I thought that was exactly what you were doing!

Erez Efrati wrote:
The only thing you cannot do is having a mixture of this solution
(having the action-mapping parameter set to the 'init' or else) and the
one of DispatchAction class that keeps all the operation under the same
roof (class).
Erez

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 3:00 PM
To: Struts Users Mailing List
Subject: Re: Actions Best Practice

That's not necessary. In the action mapping, you can specify the action 
parameter with parameter="init" or parameter="send".

Erez Efrati wrote:

Taking your advice, it means that I would have two different action
mappings, one for the init step and the second for the actual action
(send).
But then I will have to write something like 
 which is a bit
strange to write again the "init", and it is needed cause the
ForgotPasswordAction.java needs this 'action' parameter to distinguish
between the two. Hmm.. 

Erez

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: Actions Best Practice

Erez Efrati wrote:



One of the problem I found with 'action=init' method, is that the
validation is activated automatically for both cases (both init &
send),


and fails of course on the 'init' cause no field is yet in the form.
So


I was forced to configure 'validate=false' and call it manually in the
Action code.


Option B would be compacter. You can write two action mappings in 
struts-config to distinguish the calls, where one has no validation
and 

the other does.

I know some people don't like having extra action mappings in their 
struts-config, but I believe that is what they are there for.

Adam

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


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



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


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



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


Re: Tiles related question

2003-08-14 Thread Sreekanth
Try this site. I found it pretty good
http://www.lifl.fr/~dumoulin/tiles/

ThanX
Sreekanth


- Original Message - 
From: "JavaXML Developer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 7:51 AM
Subject: Tiles related question


> I am new to tiles and want to learn it quickly. Is there any tutorial ,
sample program anywhere including introduction to tiles?
>
> Thanks,
> Vicky
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: [OT] TLD question

2003-08-14 Thread e


Anybody on the list migrate from struts 1.0 to struts 1.1 running on 
silverstream 3.7?
I've been trying to get it to work and I keep getting null pointer 
exceptions, and I'm
wondering if there is something random I'm missing.

Thanks.

-e

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


RE: Button labels and DispatchActions mix?

2003-08-14 Thread ansuman_behera
even I had faced a similar problem in one of my past experiences. 

the workaround that I adopted was by providing a link instead of a button and hence I 
could append the parameter value. To my business users the difference did not matter...

ansuman

-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 6:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Button labels and DispatchActions mix?


I believe that the solution is to use a DispatchLookupAction rather than a
dispatch action. See p226 in Struts in Action for a description.

Paul

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: 07 August 2003 13:27
To: Struts Users Mailing List
Subject: RE: Button labels and DispatchActions mix?


Its better you use javascript 
There you can append your action also with submit value

Eg:

Document..action="search.do"+"";

Regards
Rohit


-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 5:49 PM
To: Struts Users Mailing List
Subject: Re: Button labels and DispatchActions mix?

It works with the button label But I have two Search buttons on the
same page both labeled
search.button.reset but they perform two different actions. So I need a
way to distinguish which was pressed
inside my DispatchAction


Rohit Aeron wrote:
> 
> This will work ..
> 
>  value="" >
> 
> 
> -Original Message-
> From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 5:29 PM
> To: Struts Users Mailing List
> Subject: Button labels and DispatchActions mix?
> 
> Hello people,
> 
> I have the following code :
> 
>  
>  
>  
> 
> What I am trying to do is have a Dispatch Action
> so that when this button is pressed the request is something like
> search.do?action=resetg
> But I don't want my button to have the resetg title on it. I want it to
> have the search.button.reset title from ApplicationResources bundle
> on it. It seems tha Struts html tag library mixes the two. Is there a
> way out of this?
> 
> Thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> *--
> This message and any attachment(s) is intended only for the use of the
addressee(s) and may contain information that is PRIVILEGED and
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
notified that any use, distribution, disclosure or copying of this
communication is strictly prohibited. If you have received this
communication in error, please erase all copies of the message and its
attachment(s) and notify the sender or Kanbay postmaster immediately.
> 
> Any views expressed in this message are those of the individual sender and
not of Kanbay.
> 
> Although we have taken steps to ensure that this e-mail and any
attachment(s) are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
> 
> -
> 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]


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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


---

RE: transaction tokens

2003-08-14 Thread Edgar Dollin
I have implemented and it works OK, the user can have multiple windows open
and within reason use the back / forward buttons.  The problem is what do
you do if they backup and then take a different action.  You need to have
some way of recovering the path in a graceful way, without the user loosing
to much of the information they may have typed.

Edgar

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2003 5:41 AM
> To: 'Struts Users Mailing List'
> Subject: Re: transaction tokens
> 
> 
> I was thinking there might be a way of controlling transactions by 
> saving all tokens in the session once they are used, and then if it 
> crops up again, not allowing the execution.
> 
> Would be simple to implement with a hashmap I think.
> 
> What's the likelihood of 2 transaction tokens being 
> identical, over the 
> course of a user session?
> 
> (Theoretically you could apply the same principle to action 
> forms,saving 
> them against a transaction token and then sorting it out in a 
> base class 
> during form.reset() (exceptionally seat-of-pants thinking))
> 
> Andrew Hill wrote:
> > oops, yep. Should have specified that. Only for a session mapped 
> > actionform will there be a problem. The request ones are of 
> course not 
> > affected by the problem.
> > 
> > -Original Message-
> > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 6 August 2003 17:56
> > To: Struts Users Mailing List
> > Subject: Re: transaction tokens
> > 
> > 
> > Andrew Hill wrote:
> > 
> >>I dont believe so. :-(
> >>
> >>
> >>Likewise for multiple actionforms (for the same mapping) 
> when you have 
> >>>1 windows open (such as you might want for editing several records 
> >>selected from a list in the main window...) 
> > 
> > 
> > what's the problem with that? You mean you have the action 
> form in the 
> > session?
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 

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



RE: Bean tag help

2003-08-14 Thread Rohit Aeron

Just cross check that you are importing 
1. taglib
2. bean
3. correctly specified bean name & type in struts-config.

Regards
Rohit



> Hey People
> 
> Ay ideas on how to fix my bean proble?
> 
> Every time I try to uyse the  
> java.lang.ClassCastException
>   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766)
>   at
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
>   at org.apache.jsp.files_jsp._jspService(files_jsp.java:149)
> 
> 
> The Java code looks like 
> 
>   _jspx_th_html_form_0.setParent(_jspx_th_html_html_0);
>   _jspx_th_html_form_0.setMethod("POST");
>   _jspx_th_html_form_0.setAction("/files");
>   149->  int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
>   if (_jspx_eval_html_form_0 !=
> javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
> do {
>   out.write("\r\n  ");
>   /*   bean:define  */
>   java.lang.Object processName = null;
>   org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_0
> = (org.apache.struts.taglib.bean.DefineTag)
> _jspx_tagPool_bean_define_property_name_id.get(org.apache.struts.taglib.bean
> .DefineTag.class);
>   
> 
> I havent worked a lot on struts and beans so I'm not too sure how to fix it
> 
> Cheers
> 
> Vance
> 
> 
> Vance Heredia
> 
> 
> __
> This email, including attachments, is intended only for the addressee
> and may be confidential, privileged and subject to copyright.  If you
> have received this email in error, please advise the sender and delete
> it.  If you are not the intended recipient of this email, you must not
> use, copy or disclose its content to anyone.  You must not copy or 
> communicate to others content that is confidential or subject to 
> copyright, unless you have the consent of the content owner.
> 


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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



RE: How to add Java Script to a JSP page with struts tags

2003-08-14 Thread Rohit Aeron
Ur problem is you are getting javascript error but as you are using html:submit , form 
is getting submitted using the action defined in html:form tag ...



So Use html:button instead of html:submit...
And submit using javascript...

Eg:

document..action ="action.do";
document..submit();






-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:57 PM
To: 'Struts Users Mailing List'
Subject: RE: How to add Java Script to a JSP page with struts tags

Hi Rohit,
I am getting the message: "error on page" followed by a "done" on the left
hand corner of the explorer. After this control simply gets forwarded to the
page that I have set as "forward"(in struts-config.xml) value on "failure".
That is, the java script seems to be ignored by the browser.


Thanks,
Seshadhri

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 12:43 PM
To: Struts Users Mailing List
Subject: RE: How to add Java Script to a JSP page with struts tags


Hi Seshadhri

Then you must be getting javascript error .just look at the bottom left
corner of explorer & see what does it say .. Just mail me that error so that
I can will tell you more ...

Regards
Rohit

-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:02 PM
To: 'Struts Users Mailing List'
Subject: RE: How to add Java Script to a JSP page with struts tags

Hi Rohit,
I tried doing the same but the problem persists. 
I have the following javascript code wherein I have used 'loginForm' for the
form name as I use  form tag. In the following
code 'userName' is a html:text and 'password' is a html:password entity.

function validate()
{

if(document.loginForm.userName.value=="")
 {
  alert("Please enter valid username");
  document.loginForm.userName.focus();
  return;
 }

if(document.loginForm.password.value=="")
{
 alert("Please enter the password");
 document.loginForm.password.focus();
 return;
}
}

Please help

Thanks,
Seshadhri Srinivasan

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 11:26 AM
To: Struts Users Mailing List
Subject: RE: How to add Java Script to a JSP page with struts tags


Try 

onclick="javascript:validate();"


regards
Rohit


-Original Message-
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: How to add Java Script to a JSP page with struts tags

Hi,
I have created a login button using the  tag. I wish to run a
Java Script function validate() when this submit button is clicked. I tried
using 'onclick = "validate()" ' within the html:submit tag, but it does not
work.

Please tell me how I can run Java Script code along with struts tags.

Thanks,
Seshadhri Srinivasan

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



*--
This message and any attachment(s) is intended only for the use of the
addressee(s) and may contain information that is PRIVILEGED and
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
notified that any use, distribution, disclosure or copying of this
communication is strictly prohibited. If you have received this
communication in error, please erase all copies of the message and its
attachment(s) and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and
not of Kanbay.

Although we have taken steps to ensure that this e-mail and any
attachment(s) are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.


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

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


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

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


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



RE: [Q] Struts and date formatters

2003-08-14 Thread Mark Galbreath
And you specify the format in your application.properties file.

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 8:49 AM
To: Struts Users Mailing List
Subject: Re: [Q] Struts and date formatters


Somewhere between 1.0 and 1.1, the "format" attribute was added to 
the  tag.  You can specify a format string and it will 
apply the format to the underlying object.  The tag has internal 
logic which determines which kind of formatter to create, but 
basically if your object is a Date, it will use a SimpleDateFormatter:

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

There's no global change you can make here, besides subclassing 
java.util.Date and overriding the toString() method.

Joe


At 5:29 -0700 8/6/03, Riaan Oberholzer wrote:
>I am using the  tag and for date fields (java.util.Date), I 
>get the (rather ugly) full:
>
>Wed Aug 06 12:08:07 CEST 2003
>
>I have tried to do:
>
>DateFormdat df = DateFormat.getDateTimeInstance(); SimpleDateFormat sdf 
>= (SimpleDateFormat)df; sdf.applyPattern("-MM-dd hh:mm");
>
>But it gets ignored how/where can I change the
>default pattern that struts uses to format dates with?
>
>Thanks.
>
>__
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software 
>http://sitebuilder.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-- 
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
--Jaron Lanier

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




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



RE: Tiles status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-14 Thread Rohit Aeron
Well regarding ongoing development ,yes I am working on tiles.
But your point is valid a lot of improvement can be dome in tiles



-Original Message-
From: Richard Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: Tiles status and feature suggestion WAS accessing Attribute of a 
parent-tile-definition

> 2. Is tiles considered a deprecated technique?

I too would like to know the status of Tiles and whether there's any ongoing 
development with it.   I'm looking at redesigning a proprietary composite page handler 
to use Tiles but see a number of areas where tiles could be improved and where it is 
not suitable at present to meet all of my requirements:

o  Firstly, Tiles assumes that a page is composed of multiple content areas where you 
have one piece of content to an area.  This is true for a simplistic site but, as in 
the case we have, the area on a page can be determined by a condition so that a single 
area could contain say one of many possible files.  An example would be a page where 
the  display differs slightly per category of user and some areas within the template 
are populated by different content.  The ability to conditionally choose a template 
would also be beneficial.  It is possible to create a custom tag to wrap the 
 in each page but this results in the page being uneditable by the 
growing number of tiles compliant editors and therefore they would be unable to give 
any improvement in productivity when creating pages.

Has anyone else created pages this way using another composite page handler or product?

o  Secondly, would it make sense to have a 'static' identifier that could be used to 
perform the equivalent of a <%@ include ...> directive to embed content and thereby 
result in more optimised code?  The static attribute would be environment switchable 
to allow the static functionality to be disabled during development but enabled when 
deployed in a production environment.

Comments and suggestions, please.

Regards
Richard Tomlinson

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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



Re: Weblogic 6 SP 2

2003-08-14 Thread vellosa

I would guess because there were bugs in SP1


try reading the release notes this will tell you!

http://edocs.bea.com/wls/docs61/notes/new.html#1078404




>  from:message message <[EMAIL PROTECTED]>
>  date:Fri, 08 Aug 2003 14:27:38
>  to:  [EMAIL PROTECTED]
>  subject: Re: Weblogic 6 SP 2
> 
> 
> Why was SP2 on weblogic 6 introduced.  ?
> 
> _
> 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]
> 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon

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



Re: Iterate question

2003-08-14 Thread Mark Lowe
There's hope..

I assume that you struts config looks like this



I've been using ArrayList but only just started doing so , but seems to 
work in a development context



//action

ArrayList amList = new ArrayList();
amList.add(new ItemAdjustmentModel());
theForm.set("adjustmentModel", amList);

session.setAttribute("adjustmentModels", amList);

//jsp


I have to admit i'm a little confused why i have set the collection as 
a session attribute and a form property scoped to session, but thus far 
it seems you have to.

Hope this helps

Mark

On Wednesday, August 6, 2003, at 08:12 PM, Slattery, Tim - BLS wrote:

I have a form bean that has an array of objects that I want to iterate
through. This array is called "item_Adjustmentsl". There is another 
array of
the same length, that I also want to use, this one's called
"existingAdjustment". It's simply an array of Strings. So I'm trying 
to do
something like this:


property="item_Adjustments"
 indexId="ctr" type="gov.bls.idcf.ppi.common.ItemAdjustmentModel">

/>	

indexed="true" />


The problem is with the last line. I can't get it to simply iterate 
though
the existingAdjustment array. I want the second HTML line to be 
rendered:


And the last line should be rendered:



Is there any hope?

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


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


RE: Internationalizing 100's of pages of text

2003-08-14 Thread Gary Kephart

> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Internationalizing 100's of pages of text
> 
> 
> My $0.02, just a bit OT, and an observation...if you change your 
> organization a bit, you can make life easier and you (and 
> whomever else is 
> working on your content) by using Java's i18n features in a 
> bit different 
> manner.. specifically, get a String-based version of the 
> Locale you want.. 
> make that a directory, and just load the same template file 
> from there.
> 
> ie
>   content/en_us/index_content.jsp
>   content/en/index_content.jsp
> 
> since you'll always know which file (index_content) you 
> want.. i'm sure you 
> can hack a tag that will dynamically create the full file 
> name you want, and 
> have that passed to template:get (which i've never worked 
> with.. so, forgive 
> me if i'm way off base).

Hmm. A possibility.

> I tried hitting the url you gave.. it doesn't appear to be a 
> happy url, so i 
> can't see exactly what kind of content you're working with.   
> Is putting the 
> text into a database a possibility, keyed by content_id and 
> language/locale_id ?

Try this:
http://www.photeus.com:8080/ewot/index.html
I've had to monkey around with things on my system since my ISP (Cox cable) blocks 
port 80. I've set up a redirect to port 8090, which may be blocked to you. I would use 
8080, but Tomcat's on that and I've only got a Pentium Pro 200 on that machine and 
Apache's web server takes less hp than Tomcat.

As far as database, take a look at the content now and see what you think. The big 
stumbling block is that the content writers are remote, and so I'd have to set up some 
sort of remote database access and my content writers don't have much, if any, db 
experience.

Gary

Gary Kephart| New Century Mortgage
Web-Based Application Developer | http://www.ncen.com
[EMAIL PROTECTED]   | 340 Commerce
949-797-5660| Irvine, CA  92602-1318

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



Re: Button labels and DispatchActions mix?

2003-08-14 Thread Todor Sergueev Petkov
I am building a search engine... I have a bunch of particular fields
where user can 
type in only specific "queries" ( eg. one field only for name, a
separate one for address etc ).
All this are submited by one button and reset by another.
Than I have one separate field where user can type anything he wants
without constraints 
and this field too has a submit button and a reset button only for
itself.
Since all of the submit perform a query and the forms are all on the
same page and related I would like
to use the same Action class and the same ActionForm for the particular
fields and the generic one
but I need still to destinguish which button was pressed... I know I
could separate the two in two different Actions and Action forms
but since they are related I would have liked to keep them together



Paul McCulloch wrote:
> 
> I'm not sure I understand you. Why would you want multple buttons, with the
> same label doing different things? Surely this would just confuse the user?
> 
> -Original Message-
> From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> Sent: 07 August 2003 13:58
> To: Struts Users Mailing List
> Subject: Re: Button labels and DispatchActions mix?
> 
> Even DispatchLookupAction doesn't work if you want to use the same label
> eg. buttons.reset or buttons.search
> for two different buttons useing the same Action...
> 
> Paul McCulloch wrote:
> >
> > I believe that the solution is to use a DispatchLookupAction rather than a
> > dispatch action. See p226 in Struts in Action for a description.
> >
> > Paul
> >
> > -Original Message-
> > From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> > Sent: 07 August 2003 13:27
> > To: Struts Users Mailing List
> > Subject: RE: Button labels and DispatchActions mix?
> >
> > Its better you use javascript
> > There you can append your action also with submit value
> >
> > Eg:
> >
> > Document..action="search.do"+"";
> >
> > Regards
> > Rohit
> >
> > -Original Message-
> > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 07, 2003 5:49 PM
> > To: Struts Users Mailing List
> > Subject: Re: Button labels and DispatchActions mix?
> >
> > It works with the button label But I have two Search buttons on the
> > same page both labeled
> > search.button.reset but they perform two different actions. So I need a
> > way to distinguish which was pressed
> > inside my DispatchAction
> >
> > Rohit Aeron wrote:
> > >
> > > This will work ..
> > >
> > >  > > value="" >
> > > 
> > >
> > > -Original Message-
> > > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 07, 2003 5:29 PM
> > > To: Struts Users Mailing List
> > > Subject: Button labels and DispatchActions mix?
> > >
> > > Hello people,
> > >
> > > I have the following code :
> > >
> > >  
> > >  
> > >  
> > >
> > > What I am trying to do is have a Dispatch Action
> > > so that when this button is pressed the request is something like
> > > search.do?action=resetg
> > > But I don't want my button to have the resetg title on it. I want it to
> > > have the search.button.reset title from ApplicationResources bundle
> > > on it. It seems tha Struts html tag library mixes the two. Is there a
> > > way out of this?
> > >
> > > Thanks
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > *--
> > > This message and any attachment(s) is intended only for the use of the
> > addressee(s) and may contain information that is PRIVILEGED and
> > CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
> > notified that any use, distribution, disclosure or copying of this
> > communication is strictly prohibited. If you have received this
> > communication in error, please erase all copies of the message and its
> > attachment(s) and notify the sender or Kanbay postmaster immediately.
> > >
> > > Any views expressed in this message are those of the individual sender
> and
> > not of Kanbay.
> > >
> > > Although we have taken steps to ensure that this e-mail and any
> > attachment(s) are free from any virus, we advise that in keeping with good
> > computing practice the recipient should ensure they are actually virus
> free.
> > >
> > > -
> > > 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]
> >
> > **
> > Axios Email Confidentiality Footer
> > Privileged

Returning a result set

2003-08-14 Thread Mehta, Chirag (IT)
Hello,
 
I am developing an application where the user can run SQL queries from a
text area on a JSP page and the application returns the results.
 
As I have no idea what the user will input and the database they will be
connected has many gigs of data, with plenty of column, how should i
handle the result set from the database?
 
I cannot define set methods as I have no idea what the return will be
and might be very large?
 
Can anyone help?
 
Thanks
 
Chirag
 
 
 


--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

RE: [FRIDAY] Impossible requirements & customer expectation management [WAS: method to get new Id to next action when old Id is in request?]

2003-08-14 Thread Andrew Hill
So what does one do when one has requirements that are (for all practical
purposes) impossible?

How does one actually go about convincing a Customer/PHB/VIP that its
impossible without them thinking one is incompetent and making excuses?

-Original Message-
From: ansuman_behera [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 19:20
To: Struts Users Mailing List
Subject: RE: [FRIDAY] method to get new Id to next action when old Id is
in request?


no offence meant James but I've had past experience when the so called
architects and designer of my client have asked me not to use hidden
variables...period...

they would not listen to anything, they would not discuss about and hence my
question. Obviously you do understand that the answer given by you is
something I cannot tell to my customers but thanks for answering anyway.

ansuman

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:43 PM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




> -Original Message-
> From: ansuman_behera [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:51 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
>
>
> what if there is a restriction that the developers should not be
> using hidden variables? what do you do in this case?
>
> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 11:54 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
>
>
> Try putting up id as a hidden variable...
>
> Eg:
>
> 
>
>
> it would work
>
> regards
> Rohit
>
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:56 AM
> To: Struts Users Mailing List
> Subject: method to get new Id to next action when old Id is in request?
>
> I have two actions chained together. They both take the same formbean.
> The first is sectionInsert.do and the second, which sectionInsert
> forwards to on success, is sectionEdit.do
>
> sectionInsert.do receives the properties of a Section in the request
> parameters, including id=0 where it is 0 because it does not exist in
> the DB yet. So it inserts the new Section into the DB and returns the
> new id, which is needed by sectionEdit to put into the html for the edit
> page.
>
> I originally thought I could save the new id to the formbean and this
> would get passed on, but sectionEdit instantiates its own formbean and
> fills it with the request parameters - include id=0.
>
> Is there an intuitive way of passing on the new id?
>
> I already use sectionEdit.do as a first action by calling it with an id
> on a querystring, where the formbean picks it up. I would like to use a
> method that is easy for both these situations.
>
> I'd appreciate any inspiration.
> Adam
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> *--
> This message and any attachment(s) is intended only for the use
> of the addressee(s) and may contain information that is
> PRIVILEGED and CONFIDENTIAL. If you are not the intended
> addressee(s), you are hereby notified that any use, distribution,
> disclosure or copying of this communication is strictly
> prohibited. If you have received this communication in error,
> please erase all copies of the message and its attachment(s) and
> notify the sender or Kanbay postmaster immediately.
>
> Any views expressed in this message are those of the individual
> sender and not of Kanbay.
>
> Although we have taken steps to ensure that this e-mail and any
> attachment(s) are free from any virus, we advise that in keeping
> with good computing practice the recipient should ensure they are
> actually virus free.
>
>
> -
> 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

RE: method to get new Id to next action when old Id is in request?

2003-08-14 Thread Rohit Aeron
Try putting up id as a hidden variable...

Eg:




it would work 

regards
Rohit

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 2:56 AM
To: Struts Users Mailing List
Subject: method to get new Id to next action when old Id is in request?

I have two actions chained together. They both take the same formbean. 
The first is sectionInsert.do and the second, which sectionInsert 
forwards to on success, is sectionEdit.do

sectionInsert.do receives the properties of a Section in the request 
parameters, including id=0 where it is 0 because it does not exist in 
the DB yet. So it inserts the new Section into the DB and returns the 
new id, which is needed by sectionEdit to put into the html for the edit 
page.

I originally thought I could save the new id to the formbean and this 
would get passed on, but sectionEdit instantiates its own formbean and 
fills it with the request parameters - include id=0.

Is there an intuitive way of passing on the new id?

I already use sectionEdit.do as a first action by calling it with an id 
on a querystring, where the formbean picks it up. I would like to use a 
method that is easy for both these situations.

I'd appreciate any inspiration.
Adam


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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



Re: Button labels and DispatchActions mix?

2003-08-14 Thread Todor Sergueev Petkov
So there is no neat way around this?


Alex Shneyderman wrote:
> 
> Yeah but the question was that he wanted the mapping to occur.
> So say you have a button and you want to call it Reset Password. Your
> dipatch action would have a corresponding method called rstPasswd. Now
> how do you map it? If I submit my form the value of method parameter is
> going to be "Reset Password" not rstPasswd.
> 
> I think the issue here is not so much Struts but HTML itself since if
> you have submit button the value is what gets to be displayed as its
> caption. The solution for me was to use images instead, but then you
> have produce them and they are not as flexible as the submits, since you
> can not change the caption on the fly.
> 
> Alex.
> 
> > -Original Message-
> > From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 07, 2003 8:10 AM
> > To: Struts Users Mailing List
> > Subject: RE: Button labels and DispatchActions mix?
> >
> > This will work ..
> >
> >  > value="" >
> > 
> >
> >
> >
> > -Original Message-
> > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 07, 2003 5:29 PM
> > To: Struts Users Mailing List
> > Subject: Button labels and DispatchActions mix?
> >
> > Hello people,
> >
> > I have the following code :
> >
> >  
> >  
> >  
> >
> > What I am trying to do is have a Dispatch Action
> > so that when this button is pressed the request is something like
> > search.do?action=resetg
> > But I don't want my button to have the resetg title on it. I want it
> to
> > have the search.button.reset title from ApplicationResources bundle
> > on it. It seems tha Struts html tag library mixes the two. Is there a
> > way out of this?
> >
> >
> > Thanks
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > *--
> > This message and any attachment(s) is intended only for the use of the
> > addressee(s) and may contain information that is PRIVILEGED and
> > CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
> > notified that any use, distribution, disclosure or copying of this
> > communication is strictly prohibited. If you have received this
> > communication in error, please erase all copies of the message and its
> > attachment(s) and notify the sender or Kanbay postmaster immediately.
> >
> > Any views expressed in this message are those of the individual sender
> and
> > not of Kanbay.
> >
> > Although we have taken steps to ensure that this e-mail and any
> > attachment(s) are free from any virus, we advise that in keeping with
> good
> > computing practice the recipient should ensure they are actually virus
> > free.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: No Bean Specified - error

2003-08-14 Thread Slattery, Tim - BLS
> Has anyone been able to solve the following error when you 
> submit your jsp.
> 
> Root cause of ServletException
> java.lang.IllegalArgumentException: No bean specified
>         at 
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescript
> or(PropertyUtils.

I just worked through one of these. In my case, it was in a  tag.  The tag looked something like this:




Etc, etc

In order to create the form then, Struts calls a getter for "propval" in the
bean "nameval". This returns an array. Struts then assigns each element of
the array, in turn, to a bean named "idval" of type javatype, and calls the
getter for "idpropval" on that.

When the form is submitted, Struts calls an indexed getter for "propval" in
"nameval". That is expected to return a bean of type "javatype". In my case,
I had declared an array of the proper type and the correct size, but I had
not assigned values to it, so all elements were null. Struts 1.1's reaction
to this null element was to throw the "No bean specified" error.

I fixed it by assigning an empty bean of the proper type to each array
element. Struts now retrieved those empty beans and filled them with data
from the form.

I REALLY wish that error message was more specific. I was working on a
*very* complex jsp page. The message did not tell me where in the page the
error had occurred, or give me *any* hint as to exact what might be the
problem. It took *days* to figure out what was going on!


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



Re: How to keep session info??

2003-08-14 Thread development
Nathan Coast wrote:

> Make sure that your  isn't doing a redirect (i.e.
> redirect="true").  If I understand things correctly, a redirect will 
cause a
> new session to be created...
>
> Jerry

Are you sure?  I haven't looked at this area of the source for a while 
but I can't think any sensible reason why it would be desirable for a 
redirect to cause a new session.

If the problem is that a variable is placed into the session and then 
is missing during the same request (and the forward is within the same 
web-app), it sounds to me like there might be some erroneous code 
somewhere.  I'd check for silly mistakes

check you aren't putting null in the session,
check you aren't setting the var in the request rather than the session,
check the var in the session isn't null immediately after placing in 
the session,
check the request isn't going via some code that calls 
session.invalidate(), or is removing the var from the session.

hope this helps

Jerry Jalenak wrote:
Thanx for the hints but neither helped so far :(
So that you guys have a better idea here is a snippet of my struts-config:
...
 
   
   
 path="/action/login"
 redirect="true"/>
 
 
 ...

 
   ...
   
 
   
   
 
 
   
   
 
 
 
 
   
  ...

...
the forward from /action/login with parameter view to /action/login 
keeps session ID
but when I go from /action/login with parameter login to /action/members 
after a successful login that it looses session a creates a new one :(

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


RE: test

2003-08-14 Thread Andrew Hill
Oh man. I hate tests. Always flunk them big time.

Whoa! Wheres the questions dude? Or is this like one of those , you know,
trick tests, where like the answer is guessing what the question is. Heavy.

Ahhh. I know!

What do you get if you multiply six by nine?



-Original Message-
From: Alan Williamson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 13 August 2003 23:44
To: [EMAIL PROTECTED]
Subject: test


this is a test...







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


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



RE: Validator

2003-08-14 Thread Yansheng Lin
I guess it's more efficient if bean is a String type.  (Damn, I just cannot see
when you would have a FormBean of type String only).

Anyway, I don't think it's needed...  This is going to bug me for the whole
evening:).

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 5:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Validator


It's in the code of FieldsCheck.java. I was trying to create one of my
own validator and I saw these lines  there.

Erez

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:10 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator

???

I don't see it in my validation-rules.xml.  Which version are you using?

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 3:33 PM
To: 'Struts Users Mailing List'
Subject: Validator



I am trying to figure out the code in struts.validator.FieldsCheck.java
in order to write one of my own.
Can someone explain what the purpose of the following lines of code in
all of the validateXXX() in Struts:

validateIntRange (...) {

if (isString(bean)) {
value = (String) bean;
}
...
}

Is this really necessary?

Erez



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


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




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


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



RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
Hi James, finally it worked , but I haven't tested completely , but it seems it will 
be okey :))

inside my factory class firstly I used 
"MessageResourcesFactory.createFactory().createResources(config)" code fragment
to create file based MessageResource object of Struts ,
 but it didn't worked correctly, 
actualy it caused infinite loop in my factory class, I think 
MessageResourcesFactory.createFactory() 
returns same same instanse of my factory class, again and again calling same method on 
same instance,,
I dont know exatly why , insted of 
"MessageResourcesFactory.createFactory().createResources(config)"
I decided to use MessageResourcesConfig to get factory class, this code segment copied 
from 
initMesssageResources method of ActionServlet, it seem it works !!

Craig if you read this lines , is this way okey , are there any better way to create 
struts messageResources object ??? 
another problem is how can I access message properties from my factory class, only 
config parameter 
is accessible , I want to use a message property to decide which kind of 
MessageResource will be created !!!
to do this I am currently using config parameter, 


*MY FACTORY CLASS ***
*MY FACTORY CLASS ***
*MY FACTORY CLASS ***


public class TebMessageResourcesFactory extends MessageResourcesFactory 
{

   public MessageResources createResources(String config) {

if (config == null || "Database".equalsIgnoreCase(config) || 
"VeriTabani".equalsIgnoreCase(config) )

// return own MessageResources object that reads messages from DATABASE

   return new TebMessageResources(this, config, this.returnNull);

else {

   // return struts MessageResources object that reads messages from FILE 
SYSTEM

MessageResourcesConfig messageResConfig = new MessageResourcesConfig();

String factory = messageResConfig.getFactory();

MessageResourcesFactory.setFactoryClass(factory);

MessageResourcesFactory factoryObject =
MessageResourcesFactory.createFactory();

return factoryObject.createResources(config);


}  
   }

*END OF MY FACTORY CLASS ***
*END OF MY FACTORY CLASS ***
*END OF MY FACTORY CLASS ***

Looks good to me.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




> -Original Message-
> From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) 
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 10:18 AM
> To: James Mitchell
> Cc: Struts Users Mailing List
> Subject: RE: is there any way to load Message Resources from 
> back-end database instead of properties files?
> 
> 
> hi James , I am still working on it , but I have a simple question ,
> beside database based MessageResources, I still want to use 
> present file based  MessageResources feature of struts(in the 
> case of any problem with my message code), 
> I am using config parameter to specify which kind of 
> Message will be created , 
> if the config parameter is not database , to create
> struts message resources I am using 
> 
> "MessageResourcesFactory.createFactory().createResources(config) " ,
> 
> is that correct or enough to do this ? 
> 
> 
> / here is code fragment /
> 
> public class TebMessageResourcesFactory extends MessageResourcesFactory 
> 
> 
>public MessageResources createResources(String config) {
> 
> if (config == null || "Database".equalsIgnoreCase(config)  )
> 
> // return own MessageResources class that reads 
> messages from DATABASE
> 
>return new TebMessageResources(this, config, 
> this.returnNull);
> 
> else 
> 
>// return struts MessageResources class that reads 
> messages from FILE SYSTEM
>
>   return  
> MessageResourcesFactory.createFactory().createResources(config);
>}
> 
> 
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 2:12 PM
> To: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
> Cc: Struts Users Mailing List
> Subject: RE: is there any way to load Message Resources from back-end
> database instead of properties files?
> 
> 
> > we have own tables that holds locations, resources and messages,
> > I have a persistent class that gets all data from database.
> > I need is a class that extends the class that reads messages
> > from properties files, override the method that reads from disk file,
> 
> You need 2 classes minimum.
> 
> public class MyMessageResourcesFactory extends MessageResourcesFactory {
>

RE: How to keep session info??

2003-08-14 Thread Steve Raeburn
Redirect causes a new request, not a new session.

A few other things to try:
 - Check that your server is actually sending a session cookie or rewriting
the URL
   (change your browser settings to see when the server sends you a cookie)
 - If your server supports it, try using an HttpSessionListener and
   HttpSessionAttributeListener to help debug when sessions are created and
   attributes added/removed
 - If you still can't see the problem, post the relevant code from your
action

Steve


> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 7:53 PM
> To: Struts Users Mailing List
> Subject: Re: How to keep session info??
>
>
>  > Make sure that your  isn't doing a redirect (i.e.
>  > redirect="true").  If I understand things correctly, a redirect will
> cause a
>  > new session to be created...
>  >
>  > Jerry
>
> Are you sure?  I haven't looked at this area of the source for a while
> but I can't think any sensible reason why it would be desirable for a
> redirect to cause a new session.
>
> If the problem is that a variable is placed into the session and then is
> missing during the same request (and the forward is within the same
> web-app), it sounds to me like there might be some erroneous code
> somewhere.  I'd check for silly mistakes
>
> check you aren't putting null in the session,
> check you aren't setting the var in the request rather than the session,
> check the var in the session isn't null immediately after placing in the
> session,
> check the request isn't going via some code that calls
> session.invalidate(), or is removing the var from the session.
>
> hope this helps
>
> Jerry Jalenak wrote:
>
> >
> > -Original Message-
> > From: development [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 14, 2003 8:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to keep session info??
> >
> >
> > Hi all,
> >
> > I've got a LoginAction which inside its execute method validates and
> > saves the login info into HttpSession instance. It creates an
> > ActionForward and returns it.
> > All works good and it calls the new Action which I call MembersAction
> > which tries to retrieve the login info.
> > Somehow though the session ID is different and so I lost all my login
> > info :(
> >
> > Can someone tell me why session would be diferent please?
> >
> > Cheers
> > Vic
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual
> or entity to which it is addressed. If you are not the intended
> recipient or the person responsible for delivering the
> transmission to the intended recipient, be advised that you have
> received this transmission in error and that any use,
> dissemination, forwarding, printing, or copying of this
> information is strictly prohibited. If you have received this
> transmission in error, please immediately notify LabOne at the
> following email address: [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]



Layout Struts with XSLT

2003-08-14 Thread Dirk Behrendt
Hello!
 
There are two possibilities.
 
(1) stxx http://stxx.sourceforge.net/
(2) StrutsCX   http://it.cappuccinonet.com/strutscx/index.php
 
 
Can anybody give an advice, which one is "the better" one?
 
Dirk


Re: RE: DigestingPlugIn [potential bug]

2003-08-14 Thread 苗启广


ÔÚ 2003-08-09 03:21:00 ÄúдµÀ£º
>Did my response ever make it?  I was using Yahoo web-mail and couldn'tof you ? Could 
>you tell me ? Thanks~~
>remember if I flipped the "from" selector to use the address I'm
>subscribed with.
>
>If not, then here's basically what I said:
>
>In my existing project, I added the complete source (per the cvs commit
>message).  I figured that it should work fine with the existing 1.1
>final jars that I already use.but I could be wrong.
>
>
>--
>James Mitchell
>Software Engineer / Struts Evangelist
>http://www.struts-atlanta.org
>678.910.8017
>AIM:jmitchtx
>
>
>
>
>> -Original Message-
>> From: Joe Germuska [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 08, 2003 10:19 AM
>> To: Struts Users Mailing List
>> Subject: RE: DigestingPlugIn [potential bug]
>>
>>
>> At 0:20 -0400 8/8/03, James Mitchell wrote:
>> >Ok, I haven't dug in my heals to figure this out myself.  I
>> downloaded
>> >jgs-struts-0.2-dev.jar, then configured my plugin:
>> >
>> >   > className="com.jgsullivan.struts.plugins.DigestingPlugIn">
>> > > value="/WEB-INF/config.xml"/>
>> > 
>> > > value="digester-menu.xml"/>
>> > 
>> > 
>> >   
>> >
>> >
>> >works fine.
>> >
>> >I'm using the 1.1 final jar, so I simply added your new file
>> to my own
>> >project.
>> >
>> >Now when I change the className from
>> >
>> >"com.jgsullivan.struts.plugins.DigestingPlugIn" to
>> >"org.apache.struts.plugins.DigestingPlugIn"
>> >
>> >it fails and causes my app to be unavailable.
>> >
>> >
>> >I'm not looking for a fix just yet.  I just thought you should know.
>>
>> Check me if I'm missing something -- but if you're using 1.1 final,
>> where will it find "org.apache.struts.plugins.DigestingPlugIn"?
>>
>> Joe
>>
>> --
>> --
>> Joe Germuska
>> [EMAIL PROTECTED]
>> http://blog.germuska.com
>> "If nature worked that way, the universe would crash all the time."
>>  --Jaron Lanier
>>
>> -
>> 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]
>
>
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: Cancel Button Not Working in 1.1

2003-08-14 Thread Yansheng Lin
Try:
  
  
  


-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED] 
Sent: August 7, 2003 1:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Cancel Button Not Working in 1.1


I don't see anything wrong w/ your tag.  However, you're using the
 tag in the body of the  tag, you can
get rid of the "value" attribute.

Brad


-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 2:51 PM
To: Struts Users Mailing List
Subject: Re: Cancel Button Not Working in 1.1

Here is the tag I am using:


  
  

"Bradley M. Handy" wrote:

> Please post the tag you're using to render the cancel button on the page.
>
> Brad
>
> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 1:07 PM
> To: Struts Users Mailing List
> Subject: Cancel Button Not Working in 1.1
>
> Hi,
>
> I am trying to use the cancel button in Struts 1.1.  It is not
> working
>
> The isCancelled(request) is always returnning false
>
> Can anyone help me?
>
> Natalie
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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


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



RE: Bean tag help

2003-08-14 Thread Vance Heredia

Huh  Sorry but you've lost me completely ...

Maybe I should have explained that I've never programmed struts before and
that I've been assigned to fix up the work of a person who has left the
project, and while I've understood, overcome and finished most of the
concepts and problems this particular one completely stumps me.

I should also point out that all exmples of http://www.lonelyplanet.com/
http://mobile.lonelyplanet.com/
http://wap.lonelyplanet.com/


> -Original Message-
> From: Steve Armstrong [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 8 August 2003 1:01 PM
> To: Struts Users Mailing List
> Subject: RE: Bean tag help
> 
> 
> Howdy,
> 
> There are a number of things that are incorrect in your example:
> 
> 1. Concerning your definition:
> 
>  property="processName" value = "filesForm" type="java.lang.Object" />
> 
> You can set the value of your scripting variable 
> "processName" from a bean, a property of a bean, or a 
> "hard-coded" value.  I believe you are trying to set your 
> scripting variable from the "processName" property of a bean 
> named "filesForm" (i.e., filesForm.getProcessName()).  
> However, you also specify a value attribute which probably 
> overrides this (I'd have to look at the source code for the 
> tag to see how it is actually resolving this ambiguity) which 
> would set your scripting variable "processName" to the String 
> "filesForm".  This is probably not what you want.
> 
> 2.  I believe that as soon as you use the value attribute, 
> the scripting variable will automatically be set to 
> java.lang.String and your value for the type attribute is 
> promptly ignored.  Once again, I'd have to look at the source 
> for the tag to be 100% sure.  Anyway, you have to set the 
> type attribute correctly if you're getting the value from a 
> bean or the property of a bean, otherwise the type is 
> java.lang.Object by default.  So, if your getter for 
> processName returns a String, specify that the type of the 
> define is java.lang.String.
> 
> 3. There is no need to create a scripting variable as above 
> to be able to do .  This 
> is saying that you want to create an HTML form input tag of 
> type hidden with the value of the named property associated 
> with the form bean that is associated with your action. I 
> assume that "filesForm" is the bean associated with your 
> action, and it has a property named "processName".  If this 
> is a request scope form bean, and the value of "processName" 
> isn't editable (i.e., it isn't used in a text field on your 
> form), and you want its original value to be set in your form 
> bean when the form is submitted, then the html:hidden tag is 
> all you need. Your bean:define is trying to set a scripting 
> variable with the same name (and value) as your form bean 
> property and has nothing to do with the task you're trying to 
> accomplish (I believe).
> 
> Cheers,
> -Steve
> 
> -Original Message-
> From: Vance Heredia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 8:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean tag help
> 
> 
> 
> Hm
> 
> Why do I need a bean name and type in struts-conifg.
> 
> The JSP I'm running is a basic page all it does is user the 
> bean tag eg:
> 
> 
> 
> <%@ page language="java" import="java.net.URLEncoder" 
> contentType="text/html;charset=utf-8" %> <%@ taglib 
> uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib 
> uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib 
> uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib 
> uri="/WEB-INF/controls.tld" prefix="controls" %>
> 
> 
> 
> body bgcolor="white" background="/images/PaperTexture.gif">
> 
> 
> 
> 
> 
> 
>property="processName" value = "filesForm" type="java.lang.Object" />
>value = "filesForm" type="java.lang.Object" />
>   
>   
> 
> 
> 
> It always dies on the first bean saying it had a 
> ClassCastEsception when trying to locate the Start tag
> 
> I'm not clear asd to why you need to use a bean name and type??
> 
> Examples would be good
> 
> 
> Vance Heredia
> 
> 
> > -Original Message-
> > From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 7 August 2003 6:36 PM
> > To: Struts Users Mailing List
> > Subject: RE: Bean tag help
> >
> >
> >
> > Just cross check that you are importing
> > 1. taglib
> > 2. bean
> > 3. correctly specified bean name & type in struts-config.
> >
> > Regards
> > Rohit
> >
> >
> >
> > > Hey People
> > >
> > > Ay ideas on how to fix my bean proble?
> > >
> > > Every time I try to uyse the  > >
> > > java.lang.ClassCastException
> > >   at
> > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766)
> > >   at
> > > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
> > >   at org.apache.jsp.files_jsp._jspService(files_jsp.java:149)
> > >
> > >
> > > The Java cod

RE: Weblogic 6 SP 2

2003-08-14 Thread Mark Galbreath
Because SP1 introduced a transaction bug.

Then SP3 was released because SP2 introduced a memory leak.

Then 7.0 was released because it became apparent that 6.0 wasn't going to
make it.

-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 9:28 AM
To: [EMAIL PROTECTED]
Subject: Weblogic 6 SP 2



Why was SP2 on weblogic 6 introduced.  ?

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



Newbie question: Testing if collection is != null before iterating

2003-08-14 Thread Todor Sergueev Petkov
How can I test if a collection is not null before iterating through it?
Does the  tag do this ckeck and skip the iteration if the
collection is null?

Thanks a lot,
Todor

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



Re: intuitively to get new Id to next action when old Id is in request?

2003-08-14 Thread Adam Hardy
I am looking at sticking the new id on the querystring of the 
actionforward path, but struts throws an exception saying the 
configuration is frozen - can I configure that differently or would I 
have to create my own clone instance of the action forward?



Adam Hardy wrote:
Thanks for the input everyone but I can't say I've found a solution that 
stands out as "the way to do it" yet.

I need a technique that I can consistently use across the whole app. Up 
to this point I have been using the formbean to get my hands on the data 
in the action. I've got the following various places where I need the id 
of the object being edited:

- to fetch the rest of the object's properties for display
- to fetch data for dropdown boxes
- to fetch data for child objects
Up till now in all of these I was getting the id from the formbean. But 
now that won't work. Because I have hooked two actions together the id 
in the formbean in the 2nd action in question is out-of-date.

For consistency's sake I didn't want to start doing different data 
retrieval in different places - here from the request, here from the 
formbean, here from the session etc.

Or am I being too purist?

ansuman_behera wrote:

what if there is a restriction that the developers should not be using 
hidden variables? what do you do in this case?

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:54 AM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?
Try putting up id as a hidden variable...

Eg:



it would work
regards
Rohit
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 
Friday, August 08, 2003 2:56 AM
To: Struts Users Mailing List
Subject: method to get new Id to next action when old Id is in request?

I have two actions chained together. They both take the same formbean. 
The first is sectionInsert.do and the second, which sectionInsert 
forwards to on success, is sectionEdit.do

sectionInsert.do receives the properties of a Section in the request 
parameters, including id=0 where it is 0 because it does not exist in 
the DB yet. So it inserts the new Section into the DB and returns the 
new id, which is needed by sectionEdit to put into the html for the 
edit page.

I originally thought I could save the new id to the formbean and this 
would get passed on, but sectionEdit instantiates its own formbean and 
fills it with the request parameters - include id=0.

Is there an intuitive way of passing on the new id?

I already use sectionEdit.do as a first action by calling it with an 
id on a querystring, where the formbean picks it up. I would like to 
use a method that is easy for both these situations.

I'd appreciate any inspiration.
Adam
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*--
This message and any attachment(s) is intended only for the use of the 
addressee(s) and may contain information that is PRIVILEGED and 
CONFIDENTIAL. If you are not the intended addressee(s), you are hereby 
notified that any use, distribution, disclosure or copying of this 
communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its 
attachment(s) and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender 
and not of Kanbay.

Although we have taken steps to ensure that this e-mail and any 
attachment(s) are free from any virus, we advise that in keeping with 
good computing practice the recipient should ensure they are actually 
virus free.

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



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



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


RE: [OT] RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

It is nice to follow the heard sometimes but other times you just have to
step back and say, "Can't we do any better?".  I am not THAT closed minded
if I am convinced that the only real way to write tags to do what JSTL does
is to do it the current way then I will gladly use them I just think if
there is a better way then we should be about to talk about it.

The Big 3 car execs didn't want to talk about the future of the industry and
what was more user friendly and now look how they are paying.

I'm not mad.  Just not convinced.

BTW, how could you eat those poor defenseless bunnies

:)

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 12:07 PM
To: 'Struts Users Mailing List'
Subject: [OT] RE: JSTL ot struts taglibs?

Everyone take a deep breath and think of bunny rabbits.
Cute little bunnies

()()
('.')
(")(")

Hmm.. I'm getting hungry now.

-Tim


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:50 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?




Another debate.  Your debate was to make me feel like I was doing something
wrong by posting my opinion.  There was no debate.

The tags do speak for themselves and if you think that $var which Java
allows but is NEVER used is acceptable syntax for a tag then that speaks
volumes as well.

Never said, "JSF will replace JSTL".  I just said let's see what that
technology and others has in store in the near future.  Java didn't have
every API and package when it first came out so, like I said, we will see
what JSF has to offer in the near future.  I'm just hoping it is some
replacement for those step backwards tags.


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 11:51 AM
To: Struts Users Mailing List
Subject: RE: JSTL ot struts taglibs?

--- "Bailey, Shane C." <[EMAIL PROTECTED]> wrote:
> 
> Don't get me wrong, I think scriptlets are ugly and shouldn't be used
> but
> like I said JSTL is not da bomb and if already know Struts tags I
> wouldn't
> go rewriting my code to JSTL until I have seen what JSF and any new
> technology near by has in store.

JSF is not a replacement for JSTL.  They complement each other.

> 
> I'm just saying all the reasons listed do not necessarily mean a whole
> lot
> since scriptlets can fit nearly everything said about JSTL but yet
> everybody
> agrees not to use scriptlets.  I am just giving another opinion.

The question had nothing to do with scriptlets.  It was about using JSTL
or Struts tags.  I'm not going to participate in another JSTL debate.  The
tags speak for themselves.

David


> 
> 
> 
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 11:21 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL ot struts taglibs?
> 
> 
> Scriptlets are more powerful (you can do ANYTHING Java can do), faster,
> is a
> standard (it is the Java language you know) and if you are going to
> spend
> time learning a new language (${var} == "pooPoo") then you would be
> better
> off learning Java (assuming you don't already know it) cause then you
> could
> do scriptlets and middle tier coding and more whereas if you use your
> time
> learning JSTL all you will know is JSTL.  
> 
> Believe me, JSTL will be easy to replace if someone comes out with an
> alternative.  I am a programmer but I understand the importance of
> having
> the tags be similar to HTML tags and not like tags containing
> scriptlets.
> 
> If it makes you happy $var is a legal Java variable name so you could
> just
> write scriptlets with $var and no one would realize you weren't writing
> JSTL
> 
> 
> :)
> 
> Why do you think Ant is so popular??? It got rid of all the $var UNIX
> script
> like crap and made it more like tags should be!!!
> 
> Bottom line is, yes, Struts tags aren't the best but JSTL is not much
> better
> and will probably be replaced with something not so ugly in the future.
> 
> 
> Just my .02 sense.
> 
> I like it how some people don't get disturbed by questions about
> connecting
> to a database with JDBC to the Struts user list but get mad if you post
> a
> differing opinion about the crappy way some tags were written that
> interfaces with Struts code.  What an ACE!
> 
> 
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 10:28 AM
> To: Struts Users Mailing List
> Subject: Re: JSTL ot struts taglibs?
> 
> --- David Thielen <[EMAIL PROTECTED]> wrote:
> > Hi;
> > 
> > For the logic and I18N taglibs - what do you recommend - using the
> > struts taglibs or the JSTL taglibs?
> 
> Definitely JSTL.  They're more powerful, easier to use, potentially
> faster, and a Java standard.
> 
> David
> 
> > 
> > thanks - dave
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design 

RE: method to get new Id to next action when old Id is in request?

2003-08-14 Thread James Mitchell
That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




> -Original Message-
> From: ansuman_behera [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:51 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
> 
> 
> what if there is a restriction that the developers should not be 
> using hidden variables? what do you do in this case?
> 
> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 11:54 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
> 
> 
> Try putting up id as a hidden variable...
> 
> Eg:
> 
> 
> 
> 
> it would work 
> 
> regards
> Rohit
> 
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:56 AM
> To: Struts Users Mailing List
> Subject: method to get new Id to next action when old Id is in request?
> 
> I have two actions chained together. They both take the same formbean. 
> The first is sectionInsert.do and the second, which sectionInsert 
> forwards to on success, is sectionEdit.do
> 
> sectionInsert.do receives the properties of a Section in the request 
> parameters, including id=0 where it is 0 because it does not exist in 
> the DB yet. So it inserts the new Section into the DB and returns the 
> new id, which is needed by sectionEdit to put into the html for the edit 
> page.
> 
> I originally thought I could save the new id to the formbean and this 
> would get passed on, but sectionEdit instantiates its own formbean and 
> fills it with the request parameters - include id=0.
> 
> Is there an intuitive way of passing on the new id?
> 
> I already use sectionEdit.do as a first action by calling it with an id 
> on a querystring, where the formbean picks it up. I would like to use a 
> method that is easy for both these situations.
> 
> I'd appreciate any inspiration.
> Adam
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> *--
> This message and any attachment(s) is intended only for the use 
> of the addressee(s) and may contain information that is 
> PRIVILEGED and CONFIDENTIAL. If you are not the intended 
> addressee(s), you are hereby notified that any use, distribution, 
> disclosure or copying of this communication is strictly 
> prohibited. If you have received this communication in error, 
> please erase all copies of the message and its attachment(s) and 
> notify the sender or Kanbay postmaster immediately.
> 
> Any views expressed in this message are those of the individual 
> sender and not of Kanbay.
> 
> Although we have taken steps to ensure that this e-mail and any 
> attachment(s) are free from any virus, we advise that in keeping 
> with good computing practice the recipient should ensure they are 
> actually virus free.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Mike Jasnowski
You should look also at the declarative exception handling Struts has. 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer


--- Erik Price <[EMAIL PROTECTED]> wrote:
> 
> 
> Jerry Jalenak wrote:
> 
> > Just curious - how do most of you return errors from your business
> model?
> > Do you simply return an integer value (-1, 0. 99?) and then interpret
> it in
> > the action?  

Yuck.

> >Or do you return a error string that maps to something in
> > ApplicationResources?  Any other techniques?  I'm trying to find a
> 'best
> > practice' on how to do this  
> 
> Java has a really elegant mechanism for returning errors called 
> Exceptions

Errors from the business layer should be reported as exceptions.  The
exception could carry a list of error messages or resource keys so that
the next layer can display a message to the user.  Or the next layer could
interpret the exception into some error message, it's your choice.

David

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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



Re: How to configure commons-logging on JDK1.4

2003-08-14 Thread Kris Schneider
Is the commons-logging.properties file located in your app's WEB-INF/classes dir?

Quoting Koni Roth <[EMAIL PROTECTED]>:

> No answer until now! It looks like nobody is using commons-logging!
> Very frustrating to be the only one using it...
> 
> Is there really no useful example or documentation?
> 
> Cheers and enjoy the Friday Beer.
> Koni
> 
> 
>  Original Message 
> Subject: How to configure commons-logging on JDK1.4
> Date: Fri, 8 Aug 2003 10:11:58 +0200
> From: Koni <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> 
> Hello
> I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
> file is in the CLASSPATH and has the following 2 entries:
> 
> 
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> org.apache.commons.logging.simplelog.log.LogonAction=info
> 
> 
> When I run my application the Log should use the 'SimpleLog', as defined
> in 'commons-logging.properties'. BUT it uses the default logger for my 
> environment
> org.apache.commons.logging.impl.Jdk14Logger
> 
> How can I configure logging to use 'SimpleLog'?? Any examples??
> 
> Thanks
> Koni

-- 
Kris Schneider 
D.O.Tech   

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



content type header : [re-post]

2003-08-14 Thread Amit Rana
Hi,

We display a lot of Japanese content on our pages, we have lots
of jsps etc which were initially build for English content only. 

In order to append the right header I tried following two
approaches but failed
1. Passed "content" parameter to AcionServlet 
  
  content
  text/html; charset=Shift_JIS

2. Above is deprecated so I also tried to add an attribute
contentType="text/html; charset=Shift_JIS" to controller tag in
struts-config

Neither of the above two approaches have any affect although including
<%@ page contentType="text/html; charset=Shift_JIS"%> in the JSPs work.

Is there something wrong in the changes I do to xml? Or there is no
alternative I will have to edit all the JSPs?

Please feel free to direct me to any documentation/link.

Regards,
Amit.





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



RE: J2EE certified

2003-08-14 Thread Mohd Amin Mohd Din
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 something about getting J2EE 
>>
>>certified. I
>>
>>>could only find getting an application server certified not the
>>>application. Anyone knows how to get a web application J2EE 
>>
>>certified
>>or
>>
>>>is there a certification for Java web apps?
>>>
>>>Amin
>>>
>>>
>>
>>-
>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>-
>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>-
>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>
>>-
>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>---

Re: struts and JSTL

2003-08-14 Thread Yann Cébron
JSTL depends on Servlet 2.3+, so unless Struts itself makes Servlet 2.3+ a
requirement we won't see the "old" taglibs go away IMHO

Yann

(I sure brought up a storm with my last question on this .)

Is there a set of struts taglibs that have removed all of the tags that
should be JSTL instead? It's easy to just delete struts-logic.tld and
struts-nested.tld. But beand & html both appear to have a couple of tags
that should be replaced by JSTL but many others that are unique to struts.

Or if not, a list of what not to use in struts and the suggested replacement
from JSTL.

thanks - dave




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



Re: Bean tag help

2003-08-14 Thread Adam Hardy
Hi Vance,
that's not really enough info to pinpoint your error. You need to show 
us the JSP snippet at least I think.

Adam

Vance Heredia wrote:
Hey People

Ay ideas on how to fix my bean proble?

Every time I try to uyse the 

java.lang.ClassCastException
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at org.apache.jsp.files_jsp._jspService(files_jsp.java:149)
The Java code looks like 

  _jspx_th_html_form_0.setParent(_jspx_th_html_html_0);
  _jspx_th_html_form_0.setMethod("POST");
  _jspx_th_html_form_0.setAction("/files");
  149->  int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
  if (_jspx_eval_html_form_0 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
  out.write("\r\n  ");
  /*   bean:define  */
  java.lang.Object processName = null;
  org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_0
= (org.apache.struts.taglib.bean.DefineTag)
_jspx_tagPool_bean_define_property_name_id.get(org.apache.struts.taglib.bean
.DefineTag.class);
  

I havent worked a lot on struts and beans so I'm not too sure how to fix it

Cheers

Vance


Vance Heredia

__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.



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


Re: Sample code to upload file with struts

2003-08-14 Thread Kamalakar Thota
Do you need jsp code or action servlet code?
 
Kamal.

Pierre Houdagba <[EMAIL PROTECTED]> wrote:
I need a sample code to upload a file selected by the user
c:\myfolder\filetoupload.csv
Please help
Thanks


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Bean tag help

2003-08-14 Thread Steve Armstrong
Howdy,

There are a number of things that are incorrect in your example:

1. Concerning your definition:



You can set the value of your scripting variable "processName" from a bean,
a property of a bean, or a "hard-coded" value.  I believe you are trying to
set your scripting variable from the "processName" property of a bean named
"filesForm" (i.e., filesForm.getProcessName()).  However, you also specify a
value attribute which probably overrides this (I'd have to look at the
source code for the tag to see how it is actually resolving this ambiguity)
which would set your scripting variable "processName" to the String
"filesForm".  This is probably not what you want.

2.  I believe that as soon as you use the value attribute, the scripting
variable will automatically be set to java.lang.String and your value for
the type attribute is promptly ignored.  Once again, I'd have to look at the
source for the tag to be 100% sure.  Anyway, you have to set the type
attribute correctly if you're getting the value from a bean or the property
of a bean, otherwise the type is java.lang.Object by default.  So, if your
getter for processName returns a String, specify that the type of the define
is java.lang.String.

3. There is no need to create a scripting variable as above to be able to do
.  This is saying that you want to
create an HTML form input tag of type hidden with the value of the named
property associated with the form bean that is associated with your action.
I assume that "filesForm" is the bean associated with your action, and it
has a property named "processName".  If this is a request scope form bean,
and the value of "processName" isn't editable (i.e., it isn't used in a text
field on your form), and you want its original value to be set in your form
bean when the form is submitted, then the html:hidden tag is all you need.
Your bean:define is trying to set a scripting variable with the same name
(and value) as your form bean property and has nothing to do with the task
you're trying to accomplish (I believe).

Cheers,
-Steve

-Original Message-
From: Vance Heredia [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 8:33 PM
To: 'Struts Users Mailing List'
Subject: RE: Bean tag help



Hm

Why do I need a bean name and type in struts-conifg.

The JSP I'm running is a basic page all it does is user the bean tag eg:



<%@ page language="java" import="java.net.URLEncoder"
contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/controls.tld" prefix="controls" %>



body bgcolor="white" background="/images/PaperTexture.gif">






  
  
  
  



It always dies on the first bean saying it had a ClassCastEsception when
trying to locate the Start tag

I'm not clear asd to why you need to use a bean name and type??

Examples would be good


Vance Heredia


> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 7 August 2003 6:36 PM
> To: Struts Users Mailing List
> Subject: RE: Bean tag help
>
>
>
> Just cross check that you are importing
> 1. taglib
> 2. bean
> 3. correctly specified bean name & type in struts-config.
>
> Regards
> Rohit
>
>
>
> > Hey People
> >
> > Ay ideas on how to fix my bean proble?
> >
> > Every time I try to uyse the  >
> > java.lang.ClassCastException
> > at
> org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766)
> > at
> > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
> > at org.apache.jsp.files_jsp._jspService(files_jsp.java:149)
> >
> >
> > The Java code looks like
> >
> >   _jspx_th_html_form_0.setParent(_jspx_th_html_html_0);
> >   _jspx_th_html_form_0.setMethod("POST");
> >   _jspx_th_html_form_0.setAction("/files");
> >   149->  int _jspx_eval_html_form_0 =
> _jspx_th_html_form_0.doStartTag();
> >   if (_jspx_eval_html_form_0 !=
> > javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
> > do {
> >   out.write("\r\n  ");
> >   /*   bean:define  */
> >   java.lang.Object processName = null;
> >   org.apache.struts.taglib.bean.DefineTag
> > _jspx_th_bean_define_0 = (org.apache.struts.taglib.bean.DefineTag)
> >
> _jspx_tagPool_bean_define_property_name_id.get(org.apache.struts.tagli
> > b.bean
> > .DefineTag.class);
> >
> >
> > I havent worked a lot on struts and beans so I'm not too
> sure how to
> > fix it
> >
> > Cheers
> >
> > Vance
> >
> > 
> > Vance Heredia
> > 
> >
> >
> __
> > This email, including attachments, is intended only for the
> addressee
> > and may be con

RE: Howto pass values of a form to another form

2003-08-14 Thread Yansheng Lin
You can store the fields in the session, which mean you can access them anywhere
in your application, until you explictly remove them from the session object.

Or you can submit the values of the first form through  tag, that
way you can access them in your Action Bean.  Then in your action bean, you
populate the second form with these values.

Hope this helps!

-Original Message-
From: Z. Cihan TAYÞÝ [mailto:[EMAIL PROTECTED] 
Sent: August 7, 2003 12:04 AM
To: [EMAIL PROTECTED]
Subject: Howto pass values of a form to another form


i have two forms and i want to send values of field in first form to second
form. Each form has its own action bean. Is there a way of doing this by
using struts ?


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


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



RE: Apache Tomcat web servers

2003-08-14 Thread Rohit Aeron
R u kidding that's too costly ...
U r not looking at right places ...


>How much are you expecting to pay for a shared machine with tomcat on? And >is that 
>with or without root access? I am not suggesting anything, but I am 
>planning to do this myself and would like to find out prices. What I have >looked at 
>so far for root access costs 49 euros (= dollars almost) for 2GHz 
>CPU with 256MB ram, 40 Gig HD & 75 Gigs traffic per month.
>
>The next one up with 2.4GHz + 512RAM + 100Gig traffic is 99 euros / month.
>
>Adam



-Original Message-
From: message message [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 1:00 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Apache Tomcat web servers


Have you considered running tomcat & apache on your machine
and getting your ISP to redirect to your machine at your premises.



>From: Adam Hardy <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Apache Tomcat web servers
>Date: Fri, 08 Aug 2003 09:24:15 +0200
>
>How much are you expecting to pay for a shared machine with tomcat on? And >is that 
>with or without root access? I am not suggesting anything, but I am 
>planning to do this myself and would like to find out prices. What I have >looked at 
>so far for root access costs 49 euros (= dollars almost) for 2GHz 
>CPU with 256MB ram, 40 Gig HD & 75 Gigs traffic per month.
>
>The next one up with 2.4GHz + 512RAM + 100Gig traffic is 99 euros / month.
>
>Adam
>
>Philip Seay wrote:
>>Yan,
>>
>>Jason Hunter has a list of reviewed sites at
>>http://servlets.com/isps/servlet/ISPViewAll
>>
>>Regards,
>>Phil Seay
>>mailto:[EMAIL PROTECTED]
>>
>>
>>-Original Message-
>>From: yan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 
>>2003 4:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: Apache Tomcat web servers
>>
>>
>>Hi,
>>
>>I am trying to find a Web host for my JSP applications, but I am finding
>>it very difficult locating a suitable host.
>>
>>Anyone know of any good Web hosting vendors who support MySQl, Apache
>>server and the Apache Tomcat servlet container?  I prefer a UK based
>>host as this is where I reside.
>>
>>I have had a response to an enquiry from a hosting company called
>>'Houxou '.  This is what they have replied:
>>
>>"Assuming Tomcat is "well-behaved", I would have no problem running on
>>our servers, but would need to investigate how happy it is to co-exist
>>with two competitors on the same machine:
>>
>> Apache server pages; and Sun's Chilisoft ASP"
>>
>>I am not sure what they mean
>>
>>Any advice would be gratefully received
>>
>>yan
>>
>>KickStartESolutions - Intelligent Web Services
>>[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]



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



Re: Applet tree menu or using jsp/struts? URGENT !!

2003-08-14 Thread Kamalakar Thota

hello vicky,
 
Applet is heavy. So, when you use applets, it will take time for loading and also you involve in making clients install plugins. By using jsp and struts, it would be faster as you embed much of html code into the jsp. here, for example, I am attaching 2 of my jsp files 
(one jsp has left and right frames, second jsp code for navigation, and for the right side frame do not forget add this to the body attribute i.e. 

).
 
I am guessing that you will modify this jsp code to your needs and write your own action class. Let me know if you have any problems (you can call me at 435-792-3392),
 
Kamal.
 
Vicky <[EMAIL PROTECTED]> wrote:

Hello group,I have tree menu running in applet in one of my applications. Currently i am in the process of evaluating whether to continue with tree menu in applet or to develop tree menu using jsp, struts etc.? what are the pros and cons between these two options. Also i am looking for some example or tutorial for treee menu using jsp/struts. In my case data for tree menu are coming from xml file.Any help would be appreciated. Also early response would be appreciated highly.Thanks-Do you Yahoo!?Yahoo! SiteBuilder - Free, easy-to-use web site design software
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design softwarehttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import = "edu.usu.iNetTest.model.PerfTestNavigatorModel" %>

<% 
   PerfTestNavigatorModel perfTestNavigator= 
(PerfTestNavigatorModel)session.getAttribute("perfTestNavigatorModel");
   String testTitle = perfTestNavigator.testTitle;
   
%> 



 Navigator 


A(text-decoration:none)




  <%= testTitle %>  

<% 
   String backgroundImage = "/iNetTest/images/bck.gif";
  if(perfTestNavigator.testOperation.equalsIgnoreCase("Edit")){
out.println("");

out.println(""
  + ""
  + " " 
  + ""
  + "" 
  + " Test Information "
  + ""
  + " ");
 
 
 if(perfTestNavigator.versionOpen == false) {
out.println(""
  + ""
  + ""
  + "  " 
  + " "
  + ""
  + " Versions "
  + ""
  + "  ");
 
 }
 else if(perfTestNavigator.versionOpen == true) {
out.println(" "
 + ""
 + " "
 + "  "
 + "" 
 + " Versions "
 + "");
for(int i=0;i < perfTestNavigator.versions.size(); i++) {
   if( i == (perfTestNavigator.versions.size()-1) )
   backgroundImage = "";
   out.println(""
   + " "
   + ""
   + ""
   + ""
   + ""
   + " Version " + perfTestNavigator.versionsOrder.get(i) + 
" "
   + " 
"
   + ""
   + "");
   //+ "");
}

out.println("   ");
for(int i=0;i < perfTestNavigator.versions.size(); i++) {
out.println("   ");
}
out.println("");
}

backgroundImage = "/iNetTest/images/bck.gif";
   
if(perfTestNavigator.taskOpen == false) {
out.println(""
  + ""
  + ""
  + " " 
  + " "
  + ""
  + "  Tasks "
  + ""
  + "");
 
 }
 else if(perfTestNavigator.taskOpen == true) {
out.println(""
 +  ""
 + ""
 + " "
 + "  "
 + ""
 + "  Tasks "
 + "");
for(int i=0;i < perfTestNavigator.taskOrder.size(); i++) {
   if( i == (perfTestNavigator.taskOrder.size()-1) )
   backgroundImage = "";
   out.println(""
   + " "
   + ""
   + ""
   + ""
   + ""
   + " Task " + perfTestNavigator.taskOrder.get(i) + " "
   + " 
"
   + ""
   + "");
}

out.println("  ");
 
}
 }
  else{//create a test
   //if(perfTestNavigator.taskId.size() > 0) {   
  backgroundImage = "/iNetTest/images/bck.gif";
  
  out.println("");
  
  if(perfTestNavigator.versionOpen == false) {
out.println(""
  + ""
  + ""
  + "  "

Re: Concept clear for Indexed properties

2003-08-14 Thread atta-ur rehman
hello sridhar,

if you've been able to display the page with all your IpAddress bean in the
collection, you're quite colse. Now on your form add a "IpAddress
getIpAddress(int index)" this method should retun the appropraite IpAddress
object at the given index of the your collection. that's it! now when you
submit your page, the collection on your form should be updated with the new
values. i'm assuming your form is in session scope.

hope this helps.

ATTA

- Original Message - 
From: "Sridhar Kotagiri" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 9:10 AM
Subject: Concept clear for Indexed properties


Hi,
   I want to make my concept clear
1)I have an ActionForm which contains an ArrayList this stores collection of
beans which are called IpAddress
2)Now I write the setter and getter methods for ArrayList in the ActionForm
3)The Actual part
Do I need to write the getter And setter methods with indexed property in
the ActionForm for IpAddress or ArrayList
when Im using the first one Im able to diplay the jsp page but when I submit
it its throwng BeanUtils.populate() exception
If Im using the second one Im unable to display the jsp page it throws no
getter methods for arrayList
Im sure that in the first case the getter method with indexed property for
IpAddress is being called.

Thanks!
Sridhar

-Original Message-
From: Sridhar Kotagiri
Sent: Friday, August 08, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: BeanUtils.Populate exception(Indexed Properties)


I'm totally confused you say that I need to write these methods
public void setAlist(int index,IpAddress ip)
{
alist.add(alist.set(index,ip));
}
public IpAddress getAlist(int index)
{
return (IpAddress) alist.get(index);
}

instead of

public void setIpAddress(int index,IpAddress ip)
{
alist.add(alist.set(index,ip));
}
public IpAddress getIpAddress(int index)
{
return (IpAddress) alist.get(index);
}

int the ActionForm

Thanks!
Sridhar


-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:03 AM
To: 'Struts Users Mailing List'
Subject: RE: BeanUtils.Populate exception(Indexed Properties)


> 4)Now Im able to diplay in the jsp page but when I submit
> this page its throwing
> javax.servlet.ServletException: BeanUtils.populate at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java
> :1098)  exception.

See the response I made a couple of hours ago on this same issue. I just
came through one of these. The problem in my case, and probably in yours, is
that when Struts tries to populate your form bean on submission, it calls
the indexed getter for alist. It expects to get a bean of type
"com.register.struts.account.IpAddress" . In my case, I had created an array
of the proper type and length, and was returning an element of this array.
But my "reset" method did not assign anything to the elements of the array,
so I was returning nulls. Struts reacted to the null by throwing the "No
bean specified" error.


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



Problem using array of string in a FormBean

2003-08-14 Thread Mizanur Rahman
Hi,

I have a JSP page contains a array of String. When i try to load the page 
the text box contains the value "[Ljava.lang.String;@7549de". my jsp page 
and the formbean are given below.

Thanks in advance.

Mizan

=JSP page =
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>





 Customer ID
 


 Customer ID
 


 Customer ID
 

   



 
  
   
   
 



=FormBean==

import org.apache.struts.action.*;

import javax.servlet.http.HttpServletRequest;

public class AccountForm extends ActionForm
{
private String[] custID={"","",""};
public String[] getCustID()
{
return custID;
}
public void setCustID(String[] custID)
{
this.custID=custID;
}
public void reset(ActionMapping actionMapping,
  HttpServletRequest httpServletRequest)
{
for(int i=0;i
_
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: UPON APPLICATION STARTUP!!!!!!!!!!!!!!!!

2003-08-14 Thread Andrew Hill
(Sorry for not replying till now. Been out of the office for a couple of
days)

It sounds like what you need to do would be to implement a struts PlugIn
that reads the initial values from the database and creates beans containing
this information. (These beans could in fact be instances of the ActionForm
class they are intended as default values for). You store these default
value beans in the servlet context.

You will still need to copy the properties from these beans to the actual
ActionForm that you are using however, and you only wish to do this once
(after the form is created).

The logical place to do this would be in the action that you go through
before forwarding to the JSP for the first time. (Its considered best to
always go through an action first and not have hyperlinks that go directly
to .jsp files. Indeed most struts developers will hide the jsps under
WEB-INF to stop them being accessible without first hitting an action).

You may wish to make use of BeanUtils.copyProperties() method to simplify
this step. Its javadoc is here:
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils
/BeanUtils.html
Since your copying from the beans you created at startup in the plugin, no
extra db calls are involved so there wont be an efficiency issue.

The other place I mentioned you could initialise the values in the new
actionform instance was in the reset() method. Struts will call this method
after instantiating the form instance and before populating it. (Im not sure
if it calls it when the form tag causes an instance to be instantiated - but
it will get called if its an action you are hitting).

You could set a private flag in the ActionForm to keep track of whether this
is the first time it is reset or not, and if it is, have code in the reset
method look up the default values from the beans in the servlet context. If
not the first time, then just do the normal reset type stuff.

This however is not as good a solution as simply copying the properties in
the action before going to the view.

-Original Message-
From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 12 August 2003 00:39
To: Struts Users Mailing List
Subject: Re: UPON APPLICATION STARTUP


Thanks  Nathan, Andrew.

I am sorry that my earliler post was not specific and a little bit on the
"sassy" side.

Yes. My forms are session mapped forms and I will be getting the default
values from my database.

Andrew, the reason why I decided not use an action to load the default
values
in the forms is that this would be a  query to the database *everytime*.
Since, theses default values are static (will never change), I thought it
makes more sense to load then upon application startup and have it within
the
current session. Oops, they should span accross multiple sessions,
therefore,
as you and Nathan suggested they should be put within the servlet context.


Andrew, can you elaborate a littile bit more on the ActionForm reset issue
that you mentioned?

Thanks.

_CJ

On Sunday 10 August 2003 11:08 pm, Andrew Hill wrote:
> Yeh alright mate. Keep ya hair on and enough with the shouting already!
>
> Since the forms are only instantiated when a request for that mapping
comes
> in its gonna be kinda hard to prepopulate values on them cos they dont
> exist yet. Indeed unless you are using session mapped forms (such as for a
> multipage wizard or such like) the form is only going to exist for the
> scope of the request.
>
> Now Im assuming that you need to read these default values from somewhere
> (which must be why you dont just slap em into the form constructors
> directly). Since they dont change while the app is running (another
> assumption your post didnt bother clarifying) your best bet would be to
> read them into some kind of config objects (perhaps even a 'prototype'
> instance of the forms in question) and store these in the servlet context.
> Implement a struts plugin to do this at startup time.
>
> You could initialise the values in the form instance from these config
> objects in the reset method. Dont forget to do this only on the first
reset
> (or you will overwite input).
>
> I reckon you would be best off doing as you were advised and copying the
> defaults into the form in an action though rather than overloading the
> reset method for this purpose.
>
> As for the lists of selectable choices in things such as drop downs - that
> would best be left as shared beans in servlet scope (like Nathan says in
> his reply to your post) - you would only want to copy values into the form
> instance for defaults for stuff, as you can have your tags access the
> shared beans directly for such tasks as rendering options in selects...
>
>
> -Original Message-
> From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
> Sent: Monday, 11 August 2003 13:46
> To: Struts Users Mailing List
> Subject: UPON APPLICATION STARTUP
>
>
> Greetings!
>
> I would like to load default values in my fo

Re: Button labels and DispatchActions mix?

2003-08-14 Thread Todor Sergueev Petkov
It works with the button label But I have two Search buttons on the
same page both labeled
search.button.reset but they perform two different actions. So I need a
way to distinguish which was pressed
inside my DispatchAction


Rohit Aeron wrote:
> 
> This will work ..
> 
>  value="" >
> 
> 
> -Original Message-
> From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 5:29 PM
> To: Struts Users Mailing List
> Subject: Button labels and DispatchActions mix?
> 
> Hello people,
> 
> I have the following code :
> 
>  
>  
>  
> 
> What I am trying to do is have a Dispatch Action
> so that when this button is pressed the request is something like
> search.do?action=resetg
> But I don't want my button to have the resetg title on it. I want it to
> have the search.button.reset title from ApplicationResources bundle
> on it. It seems tha Struts html tag library mixes the two. Is there a
> way out of this?
> 
> Thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> *--
> This message and any attachment(s) is intended only for the use of the addressee(s) 
> and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
> intended addressee(s), you are hereby notified that any use, distribution, 
> disclosure or copying of this communication is strictly prohibited. If you have 
> received this communication in error, please erase all copies of the message and its 
> attachment(s) and notify the sender or Kanbay postmaster immediately.
> 
> Any views expressed in this message are those of the individual sender and not of 
> Kanbay.
> 
> Although we have taken steps to ensure that this e-mail and any attachment(s) are 
> free from any virus, we advise that in keeping with good computing practice the 
> recipient should ensure they are actually virus free.
> 
> -
> 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]



Using Oracle JDBC extension w/ Strut?

2003-08-14 Thread Kevin

hi all,

When I try to use the Oracle JDBC extension to take advantage of 
the Oracle batch update feature, I got an 
exception "org.apache.commons.dbcp.DelegatingPreparedStatement"
when I try to cast a PrepareStatement to OraclePreparedStatement.

Any idea why?


Here is the code snippet:


System.err.println("Update DB Action called");

 ServletContext context = servlet.getServletContext();
DataSource ds = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY);

try {
Connection conn = ds.getConnection();

 String sql = "SELECT username FROM users";
 OraclePreparedStatement ps = (OraclePreparedStatement) conn.prepareStatement(sql);
  ResultSet rset = ps.executeQuery();

  while (rset.next ())
 System.out.println (rset.getString (1));

} catch ( Exception e ) {
  System.out.println( e.getMessage() );
}

Thanks for any help!




___
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

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



Re: JSTL ot struts taglibs?

2003-08-14 Thread Yann Cébron
> > For the logic and I18N taglibs - what do you recommend - using the
> > struts taglibs or the JSTL taglibs?
>
> Definitely JSTL.  They're more powerful, easier to use, potentially
> faster, and a Java standard.

not to forget: there's a good chance that (in the future) containers will
have their own optimized versions of the JSTL-tags, there are already some
implemented in TC5.x

Yann




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



Re: intuitively to get new Id to next action when old Id is in request?

2003-08-14 Thread Reinhard
> I am looking at sticking the new id on the querystring of the
> actionforward path, but struts throws an exception ... 

Sorry about my question, but don't share querystring and request the same 
accessability and lifetime? 
What's the benefit of querystring over the request?

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



RE: [FRIDAY] method to get new Id to next action when old Id is in request?

2003-08-14 Thread ansuman_behera
no offence meant James but I've had past experience when the so called architects and 
designer of my client have asked me not to use hidden variables...period...

they would not listen to anything, they would not discuss about and hence my question. 
Obviously you do understand that the answer given by you is something I cannot tell to 
my customers but thanks for answering anyway.

ansuman

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:43 PM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




> -Original Message-
> From: ansuman_behera [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:51 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
> 
> 
> what if there is a restriction that the developers should not be 
> using hidden variables? what do you do in this case?
> 
> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 11:54 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
> 
> 
> Try putting up id as a hidden variable...
> 
> Eg:
> 
> 
> 
> 
> it would work 
> 
> regards
> Rohit
> 
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:56 AM
> To: Struts Users Mailing List
> Subject: method to get new Id to next action when old Id is in request?
> 
> I have two actions chained together. They both take the same formbean. 
> The first is sectionInsert.do and the second, which sectionInsert 
> forwards to on success, is sectionEdit.do
> 
> sectionInsert.do receives the properties of a Section in the request 
> parameters, including id=0 where it is 0 because it does not exist in 
> the DB yet. So it inserts the new Section into the DB and returns the 
> new id, which is needed by sectionEdit to put into the html for the edit 
> page.
> 
> I originally thought I could save the new id to the formbean and this 
> would get passed on, but sectionEdit instantiates its own formbean and 
> fills it with the request parameters - include id=0.
> 
> Is there an intuitive way of passing on the new id?
> 
> I already use sectionEdit.do as a first action by calling it with an id 
> on a querystring, where the formbean picks it up. I would like to use a 
> method that is easy for both these situations.
> 
> I'd appreciate any inspiration.
> Adam
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> *--
> This message and any attachment(s) is intended only for the use 
> of the addressee(s) and may contain information that is 
> PRIVILEGED and CONFIDENTIAL. If you are not the intended 
> addressee(s), you are hereby notified that any use, distribution, 
> disclosure or copying of this communication is strictly 
> prohibited. If you have received this communication in error, 
> please erase all copies of the message and its attachment(s) and 
> notify the sender or Kanbay postmaster immediately.
> 
> Any views expressed in this message are those of the individual 
> sender and not of Kanbay.
> 
> Although we have taken steps to ensure that this e-mail and any 
> attachment(s) are free from any virus, we advise that in keeping 
> with good computing practice the recipient should ensure they are 
> actually virus free.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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


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



Re: How to keep session info??

2003-08-14 Thread Nathan Coast
> Make sure that your  isn't doing a redirect (i.e.
> redirect="true").  If I understand things correctly, a redirect will 
cause a
> new session to be created...
>
> Jerry

Are you sure?  I haven't looked at this area of the source for a while 
but I can't think any sensible reason why it would be desirable for a 
redirect to cause a new session.

If the problem is that a variable is placed into the session and then is 
missing during the same request (and the forward is within the same 
web-app), it sounds to me like there might be some erroneous code 
somewhere.  I'd check for silly mistakes

check you aren't putting null in the session,
check you aren't setting the var in the request rather than the session,
check the var in the session isn't null immediately after placing in the 
session,
check the request isn't going via some code that calls 
session.invalidate(), or is removing the var from the session.

hope this helps

Jerry Jalenak wrote:

-Original Message-
From: development [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 8:42 PM
To: [EMAIL PROTECTED]
Subject: How to keep session info??
Hi all,

I've got a LoginAction which inside its execute method validates and 
saves the login info into HttpSession instance. It creates an 
ActionForward and returns it.
All works good and it calls the new Action which I call MembersAction 
which tries to retrieve the login info.
Somehow though the session ID is different and so I lost all my login 
info :(

Can someone tell me why session would be diferent please?

Cheers
Vic
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED]



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





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


Re: [FRIDAY] Impossible requirements & customer expectation management [WAS: method to get new Id to next action when old Id is in request?]

2003-08-14 Thread Simon Kelly
+several million


- Original Message - 
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 2:18 PM
Subject: RE: [FRIDAY] Impossible requirements & customer expectation
management [WAS: method to get new Id to next action when old Id is in
request?]


Move on.  There are plenty of jobs for the competent and there is no point
in wasting your time developing for morons.


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 7:29 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] Impossible requirements & customer expectation
management [WAS: method to get new Id to next action when old Id is in
request?]


So what does one do when one has requirements that are (for all practical
purposes) impossible?

How does one actually go about convincing a Customer/PHB/VIP that its
impossible without them thinking one is incompetent and making excuses?

-Original Message-
From: ansuman_behera [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 19:20
To: Struts Users Mailing List
Subject: RE: [FRIDAY] method to get new Id to next action when old Id is in
request?


no offence meant James but I've had past experience when the so called
architects and designer of my client have asked me not to use hidden
variables...period...

they would not listen to anything, they would not discuss about and hence my
question. Obviously you do understand that the answer given by you is
something I cannot tell to my customers but thanks for answering anyway.

ansuman

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:43 PM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in request?


That's ridiculous.  If that were true, then just give up and go home.


--
James Mitchell
Software Engineer / Struts Evangelist http://www.struts-atlanta.org
770-822-3359 AIM:jmitchtx




> -Original Message-
> From: ansuman_behera [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:51 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
>
>
> what if there is a restriction that the developers should not be using
> hidden variables? what do you do in this case?
>
> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 11:54 AM
> To: Struts Users Mailing List
> Subject: RE: method to get new Id to next action when old Id is in
> request?
>
>
> Try putting up id as a hidden variable...
>
> Eg:
>
> 
>
>
> it would work
>
> regards
> Rohit
>
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 2:56 AM
> To: Struts Users Mailing List
> Subject: method to get new Id to next action when old Id is in
> request?
>
> I have two actions chained together. They both take the same formbean.
> The first is sectionInsert.do and the second, which sectionInsert
> forwards to on success, is sectionEdit.do
>
> sectionInsert.do receives the properties of a Section in the request
> parameters, including id=0 where it is 0 because it does not exist in
> the DB yet. So it inserts the new Section into the DB and returns the
> new id, which is needed by sectionEdit to put into the html for the
> edit page.
>
> I originally thought I could save the new id to the formbean and this
> would get passed on, but sectionEdit instantiates its own formbean and
> fills it with the request parameters - include id=0.
>
> Is there an intuitive way of passing on the new id?
>
> I already use sectionEdit.do as a first action by calling it with an
> id on a querystring, where the formbean picks it up. I would like to
> use a method that is easy for both these situations.
>
> I'd appreciate any inspiration.
> Adam
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> *--
> This message and any attachment(s) is intended only for the use of the
> addressee(s) and may contain information that is PRIVILEGED and
> CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
> notified that any use, distribution, disclosure or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please erase all copies of the message and its
> attachment(s) and notify the sender or Kanbay postmaster immediately.
>
> Any views expressed in this message are those of the individual sender
> and not of Kanbay.
>
> Although we have taken steps to ensure that this e-mail and any
> attachment(s) are free from any virus, we advise that in keeping with
> good computing practice the recipient should ensure they are actually
> virus free.
>
>
> -

Re: Help please - indexed field in ActionForm

2003-08-14 Thread David Thielen
Hi;

Thank you - this is part of what I need.

Is there any way to iterate through the lines if I don't know up front how
many lines there will be? I tried the with the c JSTL and it doesn't work.

thanks - dave


- Original Message - 
From: "Gary Kephart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 4:55 PM
Subject: RE: Help please - indexed field in ActionForm


class MyActionForm
{
  private static final MAX_ENTRIES = 50;
  private String[] text;

  public MyActionForm()
  {
text = new String[MAX_ENTRIES];
  }

  public String[] getText() {return text;}

  public void setText(int index, String newText) {text[index] = newText;}
}

my.jsp

  

  Label 1:
  Label 2:
  

  



Gary Kephart| New Century Mortgage
Web-Based Application Developer | http://www.ncen.com
[EMAIL PROTECTED]   | 340 Commerce
949-797-5660| Irvine, CA  92602-1318


> -Original Message-
> From: David Thielen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 3:46 PM
> To: Struts-Users
> Subject: Help please - indexed field in ActionForm
>
>
> Hi;
>
> I've been fighting this all day with no luck. And it has to
> be a simple thing to do.
>
> I have a form where I have N lines in it. Each line needs to
> have some text displayed and an edit box.
>
> How do I set this up in the .jsp file and in the ActionForm?
> I've found a number of examples on the web but they all have
> incomplete code and my guesses for the rest of the code have
> not been right so far.
>
> thanks - dave
>

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



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



RE: JSTL ot struts taglibs?

2003-08-14 Thread Bailey, Shane C.

Before I get bashed again, I meant JSTL is replacing the use of the
traditional JSP tags before all the  came out.  I haven't seen one
of those tags in ages.   

Maybe it will still be called JSTL but maybe their will be nicer replacement
tags for some of the ugly logic ones.  Maybe that is the solution.


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 4:20 PM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?


But, what I really meant about JSTL being replaced was in popularity.

JSP tags are being replaced (in popularity) with Struts tags, your JSTL, and
alike.


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 4:02 PM
To: 'Struts Users Mailing List'
Subject: RE: JSTL ot struts taglibs?



-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 3:45 PM
To: Struts Users Mailing List
Subject: Re: JSTL ot struts taglibs?



Bailey, Shane C. wrote:

[Snip]
Why should build files be composed of tags at all?  I think Ant is great 
too (a lot better than make), but does the fact that it is tag-based 
have anything to do with it?  No.  The reason that the original author 
went with XML for the structure of Ant build files had nothing to do 
with tags -- it had to do with hierarchy.  See  
to read his thoughts on the matter (sorry for the cachelink but I can't 
find the official permalink).
[/Snip]

I don't know why a build file should be composed of tags either.  My point
was that Ant is nicer and more recently popular than make and the developer
could have thought, "You know, most people that will be using Any will
probably know make so I am going to throw a bunch of "==" in there and that
would be fine.  Ant has more of an excuse to have "==" in the darn thing
than a View (geared toward UI and graphic artist specialist) tag set does.
And the Ant developer must have seen the light. (All my opinion, of course).

[Snip]
Faster?  Given a programmer with equal knowledge of scriptlets and JSTL, 
scriptlets are definitely not faster for development.  Since when are 
they faster for performance?  Plus they tend to be difficult to read -- 
and I say this as a former PHP programmer.
[/Snip]

If they aren't faster in performance then something is wrong.  All the JSP
rendering practically has to do is put the code as is into the Servlet which
is a Java class.  No interpretation.  I haven't looked at the source but I
am sure the optimization for rendering code for Scriptlets vs JSTL has to be
there.  I know more Java programmers that could get a JSP page drawn if you
simple told them <% ... %> for multiple code segments and do <%= ... %> to
return an expression given all they knew was Java and no Web stuff
(including JSTL at all).

[Snip]
Okay, first of all, JSTL is a JCP specification (JSR-52, for more info 
see ).  It's 
not just some 3rd-party library that is going to be "replaced" any time 
soon.  Second of all, it is actually a part of the JSP 2.0 specification 
(just as scriptlets are part of an earlier JSP specification).  While 
scriptlets are still supported in JSP 2.0, it is clear that Sun and the 
JCP are trying to provide alternatives to scriptlets and at some point 
they might even be deprecated.
[/Snip]

Nothing is impossible.  I remember being devastated after getting pretty
efficient with AWT and then the model changed and then Swing came out. And
you even mention how scriptlets WERE part of the spec and are now close to
deprecation.  So what is so ridiculous about my statement???

[Snip]
So sorry, but I had to ask - what the crap were you talking about.
[/Snip]

No problem.



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



  1   2   3   4   5   6   7   8   9   10   >