Bean tag lib help

2003-08-06 Thread Vance Heredia

Hello,

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

Everytime I use the Bean tag

Eg  bean:define id=processName name=filesForm property=processName/

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.


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

2003-08-06 Thread Kwok Peng Tuck
http://jakarta.apache.org

Check out the link about mailling list.

[EMAIL PROTECTED] wrote:

Hi

What should I do.

I would like to subscribe to struts mailing list.



-- Forwarded by Thaung Sein/CO/HIC on 06/08/2003 16:46
---
Kwok Peng Tuck [EMAIL PROTECTED] on 06/08/2003 15:56:39

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
To:Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Re: Application Design Document -- Struts Studio - Independent
  opinion
Thaung is something wrong with your emails ? I only see your disclaimer.

[EMAIL PROTECTED] wrote:

 


NOTICE - This message is intended only for the use of the
addressee named above and may contain privileged and
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not
disseminate, copy or take any action based upon it.  If you
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.

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









NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.


-
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-06 Thread Alen Ribic
If you are using Tomcat.
%TOMCAT_HOME%/bin/jspc can do this.
read your Tomcat documentation for instructions.

For other look at vendor specific documentation for clues.

--Alen


- Original Message - 
From: Ionel Gardais [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 8:48 AM
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]



OT Friday: Play build

2003-08-06 Thread Vic Cekvenich
http://sourceforge.net/project/showfiles.php?group_id=55539release_id=176296

This is a struts.jar build, using a nightly build source, targeted at 
JDK1.4 (j:Rockit RT.jar; not JDK 1.3) and Servlet 2.4 (Tomcat 5, not 
Servelt 2.2) w/ late antlr.jar and minor touch ups.

To play, I removed struts.jar in basicPortal, and replaced with the new 
jar... everything worked.
Why I did this... Iduno.

Note: I would not use this in production.
Late build/release of bP and Jasic use the old Struts 1.1 jar (1.3 jdk, 
2.2 servlet)

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced a href =baseBeans.comStruts Training/a, mentoring and 
project recovery in North East.
Open Source a href =baseBeans.comPortal Content Management/a 
basicPortal  software.



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


RE: Hindi i18n Iscii Font

2003-08-06 Thread Rupinder Singh Mazara
Try looking at icu4j it's a Open Source by IBM

 http://oss.software.ibm.com/icu4j/

they have a cool api for doing internationalisation to any character set





Rupinder

-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: 05 August 2003 22:34
To: Struts Users Mailing List
Subject: Re: Hindi i18n Iscii Font

Hi Kiran,

You need to set the character encoding for the JSP page/response.  Java
still thinks the response should be in the default encoding which is
ISO-8859-4 (I think that is the Latin character set).

I use UTF-8 encoding so that I can mix languages eg
English/Japanese/French without having to worry about setting the
correct page encoding for each page.

So I do the same thing for the properties files eg

 native2ascii -encoding UTF-8 etc etc

But at the top of each of my JSP pages I have this:

 %@ page contentType=text/html; charset=UTF-8%

In your case you probably have to change that to charset=ISCII91 if use
that encoding.

You can put this in your base action so you don't have to include in
every page eg response.setContentType(text/html; charset=UTF-8).

[Note: JSP Precompilation:
The only problem I had with setting the content type in the action was
when precompiling JSP pages.  If there this line
 %@ page contentType=text/html; charset=UTF-8%
isn't in the JSP page or page fragment then Jasper would use the default
encoding instead of UTF-8.]

You will also need to set the character encoding on any request that
submits data otherwise it will also be interpretted as ISO-8859-4.  I
use a filter an all request that just does this:

 request.setCharacterEncoding(UTF-8);

(again change this to your character encoding ISCII91)

This can't be done in an action because form beans are populated before
they are given to the action.  So you have a choice of using a filter,
or overriding the RequestProcessor to do this.

Hope this helps.

--jason


Kiran Kumar.M wrote:
 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={ÉÚ(r)úÉ {ÉiÉÉ
next converted the file
native2ascii  -encoding ISCII91  srcfile dest file  ...
this converts the {ÉÚ(r)úÉ {É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
 FONT SIZE=24 face=Somefont_installed_in_my_system
   bean:message key=prompt.hindi /
 /font
 this works (hindi font comes on browser)
 FONT SIZE=24 face=Somefont_installed_in_my_system
{ÉÚ(r)úÉ {ÉiÉÉ
/font
 Can someone please help me

 Regards,
 Kiran
 -
 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: DynaActionForm BUG?

2003-08-06 Thread Adam Hardy
Hi Amin,
what do you mean by a multibox or set of checkboxes? I am not familiar 
with the terminology. I presume you have a set of checkboxes for a range 
of dates.

Adam

[EMAIL PROTECTED] wrote:
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]



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


RE: Best place to hook the Security Call

2003-08-06 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 AA (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 a href =baseBeans.comStruts Training/a, mentoring and
project recovery in North East.
Open Source a href =baseBeans.comPortal Content Management/a
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]



Re: Still struggeling: howto get ActionForward to calling page

2003-08-06 Thread Adam Hardy
The input attribute on the action mapping is what you specify for the 
return page when validation of the form bean fails, so that is not going 
to help you.

The easiest solution I can think of is to put a hidden field in your 
selection screens with the screen's URL in it.

Alternatively you could try using the HTTP header referer e.g.:

Referer: http://www.w3.org/hypertext/DataSources/Overview.html

but this is an optional header so not all browsers have to send it. I've 
never used it so I don't know which browsers do send it.

hth
Adam
[EMAIL PROTECTED] wrote:
Hi, 

i am still looking for a clean way to get an ActionForward to the page that called my 
current Action. That means e.g. I am a displayListAction and have been called by a 
selection screen. In case i don't find a result for the selection parameters I would like to 
bring a specific error to the calling selection screen. That would give users a chance to 
change their selection. 

Sounding easy, this gets complicate in case there are several selection screens 
bringing up the same list. I don't like to create a specific forward for each selection page 
and then somehow determine which one called me (can do that, but there should be a 
nice way in such a famous framework?). 

The hint using 
	ActionMapping.getInputForward()
	or new ActionForward(mapping.getInput())
didn't help me to much, seems to me there is hardcoded value inside, specified in the 
input attribute of the specific action.

How would an expert solve that problem?

 :-) Alex




Looking for a way to get an ActionForward to the page calling the 
current page. 

The example: 
Want to realize 5-XX pages where to enter values for a 
calculation. The calculation  result page would check if 
everything 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 
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.


-
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: RE: Location of JSPs for TILES

2003-08-06 Thread David G. Friedman
Cameron,

I'm VERY new to struts but I had no problem setting up and using tiles.  Here are some 
of my tiles definitions which I'm using without any problems. Perhaps my definition 
can show you something you might be overlooking...  BTW, I'm on Tomcat 4.1.24 on a 
Linux platform using JDK 1.4.2 on Struts 1.1.

I use it through my action's success forward:
forward name=success path=.region /

Regards,
David

-- start tiles snippets ---
tiles-definitions
definition name=.layoutHawaiiSite path=/WEB-INF/layouts/hawaiifun.jsp
  put name=title  value=HawaiiSite /
  put name=header-logo value=/WEB-INF/layouts/header-logo.jsp /
  put name=header-map value=/WEB-INF/layouts/header-map.jsp /
  put name=navigation-left value=/WEB-INF/layouts/navigation-left.jsp /
  put name=center-content value=/WEB-INF/layouts/empty.jsp /
/definition

definition name=.region extends=.layoutHawaiiSite
  put name=center-content value=/WEB-INF/layouts/region.jsp/
/definition
-- end tiles snippets ---

---Original Message---
From: Cameron Hickey [EMAIL PROTECTED]
Sent: 08/05/03 05:02 PM
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Location of JSPs for TILES

 
 Is there anyone who knows the rules for using TILES?

I moved the files from /WEB-INF/jsp/proptype to /WEB-INF/tiles/proptype
but this does not solve the problem.

Must all files for a given Tiles definition be located in the same
folder?  I am extending one layout where the base file is located in
/WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype

Should this be causing any problems?  Are there an FAQs or other
resources besides the Javadocs for Tiles where I might be able to learn
of its limitations?  Is there something wrong with my design pattern
which others are not employing, which is why my problem seems so
isolated?

Thanks for any more help

Cameron

-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:38 PM
To: Struts Users Mailing List
Subject: RE: Location of JSPs for TILES

I am not sure about Tomcat.  I just know that most jsp containers
compile
the source jsp files to servlets within the /WEB-INF/jsp folder so it
probably isnt the best place to put your source files.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Location of JSPs for TILES


Thanks for the response Marty,

I am using Tomcat 4.1.24, and have no problem generally putting these
files into the /jsp folder, its only when I put them into the /jsp/prop
folder that there are problems.

Where can I find out what the rules are for folders to hold JSPs for
either struts, or tiles?  Does Tomcat implement this reserved folder
concept for WEB-INF/jsp ?

Thanks
 
Cameron


-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 7:25 PM
To: Struts Users Mailing List
Subject: RE: Location of JSPs for TILES

I think that the /jsp folder that you are specifying is a reserved
folder
for some jsp containers.  We use /WEB-INF/pages/...

Hope this helps.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:23 AM
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

  definition name=PropertyType.list extends=.list
put name=title  value=List of Property Types /
put name=body   value=/WEB-INF/jsp/proptypelist.jsp /
  /definition

Then everything works fine.

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

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

with def:

definition name=PropertyType.list extends=.list
put name=title  value=List of Property Types /
put name=body   value=/WEB-INF/jsp/prop/proptypelist.jsp /
/definition

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]

-
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: transaction tokens

2003-08-06 Thread Andrew Hill
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. :-(

 btw
 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...)
 /btw

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]



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

2003-08-06 Thread Hue Holleran
Hi Richard,

Please see below...

 -Original Message-
 From: Richard Tomlinson [mailto:[EMAIL PROTECTED]
 Sent: 06 August 2003 10:58
 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 don't think so - and I hope not!


 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 tiles:put ... 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?

Tiles works very effectively for us with the logic:equal ...  and such
tags to conditionally include a tiles:insert ...  - we use it extensively
and it is very effective. As another poster mentioned - if you need
additional capabilities then consider utilising a specific controller. We
have been able to achieve what we need just using the aforementioned
technique.

Alternatively when the page gets too large - we tend to split to include
only one portion that then has additional logic as to whether to include
additional portions by selectively including other tiles. Performance does
seem to suffer a little (or it may just be it's a complex page) - hence our
intention to utilise OSCache at various points to avoid re-rendering
essentially static data.

It may also be that we are not using any tiles-aware IDE - but hopefully any
IDE should be aware of logic:... and JSTL so why is this a problem?


 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.


I'm not sure I fully understand the question but I presume you're talking
about caching static or semi-static portions. We are just starting to use
OSCache cache for this - there was a post to the list recently that may
discuss this in more detail. Sorry if I haven't understood correctly what
you mean.

Here's the thread:
http://marc.theaimsgroup.com/?l=struts-userm=106002680511323w=2
Here's the link to OSCache: http://www.opensymphony.com/oscache

 Comments and suggestions, please.

 Regards
 Richard Tomlinson

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


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003


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



Re: Simple (?) display problem

2003-08-06 Thread Riaan Oberholzer
I think you should use the struts-bean library for
this:

bean:write name=creditcardDepositForm
property=amountTransferred /

I'm not 100% sure what the scope should be and if you
can use the defaultbut try this.

On that note, how can I format dates to a custom
setting in struts 1.02 using the bean tags? 

I very much like the jstl fmt tag. Does struts have
something similar?




--- Linus Nikander [EMAIL PROTECTED] wrote:
 I've build a wizard-style application which gathers
 the information I want
 from the client. The wizard goes through two
 information-collecting steps
 and validates the input. So far no problem.
 What i've been trying to achive the past day is to
 display a last
 summary-page where the information from the form is
 displayed as text-only.
 Somehow I just can't seem to succeed with this
 simple task.
 
 as a last step in the wizard my struts-config.xml
 forwards to :
 
 forward name=success
 path=/payment/DepositSuccess.jsp/
 
 This is the page I want to display the Form
 properties previously entered. I
 know the values are in the request because I can
 output them using
 
 html:form action=/myDeposit
 html:select property=amountTransferred
 /html:form
 
 But that displays the value in a form-filed, I want
 it written out in plain
 text (no further reuse of the value is needed, this
 is the last step in the
 wizard). How do I achieve this ? The name of the
 Form is
 CreditcardDepositForm if that is needed in some way.
 
 //Linus Nikander -  [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: Application Design Document -- Struts Studio - Independent opinion

2003-08-06 Thread message message


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


-

Re: Still struggeling: howto get ActionForward to calling page

2003-08-06 Thread Adam Hardy
Elementary perhaps, but I have never had to do that in 5 years of web 
development. Could it be that your 'selection screens' might be overly 
complicated? Why do you need parameters?

[EMAIL PROTECTED] wrote:
yeap, that's something in a way i thought of as 'dirty fix' for a framework. As i am 
looking into struts for 2-3 days only i am surprised to find such an elementary 
functionallity not implemented? Should be interessting for plenty of people having more 
than 2-3 pages nested in not linear way?

Alex

Send reply to:  Struts Users Mailing List [EMAIL PROTECTED]
Date sent:  Wed, 06 Aug 2003 10:50:00 +0200
From:   Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject:Re: Still struggeling: howto get ActionForward to calling page
[ Double-click this line for list subscription options ] 

The input attribute on the action mapping is what you specify for the 
return page when validation of the form bean fails, so that is not going 
to help you.

The easiest solution I can think of is to put a hidden field in your 
selection screens with the screen's URL in it.

Alternatively you could try using the HTTP header referer e.g.:

Referer: http://www.w3.org/hypertext/DataSources/Overview.html

but this is an optional header so not all browsers have to send it. I've 
never used it so I don't know which browsers do send it.

hth
Adam
[EMAIL PROTECTED] wrote:

Hi, 

i am still looking for a clean way to get an ActionForward to the page that called my 
current Action. That means e.g. I am a displayListAction and have been called by a 
selection screen. In case i don't find a result for the selection parameters I would like to 
bring a specific error to the calling selection screen. That would give users a chance to 
change their selection. 

Sounding easy, this gets complicate in case there are several selection screens 
bringing up the same list. I don't like to create a specific forward for each selection page 
and then somehow determine which one called me (can do that, but there should be a 
nice way in such a famous framework?). 

The hint using 
	ActionMapping.getInputForward()
	or new ActionForward(mapping.getInput())
didn't help me to much, seems to me there is hardcoded value inside, specified in the 
input attribute of the specific action.

How would an expert solve that problem?

:-) Alex





Looking for a way to get an ActionForward to the page calling the 
current page. 

The example: 
Want to realize 5-XX pages where to enter values for a 
calculation. The calculation  result page would check if 
everything 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 
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.


-
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: Using Struts Validator on Map-backed ActionForms

2003-08-06 Thread Erez Efrati
Hi Panchasheel,

I am working with map backed action forms and the way to work with
validation in this case is as follows (a piece of my validation.xml):

(on my ActionForm there are getProperty and setProperty interfacing the
actual map - as in your case I guess it is 'getVolume() and
setVolume()).


!-- username --
field  property=property(user-username)
depends=required, mask
msg name=mask
key=logon.username.maskMsg/
arg0 key=logon.username/
var

var-namemask/var-name

var-value${username}/var-value
/var
/field

Hope this helps,
Erez


-Original Message-
From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 4:48 AM
To: 'Struts Users Mailing List'
Subject: RE: Using Struts Validator on Map-backed ActionForms

Has anybody come up with any validations for map-backed fields

field property=???
   depends=required
   arg0 key=/
/field

what should go in ???
for 
% for (int i=0;i5;i++;) { %
html:text property=volume(key%=i%) value=/
% } %

Thanks
Panchasheel


-Original Message-
From: Cordingley, Charles [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 1:24 PM
To: '[EMAIL PROTECTED]'
Subject: Using Struts Validator on Map-backed ActionForms


Hi,

I am trying to use the Struts Validator to generate Javascript
validation on
a Map-backed action form, but I keep getting type is null or not an
object
javascript error (I am using Struts 1.1). Non map-backed properties on
the
form work fine.

In the JSP I am creating text boxes using:

html:text style=WIDTH: 75px; text-align: right
property='%=volume(+act.getActivityID()+)%'
value='%=+scenAct.getActivityVolume()%'/

and have this method on the action form to get it:

public void setVolume(String key, Object value) {
   volumes.put(key, value);
}

In the validation.xml I have tried:

field property=volume()
   depends=required
   arg0 key=/
/field

and:

field property=volume()
   depends=required
   arg0 key=/
/field

but both result in the error.

Does anyone know how to do this?

Thanks,
Charles.



The Royal Bank of Scotland plc ('the Bank') is regulated by the
Financial 
Services Authority and is a member of The Royal Bank of Scotland
Marketing
Group.  The only packaged products (life policies, unit trusts and other
collective investment schemes and stakeholder and other pensions) the
Bank
advises on and sells are those of the Marketing Group, whose other
members
are Royal Scottish Assurance plc and Royal Bank of Scotland Unit Trust
Management Limited, both regulated by the Financial Services Authority.

The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 

Agency agreements exist between members of The Royal Bank of Scotland
Group.

This e-mail message is confidential and for use by the addressee only.
If
the message is received by anyone other than the addressee, please
return
the message to the sender by replying to it and then delete the message
from
your computer. Internet e-mails are not necessarily secure. The Royal
Bank
of Scotland plc does not accept responsibility for changes made to this
message after it was sent. 

Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward
transmission, opening or use of this message and any attachments will
not
adversely affect its systems or data. No responsibility is accepted by
The
Royal Bank of Scotland plc in this regard and the recipient should carry
out
such virus and other checks as it considers appropriate.


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



Dispatch Action with Validator

2003-08-06 Thread Nimish Chourey , Tidel Park - Chennai
Hi all,
I am using DispatchActionClass with DynaValidator form . 
I have two mehods in the DispatchActionClass  , one is retrieve and other is
update . 

The problem is when I set the Validations for the form , the Validaor
validates the form before calling both the methods .. 
In retrieve method  the form is empty , hence the processing doent continue
. 
Can set the Validations according to DispachAction methods ..
I want the vaidator to work only if the update method is called ..
Is that possible ??

Nimish



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

2003-08-06 Thread Sergey Smirnov
 Port programming is beyond the intellect of Struts Studio staff.

What is your criteria of intellect? Is it ability to use anonymous account
and anonymous name for all your posts?
Your messages boil with anger. They do not look like Independent Opinion
you mentioned in the Subject. I never meet guy who were so angry running
freeware application on independent base :-)

P.S. your words about port programming and cheating were funny.


 It takes more than putting a swing GUI  on Free Ware to build an IDE.


 It sounds like a clue. Somebody really dislikes that Exadel Struts Studio
Community Edition is a freeware.







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



Re: [OFF TOPIC] JavaScript + select tag question

2003-08-06 Thread Adam Hardy
I believe that document.forms[0].elements[anySelectbox].value will be 
invalid. .value only works on non-select form-elements. AFAIK without 
testing it now.

Mark Galbreath wrote:
If you read the API you will see that JavaScript functions are built into
the Struts html:select tag:
http://jakarta.apache.org/struts/userGuide/struts-html.html#select

so you have several event handlers to use for transferring control.  E.g.,
html:select property=myBean  onClick=myFunction( 'myBean'
)//html:select
script type=text/javascript
  function myFunction( docObject ) {
var string = document.forms[ 0 ].elements[ ' + docObject + '
].value;
var selected = string;
location = /search.do?action= + docObject + selectedItem= + string;
  }
/script
And map an action path for search.do in your struts-config.xml file.

Mark

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

I would like to do the following :

I have a form with different fields and drop down boxes
When A drop down box is selectd I would like to do a submit that looks more
or less like this :
submit=/search.do?action=dropdownbox1selectedItem=item



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



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


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

2003-08-06 Thread Chen, Gin
Send an email to [EMAIL PROTECTED] (it'll auto reply).
There's a way to request messages. You can use that.

BTW, the full archives for this list is HUGE. It might make more sense to
just browse it online.
http://marc.theaimsgroup.com/?l=struts-userr=1w=2

-Tim

-Original Message-
From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:01 AM
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: A Relevant Observation

2003-08-06 Thread rajendra . x . yadav

Can you give the URL ?

thanks
-raj



   

  Mark Galbreath 

  [EMAIL PROTECTED]To:   'Struts Users Mailing 
List' [EMAIL PROTECTED], 'Rich'  
  at.com   [EMAIL PROTECTED], 'Antoine 
Chahine' [EMAIL PROTECTED]  
   cc: 

  06/08/2003 07:13 Subject:  A Relevant Observation

  PM   

  Please respond to

  Struts Users

  Mailing List

   

   





Check out the June issue of Java Developer's Journal (vol. 8, issue 6),
page 8.  I agree 100 percent with Joseph Ottinger.  Things have gotten
entirely out of hand.

http://sys-con.com/java/ - content:editorial - vol. 8, issue 6


Mark



-
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-06 Thread Riaan Oberholzer
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:

 fmt:formatDate value=${yourDate}
 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 bean:write 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 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]
  
 
 -- 
 COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
 --
 1. GMX TopMail - Platz 1 und Testsieger!
 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de -
 7. daybyday - 8. e-Post
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder 

Re: RE: Actions Best Practice

2003-08-06 Thread David G. Friedman
 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  html:link page=/InitForgotPassword.do?action=init 
 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.. 

Why not use the Struts Validator, set the validations to use page=1 (or page=2), and 
just set page=1 (or page=2) in the JSP automatically when the page gets displayed?  
Then, the first time you go to it, nothing needs to be validated.  When you hit 
submit, the validations occur for that page, or further pages, if you have more in the 
sequence/step/function/route/click.

Regards,
David

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



RE: [Q] Struts and date formatters

2003-08-06 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:
 
  fmt:formatDate value=${yourDate}
  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 bean:write 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 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]
   
  
  -- 
  COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
  --
  1. GMX TopMail - Platz 1 und Testsieger!
  2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
  3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de -
  7. daybyday - 8. e-Post
  
  
 
 

RE: Application Design Document

2003-08-06 Thread Syed, Nazeer
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]



RE: A Relevant Observation

2003-08-06 Thread Mark Galbreath
I did - look below at my msg...but for the benefit of the Europeans, I
posted the article to this list.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 9:47 AM
To: Struts Users Mailing List
Subject: Re: A Relevant Observation



Can you give the URL ?

thanks
-raj



 

  Mark Galbreath

  [EMAIL PROTECTED]To:   'Struts Users
Mailing List' [EMAIL PROTECTED], 'Rich'  
  at.com   [EMAIL PROTECTED],
'Antoine Chahine' [EMAIL PROTECTED]  
   cc:

  06/08/2003 07:13 Subject:  A Relevant
Observation
  PM

  Please respond to

  Struts Users

  Mailing List

 

 





Check out the June issue of Java Developer's Journal (vol. 8, issue 6),
page 8.  I agree 100 percent with Joseph Ottinger.  Things have gotten
entirely out of hand.

http://sys-con.com/java/ - content:editorial - vol. 8, issue 6


Mark



-
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 Action in Welcome File List

2003-08-06 Thread Mohan Radhakrishnan

  But you can redirect using logic redirect tag ?

Mohan

-Original Message-
From: Suzette Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 8:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Action in Welcome File List


Nope this is not supported, the web.xml must map to a file.


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:51 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Action in Welcome File List






Can't you just do this:

welcome-file-list
 welcome-file/PMTAction.do/welcome-file
/welcome-file-list

I do it with JRun4.  Not sure if all containers will do an action instead of
a JSP.





-Original Message-
From: Jon Wynacht [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 12:41 AM
To: Struts Users Mailing List
Subject: Re: Struts Action in Welcome File List

Hmmm...tried that but still blanks out after a while...I'm wondering if
there's an issue with my use of sessions...would that come into play
here?

Jon

On Tuesday, July 29, 2003, at 06:56  PM, John Cavacas wrote:

 Try,

 logic:redirect forward=HOME/

 In your index.jsp page. Also, look at sruts-blank.war example
 application
 for an easy to understand example of this.

 John

 -Original Message-
 From: Jon Wynacht [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 29, 2003 9:41 PM
 To: [EMAIL PROTECTED]
 Subject: Struts Action in Welcome File List

 Hi,

 I've been using Struts now for some time and enjoy it immensely!
 However, I've recently run into a problem that has me perplexed.
 Usually I can figure these things out and not bother the mail lists
 but this one requires your help ;-)

 I've pulled some info from the Programming Jakarta Struts book by
 Chuck Cavaness on how to use a Struts action in the welcome file list
 of a web.xml file.

 Based on the instructions in the book I have the following welcome
 file
 entry in my web.xml:

 welcome-file-list
   welcome-fileindex.jsp/welcome-file
   /welcome-file-list

 and the following code in my index.jsp:

 %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

 html
body
  logic:forward name=HOME/
/body
 /html

 and the following entry in my struts-config.xml file:

 global-forwards forward name=HOME path=PMTAction.do
 redirect=false //global-forwards

 So, when I first fire up Tomcat everything forwards fine but after a
 while, if I hit the following URL:

 http://localhost:8080/pmt/index.jsp

 I get a blank page. No forwarding. Nothing. I've tried every combo
 possible here, including using logic:redirect/ but eventually it
 stops forwarding.

 Am I doing something subtly wrong or drastically wrong here?

 Thanks in advance,

 Jon


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



 This communication is intended for the use of the individual(s) or
 entity it
 was addressed to and may contain confidential and/or privileged
 information.
 If the reader of this transmission is not the intended recipient, you
 are
 hereby notified that any review, dissemination, distribution or
 copying of
 this communication is prohibited.  If you receive this communication in
 error, please notify the sender immediately and delete this
 communication
 from your system(s) to which it was sent and/or replicated to. (c) 2003
 Sapiens Americas Corp.

 -
 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: uploadfile path

2003-08-06 Thread Daniel Massie
thats exactly what has happened to me, and if i cant cast to DiskFile there
isn't much information i can retrieve

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 16:41
To: 'Struts Users Mailing List'
Subject: RE: uploadfile path


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:
controller
processorClass=com.abnamro.waf.struts.WAFRequestProcessor
tempDir=/upload maxFileSize=10K
multipartClass=org.apache.struts.upload.DiskMultipartRequestHandler
set-property property=inputForward value=true/
/controller

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


  html:form method=POST
 enctype=multipart/form-data
  html:file property=theFile /
  /html:form
 
  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]



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



RE: [Q] Struts and date formatters

2003-08-06 Thread Alex Shneyderman
Use JSTL's formatDate tag. Very easy to use and lets you format your
date any way you want it. Example:

fmt:formatDate value=${yourDate} 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 bean:write 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]



Re: uploadfile path

2003-08-06 Thread Dan Tran
as I have said, you need to do extra work to save your upload data to your
designated server file.

Here is an example

   ImportForm theForm = (ImportForm) form;

   FormFile file = theForm.getTheFile();
   String fileName= file.getFileName();
   String encoding = theForm.getEncoding();
   String separator  = theForm.getSeparator();
   String memberType = theForm.getMemberType();

   InputStream inputStream = file.getInputStream();
   Charset charset = Charset.forName(encoding);
   BufferedReader reader = new BufferedReader( new
InputStreamReader(inputStream, charset) );

  // do your save here

-D

- Original Message - 
From: Daniel Massie [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 8:57 AM
Subject: RE: uploadfile path


 thats exactly what has happened to me, and if i cant cast to DiskFile
there
 isn't much information i can retrieve

 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: 06 August 2003 16:41
 To: 'Struts Users Mailing List'
 Subject: RE: uploadfile path


 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:
 controller
 processorClass=com.abnamro.waf.struts.WAFRequestProcessor
 tempDir=/upload maxFileSize=10K
 multipartClass=org.apache.struts.upload.DiskMultipartRequestHandler
 set-property property=inputForward value=true/
 /controller

 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
 
 
   html:form method=POST
  enctype=multipart/form-data
   html:file property=theFile /
   /html:form
  
   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]



 -
 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-06 Thread Thaung . Sein



NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.



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



How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
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]



[OFF TOPIC] JavaScript + select tag question

2003-08-06 Thread Todor Sergueev Petkov
I am not very profficient in JavaScript so any help would be appreciated
:

I would like to do the following :

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

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

I would like to do this because I need the action parameter for my
DispatchAction class and the selectedItem obviously to know what the
selection is.
Is there a way to perform this inside a struts select tags event useing
JavaScriptIf so can you give me an example ( short code snippet
maybe ).

Thanks,
Todor

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



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

2003-08-06 Thread Sergey Smirnov
http://www.StrutsStudio.com

Mounagurusamy, Jayakumar (HAL) [EMAIL PROTECTED] wrote
in message
news:[EMAIL PROTECTED]
...
 Any one can provide the url that I can download this struts studio?
 Jay






-
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-06 Thread David Graham
--- Richard Tomlinson [EMAIL PROTECTED] wrote:
  2. Is tiles considered a deprecated technique?

No, Tiles has replaced the old Struts templates taglib.  I use Tiles in my
apps and it works fine for my uses.  Cedric is really the only Struts
committer that knows enough about Tiles to make any substantial changes
(because he initially wrote it).  I have made bugfixes and improvements
but they have been rather small changes.  I haven't seen much development
activity on Tiles recently but that certainly doesn't mean it's
deprecated.

David

 
 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 tiles:put ... 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]
 


__
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-06 Thread Mohan Radhakrishnan

I have to agree with that. Here in our part of the world ( India and
Singapore(hearsay) ) there is a groundswell of Struts popularity. I myself
introduced it in two companies. Though initially there was a slight murmur
from the management about the learning curve, it gradually picked up. I am
using Struts with OC4J.


Mohan




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


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
   

[OT] ServletResponse question

2003-08-06 Thread Andy Kriger
I would like to call a JSP (using jsp:include) passing it some parameters,
have that included JSP do its dynamic stuff, and then get the response as a
String or byte[] so that I can do some further manipulation with the
resulting HTML.

Is there any way to get a String or byte[] from a response.getWriter() or
response.getOutputStream()?

If not, does anyone have any suggestions on how I can accomplish my goal?

thx
andy


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



validating a html:select box

2003-08-06 Thread Erez Efrati
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:

html:select property=birthMonth

html:option value=-1
bean:message key=date.month/
/html:option

c:forEach begin=1 end=12 var=m
html-el:option value='${m}'
c:out value='${m}' /
/html-el:option
/c:forEach
/html:select


Thanks a lot,
Erez



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



Re: Actions Best Practice

2003-08-06 Thread Adam Hardy
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]


RE: Newbie problem with bean:define ...

2003-08-06 Thread Rupinder Singh Mazara
Thanks but read this already  

And No its not  a TEST Question , just trying to see if bean:define ... 
Is can be used like jsp:useBean ... 


Regards 

Rupinder 
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: 05 August 2003 15:31
To: Struts Users Mailing List
Subject: Re: Newbie problem with bean:define ...

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

 bean:define  name=appContext scope=session type=logic.AppContext
 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]


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



RE: RE: validating a html:select box

2003-08-06 Thread Erez Efrati
For some reason, the javascript for intRange is not working if the
property is a selection html:select. I looked in the javascript code
(I am new to that still) but I saw that it only checks for the range if
the field is a text or textarea. Is this true? How can I perform the
client validation for selection boxes? Change the javascript?

Erez

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

Erez,

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

msg
name=intRange
key=month.invalid/

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:

field
property=integer
depends=required,integer,intRange
arg0 key=typeForm.integer.displayname/
arg1
name=range
key=${var:min}
resource=false/
arg2
name=range
key=${var:max}
resource=false/
var
var-namemin/var-name
var-value10/var-value
/var
var
var-namemax/var-name
var-value20/var-value
/var
/field


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

html:select property=birthMonth

html:option value=-1
bean:message key=date.month/
/html:option

c:forEach begin=1 end=12 var=m
html-el:option value='${m}'
c:out value='${m}' /
/html-el:option
/c:forEach
/html:select


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]




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



AW: How to realize forward to the same page?

2003-08-06 Thread Dirk Behrendt
...I have tried this and now I get an internal server error
Do I have to add something to my struts-config.xml??


java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:441)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)



-Ursprüngliche Nachricht-
Von: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. August 2003 17:46
An: 'Struts Users Mailing List'
Betreff: RE: How to realize forward to the same page?


return new ActionForward(mapping.getInput()); will return you to where
you came
from.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: How to realize forward to the same page?


Hello!

I want, that the user can switch the language from a drop down menu at
runtime. When he chose a language, an action class is called and sets
the locale.

I want, that there is no forward to another page. The current page
should be maintained. When I do it without the forward tag, an empty
page came as a result. But I want the same page. 

example:
The user switches the language

before switch   after switch
/login.jsp  -- /login.jsp
/someJSP.jsp-- /someJSP.jsp

What I have to add to the struts-config.xml?

Dirk


struts-config.xml
-

actionpath=/language 
   type=sample.LanguageAction
   name=languageForm
   scope=request
   
  
/action


-
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: Still struggeling: howto get ActionForward to calling page

2003-08-06 Thread Melzer, Steven
what we have done is pass the name of the calling action as a parameter in the JSP.  
to do this we added a parameter as a hidden field.  the action mapping is in request 
scope when a JSP is rendered from a action's forward, so you can get the action 
mapping's path and put it into the JSP hidden field.  then when you submit the JSP to 
the next action asking to go back to the calling page, the next action can do 
something like:
 
return new ActionForward((String)request.getParameter(callingPage)); 

-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wed 8/6/2003 3:26 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Still struggeling: howto get ActionForward to calling page



Hi,

i am still looking for a clean way to get an ActionForward to the page that 
called my
current Action. That means e.g. I am a displayListAction and have been called 
by a
selection screen. In case i don't find a result for the selection parameters I 
would like to
bring a specific error to the calling selection screen. That would give users 
a chance to
change their selection.

Sounding easy, this gets complicate in case there are several selection screens
bringing up the same list. I don't like to create a specific forward for each 
selection page
and then somehow determine which one called me (can do that, but there should 
be a
nice way in such a famous framework?).

The hint using
ActionMapping.getInputForward()
or new ActionForward(mapping.getInput())
didn't help me to much, seems to me there is hardcoded value inside, specified 
in the
input attribute of the specific action.

How would an expert solve that problem?

 :-) Alex



Looking for a way to get an ActionForward to the page calling the
current page.

The example:
Want to realize 5-XX pages where to enter values for a
calculation. The calculation  result page would check if
everything 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
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.


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

modules, somethings missing

2003-08-06 Thread Travis Stevens
I am doing something wrong with modules, and am not quite sure what.

Basically, the rui requested is always being routed to default.  Here 
are my settings:

web.xml:
servlet
  servlet-nameNmmrActionServlet/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
  param-nameconfig/param-name
  param-value/WEB-INF/conf/nmmr-struts-config.xml/param-value
  /init-param
  init-param
  param-nameconfig/public/param-name
  param-value/WEB-INF/conf/public-struts-config.xml/param-value
  /init-param
  init-param
  param-nameconfig/private/param-name
  param-value/WEB-INF/conf/private-struts-config.xml/param-value
  /init-param
  load-on-startup2/load-on-startup
/servlet
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/nmmr/*/url-pattern
/servlet-mapping
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/public/*/url-pattern
/servlet-mapping
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/private/*/url-pattern
/servlet-mapping
When I request a url of: context/public/someAction i get this:
Thread-4 DEBUG util.RequestUtils - Get module name for path /private
Thread-4 DEBUG util.RequestUtils - Module name found: default
any ideas?

thanks,
-Trav




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


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

2003-08-06 Thread message message
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]


[OT] Lightweight weblogger

2003-08-06 Thread Jerry Jalenak
I am looking for a lightweight, Java based weblogger that can be *easily*
integrated into an existing Struts-based web application.  I looked at
Roller, but it requires Tomcat 4 (which we aren't on yet - still running
Tomcat 3.3!).  I found the MiniBlog by Russell Beatie, but don't like the
approach he took of embedding all of the Java code directly in the JSP (yeah
yeah I'm lazy - don't have time to re-write it).  The other Java based
bloggers seem immature.  Does anyone have a recommendation for a good,
lightweight blogger?  I don't need search, etc - I'm using this strictly as
a 'News and Feedback' add-on...

Thanks!

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]



RE: [OT] TLD question

2003-08-06 Thread Andy Kriger
So it looks in the WEB-INF dir first for TLDs then goes to that URI?

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 15:34
To: 'Struts Users Mailing List'
Subject: RE: [OT] TLD question



This is easy to check if you run your server localy. Unplug your machine
and look what happens. But the short answer is 'no' it does not. It goes
thru your TLD and finds that URL. 

 -Original Message-
 From: Andy Kriger [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 3:29 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] TLD question
 
 does putting an external URI on a page mean that webapp container is
going
 to make a request to that URI when it loads the page?
 


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



(help!!! plz!!) Select Box and validation (repost)

2003-08-06 Thread Khalid K.

Any suggestion? please??? :)

I am submitting a form using onchange javascript even handler w/
html:select/html:select tag.  This works fine until I turn on
VALIDATION,
If validation is set to true, and there are any validation errors, when
the page is displayed w/ the validation errors, the value of the SELECT box
has already changed ??
Which causes the cline to see errors messages for the 'wrong' displayed
item.
any ideas??
Thanks,

using struts 1.0.2/webshere env.



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



bean tag question

2003-08-06 Thread Jones, Marty B.
Does anyone know if the bean tag will allow you to pull a value from a class
that does not have getter or setter methods on the instance attributes?
Here is the scenerio that I have.

I have a ActionForm that has an array of Project objects.  The actionForm
has a getter and setter for the array of Project Objects.  The project
object itself is nothing more than a structure that has id and name
attributes. There are no methods within the Project object itself.  What I
need to do is iterate through the array of Project objects and pull the id
and name from each project.  I can iterate through the array of Projects
fine but when I attempt to get the id and name attribute from the Project it
fails stating that there is no get method for them.  

Does anyone know of a work around for this?  I can't modify the Project
object because it is automatically generated Stub class that is generated
from an application server and it would be overwritten the next time I
generate stubs for this component.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



RE: modules, somethings missing

2003-08-06 Thread Bailey, Shane C.



I believe the problem is that you can only have 1 URL mapping to the Struts
Servlet.

All you have to have is your first servlet-mapping.  Struts will then take
care of everything automatically from then on out.  The thing you will have
to keep in mind is that if you are in the main module to access you link
to module actions by doing html:link action=/public/someAction and
html:link action=/private/someAction  or if you want to go to an action
with the same name in the main module you just do html:link
action=someAction

One you have linked to the desired action and JSPs served up by those
modules will then be accessed like such html:link action=someAction but
Struts will automatically figure you are in a JSP served by, say, private so
it makes the URL whatever.com/nmmr/private/someAction.

When you are in say the public module (meaning in a JSP which was served up
by an action within that module) and you want to get to a private modules
action then you do something like this:

public module struts config:
global-forward
forward name=privateHome contextRelative=true
path=/private/privateHomeAction/
/global-forward

then inside a public module JSP you would link to the private area by doing
html:link forward=privateHomePrivate Home/html:link


To be honest with you I use the .do instead of /do/* (meaning like your
/nmmr/ prefix) so that part is kinda sketchy with me as to when you need to
add /nmmr to the front of the action link etc.

But you should get the idea I hope.

-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:08 PM
To: [EMAIL PROTECTED]
Subject: modules, somethings missing

I am doing something wrong with modules, and am not quite sure what.

Basically, the rui requested is always being routed to default.  Here 
are my settings:

web.xml:
servlet
   servlet-nameNmmrActionServlet/servlet-name
   servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
   param-nameconfig/param-name
   param-value/WEB-INF/conf/nmmr-struts-config.xml/param-value
   /init-param
   init-param
   param-nameconfig/public/param-name
   param-value/WEB-INF/conf/public-struts-config.xml/param-value
   /init-param
   init-param
   param-nameconfig/private/param-name
   param-value/WEB-INF/conf/private-struts-config.xml/param-value
   /init-param
   load-on-startup2/load-on-startup
 /servlet

 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/nmmr/*/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/public/*/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameNmmrActionServlet/servlet-name
   url-pattern/private/*/url-pattern
 /servlet-mapping

When I request a url of: context/public/someAction i get this:
Thread-4 DEBUG util.RequestUtils - Get module name for path /private
Thread-4 DEBUG util.RequestUtils - Module name found: default

any ideas?

thanks,
-Trav





-
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: modules, somethings missing

2003-08-06 Thread Travis Stevens


If you wanted you could the URL mapping for *.cool or something and
you will see Struts append that to your path.  That way people would
not know you are using Struts (maybe to fake out hackers).
G

I think i'll us a *.asp, althought that would probably not deter hackers 
very much.

-Trav



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


Re: How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
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]



Re: Allowing only POST for form submittal ????

2003-08-06 Thread Jason Lea
Hi Shane,

I don't think it really matters.

Say you have a hidden field containing an id in your form that is posted 
back to an action.  A user could copy that page to their hard disk, 
modify the field and then submit it.  They would still be POSTing so 
your action would be happy.  You still need to verify the id is ok, or 
user has permission to access that id.

If you had some reason to only allow POSTs then you might be able to 
check in the action, or I think you can do that with a security 
contraint in web.xml:

security-constraint
web-resource-collection
  web-resource-nameallow only POSTs/web-resource-name
  url-pattern/postonly/*.do/url-pattern
  http-methodGET/http-method
/web-resource-collection
auth-constraint
  role-nameno-member-role/role-name
/auth-constraint
/security-constraint
This basically means if someone tries to use GET (eg a normal request to 
the action) they would have to be a member of the role 'no-member-role'. 
 Since we won't have anyone in this role, nobody can use GET for these 
actions.  All other methods are allowed.

--
Jason Lea


Bailey, Shane C. wrote:
 

 

I have worked with Struts at a few different companies now and I noticed
none of them try
to do any checks to see that only POST methods can successfully make it to
Actions
which handle forms submittals.  Struts allows GETs and POSTs to make it to
every Action
so it seems like this would be something to think about (or maybe not, that
is one reason
I am asking).

 

So I guess I have a few questions then:

 

1.	Shouldn't I worry about (and defend against) which request methods
types (GET, POST, etc.) can make it to which actions?
2.	If so, does Struts have a built in mechanism like action
path=/whatever requestMethod=POST or if not 
3.	Should I be doing something like this at the top of my execute()
method: 

  if( ! POST == request.getMethod() ){ return
mapping.findForward(failure); }  for Actions which should require a POST
only
 

 

With #1 I mean should it matter if someone can go to the URL field in the
browser and type in all the field / value pairs for a form
and hit enter (I am thinking it does matter) compared to HAVING to do a POST
for it to succeed?
 

I am just thinking back to the Servlet programming days when you put the
form submittal handling code in the doPost() and the
other code in the doGet() methods.

 

Any thoughts on this?






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


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

2003-08-06 Thread Thaung . Sein



NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.



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



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

2003-08-06 Thread message message
The diagram you have pointed is generated from the struts-config.xml file.
To edit the Action servlet (shown as .do ) you can point and click.
You can also point  click for JSPs  html.
Although the diagram doesn't show the form-beans.

From: Mike Jasnowski [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 14:01:09 -0400

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 

RE: Location of JSPs for TILES

2003-08-06 Thread Jones, Marty B.
I think that the /jsp folder that you are specifying is a reserved folder
for some jsp containers.  We use /WEB-INF/pages/...

Hope this helps.

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:23 AM
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

  definition name=PropertyType.list extends=.list
put name=title  value=List of Property Types /
put name=body   value=/WEB-INF/jsp/proptypelist.jsp /
  /definition

Then everything works fine.

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

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

with def:

definition name=PropertyType.list extends=.list
put name=title  value=List of Property Types /
put name=body   value=/WEB-INF/jsp/prop/proptypelist.jsp /
/definition

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]

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



Tree menu using jsp/struts

2003-08-06 Thread JavaXML Developer
Any example or tutorial on how to build tree menu using struts/jsp. MY DATA FOR MENU 
ARE COMING FROM XML FILE.
 
 


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

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

2003-08-06 Thread Mounagurusamy, Jayakumar (HAL)
Any one can provide the url that I can download this struts studio?
Jay

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 9:44 AM
To: 'Struts Users Mailing List'
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion


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]

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

RE: [OFF TOPIC] JavaScript + select tag question

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


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

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

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

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

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

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

 Mark

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

 I would like to do the following :

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

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



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


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


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

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


RE: [Q] Struts and date formatters

2003-08-06 Thread Riaan Oberholzer
I cannot switch to Sturts 1.1 because I use BEA
WebLogic 6.1sp2 and a known WL bug limits the number
of total jars you can use in an application to a
collective name length of 80 characters. :( Same
reason why I also cannot use JSTL.

Since struts 1.1 imports a few more new jars, I exceed
the limit and the app doesn't work anymore.

But I have found enough suggestions and hints from all
of you to implement a suitable workaround, thank you!

For other projects not using WL 6.1sp2, I have already
upgraded to Struts 1.1. Haven't done the date thing
there yet, as I do it with JSTL there.


--- Joe Germuska [EMAIL PROTECTED] wrote:
 At 6:28 -0700 8/6/03, Riaan Oberholzer wrote:
 Which version of struts is that? I am using 1.02
 and
 for bean:write, neither type or formatKey are
 allowed
 attributes
 
 It was introduced during the development of Struts
 1.1.  The Struts 
 development team took great pains to ensure
 backwards compatibility, 
 and you can probably upgrade to 1.1 with very little
 (or no) changes 
 to your code.
 
 Otherwise, you'll have to go along with what some
 other people 
 suggested and instead of displaying the date
 directly, reference an 
 accessor of a bean which returns a formatted date
 string.
 
 You can actually subvert the MappedProperty syntax
 and make a method 
 to which you pass in a date format -- I did this on
 a project before 
 switching to Struts 1.1.  Do something like this:
 
 public class DateWrapper {
 
   private java.util.Date date = null;
   public DateWrapper (java.util.Date date)
   {
   this.date = date;
   }
 
   public String getFormattedDate(String format)
   {
   // typical code to use SimpleDateFormat with the
 given string
   // and the 'date' property
   }
 
 }
 
 
 Then in your action:
   request.setAttribute(wrapper, new
 DateWrapper(date));
 
 Then in your page
   bean:write name=wrapper
 property=formattedDate(-MM-dd) /
 
 
 Or something more or less like this (i.e. I wrote
 the above for this 
 email; I didn't copy it from working code).
 
 Of course instead of writing a DateWrapper class you
 could just add 
 the getFormattedDate method to some bean which has a
 date property.
 
 But really, you're better off switching to Struts
 1.1.  Why wouldn't you?
 
 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]
 


__
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: modules, somethings missing

2003-08-06 Thread Travis Stevens
I cna't say that I really understand why my way didn't work.  I really 
don't see a problem with having multiple
mappings to an ActionServlet, at least on the tomcat side of things. 
Now that I think about it,  struts accesses
the web.xml file for some configuration information, maybe struts itself 
only looks for one action mapping when it
does its internal configuration.

Anyhow, I changed the mapping to *.do and everything works great, thanks 
Shane!

-Trav

Bailey, Shane C. wrote:

I believe the problem is that you can only have 1 URL mapping to the Struts
Servlet.
All you have to have is your first servlet-mapping.  Struts will then take
care of everything automatically from then on out.  The thing you will have
to keep in mind is that if you are in the main module to access you link
to module actions by doing html:link action=/public/someAction and
html:link action=/private/someAction  or if you want to go to an action
with the same name in the main module you just do html:link
action=someAction
One you have linked to the desired action and JSPs served up by those
modules will then be accessed like such html:link action=someAction but
Struts will automatically figure you are in a JSP served by, say, private so
it makes the URL whatever.com/nmmr/private/someAction.
When you are in say the public module (meaning in a JSP which was served up
by an action within that module) and you want to get to a private modules
action then you do something like this:
public module struts config:
global-forward
forward name=privateHome contextRelative=true
path=/private/privateHomeAction/
/global-forward
then inside a public module JSP you would link to the private area by doing
html:link forward=privateHomePrivate Home/html:link
To be honest with you I use the .do instead of /do/* (meaning like your
/nmmr/ prefix) so that part is kinda sketchy with me as to when you need to
add /nmmr to the front of the action link etc.
But you should get the idea I hope.

-Original Message-
From: Travis Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:08 PM
To: [EMAIL PROTECTED]
Subject: modules, somethings missing

I am doing something wrong with modules, and am not quite sure what.

Basically, the rui requested is always being routed to default.  Here 
are my settings:

web.xml:
servlet
  servlet-nameNmmrActionServlet/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
  param-nameconfig/param-name
  param-value/WEB-INF/conf/nmmr-struts-config.xml/param-value
  /init-param
  init-param
  param-nameconfig/public/param-name
  param-value/WEB-INF/conf/public-struts-config.xml/param-value
  /init-param
  init-param
  param-nameconfig/private/param-name
  param-value/WEB-INF/conf/private-struts-config.xml/param-value
  /init-param
  load-on-startup2/load-on-startup
/servlet
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/nmmr/*/url-pattern
/servlet-mapping
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/public/*/url-pattern
/servlet-mapping
servlet-mapping
  servlet-nameNmmrActionServlet/servlet-name
  url-pattern/private/*/url-pattern
/servlet-mapping
When I request a url of: context/public/someAction i get this:
Thread-4 DEBUG util.RequestUtils - Get module name for path /private
Thread-4 DEBUG util.RequestUtils - Module name found: default
any ideas?

thanks,
-Trav




-
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 status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-06 Thread Richard Tomlinson
 For my complex pages, I plan on using the Tiles built-in 
 'putList' tag to add a handful of JSP's to a particular 
 section of one of my tiles templates (or extended tiles 
 templates).  Why would this built-in solution not work for 
 your application?

We have, for example, a home page where some areas are conditional in what's inserted. 
 For instance, if the user is a small business one of the promo areas contains a 
different piece of content to a non-business user.   Our pages have around 15 content 
areas so its possible a large number of these areas could be different.   Using tiles 
'as-is' would require either logic tags around the puts (Not editor friendly) or 
splitting a single page into one page per user category (Four in total) which causes a 
maintenance nightmare when you've got 600+ original pages...

Visit http://www.t-mobile.co.uk for an example and click the tabs to switch views of 
the same page.

Regards
Richard Tomlinson

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



RE: accessing Attribute of a parent-tile-definition

2003-08-06 Thread Reinhard
Thanks Cal for your reply. 

Your answer showed me my design errors. I thought, with a base tile it would 
be nice and easy, provide page-related vars. But - welcome to reality ;-)
I think I'll better use a jsp:include on that item ...

I've some more questions on tiles:
1. I didn't use tiles:insert at all. Within the main.jsp I use tiles:get 
(cause the target may be a tile, a jsp or a simple text). Should I prefer 
tiles:insert? - Why?

2. Is tiles considered a deprecated technique? - Cause the page from the tiles 
creator is very out-dated and the documentation is pretty hidden/nested.
Should we go for java:faces?

Any answer is welcome and appreciated.

cheers Reinhard

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



Re: Re: Actions Best Practice

2003-08-06 Thread David G. Friedman
Adam,

I simply add a tag in the field ...  section of my tiles definition like the snippet 
below.  One note to keep in mind from the documentation about the differences between 
server-side validation using the page attribute and client-side validation - client 
side is that page=number only, and server-side reviews all checks less than or equal 
to that page number (might be large bean on multi-page forms and redirecting to the 
appopriatep age if data is missing might be difficult). Here is a note on that topic 
directly from the page:
http://jakarta.apache.org/struts/userGuide/dev_validator.html


Multi Page Forms 

The field element has an optional page attribute. It can be set to an integer. All 
validation for any field on a page less than or equal to the current page is performed 
server side. All validation for any field on a page equal to the current page is 
generated for the client side Javascript. A mutli-part form expects the page attribute 
to be set.

And, here is my example validation.html segment.  I hardcode html:hidden 
property=page value=1/ in my jsp/tile.

form name=logonForm
 field
  property=username
  page=1
  depends=required
  arg0 key=logonForm.username/
 /field
 field
  property=password
  page=1
  depends=required
  arg0 key=logonForm.password/
 /field
/form

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



Strange error message

2003-08-06 Thread Slattery, Tim - BLS
Here we go again, just after I told somebody on this list that upgrading to
Struts 1.1 was no problem.

I'm getting an error message I don't understand when I submit a page. Bear
in mind, this worked fine before upgrading to 1.1.

The message is:

Root cause of ServletException
java.lang.IllegalArgumentException: No bean specified at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:837)  

Etc, etc, etc..

This apparently happens while Struts is trying to populate the form bean,
prior to calling the Action item. It seems to be telling me that the form
bean doesn't exist, which is nuts, since it's supposed to create one at this
point. Does anybody know what I should be looking for here?

--
Tim Slattery
[EMAIL PROTECTED]


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



LookupDispatchAction error

2003-08-06 Thread OFlaherty, Colm
I am getting the following error on , which I can't figure out:

HTTP ERROR: 500 Request[/test] does not contain handler parameter named updateMethod
RequestURI=/clientdb/test.do


I am following a couple of decent examples using the LookupDispatchAction class (pages 
128 -130 in Programming Jakarta Struts by Chuck Cavaness). My config is basically 
the same as what he has, but I have a couple of minor differences, which I don't think 
should be causing any issues, but maybe someone can put me right: 

The JSP link that gives me the error is the following: 

trtdlihtml:link forward=testbean:message 
key=test.maintain.label//html:link/li/td/tr

My action mappings section has the following action:


action-mappings
action path=/test
type=com.kbcam.core.struts.action.TestUpdateAction 
name=testForm 
scope=request 
input=/pages/test.jsp 
parameter=updateMethod

/action
...
/action-mappings



I also have a section for the testForm: 


form-beans
form-bean  name=testForm
type=com.kbcam.core.struts.form.TestForm/
...
/form-beans


My /pages/test.jsp uses a template, which points at /pages/testcontent.jsp, which 
contains the following: 


html:submit property=updateMethod
bean:message key=insert.label/
/html:submit


As u would expect, the insert.label key is contained in the properties file (as well 
as the test.maintain.label  from the initial link)


insert.label=Insert
test.maintain.label=Maintain Tests



My TestUpdateAction class has the following hierarchy and methods



LookupDispatchAction
  |
BaseLookupDispatchAction
  |
BaseUpdateAction (methods: getKeyMethodMap (),getKeyMethodMap (params), insert 
(params), update (params), delete ()
  (Maps insert.label to insert)
  |
TestUpdateAction


My TestForm was generated using Xdoclet from the Test.java source code, and has a 
protected updateMethod string variable, with a getter and setter.
TestForm is inherited from ActionForm


The kind of thing that I'm thinking might be causing the issue include: 

1.  The hierarchy of TestUpdateAction
2.  The fact that /pages/testcontent.jsp is not referenced directly, but via the 
following lines in /pages/test.jsp: 
template:insert template='/pages/template.jsp'
template:put name='content' content='/pages/testcontent.jsp'/ ...
3.  The calling link does NOT in a Form.  Its entire contents looks like this: 

%@ include file=/tags/taglibs.jsp %
center
hr
table border=0 cellspacing=0 cellpadding=0
trtdlihtml:link forward=testbean:message 
key=test.maintain.label//html:link/li/td/tr
trtdlihtml:link forward=logoutbean:message 
key=logout.label//html:link/li/td/tr
/table
/center


Can anyone see anything I'm missing, or anything that I'm just doing incorrectly?  
Any help is much appreciated.

Colm


**
This message is sent in confidence for the addressee
only.  The contents are not allowed to be disclosed to
anyone other than the addressee.  Unauthorised 
recipients must preserve this confidentiality and should 
please advise the sender immediately of any error in
transmission.
**


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



Howto get ActionForward to calling Page?

2003-08-06 Thread asaupp
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]



DynaValidatorForm and Integer[] problem

2003-08-06 Thread Charles Canning
Hi,

I have a dynaValidatorForm defined with properties of type
java.lang.Integer[] and it is being populated by a multibox. When I get the
form though, it is returning objects of type Integer not Integer[]. Does
anyone know what might be causing this and a possible solution? Thanks.

Chuck


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



sample struts w/ I18N and validator

2003-08-06 Thread David Thielen
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


Re: problem with bean:write and capitalization of attribute name

2003-08-06 Thread Kris Schneider
Try running:

java.beans.Introspector.decapitalize(LName)

The gory bean details can be found at:

http://java.sun.com/products/javabeans/docs/spec.html

Quoting Wes Rood [EMAIL PROTECTED]:

 Could you point me to more information on this behavior?
 
 I'm still confused as to why it will capitailze the f in fax to 
 locate the getFax() method, but it will not capitalize the l in 
 lName to locate the getLName() method.
 
 Thanks!
 
 David Graham wrote:
 
 This is standard JavaBean behavior.  Regardless, I encourage you to use
 lastName instead because lName is rather ugly and confusing.
 
 David
 
 --- Wes Rood [EMAIL PROTECTED] wrote:
   
 
 I have an object as follows
 
 public class Contact {
 ...
 private String lName;  // the contact's last name
 private String fax; // the contact's fax number
 ...
 public String getLName() {
 return lName;
 }
 
 public String getFax() {
 return fax;
 }
 ...
 }
 
 Then I use nested:iterate to go through a list of Contact objects and 
 attempt to access the lName and the fax attributes.  I observe the 
 following behavior:
 
 nested:write property=fax /   correctly displays the value of the 
 fax attribute
 while:
 nested:write property=Fax /   causes 
 org.apache.jasper.JasperException: No getter method for property 
 contacts[0].Fax of bean ...
 
 Apparently it is uppercasing the f in fax to call getFax(), but when
 
 the F is already in caps, it doesn't see the attribute.  This is fine,
 
 but then I tried accessing the lName property:
 
 nested:write property=lName/  causes 
 org.apache.jasper.JasperException: No getter method for property 
 contacts[0].lName of bean ...
 while:
 nested:write property=LName / correctly displays the value of the 
 lName attribute
 
 I also rewrote the jsp logic using logic:iterate and bean:write and 
 the same thing happened.
 
 What is going on here?  It appears that the N in the lName property is
 
 affecting how the L is handled.  Any ideas?

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



Re: Cannot find bean XXX in any scope - error

2003-08-06 Thread arindam . samanta

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
logic:iterate name=tayloringForm property=openFailures id
=OpenFailureDescriptor scope=request type
=tayloring.OpenFailureDescriptor

Should i declare all the descriptor or value objects somewhere?

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:11 PM   

Please 

respond to 

Struts Users  

Mailing List  

   

   




   

 hi,   

 the name of the bean is case-sensitive... 

 logic:iterate name=tayloringForm property=openFailures 
id=OpenFailureDescriptor   
 tayloringForm  as defined in the config file

   

 check it out  

   

 --nagi

   

 ---Original Message---

   

 From: Struts Users Mailing List   

 Date: Tuesday, August 05, 2003 04:47:14 PM

 To: Struts Users Mailing List 

 Subject: Cannot find bean XXX in any scope - error  

   

 Guys, 

 Any help is appreciated in this regard -  

 In struts-config.xml, I have an action mapping as below - 

 action name=tayloringForm path=/Tayloring/ShowAllOpenFailures

 scope=request type=tayloring.ShowAllOpenFailuresAction validate   

 =false 

 forward name=success path  

 =/pages/tayloring/all_open_failures.jsp /  

 /action 

   

 and definition for form bean is as below -

 form-bean name=tayloringForm type=tayloring.TayloringForm   

 /form-bean 

RE: Application Design Document -- Struts Studio - Independent op inion

2003-08-06 Thread Gandle, Panchasheel
www.exadel.com

-Original Message-
From: Mounagurusamy, Jayakumar (HAL)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Application Design Document -- Struts Studio - Independent
op inion


Any one can provide the url that I can download this struts studio?
Jay

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 9:44 AM
To: 'Struts Users Mailing List'
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion


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]



Class Not Found Exception with Tiles controllClass

2003-08-06 Thread Jerry Jalenak
I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition

snip

definition
name=membersolutions.portalLayout.splitscreen
path=/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp 
put name=title value=LabOne, Inc. -
MemberSolutions /
put name=stylesheet value=memberSolutions /
put name=topFrame
value=/WEB-INF/tiles/commonLayouts/static/topframe.jsp /
put name=leftFrame value= /
put name=rightFrame value=disclaimer.controller
/
put name=bottomFrame
value=/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp /
/definition 

!--  --
definition

controllerClass=com.labone.membersolutions.framework.tiles.controller.NewsC
ontroller
name=disclaimer.controller
path=/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp/

/snip

The NewsController looks like this...

snip

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

/snip

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]



How to populate an array in an ActionForm

2003-08-06 Thread Prashant Samant

Hello Group,
I have a jsp page as follows



html:form action=accept
table 
% String clientArr[]=(String[])request.getAttribute(clientArr);
   String returnId[]=(String[])request.getAttribute(returnId);
   
   for(int ctr=0;ctrclientArr.length;ctr++)
   {
%
tr
td
%= clientArr[ctr]%
/td
td
%= returnId[ctr]%
/td
/tr

%
   }
   
%
/html:submit
/table
/html:form

Now when i click the submit button,the action class is called which uses a DAO and 
does some database insert and then 
calls the same page again.

Now, when the page gets called again the clientArr.length in the for loop gives null 
pointer exception as the page will not get
the request object clientArr.

Therefore i want to populate either the values dispalyed in the table in an Action 
form OR i would like to  populate the 
arrays clientArr[] and returnId[] in the ActionForm.

How can i acheive the the above scenario.


Thanx  Regards,
Prashant S.


MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com http://www.mphasis.com
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
and delete this mail from your records.



-
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-06 Thread Seshadhri Srinivasan
Hi,
I have created a login button using the html:submit 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]