RE: struts validation

2003-08-05 Thread Harald Tomio
hi, i have that problem to, but could also not locate the error.

the one validation form works (javascript), the other don't (uses server
side validation). and also it creates two e.g. required javaskript
funktions in the jsp page.

are ther any actual examples to check?

thanks for help
harald


-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED] 
Sent: Montag, 04. August 2003 17:01
To: 'Struts Users Mailing List'
Subject: RE: struts validation


> the validators i used are required, minlength, maxlength etc... but do

> we have problem in displaying the error messages in java script window

> bcos of validators???

I do not have that problem I do not know why you do. Check to see if the
JavaScript even gets to your browser. 

Ceck your generated HTML is everything there? I.e. your validate
function and all the validator JavaScripts.


-
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: Calling a default Action upon App startup

2003-08-05 Thread Mohan Radhakrishnan

 This is what I think about the listener approach. In our project even
though we use HttpSessionAttributeListener, we are loading only the login
user profile as a java bean. We don't mix servlet listeners and Struts
forms. We could load data into POJO's and then copy it into ActionForms
whenever they are needed. I am not sure about the efficiency of this
approach for large number of forms.

 The filter is hit even before the ActionServlet is hit the VERY first time.
So Struts is not even loaded unless you use the load on startup tag. Again
here we load our own javabeans. But when we need to prepopulate we set up
our ActionForms Just-in-Time.

  Our data that don't change often is in javabeans loaded by our
ServletContextListener.

Mohan

-Original Message-
From: Curtney Jacobs [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 9:33 AM
To: Struts Users Mailing List
Subject: Calling a default Action upon App startup


Greetings everyone!


I would like to preopulate serveral forms with default values retrieve from
a
database upon application startup or after a successful login by the user.

I have an approach in mind, however, I am not sure if it is the most
efficient
or best approach. My approach is to use a filter that creates and stores in
memory default ActionForms. The ActionForm will contain default values for
select fields (or any other fields) retrieved from a database. The
ActionForms will be stored within the current user session and then controll
will be given over to Struts ActionServlet.


Another similar approach would be to register a listerner
(HttpSessionAttributeListener) that would essentially  wait for a specific
attribute to be added into the session (i.e SETUP_FORMS) then it would query
the database for neccessary application setup data.


I read the message archive, and a few have suggested calling a "setup
action"
per request that prepopulates the default values in the ActionForm. This is
a
valid approach, but IMHO only for small applications. It just seems that
there will be to much "traffic" going on between the app and the database.
Correct me if I am wrong.

If you have gotten this far please share your thoughts on this topic.

Curtney

-
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: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132

2003-08-05 Thread Adam Hardy
I think you will have to look in the struts source. I've often seen this 
question but never an answer.

Adam L wrote:
I've seen this same issue since moving to 1.1.  I'm running JBoss 3.0.7.
Other apps I have running (non struts apps, or if they are, they must be
using an earlier version) are using cookies w/o a problem.My app was
using cookies before the upgrade.   I've tried so many things:
  -- trying to coerce with a web-inf jetty.xml
  -- setting IE to accept cookies even if they aren't P3P (there's an issue
logged in the apache bug base on this)
  -- setting and resetting my jboss-web settings (which seems silly since
other apps are using cookies just fine)
  -- all searches on the web tell me to do all that i've done, and basically
reference how to turn cookies OFF (not what I want!)
Anyone have any input on this?  I don't want to move back to 1.0, as I'm in
love with EL struts tags.
 Perhaps I should start a new post.. but, no.. this is the same.

- Original Message -
From: "Marcel Overdijk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 2:07 AM
Subject: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132
Hello,

I never noticed it but when I start my application
http://localhost:8080/overdijk
  I will be forwarded to Welcome.
Suddenly (I didn't noticed it before) I see some session information in
my url bar:
http://localhost:8080/overdijk/Welcome.do;jsessionid=C36048429636E35FB1E
CAA5978E23132
When I start struts-documentation I don't see this session information.

Can anybody explain why this information is displayed ?



Kind regards,
Marcel Overdijk


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


/ /OREF:CPT62B02 Refreshing a JSP exactly once

2003-08-05 Thread ZTofie

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]



Date validation and format

2003-08-05 Thread Jiří Mareš
Hi all,

I have question to date validation. In validation.xml I specified the 
field folowing way:






datePattern
.MM.dd


and everything is working, but, when I edit the field I would like to 
load the date frm DB and format the date the same pattern as is 
specified in the validation.xml.

And here is my question.

1) Is it possible to specifi the var-value as the key in 
applicationResources to be able from application load the same value of 
the key.

2) Or is it possible in action read the value of the var named 
datePattern in validation for particular form??

Thanks a lot.

--
Jiří Mareš (mailto:[EMAIL PROTECTED])
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Date validation and format

2003-08-05 Thread Adam Hardy
I have l10n issues like this to resolve but haven't had the time yet. 
I'm interested in the reply.

I suspect that the issue is still outstanding, although there is no 
enhancement request in bugzilla. There is this related bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=19161

but there are no comments on the bug from the developers - perhaps some 
struts developer can say something on this subject now?

A similar issue with LocalizedBeanUtils.copyProperties() is at a 
stand-still at the moment too, so I suspect that it will require some 
dedicated European to do the development.

Jiří Mareš wrote:
Hi all,

I have question to date validation. In validation.xml I specified the 
field folowing way:






datePattern
.MM.dd


and everything is working, but, when I edit the field I would like to 
load the date frm DB and format the date the same pattern as is 
specified in the validation.xml.

And here is my question.

1) Is it possible to specifi the var-value as the key in 
applicationResources to be able from application load the same value of 
the key.

2) Or is it possible in action read the value of the var named 
datePattern in validation for particular form??

Thanks a lot.



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


RE: Best place to hook the Security Call

2003-08-05 Thread Viral_Thakkar

I have an authorization requirement as below. 

1. A user can have a role for a specific company. 
2. A user can have many roles for a specific company. 
3. A user can have different roles specific to different companies. 
It means a user can have few roles for Company (lets say ABC Inc.) and
can have few roles (same or different) for some other Company (lets say
XYZ Inc.) 

User Access level changes for each request depending on the role and the
company (company, which exist at that point). 

Please help in suggesting the authorization framework I can use for such
requirement.

Can SecurityFilter component help me in implementing this requirement?
If yes, how..??

Thanks..


-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 6:19 PM
To: Struts Users Mailing List
Subject: RE: Best place to hook the Security Call

This is what I mentioned earlier.  We needed more security flexability
that
what the normal servlet container supports so we had to write our own
security handler.  The struts framework has a method hook in the
RequestProcessor class that will allow you to verify the users access
rights
for each request.  The method is processPreprocess. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 7:34 AM
To: Struts Users Mailing List
Subject: Re: Best place to hook the Security Call



I agree with Alen, but at the same time if all the containers are
supporting J2EE security standards then porting to different containers
should not be an issue. SecurityFilter as I just browsed through seems
interesting but all the latest J2EE containers will have to support
Servlet
2.3 for using the same. Alternatively whatif I write my own security
piece
by looking up LDAP for A&A (authentication and authorization) and this
piece would be called from some place in the STRUTS control flow so that
for everyrequest security would be validated.

Thanks
Sreekant G.
TCS AMBATTUR


 

  "Alen Ribic"

  <[EMAIL PROTECTED]To:   "Struts Users
Mailing List"
  >
<[EMAIL PROTECTED]>
   cc:

  08/04/2003 04:25 Subject:  Re: Best place
to
hook the Security Call   
  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





If I'm not mistaken, this approach is container specific hence would
make
deployment on difference container(s) not as smooth as one would wish.
I may be wrong so please correct me! I'm not very clued up in this area.
;)

I have privilege working with servlet 2.3 and am now using
SecurityFilter
component (www.securityfilter.org)  to handle my auth. Very simple!

--Alen


>Best place would be using container J2EE security, such as JDBC realms.

>[EMAIL PROTECTED] wrote:
> Which is the best place to hook the security call for an application
in
the
> STRUTS framework so that for every request security check is made.
Does
> STRUTS provide integration with any Security framework ?
>
> thanks in advance.
> Sreekant G.
>
>
>
>
>

>
> This mail was scanned by Interscan Virus Wall of Mailserver at
Cathedral
Road TCS Chennai
>
>
>
>

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

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced Struts Training, mentoring and
project recovery in North East.
Open Source Portal Content Management
basicPortal  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]







-
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: force precompilation of JSPs

2003-08-05 Thread thirumalai . veeraswamy
I am using iPlanet where I use the following ant target to rebuild the
jsps


  
 
 
  
  
  
 
  


or you can use this to do for each one

   
 
   
  
 
  



@echo off
java -classpath  org.apache.jasper.JspC -d %2 -v0 -die9 %3

jspengine.jar should be in classpath

best regards
Thiru

> -Original Message-
> From: Ionel Gardais [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 12:18 PM
> To: Struts Users Mailing List
> Subject: force precompilation of JSPs
> 
> Hi,
> 
> I am experiencing a slow down when I access a JSP page for the first
> time after I deploy e web app.
> Is there a way to force precompilation of these files as soon as the
web
> app is deployed ?
> 
> Thanks,
> ionel

This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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

commons-fileupload.jar

2003-08-05 Thread Filip Polsakiewicz
Hi everybody,

i found that the commons-fileupload.jar shipped with struts is not complete
compared to the original commans-fileupload.jar
In our project we need e.g. the class DiskFileUpload which is not included
in the struts version. On the other hand i cannot take the "original"
version since then struts fileupload doesn't work. Is there any full
featured version of fileupload.jar for struts? ... or how can i get struts
to work with the original jar?

Thank Filip




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



StrutsTestCase problem with setRequestPathInfo()

2003-08-05 Thread Daniel Massie
I am trying to use the StrutsTestCase extension of Junit but keep getting
the following error when I try to use it, the error occurs when
actionPerform() is called. Any help would be greatly appreciated.

[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering setUp() 80
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting setUp() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setConfigFile() : pathName = /WEB-INF/struts-config.xml 90   [main] DEBUG
servletunit.struts.MockStrutsTestCase  - Entering setConfigFile() :
moduleName = null, pathname =/WEB-INF/struts-config.xml 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setConfigFile() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setConfigFile() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setRequestPathInfo() : pathInfo = /login.do 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setRequestPathInfo() : moduleName = , pathInfo = /login.do 100  [main] DEBUG
servletunit.struts.Common  - Entering stripActionPath() : path = /login.do
100
[main] DEBUG servletunit.struts.Common  - Exiting stripActionPath() -
returning path = /login 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - setRequestPathInfo() :
setting request attribute - name = not.used.at.all, value =  100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setRequestPathInfo() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setRequestPathInfo() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
addRequestParameter() : parameterName = userName, parameterValue = admin 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
addRequestParameter() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
addRequestParameter() : parameterName = password, parameterValue = password
110
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
addRequestParameter() 110
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
actionPerform() 110  [main] DEBUG servletunit.struts.MockStrutsTestCase  -
Entering getActionServlet() 110
[main] DEBUG servletunit.struts.MockStrutsTestCase  - getActionServlet() :
intializing actionServlet 380
[main] ERROR org.apache.commons.digester.Digester  - Parse Fatal Error at
line 0 column 0: File "" not found. org.xml.sax.SAXParseException: File ""
not found.


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



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

2003-08-05 Thread ZTofie

I have a bean that's an arraylist that contains Carrier objects. I'm
trying to access the name property on the Carrier object but keep
getting the above error.
I've tried nested:iterate but with no luck - keep getting a null
pointer exception.






BLAH...


  


BLAH


Help will really be appreciated...
Tx



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



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

2003-08-05 Thread Nagendra Kumar O V S





  
  

   
  
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, August 
  05, 2003 04:15:54 PM
  To: [EMAIL PROTECTED]
  Subject: Re: / 
  /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: 
  java.lang.ClassCastException: net.msl.stackdates.web.Carrier
   
  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



Re: Best place to hook the Security Call

2003-08-05 Thread Max Cooper
One approach would be to use a proprietary programmatic security system. You
would have to check for a (user,company,role) combination for requests that
have security requirements. This may in fact be the best way to handle your
requirements, given that the same HTTP requests (/editCompany.do) will
likely be used for many operations across different companies.

You could "flatten" the company/role space into a single list of roles that
follow some convention. For instance, the "admin" role for the company with
id=1234 could be mapped to the single role named "c1234.admin" or something
like that. Then you could check to see if the current user has that role
when deciding if they should be able to perform some admin action for
company #1234. This approach can be used in conjunction with the
programmatic system I described in the first paragraph. An advantage is that
you can use the standard isUserInRole() call to check for access, but you
will still need some proprietary way to create the role name to check for.
You could always have a utility class with some methods like this:

boolean isUserInRoleForCompany(HttpRequest request, String rolename, Company
company) {
   String role = generateCompanyRoleName(company, rolename);
   return request.isUserInRole(role);
}

String generateCompanyRoleName(Company company, String rolename) {
   return "c" + Integer.toString(company.getId()) + "." + rolename;
}

One potential downside to this flattening, however, is that you may end up
with a huge number of roles. While this, in itself, may not be a big deal,
some containers and realms do things like load every role a user has into
memory as part of their Principal object. If a given user only has a handful
of roles at a handful of companies, this may still not be a big issue. But
it is something to watch out for as you decide on a solution.

If the large number of roles is a problem, you would have to write your own
methods to do the checking. This isn't so bad from the Action programmer's
standpoint, as they would be calling an application-specific method to
determine access anyway (like my isUserInRoleForCompany() example above).
The downside is that you would have to do the db lookup yourself (as the
implementor of these methods), rather than being able to rely on the
isUserInRole() method and your realm implementation to do the lookup for
you.

People have asked about this kind of thing for SecurityFilter before.
Perhaps there is some opportunity to offer some kind of support, but you'd
still have to plug-in a piece of code to dig the company id (or equivalent
information) out of the request. SecurityFilter might allow you to map URLs
to some implementation class that would generate a role name that it would
check for, or perhaps, more flexibly, allow the class to decide if access
should be granted or not directly. This is an interesting area to explore,
but there are no plans for this support now, so it would be a while before
this kind of thing makes it into SecurityFilter. I do like that it separates
security from the implementation of the request handling code (Action, JSP,
etc.), but it is unclear whether it would be worth the added complexity to
me at this point. Your requirements do make this option attractive, though,
and I know others have to do similar things. Any feedback in this area is
welcome (perhaps on the SecurityFilter forum so we don't waste struts-user
bandwidth: http://sourceforge.net/forum/forum.php?forum_id=200424).

-Max
SecurityFilter Dude

- Original Message - 
From: "Viral_Thakkar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 9:22 PM
Subject: RE: Best place to hook the Security Call


I have an authorization requirement as below.

1. A user can have a role for a specific company.
2. A user can have many roles for a specific company.
3. A user can have different roles specific to different companies.
It means a user can have few roles for Company (lets say ABC Inc.) and
can have few roles (same or different) for some other Company (lets say
XYZ Inc.)

User Access level changes for each request depending on the role and the
company (company, which exist at that point).

Please help in suggesting the authorization framework I can use for such
requirement.

Can SecurityFilter component help me in implementing this requirement?
If yes, how..??

Thanks..




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



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

2003-08-05 Thread Alen Ribic
Because Sun performance GC on their irrelevant, rubbish posts. ;)

--Alen


- Original Message -
From: "message message" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 1:23 PM
Subject: RE: [OT] - [TOPIC] - [VOTE]


>
>
> I have noticed that this list alone has more postings then the
> all the Sun mailing postings put together  ?
>
> Why do you think that is the case  ?
>
>
> >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 07:11:37 -0400
> >
> >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
> > >
> 

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

2003-08-05 Thread Mark Galbreath
nope

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



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

2003-08-05 Thread Gregory F. March

On Aug 5, 2003, "Puneet Agarwal" <[EMAIL PROTECTED]>  wrote:

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

I think this is difficult to do since one question can cover many
categories.  And, for the newbie (like me!), it is hard to understand
exactly what we're asking.

Personally, I think the best thing to do is to remind people to keep the
subject relevant to the thread.  I.e., if the discussion changes course,
change the subject to something more appropriate.  The typical usenet
way of doing it was to take the original subject, say:

   Subject: my action form ate my dog

and replace it with:

   Subject: dog locked in basement [was: my action form ate my dog]

This, along with clipping your replies to only the important content can
contribute to a good signal to noise ratio for the archives.

My $0.02...

Cheers,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

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



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

2003-08-05 Thread Laurent PETIT
nope, too.

- Original Message -
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 12:50 PM
Subject: RE: [OT] - [TOPIC] - [VOTE]


nope

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



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



Re: force precompilation of JSPs

2003-08-05 Thread Nagendra Kumar O V S








  hi,
  yes, u can precompile all your jsp pages in to servlets using the app 
  server jsp compiler.. and give the corresponding servlet name and path in 
  the web.xml..
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, August 
  05, 2003 12:24:05 PM
  To: Struts Users Mailing 
  List
  Subject: force 
  precompilation of JSPs
   Hi,I am experiencing a slow down when I access a 
  JSP page for the first time after I deploy e web app.Is there a 
  way to force precompilation of these files as soon as the web app is 
  deployed 
  ?Thanks,ionel-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-05 Thread message message

I have one on my desk, and have perused the Amazon comments.
The comments on Amazon.com are only worth reading when
it is not public knowledge.
For instance if you go http://www.middleware-company.com for 
recommendations,
The comments you find there are written by vendors posing as independent 
developers.

From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, 
Weblogic)
Date: Mon, 4 Aug 2003 10:44:57 -0700

I think Linus' requirements are wrong.
Books on J2EE patterns in general, and "Core J2EE Patterns" in particular,
are not worth reading.
Change the requirement to books that provide useful patterns for J2EE
applications, and you get the answer you want, which is Fowler's "Patterns
of Enterprise Application Archectecture".
"Unit testing in Java" sounds interesting.

I too am in search of a WebLogic book.
I have one on my desk, and have perused the Amazon comments.
I plan to visit a bookshop later this week and buy one.
I will try to post a review view once I have read one.
Brendan



-Original Message-
From: Laurent PETIT [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 4:06 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB,
Weblogic)
Hello,

I'm looking for a good book related to the "Test first driven development"
area.
I browsed the amazon customer reviews for the classical books on the 
subject
(Kent Beck, ...) but was still afraid of something : are this book really
connected to reality when you have to deal with "real" projects (what I 
mean
here by real project could be : a web version of an enterprise application
to deal with its products, employees, commercials, ..., not just a project
to build an Euro converter or a bowling scorer (*), ... which does'nt 
really
speak to me and prove to me that those techniques may scale well and prove
benefits in my area of concern).

I found one book that seems REALLY interesting on the subject :
"Unit testing in Java", by Johannes Link and Peter Frohlich.
It seems to address topic as testing in web apps, with databases involved,
asynchronous processes (do you know a recent application which doesn't have
to send or receive emails in its requirements ? ...)
But there are only 3 reviews on the book, the book itself is very young
(April 2003), so I wonder if you folks in this mailing list have read it,
and maybe may give us some other point of view ??
Thanks in advance,

--
Laurent
(*) : In fact, I really enjoyed the reading of the paper on the bowling
scorer pair programming and TDD I found on the objectmentor website, but
after reading it, one question still occurs to me : well, ok, but what in
real projects, and with "real programmers" that aren't senior consultants 
of
a brilliant society ?





"Linus Nikander" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Thank you for the reply. But I'm looking for books, not online articles 
or
> documentation. I know I can probably find book recommendations at the
sites
> you point to, but I was trying to save myself the effort of searching 
for
> them and of evaluating their recommendations by posting to this group
> instead.
>
> //Linus Nikander
>
> "message message" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> >
> > J2EE PATTERNS -  www.JAVA.SUN.COM
> > Struts - struts in action.
> > JUNIT - Eclipse  - free IDE comes with documenttion on JUNIT
> /www.junit.org
> > EJB - www.JAVA.SUN.COM
> > Weblogic - Weblogic saleman.
> >
> >
> > >From: "Linus Nikander" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB,
> > >Weblogic)
> > >Date: Mon, 4 Aug 2003 11:24:17 +0200
> > >
> > >Browsing peoples comments at amazon might be rewarding, but it sure
takes
> a
> > >lot of time. I'm trying to find good (best) books for a couple of
> > >java-related areas. As most people who subscribe to this newsgroup
> probably
> > >have a bunch of books at home this should be the ideal place to ask 
for
> > >recommendations. So, what are your recommendations for good books on
> > >any/all
> > >of the following subjects:
> > >
> > >J2EE Patterns
> > >Struts
> > >JUnit (or testing in general, JUnit seems to be one of the most 
widely
> > >accepted, haven't seen a lot of books for it though)
> > >EJB (more interested in performance tuning, best practices etc, not 
EJB
> as
> > >a
> > >technology)
> > >Weblogic 7.x or 8.x (Administration, tuning, best practices for EJBs
and
> > >enterprise solutions)
> > >
> > >All recommendations appreciated.
> > >
> > >//Linus Nikander - [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PR

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

2003-08-05 Thread James Mitchell
That doesn't surprise me.

IMO, the Jakarta Struts framework has become the de facto standard for web
based application development on the J2EE platform.  With more and more
companies (and government agencies) web-enabling their applications, I think
you'll see a steady increase in traffic here.  I still cling to the hope
that by being a "Struts Evangelist" somehow I helped us (even if only a
little) get where we are today.

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.


--
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:24 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OT] - [TOPIC] - [VOTE]
>
>
>
>
> I have noticed that this list alone has more postings then the
> all the Sun mailing postings put together  ?
>
> Why do you think that is the case  ?
>
>
> >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 07:11:37 -0400
> >
> >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] -L

Re: Sessions and ActionForm

2003-08-05 Thread Nagendra Kumar O V S








  1) first make sure u have the session scope in the config file - as a 
  check
  2) what version of MSIE are u working on. the latest versions of 
  MSIE(6.0) have session handing problems.. try to reproduce this on the 
  older versions of IE
   
  --nagi
   
   
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, August 
  05, 2003 06:28:09 PM
  To: 'Struts Users Mailing 
  List'
  Subject: Sessions and 
  ActionForm
   I have a registration wizard where I have a RegForm bean 
  on the sessionscope. Now if on the second page I decide to quite and I 
  close thebrowser (MS IE), and I open a new IE browser, and I go to 
  registration,the same form is there containing all the information 
  that I entered inthe previous session. 1) Doesn't a session 
  ends (invalidates) once I close the browser?2) What is the best way to 
  handle such situation of needing theregistration form always empty? 
  The only thing that comes to my mind ison the RegAction?method=init 
  remove the RegForm from the session andrecreate a new one instead, or 
  just call reset on the one that is thereon the session context. Will 
  that work?Thanks,Erze 
  -To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



Hindi i18n Iscii Font

2003-08-05 Thread Kiran Kumar.M
Hi,
 I need some help on I18n in Hindi,I am using Struts 1.1 and need to
display fonts in hindi (we use iscii charsets which are 8 bit)...
if i give the hindi value directly in my jsp it is working fine
but it is not able to read the same from the resource file ... 

  here are the steps i followed
  first create applicationresources_hi.properties file
  entered the following
   prompt.hindi={ÉÚ®úÉ {ÉiÉÉ 

   next converted the file
   native2ascii  -encoding ISCII91  srcfile dest file  ...
   this converts the {ÉÚ®úÉ {ÉiÉÉ to {\u092b\u093e\u090d\u096f\u092b
{\u092bi\u092b\u092b 

  (locale set to hi in Action)
in my jsp file
 this does not work (nothing comes browser) when i get the value from
resource  file although there is no problem with the english fonts in the
same file 


  
 

this works (hindi font comes on browser)

   {ÉÚ®úÉ {ÉiÉÉ


Can someone please help me 

Regards,
Kiran 

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


RE: Html tag question

2003-08-05 Thread Jones, Marty B.
Sorry about the mislabeled subject line.  It should have been "logic tag
question" :)

-Original Message-
From: Jones, Marty B. 
Sent: Tuesday, August 05, 2003 7:04 AM
To: [EMAIL PROTECTED]
Subject: Html tag question


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]

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



(Fwd) Re: Howto get ActionForward to calling Page?

2003-08-05 Thread asaupp
thanks for the answer, played around with that one. 

sadly i am not sure that this one satisfies my wishes, as the static field 'input' 
from the 
action defined in the struts-config.xml seems to be returned. In my example this would 
mean (checked this) that i would be able to hardcode on of the 5 input pages as 
fallback 
page, which is not what i planned to do. 

Any other ideas?

:-) Alex



--- Forwarded message follows ---
Send reply to:  "Struts Users Mailing List" <[EMAIL PROTECTED]>
From:   "Deepak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject:Re: Howto get ActionForward to calling Page?
Date sent:  Tue, 5 Aug 2003 16:31:01 +0530

[ Double-click this line for list subscription options ] 

Try 
new ActionForward(mapping.getInput())

deepak

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 4:17 PM
Subject: Howto get ActionForward to calling Page?


> Hi, 
> 
> looking for a way to get an ActionForward to the page calling the 
> current servlet. 
> 
> Example: 
> Want to realize 5-XX pages where to enter values for a 
> calculation. The calculation & result page would check if 
> everything entered was fine (using db queries etc..)
> Now in case that one of the input values is incorrect / 
> missmatching the context, I'd like to redisplay the calling page 
> to the user, showing the values entered before + an error message. 
> 
> How can i realize that without having to define specific forwards 
> to the 5 pages and then deciding which one was the calling one?
> 
> Tried the ActionMapping.getInputForward(), but it brought back 
> null values in the ActionForward only.
> 
> Comments and keywords to look for welcome.
> 
> Thanks, Alex
> 
> -
> 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]

--- End of forwarded message ---

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



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

2003-08-05 Thread James Mitchell
-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]



Garbage Collection Problem with Write Tag

2003-08-05 Thread AshokD



Hi,
 
I am using Struts framework to my application. I 
observed some of the strange things.
 
After executing a action I am displaying a set of 
records in a Grid (50 records). I tested this application by using WSAD 
Profiling.
 
In the profiling results, I seen 120 live WriteTag 
instances(which is not garbage collected), same thing I observed for Radio Tag 
also.
 
Can any one help to make these objects as garbage 
collected.
 
Pls check the attached screen shot of the 
results.
 
The filled color shows the objects which 
are not Garbage Collected.
 
Thanks & Regards,
Ashok.D
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: getting the current year

2003-08-05 Thread Paananen, Tero
> How can I get the current year in a JSP using JSTL
> or Struts, and no java code?

See 

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



How to check a default in Radio button

2003-08-05 Thread arindam . samanta

Hi,

I have a radio button group in my form as -




By default I want to select the first radio button. Since my values are
dynamic (got from database and set into the value object) ,  I cannot give
any default value in the form bean, so that by default it gets selected.

There is no checked attribute in the html:radio tag as well.  How to solve
this problem?

thanks
Arindam


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



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

2003-08-05 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)



RE: StrutsTestCase problem with setRequestPathInfo()

2003-08-05 Thread Sachin
What directory Structure you have for Test Cases and have you set /WEB-INF/
in your classpath..

and How you set these variables

-Original Message-
From: Daniel Massie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 3:17 PM
To: Struts Users Mailing List
Subject: StrutsTestCase problem with setRequestPathInfo()


I am trying to use the StrutsTestCase extension of Junit but keep getting
the following error when I try to use it, the error occurs when
actionPerform() is called. Any help would be greatly appreciated.

[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering setUp() 80
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting setUp() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setConfigFile() : pathName = /WEB-INF/struts-config.xml 90   [main] DEBUG
servletunit.struts.MockStrutsTestCase  - Entering setConfigFile() :
moduleName = null, pathname =/WEB-INF/struts-config.xml 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setConfigFile() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setConfigFile() 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setRequestPathInfo() : pathInfo = /login.do 90
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
setRequestPathInfo() : moduleName = , pathInfo = /login.do 100  [main] DEBUG
servletunit.struts.Common  - Entering stripActionPath() : path = /login.do
100
[main] DEBUG servletunit.struts.Common  - Exiting stripActionPath() -
returning path = /login 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - setRequestPathInfo() :
setting request attribute - name = not.used.at.all, value =  100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setRequestPathInfo() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
setRequestPathInfo() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
addRequestParameter() : parameterName = userName, parameterValue = admin 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Exiting
addRequestParameter() 100
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
addRequestParameter() : parameterName = password, parameterValue = password
110
[main] DEBUG servletunit.struts.MockStrutsTestCase  -
ExitingaddRequestParameter() 110
[main] DEBUG servletunit.struts.MockStrutsTestCase  - Entering
actionPerform() 110  [main] DEBUG
ervletunit.struts.MockStrutsTestCase  -Entering getActionServlet() 110
[main] DEBUG servletunit.struts.MockStrutsTestCase  - getActionServlet()
:intializing actionServlet 380
[main] ERROR org.apache.commons.digester.Digester  - Parse Fatal Error
atline 0 column 0: File "" not found. org.xml.sax.SAXParseException: File ""
not found.


-
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-05 Thread James Mitchell
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]



RE: Sessions and ActionForm

2003-08-05 Thread Erez Efrati
Thanks a lot,
Erez

-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 3:03 PM
To: Struts Users Mailing List
Subject: RE: Sessions and ActionForm

See answers below:

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 8:58 AM
To: 'Struts Users Mailing List'
Subject: Sessions and ActionForm


I have a registration wizard where I have a RegForm bean on the session
scope. Now if on the second page I decide to quite and I close the
browser (MS IE), and I open a new IE browser, and I go to registration,
the same form is there containing all the information that I entered in
the previous session. 

1) Doesn't a session ends (invalidates) once I close the browser?
No, The session will stay valid until the webcontainer
invalidates
it or you programatically invalidate it.  Most webcontainers have a
default
timeout
  value.
2) What is the best way to handle such situation of needing the
registration form always empty? The only thing that comes to my mind is
on the RegAction?method=init remove the RegForm from the session and
recreate a new one instead, or just call reset on the one that is there
on the session context. Will that work?

I think that your action will know when you are coming into the
registration view for the first time so you can reset your actionform or
re-create one.

Thanks,
Erze 



-
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] Retrieve all messages ever sent to this list

2003-08-05 Thread cmagno
Go to www.mail-archive.com and search by Struts-user

Carlos Magno
[EMAIL PROTECTED]
www.neki-technologies.com.br
from Brazil !


- Original Message -
From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailinglist" <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 12:00 PM
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]



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



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

2003-08-05 Thread Cameron Hickey
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 such diagram
>>exist? And if yes, are there tools to generate it?
>>
>>By the way, if there's nothing standard, then I would certainly
>>appreciate any individual experiences.
>>
>>Thanks,
>>Tarek M. Nabil
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>_
>Protect your PC - get McAfee.com VirusScan Online 
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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



[OT] Retrieve all messages ever sent to this list

2003-08-05 Thread Filip Polsakiewicz
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: Location of JSPs for TILES

2003-08-05 Thread Holman, Cal
There are no limits that I know of - remember relative URLs are built from the initial 
template's location.  Sometimes that can mess you up if you have several folders.  
Using the base tag can help.  

Cal 

http://www.calandva.com/Last update 08/01/03

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:23
To: [EMAIL PROTECTED]
Subject: Location of JSPs for TILES

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]

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



RE: force precompilation of JSPs

2003-08-05 Thread Amit Kirdatt
Different servlet containers have different ways of doing it, but the
following method is part of the spec:

http:///MyPage.jsp?jsp_precompile

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 10:53 AM
To: 'Struts Users Mailing List'
Subject: RE: force precompilation of JSPs


Yes.

:-)


-Original Message-
From: Ionel Gardais [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:48 AM
To: Struts Users Mailing List
Subject: force precompilation of JSPs


Hi,

I am experiencing a slow down when I access a JSP page for the first 
time after I deploy e web app.
Is there a way to force precompilation of these files as soon as the web 
app is deployed ?

Thanks,
ionel


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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



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

2003-08-05 Thread Kwok Peng Tuck
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]


Application Design Document

2003-08-05 Thread Tarek M. Nabil
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 such diagram exist? And if yes, are 
there tools to generate it?

By the way, if there's nothing standard, then I would certainly appreciate any 
individual experiences.

Thanks,
Tarek M. Nabil

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



Re: Html tag question

2003-08-05 Thread Nagendra Kumar O V S








  
   []-- 
  nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Tuesday, August 
  05, 2003 05:34:45 PM
  To: [EMAIL PROTECTED]
  Subject: Html tag 
  question
   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 nameMy question is how can I 
  build a logic:iterate tag to iterate over the arrayof project 
  objects.?Here is what I have so farindexId="index"> [name="index"/>]The 
  one thing that I don't know how to do is to write the name and 
  theproject id out for each iteration. ]Can anyone shed any 
  light on this?Marty B. 
  JonesSenior Software 
  EngineerDailyAccess.Com-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: accessing Attribute of a parent-tile-definition

2003-08-05 Thread Holman, Cal
I sent a reply on this technique yesterday - or the day before.  Define the attribute 
at the top of the base template in request scope.  Then you can access in other jsps.



Cal

-Original Message-
From: Reinhard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 03:32
To: 'Struts Users Mailing List'
Subject: accessing Attribute of a parent-tile-definition

Hi all,

I read many tiles-postings in the archive, but I didn't find a solution for my
case. Does any of you have an idea?

I have a base tiles definition with some attributes and some other definition
extending that base-definition.









How can I access the value of "attrib.01" in the file body.jsp?
No prob to access it in main.jsp, but I have no idea about accessing the
attribute from body.jsp. I tried  and 
and , but no way.

Any answer is appreciated.

kind regards

Reinhard

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

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



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

2003-08-05 Thread Frederic Dreier
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]



RE: current year in JSP

2003-08-05 Thread Bailey, Shane C.


The problem is that something like that (determining current date) should be
done somewhere else besides the JSP if you want scriptlets totally out of
your JSP.

But if you don't want to do it somewhere else then the single expression
scriptlets aren't too bad to have in your JSP:


<%=(new
java.util.GregorianCalendar()).get(java.util.Calendar.YEAR)%>


This is untested code but it should work (or a variation).



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:54 PM
To: 'Struts Users Mailing List'
Subject: current year in JSP


I have a scriptlet in my JSP which I wish to rewrite using JSTL and tags
and to get rid of the java code. How can I perform this?  

<%
for (int i = 30; i < 90; i++) {
%>
<%=2003-i%>
<%
}
%>


I wish to do something like:





How to compute the CurrentYear?

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]



RE: Delete Validation -- with Vector displayed

2003-08-05 Thread Alawadhi, Mona
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]



Bean tag lib help

2003-08-05 Thread Vance Heredia

Hello,

I got a question.  My struts-bean tag doesnot seem to work correctly.

Everytime I use the Bean tag

Eg  

I get a 

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);
  

Doea anyone have any ideas how to fix it 


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.