table dispaly

2003-07-14 Thread Adwait B
Hi,

I have a table like screen :

Column A  Column B  Column C ...
(Check Box)   (lable)   (lable)
The only editable field is checkbox that is used for deleting 
rows
in the table.One can imagine typical mail
inteface(yahoo/hotmail)
How I can achieve this?I'm confused about displaying as well as
capturing output for delete action.

Can anyone send me sample code for this type of page including
form bean..or any guideline! I think this type of situation is 
common..please help
Urgent help required.
-AB

___
Click below to experience Sooraj R Barjatya's latest offering
'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek
  Kareena http://www.mpkdh.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table dispaly

2003-07-14 Thread Firat TIRYAKI
use checkbox names associated with the data in columnB and C. Maybe you can
use their IDs like below

input type=checkbox name=check_ID ID is ;

input type=checkbox name=check_54
input type=checkbox name=check_85
.
.
.
.
.

F.

- Original Message -
From: Adwait B [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 9:54 AM
Subject: table dispaly


 Hi,

 I have a table like screen :

 Column A  Column B  Column C ...
 (Check Box)   (lable)   (lable)

 The only editable field is checkbox that is used for deleting
 rows
 in the table.One can imagine typical mail
 inteface(yahoo/hotmail)
 How I can achieve this?I'm confused about displaying as well as
 capturing output for delete action.

 Can anyone send me sample code for this type of page including
 form bean..or any guideline! I think this type of situation is
 common..please help
 Urgent help required.
 -AB

 ___
 Click below to experience Sooraj R Barjatya's latest offering
 'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek
Kareena http://www.mpkdh.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: table dispaly

2003-07-14 Thread Nagendra Kumar O V S








  hi,
  well, i can't give a sample code at this point of time.. i can give a 
  overview of ur requirement..
  1. create a javabean(with id of the row,col1,col2 col3.) . with 
  all setter and getter methods... - ( JBean)
  2. populate each row with each JBean. 
  3. store this each bean in an collection object and set this to the 
  request object or action form or ...
  4. now in ur jsp page u have iterate thro' this collection object and 
  populate ur table with the values
  5. make the id of the row to be the value of the checkbox
  6. so when the use checks the box to be deleted , u can capture that 
  and try to delete them
  
  hope this helps u
  
  --nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Monday, July 14, 
  2003 12:26:07 PM
  To: [EMAIL PROTECTED]
  Subject: table 
  dispaly
  Hi,I have a table like screen :Column A 
  Column B Column C ...(Check Box) (lable) (lable)The only 
  editable field is checkbox that is used for deleting rowsin the 
  table.One can imagine typical mailinteface(yahoo/hotmail)How I can 
  achieve this?I'm confused about displaying as well ascapturing output 
  for delete action.Can anyone send me sample code for this type of 
  page includingform bean..or any guideline! I think this type of 
  situation is common..please helpUrgent help 
  required.-AB___Click 
  below to experience Sooraj R Barjatya's latest offering'Main Prem Ki 
  Diwani Hoon' starring Hrithik, Abhishek Kareena http://www.mpkdh.com-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



RE: table dispaly

2003-07-14 Thread O_Parthasarathy Kesavaraj
U can use this sample code 
logic:iterate id = mail name = receivedMails
TR 
TD ALIGN=CENTER
html:multibox name = MailForm
property=selectedMails
bean:write name=mail/
/html:multibox
/TD
TD ALIGN=CENTER
DIV class=tenptpaddedbean:write
name=mail//DIV
/TD
/TR
/logic:iterate

receivedMails is an ArrayList set in request
selectedMails is a String array in Form Bean 
The checkboxes will have values corresponding to each element in ArrayList
when u select a set of checkboxes the StringArray selectedMails in form bean
will be populated with values of checkboxes selected

Hope this will Help
Regards
Partha

 --
 From: Firat TIRYAKI[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Monday, July 14, 2003 12:34 PM
 To:   Struts Users Mailing List; Adwait  B
 Subject:  Re: table dispaly
 
 use checkbox names associated with the data in columnB and C. Maybe you
 can
 use their IDs like below
 
 input type=checkbox name=check_ID ID is ;
 
 input type=checkbox name=check_54
 input type=checkbox name=check_85
 .
 .
 .
 .
 .
 
 F.
 
 - Original Message -
 From: Adwait B [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 9:54 AM
 Subject: table dispaly
 
 
  Hi,
 
  I have a table like screen :
 
  Column A  Column B  Column C ...
  (Check Box)   (lable)   (lable)
 
  The only editable field is checkbox that is used for deleting
  rows
  in the table.One can imagine typical mail
  inteface(yahoo/hotmail)
  How I can achieve this?I'm confused about displaying as well as
  capturing output for delete action.
 
  Can anyone send me sample code for this type of page including
  form bean..or any guideline! I think this type of situation is
  common..please help
  Urgent help required.
  -AB
 
  ___
  Click below to experience Sooraj R Barjatya's latest offering
  'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek
 Kareena http://www.mpkdh.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]



Online Multiple Choice Testing System--Struts will be considered...

2003-07-14 Thread nurkhamid

I'm going to design a web application. I'll call the great project Online
Multiple Choice Testing System, that could be deployed in my LAN-ed campus.
There will be at least three types of users: guest, tester, testee. Guest
is able to see general information. Testee is able to log in and do a test
of her choice. Tester is able to create, edit, delete, and manage test.
Tester can have more than one set of test. Tester is also able to make her
test as active meaning that it can be used by testee; as disabled meaning
that the test is inactive-inaccessible by testee; as active for certain
time and date period meaning that the test can only be done only at
predertermined time period. Tester is also able to analyze her test items,
such as statistical analysis. 

Maybe the fourth type of user will be better, i.e., admin with task to
manage the system such as limiting number of test that can be created by
the tester.

Other possibilities may occur later.

Questions are:
How should I implement the above project (using Java technology) with
regard to should I use struts or not?

What will be the benefits of each approach-with or without struts?

With regard to ease of implementation, because I'm new to web application,
which one will be easier-with or without struts (for a newbie-r)? why?

However, I'm tempted to use struts. When I use struts, what simple steps
should I do to finish the project? Are there similar examples (using
struts) found at the Net that I can cusomize to my purpose? In this case,
I'm going to use MySQL as database engine.

Thanks for your suggestions and opinions.




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



Using ResourceBundle's subclass in Struts

2003-07-14 Thread Duan Qiang
Hi, 

I posted a question but seems nobody replied. Anyone tried to define a subclass of 
ResourceBundle and use it in Struts?

For a standalone program, it's straightforward to use sel-defined resourcebundle 
classes, for example,

public class MyResourceBundle extends ResourceBundle
{
public Object handleGetObject()
...
public Enumeration getKeys()
}

//use the subclass
ResourceBundle bundle = ResourceBundle.getBundle(MyResourceBundle);

However, when I specify the resource name as MyResourceBundle, Struts can not find 
the message bundle although my class MyResourceBundle is on classpath.

It's possible to replace bean:message tag using my own methods, however, the action 
controller I uses is an instance of DispatchAction, which will match a method name 
with the message bundle key, for example, button.next matches to the function 
doNext and so on. 

So I can could totally avoid using struts message functionaliity, or how I can use my 
own ResourceBundle?

THx,

Regards,

dq

which way..struts using tiles?

2003-07-14 Thread Butt, Dudley
Hi all, 

Just need some info on what you guys are using out there, and what strategy is working 
the best for you.
Lets say i want to use Struts and I need to get a nice webapp out there. The system is 
potentially large so I'm going to need some sort of
build/generation tools. What are you guys using for your presentation look and feel. 
How are you getting your pages generated? Any ideas will be
greatly appreciated!!
Many thx


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



debate over Struts vs other frameworks

2003-07-14 Thread Butt, Dudley
Hi all, 
I know this must be a topic of discussion that has raged on for a long time, but i'm 
throwing it out there again, what u say people?


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



Populating Drop downs

2003-07-14 Thread Qasim Khawaja
I need to populate three drop downs in a jsp before presentation. 
Currently I have writted routines in the ActionForm which access the DAO 
class and populate the lists. The problem is that the DAO class throws 
an exception which means that I have to make my ActionForm aware of a 
hibernateException. I want to do this in the action class and make use 
of declarative exception handling.

Is the Action called prior to presenting the jsp? If so what is the 
entry point?

Q



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


struts books

2003-07-14 Thread Butt, Dudley
Hi all, 

Can anyone recommend which of the struts books as listed I should get. I cannot 
purchase all. Which of these books are still current with the version
of struts currently out there?

Pls recommend! thx




NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



Re: struts books

2003-07-14 Thread Dichotomy
I found Ted Husted's Struts in Action very useful. It has an excellent big picture 
first few chapters which really get it through to you that Struts is actually not very 
complicated at all. The devil is in the detail, as always, so the rest of the book is 
pretty useful as a reference for the nitty gritty details. I found it was pretty up to 
date for struts 1.1.

-- 
If education is too expensive, try ignorance.

On Mon, 14 Jul 2003 11:05:43 +0200
Butt, Dudley [EMAIL PROTECTED] wrote:

 Hi all,   
 
 Can anyone recommend which of the struts books as listed I should get. I cannot 
 purchase all. Which of these books are still current with the version
 of struts currently out there?
 
 Pls recommend! thx
 
 
 
 
 NOTICE: 
 
 This message contains privileged and confidential information intended 
 only for the person or entity to which it is addressed. 
 Any review, retransmission, dissemination, copy or other use of, or 
 taking of any action in reliance upon this information by persons or 
 entities other than the intended recipient, is prohibited. 
 
 If you received this message in error, please notify the sender 
 immediately by e-mail, facsimile or telephone and thereafter delete the 
 material from any computer. 
 
 The New Africa Capital Group, its subsidiaries or associates do not 
 accept liability for any personal views expressed in this message.
 
 -
 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]



two little questions

2003-07-14 Thread Brian McSweeney
Question1:
 
If my application allows users to enter text which will then later be
displayed on 
web pages, do I have to ensure that the text they write isn't html. For
example, 
lets say a message board application. If a user enters in loads of text
which is 
html, will this not mess up the page when it is displayed? If so, how do
people 
check for this.
 
Question2:
 
If I want my app to be able to allow users to enter text in any language
- eg, 
multi-lingual message boards, do I have to configure my database to be
able to 
handle multiple language types, or should it just work.
 
Thanks for any replies,
Brian
 


Re: two little questions

2003-07-14 Thread Simon Kelly
For Q1.

You could pass the data that they enter through a paser, that delimits out
the ... tags by placing '!--' after any '' and '--' before and '', this
will stop this text being viewed as html. Or jusr remove the tags or allow
cetain tags and remove any that aren't in the allowable ones!

Cheers

Simon

- Original Message -
From: Brian McSweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:49 AM
Subject: two little questions


 Question1:

 If my application allows users to enter text which will then later be
 displayed on
 web pages, do I have to ensure that the text they write isn't html. For
 example,
 lets say a message board application. If a user enters in loads of text
 which is
 html, will this not mess up the page when it is displayed? If so, how do
 people
 check for this.

 Question2:

 If I want my app to be able to allow users to enter text in any language
 - eg,
 multi-lingual message boards, do I have to configure my database to be
 able to
 handle multiple language types, or should it just work.

 Thanks for any replies,
 Brian




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



Check box problem.

2003-07-14 Thread Ravi Garg
Hi all,

I am using JSPs with checkboxes(HTML:CHECKBOX property=) in
all the screen. As we know that an on (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox?? 

What I observed that if I have stored the form in session and checked
2-3 check boxes. Submited the form moved onto 2nd JSP which also uses
the same form I again check 2-3 checkboxes and want to go back and
change my selection in previous screen. So I go back an change my
selection. Now my third screen displays my all selections. But it
displays the unchecked checkboxes which I checked on my second attempt.
Could any of you tell me any solution to this problem. One solution is
to define the scope of form as request and use hidden field but I cannot
use hidden fields cause number of checkboxes is not fixed.

Regards,
Ravi

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



RE: debate over Struts vs other frameworks

2003-07-14 Thread Butt, Dudley
: ) i like what i hear so far..
umm, well, there's quite a few...Velocity/Webwork/Turbine/Tapestry/Maverick

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:03 AM
To: Struts Users Mailing List
Subject: RE: debate over Struts vs other frameworks


Struts good
Others bad
...hehe ;-

Really it all depends on what you want to get out of your framework...

Perhaps if you name some frameworks you are comparing it with then people in
the list with experience in both can give some specific strength and
weakness comparisons.

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 16:34
To: '[EMAIL PROTECTED]'
Subject: debate over Struts vs other frameworks


Hi all,
I know this must be a topic of discussion that has raged on for a long time,
but i'm throwing it out there again, what u say people?


NOTICE:

This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

-
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 contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



RE: Check box problem.

2003-07-14 Thread Andrew Hill
I wouldst refereth thy attention unto the documentation for the reset()
method of the class known as ActionForm wherein shall be found all that
which thou doust require.

-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:09
To: Struts Users Mailing List
Subject: Check box problem.


Hi all,

I am using JSPs with checkboxes(HTML:CHECKBOX property=) in
all the screen. As we know that an on (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox??

What I observed that if I have stored the form in session and checked
2-3 check boxes. Submited the form moved onto 2nd JSP which also uses
the same form I again check 2-3 checkboxes and want to go back and
change my selection in previous screen. So I go back an change my
selection. Now my third screen displays my all selections. But it
displays the unchecked checkboxes which I checked on my second attempt.
Could any of you tell me any solution to this problem. One solution is
to define the scope of form as request and use hidden field but I cannot
use hidden fields cause number of checkboxes is not fixed.

Regards,
Ravi

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



struts plugin for IDEA

2003-07-14 Thread Butt, Dudley
Hi,

Has anyone used it, is there one? How good?


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



RE: debate over Struts vs other frameworks

2003-07-14 Thread Andrew Hill
Velocity is a view rendering technology, not a web framework. It works quite
well with struts and there is an excellent introduction to its use in a
struts app in Teds book (struts in action) - well worth a look. (One of the
advantages of struts is that you can use pretty much any (web) view
technology you want with it - not just limited to JSP)

The others I dont know much about, though I could suggest two more to add to
your list while your there: Barracuda (a 'competitor' of struts - with a
highly developed event model and DOM based rendering via XMLC) ,and
Expresso (a framework which inludes struts - and a lot more!)

You may also want to read up on JSF - a spec which though not ready yet will
be the 'next big thing' as far as writing web based applications goes.
Struts already has a JSF integration library thinghy - and it is no
coincidence that the spec lead for JSF is the same guy who gave us struts
(ie: Craig Mc Clanahan - aka papa struts). :-)

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 17:42
To: 'Struts Users Mailing List'
Subject: RE: debate over Struts vs other frameworks


: ) i like what i hear so far..
umm, well, there's quite a few...Velocity/Webwork/Turbine/Tapestry/Maverick

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:03 AM
To: Struts Users Mailing List
Subject: RE: debate over Struts vs other frameworks


Struts good
Others bad
...hehe ;-

Really it all depends on what you want to get out of your framework...

Perhaps if you name some frameworks you are comparing it with then people in
the list with experience in both can give some specific strength and
weakness comparisons.

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 16:34
To: '[EMAIL PROTECTED]'
Subject: debate over Struts vs other frameworks


Hi all,
I know this must be a topic of discussion that has raged on for a long time,
but i'm throwing it out there again, what u say people?


NOTICE:

This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

-
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 contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

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



[ARTICLE] Succeeding with Struts Pt 2: Indexed Properties of Beans

2003-07-14 Thread James Turner
Just an FYI that the second article in my Succeeding with Struts
series is now up on Gamelan, at:

http://www.developer.com/java/ejb/article.php/2233591

This month, I covered using indexed arrays of beans to do master/detail
records in forms.  Next month, I'll be diving into the Validator
Framework.

James Turner
[EMAIL PROTECTED]

Senior Editor
LinuxWorld Magazine

Track Chair, Strategic Open Source
2003 Fall COMDEX

Author: 
MySQL  JSP Web Applications
Struts Kick Start
JavaServer Faces Kick Start 
 



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



RE: Check box problem.

2003-07-14 Thread Prashanth.S
Hi,
make the selected array null in reset method in ur form like...
String [] arrSelectedItems={};
Dont destroy the array...
HTH
Prashanth

Andrew Hill [EMAIL PROTECTED] wrote:
I wouldst refereth thy attention unto the documentation for the reset()
method of the class known as ActionForm wherein shall be found all that
which thou doust require.

-Original Message-
From: Ravi Garg [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:09
To: Struts Users Mailing List
Subject: Check box problem.


Hi all,

I am using JSPs with checkboxes() in
all the screen. As we know that an on (or value of checkbox) is sent
as request whenever I check the checkbox. Then what is sent when I
uncheck the checkbox??

What I observed that if I have stored the form in session and checked
2-3 check boxes. Submited the form moved onto 2nd JSP which also uses
the same form I again check 2-3 checkboxes and want to go back and
change my selection in previous screen. So I go back an change my
selection. Now my third screen displays my all selections. But it
displays the unchecked checkboxes which I checked on my second attempt.
Could any of you tell me any solution to this problem. One solution is
to define the scope of form as request and use hidden field but I cannot
use hidden fields cause number of checkboxes is not fixed.

Regards,
Ravi

-
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!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: two little questions

2003-07-14 Thread Brian McSweeney
Hi Simon,
That was my original idea too. Just wanted to see if other people were 
doing the same.

Cheers,
Brian

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2003 10:58
To: Struts Users Mailing List
Subject: Re: two little questions

For Q1.

You could pass the data that they enter through a paser, that delimits
out
the ... tags by placing '!--' after any '' and '--' before and '',
this
will stop this text being viewed as html. Or jusr remove the tags or
allow
cetain tags and remove any that aren't in the allowable ones!

Cheers

Simon

- Original Message -
From: Brian McSweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:49 AM
Subject: two little questions


 Question1:

 If my application allows users to enter text which will then later be
 displayed on
 web pages, do I have to ensure that the text they write isn't html.
For
 example,
 lets say a message board application. If a user enters in loads of
text
 which is
 html, will this not mess up the page when it is displayed? If so, how
do
 people
 check for this.

 Question2:

 If I want my app to be able to allow users to enter text in any
language
 - eg,
 multi-lingual message boards, do I have to configure my database to be
 able to
 handle multiple language types, or should it just work.

 Thanks for any replies,
 Brian




-
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: two little questions

2003-07-14 Thread Andrew Hill
Other alternative is similar - convert the  and  to lt; and gt; etc...
so it outputs as though it was text.

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:38
To: 'Struts Users Mailing List'
Subject: RE: two little questions


Hi Simon,
That was my original idea too. Just wanted to see if other people were
doing the same.

Cheers,
Brian

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: 14 July 2003 10:58
To: Struts Users Mailing List
Subject: Re: two little questions

For Q1.

You could pass the data that they enter through a paser, that delimits
out
the ... tags by placing '!--' after any '' and '--' before and '',
this
will stop this text being viewed as html. Or jusr remove the tags or
allow
cetain tags and remove any that aren't in the allowable ones!

Cheers

Simon

- Original Message -
From: Brian McSweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:49 AM
Subject: two little questions


 Question1:

 If my application allows users to enter text which will then later be
 displayed on
 web pages, do I have to ensure that the text they write isn't html.
For
 example,
 lets say a message board application. If a user enters in loads of
text
 which is
 html, will this not mess up the page when it is displayed? If so, how
do
 people
 check for this.

 Question2:

 If I want my app to be able to allow users to enter text in any
language
 - eg,
 multi-lingual message boards, do I have to configure my database to be
 able to
 handle multiple language types, or should it just work.

 Thanks for any replies,
 Brian




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



DynaActionForm

2003-07-14 Thread Qasim Khawaja
How do you populate Drop down lists in a DynaActionForm?

Q



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


Re: struts plugin for IDEA

2003-07-14 Thread ashwani . kalra

I am using Struts console  plugin with IDEA. Cool !!




   
   
Butt, Dudley 
   
[EMAIL PROTECTED]To: '[EMAIL PROTECTED]'

tan.co.za  [EMAIL PROTECTED]
  
cc: (bcc: ashwani.kalra/Polaris)   
   
07/14/2003 03:21Subject: struts plugin for IDEA
   
PM 
   
Please respond 
   
to Struts Users   
   
Mailing List  
   
   
   
   
   





Hi,

Has anyone used it, is there one? How good?


NOTICE:

This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

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





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

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

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

Pagination with JSTL

2003-07-14 Thread Zoran Avtarovski
I'm looking at implementing JSTL in my next struts project and I was
wondering if any body had an example of pagination using JSTL and JDBC.

At present I use James Klicman's pager taglib (which I like) but I can see a
number of advantages moving to using JSTL and more importantly using the
capabilities of JDBC2 to retrieve the exact dataset for display.

Zoran


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



RE: debate over Struts vs other frameworks

2003-07-14 Thread Butt, Dudley
excellent thx very much

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:30 PM
To: Struts Users Mailing List
Subject: RE: debate over Struts vs other frameworks


Velocity is a view rendering technology, not a web framework. It works quite
well with struts and there is an excellent introduction to its use in a
struts app in Teds book (struts in action) - well worth a look. (One of the
advantages of struts is that you can use pretty much any (web) view
technology you want with it - not just limited to JSP)

The others I dont know much about, though I could suggest two more to add to
your list while your there: Barracuda (a 'competitor' of struts - with a
highly developed event model and DOM based rendering via XMLC) ,and
Expresso (a framework which inludes struts - and a lot more!)

You may also want to read up on JSF - a spec which though not ready yet will
be the 'next big thing' as far as writing web based applications goes.
Struts already has a JSF integration library thinghy - and it is no
coincidence that the spec lead for JSF is the same guy who gave us struts
(ie: Craig Mc Clanahan - aka papa struts). :-)

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 17:42
To: 'Struts Users Mailing List'
Subject: RE: debate over Struts vs other frameworks


: ) i like what i hear so far..
umm, well, there's quite a few...Velocity/Webwork/Turbine/Tapestry/Maverick

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:03 AM
To: Struts Users Mailing List
Subject: RE: debate over Struts vs other frameworks


Struts good
Others bad
...hehe ;-

Really it all depends on what you want to get out of your framework...

Perhaps if you name some frameworks you are comparing it with then people in
the list with experience in both can give some specific strength and
weakness comparisons.

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 16:34
To: '[EMAIL PROTECTED]'
Subject: debate over Struts vs other frameworks


Hi all,
I know this must be a topic of discussion that has raged on for a long time,
but i'm throwing it out there again, what u say people?


NOTICE:

This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

-
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 contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not
accept liability for any personal views expressed in this message.

-
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 contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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

Re: module / tiles problems

2003-07-14 Thread Sergey Smirnov
According snap-shot of your web.xml, you do not use two modules. You have
only one default module and the second definition for tiles plugin
overwrites the first one.
If you realy want to have two modules you have to use the following in your
web.xml:

init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-nameconfig/logweb/param-name
param-value/WEB-INF/struts-config-logweb.xml/param-value
/init-param


Nathan Coast [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I tried setting up a web application with configuration files.

 init-param
 param-nameconfig/param-name

param-value/WEB-INF/struts-config.xml,/WEB-INF/struts-config-logweb.xml/p
aram-value
 /init-param

 both referred to their own tiles-defs files with tiles plugins

plug-in className=org.apache.struts.tiles.TilesPlugin 
  set-property property=definitions-config
 value=/WEB-INF/tiles-defs.xml /
  set-property property=definitions-parser-validate value=true /
  set-property property=moduleAware value=false /
/plug-in

 and

plug-in className=org.apache.struts.tiles.TilesPlugin 
  set-property property=definitions-config
 value=/WEB-INF/tiles-defs-logweb.xml /
  set-property property=definitions-parser-validate value=true /
  set-property property=moduleAware value=false /
/plug-in

 the tiles-defs were only loaded for the file listed in the first config
 file (struts-config.xml)

 Am I doing something wrong?

 thanks
 Nathan




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



[OT] Disaster Recovery

2003-07-14 Thread David Bolsover
Hi all

Totally off-topic - my apologies - but I'm desparate - I need to draft some
guidelenes urgently - and I just know that the pros that read this list will
have done all this many times before.

I have to prepare a disaster recovery plan for the IT system of an electronics
manufacturing company and need to put together a draft very quickly.

Does anyone have a plan / draft / guidelenes for prep of a plan they can let me
read and plagiarise?

Advance thank to all helpfu contributors.

David Bolsover


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



Re: getting hash map values

2003-07-14 Thread Kris Schneider
The way the class is defined, I don't think either JSTL or Struts tags will be
of much use. There really aren't any properties exposed. Take a look at:

http://jakarta.apache.org/struts/faqs/indexedprops.html

Specifically the section titled Mapped Properties.

Quoting Rick Reumann [EMAIL PROTECTED]:

 On Mon, Jul 14,'03 (11:37 AM GMT+0800), Richard wrote: 
  
  
  now, my question is how will i be able to get the value i set
  for test? is that possible?
  
  is there other way i can get to the hashmap values directly from
  struts?
 
 You should be able to do it with  
 beanName.nameOfMapInBean.value.nameOfKey
 
 ie.. c:out value=${yourBean.mapName.value.nameOfKey}/
 or i think with html-bean...something like...
 bean:write property=yourBean.mapName.value.nameOfKey/
 
 
 
 
 
 -- 
 Rick

-- 
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: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Kris Schneider
Seems like the easiest thing to do would be to write a Filter mapped to /*
that uses HttpServletRequest.getRequestURI to capture the requested URI. In a
conformant Servler 2.3 container, the Filter will only operate on the original
client request, not forwards or includes.

Quoting david chan [EMAIL PROTECTED]:

 Hi,
  I am writing a RequestProcessor that is a subclass of
 Struts 1.1 RequestProcessor, the purpose is to track
 user activities, i.e. which link the user clicked,
 which page the user requested etc.
  I override the method processForwardConfig, and put
 my tracking function first, here is how it looks:
 
 //my code to log user request
 logPage(request.getRequestURI());
 super.processForwardConfig(request, response, forward
 );
 
 
  However, there is one problem with this approach, 
 If there is action chaining (or server side forward),
 that will be also logged, but that is not the user
 requested URI, and I don't need to log any of chained
 action URI or server side forwarded URI. 
 
  Any suggestion how to deal with this problem?
 
 Thanks.
 David

-- 
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: struts plugin for IDEA

2003-07-14 Thread James Holmes
Struts Console is the only Struts plugin that I know of for IDEA.  It's
pretty good as it allows you to work with Struts, Tiles and Validator
config files.  Struts Console also allows you to edit JSP Tag Library
files (*.tld) now.

http://www.jamesholmes.com/struts/

-James

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 4:51 AM
To: '[EMAIL PROTECTED]'
Subject: struts plugin for IDEA

Hi,

Has anyone used it, is there one? How good?


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

-
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: tracking user activities: how to ignore action chaining (or serverside forward)

2003-07-14 Thread Pirmez
Hi David,

Try request.getRequestURL()

david chan escreveu:
Hi,
 I am writing a RequestProcessor that is a subclass of
Struts 1.1 RequestProcessor, the purpose is to track
user activities, i.e. which link the user clicked,
which page the user requested etc.
 I override the method processForwardConfig, and put
my tracking function first, here is how it looks:
//my code to log user request
logPage(request.getRequestURI());
super.processForwardConfig(request, response, forward
);
 However, there is one problem with this approach, 
If there is action chaining (or server side forward),
that will be also logged, but that is not the user
requested URI, and I don't need to log any of chained
action URI or server side forwarded URI. 

 Any suggestion how to deal with this problem?

Thanks.
David
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


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


Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
I think u can also use eventlisteners which are allmost same thing as filters..
Regards
Prashanth

Kris Schneider [EMAIL PROTECTED] wrote:
Seems like the easiest thing to do would be to write a Filter mapped to /*
that uses HttpServletRequest.getRequestURI to capture the requested URI. In a
conformant Servler 2.3 container, the Filter will only operate on the original
client request, not forwards or includes.

Quoting david chan :

 Hi,
 I am writing a RequestProcessor that is a subclass of
 Struts 1.1 RequestProcessor, the purpose is to track
 user activities, i.e. which link the user clicked,
 which page the user requested etc.
 I override the method processForwardConfig, and put
 my tracking function first, here is how it looks:
 
 //my code to log user request
 logPage(request.getRequestURI());
 super.processForwardConfig(request, response, forward
 );
 
 
 However, there is one problem with this approach, 
 If there is action chaining (or server side forward),
 that will be also logged, but that is not the user
 requested URI, and I don't need to log any of chained
 action URI or server side forwarded URI. 
 
 Any suggestion how to deal with this problem?
 
 Thanks.
 David

-- 
Kris Schneider 
D.O.Tech 

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

quote or apostrophe in c:out ...?

2003-07-14 Thread Terje Hopsø
Hello,
 
I looked at a file with tables in Dreamweaver. It was messy an difficult to
read because it was confised by referencing pages like this:
 ..href=c:out value=/report.jsp /
 
I then changed it to look like this with apostrphe instead of quotes:
..href=c:out value='/report.jsp' /
 
Dreamweaver showed the pages correctly now but will this have any impact
elsewhere. Could Tomcat or other webservers fail writing the code like this?
 
- Terje
 


Re: struts books

2003-07-14 Thread Rick Reumann
On Mon, 2003-07-14 at 05:05, Butt, Dudley wrote:
 
 Can anyone recommend which of the struts books as listed I should get.  

Programming Jakarta Struts
by Chuck Cavaness  
http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/ref=pd_sim_books_4/104-4079535-6570309?v=glances=books

(Also, not to be a jerk, but a quick searh in the archives books on struts would 
have given you lots of results).

-- 
Rick

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



Re: quote or apostrophe in c:out ...?

2003-07-14 Thread Rick Reumann
On Mon, 2003-07-14 at 09:13, Terje Hopsø wrote:
   
 I then changed it to look like this with apostrphe instead of quotes:
 ..href=c:out value='/report.jsp' /
  
 Dreamweaver showed the pages correctly now but will this have any impact
 elsewhere. Could Tomcat or other webservers fail writing the code like this?

Looks good to me. I'm not aware of any problems and use it like you have
above (well you forgot the beginning  of c:out, but I'm sure that was
just a typo).

-- 
Rick
 

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



Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Kris Schneider
I don't really see how event listeners and filters are almost the same thing.
Can you elaborate? Is it possible to provide a customized request or response
object through an event listener? Can event listeners be mapped to either a
specific servlet or URL pattern?

Quoting Prashanth.S [EMAIL PROTECTED]:

 I think u can also use eventlisteners which are allmost same thing as
 filters..
 Regards
 Prashanth
 
 Kris Schneider [EMAIL PROTECTED] wrote:
 Seems like the easiest thing to do would be to write a Filter mapped to
 /*
 that uses HttpServletRequest.getRequestURI to capture the requested URI. In
 a
 conformant Servler 2.3 container, the Filter will only operate on the
 original
 client request, not forwards or includes.
 
 Quoting david chan :
 
  Hi,
  I am writing a RequestProcessor that is a subclass of
  Struts 1.1 RequestProcessor, the purpose is to track
  user activities, i.e. which link the user clicked,
  which page the user requested etc.
  I override the method processForwardConfig, and put
  my tracking function first, here is how it looks:
  
  //my code to log user request
  logPage(request.getRequestURI());
  super.processForwardConfig(request, response, forward
  );
  
  
  However, there is one problem with this approach, 
  If there is action chaining (or server side forward),
  that will be also logged, but that is not the user
  requested URI, and I don't need to log any of chained
  action URI or server side forwarded URI. 
  
  Any suggestion how to deal with this problem?
  
  Thanks.
  David
 
 -- 
 Kris Schneider 
 D.O.Tech 

-- 
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: debate over Struts vs other frameworks

2003-07-14 Thread David Graham
--- Butt, Dudley [EMAIL PROTECTED] wrote:
 Hi all, 
 I know this must be a topic of discussion that has raged on for a long
 time, but i'm throwing it out there again, what u say people?

Pick the framework that works best for you.  This topic usually leads to
people making incorrect statements about the frameworks so the best way to
find out about them is to try them out.  Struts may not be the right
framework for everyone but it certainly is the best I've used.

David

 
 
 NOTICE: 
 
 This message contains privileged and confidential information intended 
 only for the person or entity to which it is addressed. 
 Any review, retransmission, dissemination, copy or other use of, or 
 taking of any action in reliance upon this information by persons or 
 entities other than the intended recipient, is prohibited. 
 
 If you received this message in error, please notify the sender 
 immediately by e-mail, facsimile or telephone and thereafter delete the 
 material from any computer. 
 
 The New Africa Capital Group, its subsidiaries or associates do not 
 accept liability for any personal views expressed in this message.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: getting hash map values

2003-07-14 Thread Rick Reumann
On Mon, 2003-07-14 at 08:23, Kris Schneider wrote:
 The way the class is defined, I don't think either JSTL or Struts tags will be
 of much use. There really aren't any properties exposed.  

True, I forgot that there wasn't a getMapName() method listed. If he
included that the tags should work.

-- 
Rick

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



Re: which way..struts using tiles?

2003-07-14 Thread David Graham
Tiles and JSP has worked quite well for me.  I especially like using Tiles
controllers to attach view preparation behavior directly to the tile
instead of worrying about setting up the data in every place that uses the
tile.

David

--- Butt, Dudley [EMAIL PROTECTED] wrote:
 Hi all, 
 
 Just need some info on what you guys are using out there, and what
 strategy is working the best for you.
 Lets say i want to use Struts and I need to get a nice webapp out there.
 The system is potentially large so I'm going to need some sort of
 build/generation tools. What are you guys using for your presentation
 look and feel. How are you getting your pages generated? Any ideas will
 be
 greatly appreciated!!
 Many thx
 
 
 NOTICE: 
 
 This message contains privileged and confidential information intended 
 only for the person or entity to which it is addressed. 
 Any review, retransmission, dissemination, copy or other use of, or 
 taking of any action in reliance upon this information by persons or 
 entities other than the intended recipient, is prohibited. 
 
 If you received this message in error, please notify the sender 
 immediately by e-mail, facsimile or telephone and thereafter delete the 
 material from any computer. 
 
 The New Africa Capital Group, its subsidiaries or associates do not 
 accept liability for any personal views expressed in this message.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: struts plugin for IDEA

2003-07-14 Thread Butt, Dudley
brilliante'

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: struts plugin for IDEA


Struts Console is the only Struts plugin that I know of for IDEA.  It's
pretty good as it allows you to work with Struts, Tiles and Validator
config files.  Struts Console also allows you to edit JSP Tag Library
files (*.tld) now.

http://www.jamesholmes.com/struts/

-James

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 4:51 AM
To: '[EMAIL PROTECTED]'
Subject: struts plugin for IDEA

Hi,

Has anyone used it, is there one? How good?


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

-
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 contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



RE: struts books

2003-07-14 Thread Butt, Dudley
i know but i was lazy.. : ) and i also just wanted to make sure and confirm they were 
the ones everyone still likes : ) 


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 3:24 PM
To: Struts Users Mailing List
Subject: Re: struts books


On Mon, 2003-07-14 at 05:05, Butt, Dudley wrote:
 
 Can anyone recommend which of the struts books as listed I should get.  

Programming Jakarta Struts
by Chuck Cavaness  
http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/ref=pd_sim_books_4/104-4079535-6570309?v=glances=books

(Also, not to be a jerk, but a quick searh in the archives books on struts would 
have given you lots of results).

-- 
Rick

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


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



Re: two little questions

2003-07-14 Thread Wes Rood
Q1:
Look at OSCore from Opensymphony:
http://www.opensymphony.com/oscore/
Specifically, the plainTextToHtml method in the TextUtils class: 
http://www.opensymphony.com/oscore/api/com/opensymphony/util/TextUtils.html#plainTextToHtml(java.lang.String)

This does exactly what Andrew mentions, plus it takes care of line breaks.

Andrew Hill wrote:

Other alternative is similar - convert the  and  to lt; and gt; etc...
so it outputs as though it was text.
-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 18:38
To: 'Struts Users Mailing List'
Subject: RE: two little questions
Hi Simon,
That was my original idea too. Just wanted to see if other people were
doing the same.
Cheers,
Brian
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: 14 July 2003 10:58
To: Struts Users Mailing List
Subject: Re: two little questions
For Q1.

You could pass the data that they enter through a paser, that delimits
out
the ... tags by placing '!--' after any '' and '--' before and '',
this
will stop this text being viewed as html. Or jusr remove the tags or
allow
cetain tags and remove any that aren't in the allowable ones!
Cheers

Simon

- Original Message -
From: Brian McSweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:49 AM
Subject: two little questions
 

Question1:

If my application allows users to enter text which will then later be
displayed on
web pages, do I have to ensure that the text they write isn't html.
   

For
 

example,
lets say a message board application. If a user enters in loads of
   

text
 

which is
html, will this not mess up the page when it is displayed? If so, how
   

do
 

people
check for this.
Question2:

If I want my app to be able to allow users to enter text in any
   

language
 

- eg,
multi-lingual message boards, do I have to configure my database to be
able to
handle multiple language types, or should it just work.
Thanks for any replies,
Brian
   



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



accessing more than 1 formbean in an action class

2003-07-14 Thread Madhu Nair
Hi,

I am trying to access more than 1 formbean in an action class. Using the
Struts API I am able to retrieve the FormBeanConfig object for a form
bean. But I am unable to get the ActionForm object. How to get the same?

Regards,
Madhu

-
Madhu Nair
Member of Technical Staff,
Persistent Systems Private Limited,
Pune 411016 INDIA.
Tel: +91-20-5678900 Ext: 335


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



Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread david chan
My company using Websphere 4.0.5, and it only supports
servlet 2.2. Does filter only operate on the original
client request for servlet 2.2 also? Can filter works
well with Struts actionservlet?

Thanks.
David



--- Kris Schneider [EMAIL PROTECTED] wrote:
 Seems like the easiest thing to do would be to write
 a Filter mapped to /*
 that uses HttpServletRequest.getRequestURI to
 capture the requested URI. In a
 conformant Servler 2.3 container, the Filter will
 only operate on the original
 client request, not forwards or includes.
 
 Quoting david chan [EMAIL PROTECTED]:
 
  Hi,
   I am writing a RequestProcessor that is a
 subclass of
  Struts 1.1 RequestProcessor, the purpose is to
 track
  user activities, i.e. which link the user clicked,
  which page the user requested etc.
   I override the method processForwardConfig, and
 put
  my tracking function first, here is how it looks:
  
  //my code to log user request
  logPage(request.getRequestURI());
  super.processForwardConfig(request, response,
 forward
  );
  
  
   However, there is one problem with this approach,
 
  If there is action chaining (or server side
 forward),
  that will be also logged, but that is not the user
  requested URI, and I don't need to log any of
 chained
  action URI or server side forwarded URI. 
  
   Any suggestion how to deal with this problem?
  
  Thanks.
  David
 
 -- 
 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]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Please Help: ActionForm Re-Population

2003-07-14 Thread Aaron Longwell
I am on the last leg of a web application, and I've run into problems 
adding validation to the mix.

I have an edit Action that retrieves a database record, a list of 
drop-down options, and then populates the editor ActionForm. Works 
great, and I LOVE STRUTS!

Now I've implemented validation (through the Validator Framework, but I 
think my problem is with validate() in general).

After the user clicks submit, their post is sent to my update action.

If they do not break any validation rules, all goes well. The problem 
occurs when a validation rule is broken They are returned to the 
form... but the drop-downs (which are populated in the edit Action) 
are empty. I have set breakpoints in the code... and I see that the page 
neither my edit Action code (the part where the drop-down data is 
retrieved), nor my update Action code is actually running.

Question between pressing submit and returning the edit JSP with a 
populated ActionErrors object. Where is validate() actually called? 
Where can I insert code to populate a drop-down with a set of values so 
that it will appear both when the form is presented the first time, and 
after a validation error?

Thank you for your help,
Aaron Longwell
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Kris Schneider
Sorry, filters were introduced in Servlet 2.3. What you might try doing is using
a request attribute as a flag to indicate that you've already logged the
requested URI. Maybe something like:

if (request.getAttribute(MyConstants.URI_LOG_FLAG) == null) {
  request.setAttribute(MyConstants.URI_LOG_FLAG, Boolean.TRUE);
  logPage(request.getRequestURI());
}
super.processForwardConfig(request, response, forward);

If you get the chance to move to a Servlet 2.3 container, filters will work just
fine in combination with Struts.

Quoting david chan [EMAIL PROTECTED]:

 My company using Websphere 4.0.5, and it only supports
 servlet 2.2. Does filter only operate on the original
 client request for servlet 2.2 also? Can filter works
 well with Struts actionservlet?
 
 Thanks.
 David
 
 
 
 --- Kris Schneider [EMAIL PROTECTED] wrote:
  Seems like the easiest thing to do would be to write
  a Filter mapped to /*
  that uses HttpServletRequest.getRequestURI to
  capture the requested URI. In a
  conformant Servler 2.3 container, the Filter will
  only operate on the original
  client request, not forwards or includes.
  
  Quoting david chan [EMAIL PROTECTED]:
  
   Hi,
I am writing a RequestProcessor that is a
  subclass of
   Struts 1.1 RequestProcessor, the purpose is to
  track
   user activities, i.e. which link the user clicked,
   which page the user requested etc.
I override the method processForwardConfig, and
  put
   my tracking function first, here is how it looks:
   
   //my code to log user request
   logPage(request.getRequestURI());
   super.processForwardConfig(request, response,
  forward
   );
   
   
However, there is one problem with this approach,
  
   If there is action chaining (or server side
  forward),
   that will be also logged, but that is not the user
   requested URI, and I don't need to log any of
  chained
   action URI or server side forwarded URI. 
   
Any suggestion how to deal with this problem?
   
   Thanks.
   David
  
  -- 
  Kris Schneider mailto:[EMAIL PROTECTED]
  D.O.Tech   http://www.dotech.com/

-- 
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: accessing more than 1 formbean in an action class

2003-07-14 Thread Gandle, Panchasheel
Can you send the action-mapping for this Action class from the struts-config
file

Panchasheel



-Original Message-
From: Madhu Nair [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 10:55 AM
To: [EMAIL PROTECTED]
Subject: accessing more than 1 formbean in an action class


Hi,

I am trying to access more than 1 formbean in an action class. Using the
Struts API I am able to retrieve the FormBeanConfig object for a form
bean. But I am unable to get the ActionForm object. How to get the same?

Regards,
Madhu

-
Madhu Nair
Member of Technical Staff,
Persistent Systems Private Limited,
Pune 411016 INDIA.
Tel: +91-20-5678900 Ext: 335


-
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 plugin for IDEA

2003-07-14 Thread Aaron Longwell
James,

Good work on the plugin. I forgot you had a plugin version of it (I use 
IDEA and I had been using your standalone version). As a UI designer I 
have one concern about the IDEA plugin interface... no save button. In 
playing with it for about 30 seconds I see that it has some kind of 
instant or background save going on.

I would be much more comfortable with a save button, but you just 
explain the file save process? After every change to a field?

Thanks,
Aaron Longwell
James Holmes wrote:

Struts Console is the only Struts plugin that I know of for IDEA.  It's
pretty good as it allows you to work with Struts, Tiles and Validator
config files.  Struts Console also allows you to edit JSP Tag Library
files (*.tld) now.
http://www.jamesholmes.com/struts/

-James

-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 4:51 AM
To: '[EMAIL PROTECTED]'
Subject: struts plugin for IDEA

Hi,

Has anyone used it, is there one? How good?

NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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


forms and options

2003-07-14 Thread John Hethcox
I am creating a form around a table. The rows in the table are a set of
homogeneous beans. Each row in the table has a select widget that is
populated from a collection. I would like each row in the table to be
pre-selected with the property value for the object in the array that
corresponds to that row.
The property that I put in the jsp calls the getter in the form of course
but, since all rows all share the same ActionForm, I canÂ’t tell which row
triggered the getter. IÂ’d like the user to edit the values in the table and
save them all at once so I put the whole table in one form. Is there a way
to get the menu pre-selected without putting each row in a separate form?
TIA,
John





RE: Populating Drop downs

2003-07-14 Thread Edgar Dollin
The sequence is in your struts-config.xml file.  The action is always called
before the jsp since the action performs the forward to the jsp.  Validate
(if enabled) is always called on the ActionForm prior to the Action.  

Edgar

 -Original Message-
 From: Qasim Khawaja [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 14, 2003 4:15 AM
 To: 'Struts Users Mailing List'
 Subject: Populating Drop downs
 
 
 I need to populate three drop downs in a jsp before presentation. 
 Currently I have writted routines in the ActionForm which 
 access the DAO 
 class and populate the lists. The problem is that the DAO 
 class throws 
 an exception which means that I have to make my ActionForm aware of a 
 hibernateException. I want to do this in the action class and 
 make use 
 of declarative exception handling.
 
 Is the Action called prior to presenting the jsp? If so what is the 
 entry point?
 
 Q
 
 
 
 

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



July 14

2003-07-14 Thread Erik Price
Happy Bastille Day to all FR struts users.



Erik

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


Re: Tiles:getAsString tag

2003-07-14 Thread Sandeep Takhar
why not tiles:useAttribute

followed by a 

bean:message name=

sandeep
--- Erez Efrati [EMAIL PROTECTED] wrote:
 Is there a way to give tiles:getAsString a key
 instead of a literal
 string ? Just like bean:message key=welcome it
 will use the key to
 retrieve the string from the message resources. 
 If not, how hard is it to make it work?
 
 Thanks,
 Erez
 
 
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Populating Drop downs

2003-07-14 Thread Aaron Longwell
The Action is called prior to presenting the JSP only if you've set up:

an action mapping to map the user's URL to a an action
a forward to the JSP
and you set the Action's execute method to return a forward to that JSP
The entry point into the action is the execute() method which returns 
an ActionForward object. To create an ActionForward object use code like 
the following in your execute() method:

return mapping.findForward(name_of_forward);



Qasim Khawaja wrote:

I need to populate three drop downs in a jsp before presentation. 
Currently I have writted routines in the ActionForm which access the 
DAO class and populate the lists. The problem is that the DAO class 
throws an exception which means that I have to make my ActionForm 
aware of a hibernateException. I want to do this in the action class 
and make use of declarative exception handling.

Is the Action called prior to presenting the jsp? If so what is the 
entry point?

Q



-
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: ?? What is up with the MDaemons ??

2003-07-14 Thread Yansheng Lin
This is struts list.  I think you were referring to the Tomcat list.  I wonder
if that attachment was a worm??

Could a .txt file be a worm?  



-Original Message-
From: Micael [mailto:[EMAIL PROTECTED] 
Sent: July 12, 2003 1:15 AM
To: Struts Users Mailing List
Subject: ?? What is up with the MDaemons ??


What is with the hundreds of MDaemons I am getting on this list?


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



How to implement as a form ?

2003-07-14 Thread Linus Nikander
I want to make a simple form-page which allows manipulation of values i stor
in a dB. The db-table essentially consists of 2 rows, a unique identifier
and a boolean value. I want to list the complete contents of the db in a
single table with the booleans as checkboxes.

What is the best practice for implementing this ?

The version I've got 80% done at the moment has an action (displayItems)
which is tied to a form (itemsForm). The form in itself consists of a single
private List (itemList) variable with the appropriate getter/setter.

The list is populated at runtime with a bean for every row in the db.

I can present the information to the user using

logic:iterate id=ItemBean name=itemsForm property=itemList
  tr
tdhtml:checkbox property=yesNoValue//td
  /tr
/logic:iterate

The thing I don't understand (as I said i'm only 80% done so I haven't
actually tried it yet) is how the action i submit to will be able to tell
which yesNoValue a particular submitted value refers to ? When i look at the
html the name for the checkbox is the same for all entries.

I get the feeling I might have to wrong approach to the problem, maybe my
itemsForm should have getters / setters for arrays instead of a single get /
set which delivers a List of objects ?

Any insights ?

//Linus Nikander - [EMAIL PROTECTED]




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



[ANN] Struts updated in Out-of-the-Box 2.1 release

2003-07-14 Thread Eric Weidner
Struts 1.1 is included in Out-of-the-Box 2.1, an intelligent
distribution of over 100 Open Source projects for Java developers on both
Linux and Windows.

Major changes since Out-of-the-Box 2.0:
  * Added Oracle and DB2 integration for JBoss and the sample projects
  * Semi-automatic database switching for JBoss and the samples after
installation
  * Support for Red Hat, SuSE, and Mandrake Linux (in addition to Windows
XP/2000)
  * Added PHP, phpMyAdmin, and phpBB for LAMP developers
  * Dozens of project updates, including Struts, JBoss, Hibernate,
MySQL, PostgreSQL, Eclipse, and more

The free Community Edition is fully functional, does not expire, and does
not require registration.  It installs just over 25 of the 100+ projects,
including JBoss, MySQL, and Castor, and comes with the Castor sample project
and nearly all of the Enterprise Edition documentation.

Please visit http://www.ejbsolutions.com for details or to download the free
Community Edition.

Thanks,
Eric

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



Re: Please Help: ActionForm Re-Population

2003-07-14 Thread Aaron Longwell
Oops, spoke too soon.

You discussed 2 options:

1) All drop-down list data goes into session
2) input attribute for the update event goes back to edit Action 
instead of edit JSP

I went with #2 and that brings up a new issue. Doing that causes all of 
the current values for the fields to be lost (i.e. the user inputs a bad 
number format in a field they click submit and receive the JSP with 
a list of errors at the top) Because the process went through the edit 
action again, the Action re-queried the database and updated the 
ActionForm with database values, overwriting all the user's values 
(including ones that were correctly edited and contained no errors).

To avoid this I have to insert code in the edit Action to check for a 
populated ActionForm before querying the database. This feels a little 
messy.

Of course I could use the session solution (#1), but I like to avoid 
using sessions unless absolutely necessary. In addition, these drop 
downs could have 100's of items in them, I'd like to keep big chunks of 
data like that in the request.

So the alternative, I guess, is to have another action that NEVER 
queries the database, but just prepares a blank form. I actually already 
have one of these... it's my create action.

This appears to be the best practice in this situation anyone else 
have any feedback?

Thanks again,
Aaron
Dirk Markert wrote:

Hello Aaron,

 

***

AL I am on the last leg of a web application, and I've run into problems 
AL adding validation to the mix.

AL I have an edit Action that retrieves a database record, a list of 
AL drop-down options, and then populates the editor ActionForm. Works 
AL great, and I LOVE STRUTS!

AL Now I've implemented validation (through the Validator Framework, but I 
AL think my problem is with validate() in general).

AL After the user clicks submit, their post is sent to my update action.

AL If they do not break any validation rules, all goes well. The problem 
AL occurs when a validation rule is broken They are returned to the 
AL form... but the drop-downs (which are populated in the edit Action) 
AL are empty. I have set breakpoints in the code... and I see that the page 
AL neither my edit Action code (the part where the drop-down data is 
AL retrieved), nor my update Action code is actually running.

AL Question between pressing submit and returning the edit JSP with a 
AL populated ActionErrors object. Where is validate() actually called?

After the RequestProcessor has populated your action form, validate is
called. This happens before your action is called.
AL Where can I insert code to populate a drop-down with a set of values so 
AL that it will appear both when the form is presented the first time, and 
AL after a validation error?

You have at least 2 choices.

1) You can put your drop-down values into session scope.

2) You can set the input attribute of your action mapping to your edit
action.
AL Thank you for your help,
AL Aaron Longwell
AL -
AL To unsubscribe, e-mail: [EMAIL PROTECTED]
AL For additional commands, e-mail: [EMAIL PROTECTED]


Regards,
Dirk
+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 

-
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: html:options list source question

2003-07-14 Thread Craig Berry
Thanks for the very useful information.  Everything you said worked with
a single exception; to get the correct interpretation of the property
value pointing to a collection of LabelValueBeans, I needed to use
html:optionsCollection rather than html:options .

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 13, 2003 9:22 PM
To: 'Struts Users Mailing List'
Subject: RE: html:options list source question


Craig Berry wrote:
 The jsp page contains an html:form section linked via action mapping 
 to
the EditDeForm type.  
 In it, there is a select/options section that looks like this:
 
 html:select property=numFmt
   html:options collection=numFmtOptions 
   property=value
   labelProperty=label/
 /html:select
 I had thought that this would be enough to make it work.

The docs say that if you don't specify 'name', it will look to the form
bean for 'property'.  

So without the bean:define (definitely not needed) did you try:
html:options property=numFmtOptions / ?

(I'm not sure if you'd still need labelName/labelProperty, I suspect not
since you're using LabelValueBean.)

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

(BTW, you don't need the 'set' method to be a bean, read-only properties
are perfectly acceptable.)

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



[OT] java coding standards question

2003-07-14 Thread Rick Reumann
I know this is totally OT (and it's not even Friday:), but does anyone
use the checkstyle plugin in Eclipse? I have it set up to the defaults
and I keep getting two warnings that I don't understand (and I've
searched Google etc.)..

I keep getting the following for my methods that throw
HofficeDaoException:

Unable to get class information for HofficeDaoException.

I have no idea why I'm getting the above warning. The classes compile
fine and it seems fine that the method throws the Exception.


The second one I get is about magic numbers. I've read about them but
I dont' understand why I would get a warning on this set up in a
class...

public static final int PERIOD_END_DATE_DAYS = -7;

I get the warning 7 is a magic number. I thought you should only get
that for non final primitive declarations?

If anyone has any ideas what's up please feel free to e-mail me off list
(or here).

Thanks,

-- 
Rick



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



RE: Help Wanted, Struts Translate to Russian, Portuguese, etc

2003-07-14 Thread Yansheng Lin

I am not sure what is involved in this project?  
Are you translating the Struts Documentation to different languages?



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: July 13, 2003 8:20 PM
To: [EMAIL PROTECTED]
Subject: OT: Help Wanted, Struts Translate to Russian, Portuguese, etc


OT: Help Wanted, Struts Translate to Russian, Portuguese, etc.

If you know Struts and are fluent in a foreign language; and would like 
to help translate a white paper, please contact vic_Cekvenich at 
(noSpam) baseBeans.com.

I already have German, French translator. I need Portuguese's, Russian, 
  Slovak, Polshi, Japanese, etc, etc.

Thanks,
.V



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

2003-07-14 Thread Yansheng Lin
IMHO, Struts in Action is a much better read.  


-Original Message-
From: Butt, Dudley [mailto:[EMAIL PROTECTED] 
Sent: July 14, 2003 8:08 AM
To: 'Struts Users Mailing List'
Subject: RE: struts books


i know but i was lazy.. : ) and i also just wanted to make sure and confirm they
were the ones everyone still likes : ) 


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 3:24 PM
To: Struts Users Mailing List
Subject: Re: struts books


On Mon, 2003-07-14 at 05:05, Butt, Dudley wrote:
 
 Can anyone recommend which of the struts books as listed I should get.  

Programming Jakarta Struts
by Chuck Cavaness  
http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/ref=pd_sim_books_4/104-
4079535-6570309?v=glances=books

(Also, not to be a jerk, but a quick searh in the archives books on struts
would have given you lots of results).

-- 
Rick

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


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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

2003-07-14 Thread Rick Reumann
On Mon, 2003-07-14 at 14:03, Yansheng Lin wrote:

 IMHO, Struts in Action is a much better read.  

Yea... well my mom can beat up your mom.

-- 
Rick

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



RE: [ANN] Struts updated in Out-of-the-Box 2.1 release

2003-07-14 Thread Chappell, Simon P
coughMac OS X version?/cough

-Original Message-
From: Eric Weidner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:20 PM
To: [EMAIL PROTECTED]
Subject: [ANN] Struts updated in Out-of-the-Box 2.1 release


Struts 1.1 is included in Out-of-the-Box 2.1, an intelligent
distribution of over 100 Open Source projects for Java 
developers on both
Linux and Windows.

Major changes since Out-of-the-Box 2.0:
  * Added Oracle and DB2 integration for JBoss and the sample projects
  * Semi-automatic database switching for JBoss and the samples after
installation
  * Support for Red Hat, SuSE, and Mandrake Linux (in addition 
to Windows
XP/2000)
  * Added PHP, phpMyAdmin, and phpBB for LAMP developers
  * Dozens of project updates, including Struts, JBoss, Hibernate,
MySQL, PostgreSQL, Eclipse, and more

The free Community Edition is fully functional, does not 
expire, and does
not require registration.  It installs just over 25 of the 
100+ projects,
including JBoss, MySQL, and Castor, and comes with the Castor 
sample project
and nearly all of the Enterprise Edition documentation.

Please visit http://www.ejbsolutions.com for details or to 
download the free
Community Edition.

Thanks,
Eric

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



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



FW: Use of Validator in a Wizard Validator

2003-07-14 Thread Kearney, Michael
 The Struts in Action book describes how to do multipage validations in
chapter 12.10.1
 by using the following code:
 if (page == 1) {
//Check page 1 properties
 }
 if (page == 2) (
// And so on.
 
 Unfortunately, it doesn't go into detail about what goes inside the braces.
 What I'd like to know is what is the method call I use to validate just a
single field so I
 don't have to reinvent the wheel.
 
Best Regards,
Michael
 
 
 Michael P. Kearney
 [EMAIL PROTECTED]
 303-444-1101 x105
 Qualstar Corporation
 Advanced Development
 5480 Valmont Rd., Suite 250
 Boulder, CO 80301-2367

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



Re: [ANN] Struts updated in Out-of-the-Box 2.1 release

2003-07-14 Thread Eric Weidner
cough-uphardware/cough-up

Seriously though, OS X is high on our priority list when we get some hardware.

Eric

On Monday July 14 2003 12:17 pm, Chappell, Simon P wrote:
 coughMac OS X version?/cough

 -Original Message-

 From: Eric Weidner [mailto:[EMAIL PROTECTED]

 Sent: Monday, July 14, 2003 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: [ANN] Struts updated in Out-of-the-Box 2.1 release
 
 
 Struts 1.1 is included in Out-of-the-Box 2.1, an intelligent
 distribution of over 100 Open Source projects for Java
 developers on both
 Linux and Windows.
 
 Major changes since Out-of-the-Box 2.0:
   * Added Oracle and DB2 integration for JBoss and the sample projects
   * Semi-automatic database switching for JBoss and the samples after
 installation
   * Support for Red Hat, SuSE, and Mandrake Linux (in addition
 to Windows
 XP/2000)
   * Added PHP, phpMyAdmin, and phpBB for LAMP developers
   * Dozens of project updates, including Struts, JBoss, Hibernate,
 MySQL, PostgreSQL, Eclipse, and more
 
 The free Community Edition is fully functional, does not
 expire, and does
 not require registration.  It installs just over 25 of the
 100+ projects,
 including JBoss, MySQL, and Castor, and comes with the Castor
 sample project
 and nearly all of the Enterprise Edition documentation.
 
 Please visit http://www.ejbsolutions.com for details or to
 download the free
 Community Edition.
 
 Thanks,
 Eric
 
 -
 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 ResourceBundle's subclass in Struts

2003-07-14 Thread James Mitchell
On Monday 14 July 2003 03:26, Duan Qiang wrote:
 Hi,

 I posted a question but seems nobody replied. 

That usually indicated a lack of interest, not a lack of concern.

 Anyone tried to define a
 subclass of ResourceBundle and use it in Struts?

None that I'm aware of.  There are several reasons for Craig's decision not to 
use ResourceBundle for application messaging when he originally wrote Struts.  
For more details on that decision, search the archives.


 For a standalone program, it's straightforward to use sel-defined
 resourcebundle classes, for example,

 public class MyResourceBundle extends ResourceBundle
 {
 public Object handleGetObject()
 ...
 public Enumeration getKeys()
 }

 //use the subclass
 ResourceBundle bundle = ResourceBundle.getBundle(MyResourceBundle);

 However, when I specify the resource name as MyResourceBundle, Struts can
 not find the message bundle although my class MyResourceBundle is on
 classpath.

 It's possible to replace bean:message tag using my own methods, however,
 the action controller I uses is an instance of DispatchAction, which will
 match a method name with the message bundle key, for example, button.next
 matches to the function doNext and so on.

 So I can could totally avoid using struts message functionaliity, or how I
 can use my own ResourceBundle?

Writing your own extension of MessageResource is very simple.  Checkout these 
4 classes to see how its done:
org.apache.struts.util.MessageResourcesFactory.java
org.apache.struts.util.MessageResources.java
org.apache.struts.util.PropertyMessageResourcesFactory.java
org.apache.struts.util.PropertyMessageResources.java

Although, keep in mind that we will be deprecating this api and using 
Resources from Commons (it is currently in the sandbox, but will be 
released soon I'm sure)


 THx,

 Regards,

 dq



-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



RE: Tiles:getAsString tag

2003-07-14 Thread Erez Efrati
You're absolutely correct, I forgot all about it,

Thanks,
Erez

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 6:43 PM
To: Struts Users Mailing List
Subject: Re: Tiles:getAsString tag

why not tiles:useAttribute

followed by a 

bean:message name=

sandeep
--- Erez Efrati [EMAIL PROTECTED] wrote:
 Is there a way to give tiles:getAsString a key
 instead of a literal
 string ? Just like bean:message key=welcome it
 will use the key to
 retrieve the string from the message resources. 
 If not, how hard is it to make it work?
 
 Thanks,
 Erez
 
 
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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




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



RE: struts books

2003-07-14 Thread Yansheng Lin

I don't think so:).  

But seriously,  they are all good books. But I like 'Struts in Action' better
'cause it's a bit more detailed and the structure is more relaxed.


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED] 

Yea... well my mom can beat up your mom.

-- 
Rick

-
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 ResourceBundle's subclass in Struts

2003-07-14 Thread David Graham
--- James Mitchell [EMAIL PROTECTED] wrote:
 On Monday 14 July 2003 03:26, Duan Qiang wrote:
  Hi,
 
  I posted a question but seems nobody replied. 
 
 That usually indicated a lack of interest, not a lack of concern.
 
  Anyone tried to define a
  subclass of ResourceBundle and use it in Struts?
 
 None that I'm aware of.  There are several reasons for Craig's decision
 not to 
 use ResourceBundle for application messaging when he originally wrote
 Struts.  
 For more details on that decision, search the archives.

The only reason I can remember is that ResourceBundle is frustratingly not
Serializable, making it unsuitable for webapp message passing.

David

 
 
  For a standalone program, it's straightforward to use sel-defined
  resourcebundle classes, for example,
 
  public class MyResourceBundle extends ResourceBundle
  {
  public Object handleGetObject()
  ...
  public Enumeration getKeys()
  }
 
  //use the subclass
  ResourceBundle bundle = ResourceBundle.getBundle(MyResourceBundle);
 
  However, when I specify the resource name as MyResourceBundle,
 Struts can
  not find the message bundle although my class MyResourceBundle is on
  classpath.
 
  It's possible to replace bean:message tag using my own methods,
 however,
  the action controller I uses is an instance of DispatchAction, which
 will
  match a method name with the message bundle key, for example,
 button.next
  matches to the function doNext and so on.
 
  So I can could totally avoid using struts message functionaliity, or
 how I
  can use my own ResourceBundle?
 
 Writing your own extension of MessageResource is very simple.  Checkout
 these 
 4 classes to see how its done:
 org.apache.struts.util.MessageResourcesFactory.java
 org.apache.struts.util.MessageResources.java
 org.apache.struts.util.PropertyMessageResourcesFactory.java
 org.apache.struts.util.PropertyMessageResources.java
 
 Although, keep in mind that we will be deprecating this api and using 
 Resources from Commons (it is currently in the sandbox, but will be 
 released soon I'm sure)
 
 
  THx,
 
  Regards,
 
  dq
 
 
 
 -- 
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Using ResourceBundle's subclass in Struts

2003-07-14 Thread Craig R. McClanahan


On Mon, 14 Jul 2003, David Graham wrote:

 Date: Mon, 14 Jul 2003 12:22:55 -0700 (PDT)
 From: David Graham [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Using ResourceBundle's subclass in Struts

 --- James Mitchell [EMAIL PROTECTED] wrote:
  On Monday 14 July 2003 03:26, Duan Qiang wrote:
   Hi,
  
   I posted a question but seems nobody replied.
 
  That usually indicated a lack of interest, not a lack of concern.
 
   Anyone tried to define a
   subclass of ResourceBundle and use it in Struts?
 
  None that I'm aware of.  There are several reasons for Craig's decision
  not to
  use ResourceBundle for application messaging when he originally wrote
  Struts.
  For more details on that decision, search the archives.

 The only reason I can remember is that ResourceBundle is frustratingly not
 Serializable, making it unsuitable for webapp message passing.


That was definitely a problem.  But MessageResources in Struts also offers
more facilities than using ResourceBundle directly.  In particular, it
does the parameter substitution thing for you in a single call.

One of the items early on the 1.2.x time frame is to migrate Struts to use
the commons-resources package (currently in jakarta-commons-sandbox).  One
of the benefits gained by doing this will be a much easier way to plug in
alternative providers for the message text messages (including a way to
use any ResourceBundle implementation directly), without giving up the
convenience features of having things together in one method call.

 David

Craig

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



RE: accessing more than 1 formbean in an action class

2003-07-14 Thread Shane Mingins
Hi

Can you not just retrieve the object from the request/session? 

I had a form in session scope that I access from other action classes like
so: MyForm form = (MyForm)request.getSession().getAttribute(MyForm);

Shane


-Original Message-
From: Madhu Nair [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 15 July 2003 2:55 a.m.
To: [EMAIL PROTECTED]
Subject: accessing more than 1 formbean in an action class

Hi,

I am trying to access more than 1 formbean in an action class. Using the
Struts API I am able to retrieve the FormBeanConfig object for a form
bean. But I am unable to get the ActionForm object. How to get the same?

Regards,
Madhu

-
Madhu Nair
Member of Technical Staff,
Persistent Systems Private Limited,
Pune 411016 INDIA.
Tel: +91-20-5678900 Ext: 335


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

2003-07-14 Thread Jaye Bass
If these Struts books were vectors, it would take about 3 of them to
span the knowledge space.

On Mon, 2003-07-14 at 14:03, Yansheng Lin wrote:
 I don't think so:).  
 
 But seriously,  they are all good books. But I like 'Struts in Action' better
 'cause it's a bit more detailed and the structure is more relaxed.
 
 
 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED] 
 
 Yea... well my mom can beat up your mom.


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



Indexed form values

2003-07-14 Thread Amit Kirdatt
I have a struts form where I am doing the following:

logic:present name=form1 property=arrayList1 scope=request
  logic:iterate id=arrayValue1 name=form1 property=arrayList1
html:hidden name=arrayValue1 property=id1 indexed=true/
html:hidden name=arrayValue1 property=exampleBean.stuffValue
indexed=true/
html:hidden name=arrayValue1 property=exampleBean.exampleInfo.exId1
indexed=true/
  /logic:iterate
/logic:present

logic:present name=form1 property=arrayList2 scope=request
  logic:iterate id=arrayValue2 name=form1 property=arrayList2
html:hidden name=arrayValue2 property=id2 indexed=true/
html:hidden name=arrayValue2 property=exampleBean1.stuffValue
indexed=true/
html:hidden name=arrayValue2
property=exampleBean1.exampleInfo.exId1 indexed=true/
  /logic:iterate
/logic:present

I have to carry these hidden values thru 3 pages before inserting into the
database, the first page is where these values get set. On the second page
the values populate correctly, but on the second page the second iterate
loop does not populate at all. After investigating I found that arrayList is
not populating (size 0) from the second page to the third page, but the
first iterarte loop works just fine thru all pages and inserts into the DB
correctly. I have tried searching on the web and haven't found any answers.
Can somebody please help!

Thanks,
Amit


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

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



AW: Online Multiple Choice Testing System--Struts will be considered...

2003-07-14 Thread Ralf E. Stranzenbach
Hi,

I did this (more or less) using Struts and Hibernate an it worked very well.
You may have a look at http://it-performance.net using gast/gast as login.

Sincerly,

-Ursprüngliche Nachricht-
Von: nurkhamid [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 14. Juli 2003 09:17
An: [EMAIL PROTECTED]
Betreff: Online Multiple Choice Testing System--Struts will be
considered...



I'm going to design a web application. I'll call the great project Online
Multiple Choice Testing System, that could be deployed in my LAN-ed campus.
There will be at least three types of users: guest, tester, testee. Guest
is able to see general information. Testee is able to log in and do a test
of her choice. Tester is able to create, edit, delete, and manage test.
Tester can have more than one set of test. Tester is also able to make her
test as active meaning that it can be used by testee; as disabled meaning
that the test is inactive-inaccessible by testee; as active for certain
time and date period meaning that the test can only be done only at
predertermined time period. Tester is also able to analyze her test items,
such as statistical analysis.

Maybe the fourth type of user will be better, i.e., admin with task to
manage the system such as limiting number of test that can be created by
the tester.

Other possibilities may occur later.

Questions are:
How should I implement the above project (using Java technology) with
regard to should I use struts or not?

What will be the benefits of each approach-with or without struts?

With regard to ease of implementation, because I'm new to web application,
which one will be easier-with or without struts (for a newbie-r)? why?

However, I'm tempted to use struts. When I use struts, what simple steps
should I do to finish the project? Are there similar examples (using
struts) found at the Net that I can cusomize to my purpose? In this case,
I'm going to use MySQL as database engine.

Thanks for your suggestions and opinions.




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



radio button issue

2003-07-14 Thread Mathew, Manoj
Hi all

  I have a situation when i have 4 radio buttons ad all have same property name. So 
here the problem is i have to set the tabindex also. The control is going only ot the 
first radio button and then to the next element after all 4 radio buttons.Any idea how 
can i resolve this? i want to let the user the tab through all the 4 radio buttons..
thank you
mathew

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



Test Driven Development with Struts

2003-07-14 Thread Shane Mingins
Hello

Could someone give me some advice on using a TDD with Struts?

What sort of approach did they take and/or tools did they use?

Are there opinions on the best approach?  Are there any examples around?

For example I see there is an extension for JUnit called StrutsTestCase.

I am reasonably new to TDD  Struts and would like to start on a good track
:-)

Thanks
Shane


Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522



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



Re: AW: Online Multiple Choice Testing System--Struts will be considered...

2003-07-14 Thread David Graham
All web based projects of a reasonable size require a good MVC framework. 
Without a framework you'll have to write a lot more code and the app is
likely to be unmaintainable.  So, I encourage you to use Struts (or any
framework you like better).

By the way, any database that doesn't support foreign keys or views
isn't worth using :-).

David

 
 I'm going to design a web application. I'll call the great project
 Online
 Multiple Choice Testing System, that could be deployed in my LAN-ed
 campus.
 There will be at least three types of users: guest, tester, testee.
 Guest
 is able to see general information. Testee is able to log in and do a
 test
 of her choice. Tester is able to create, edit, delete, and manage test.
 Tester can have more than one set of test. Tester is also able to make
 her
 test as active meaning that it can be used by testee; as disabled
 meaning
 that the test is inactive-inaccessible by testee; as active for certain
 time and date period meaning that the test can only be done only at
 predertermined time period. Tester is also able to analyze her test
 items,
 such as statistical analysis.
 
 Maybe the fourth type of user will be better, i.e., admin with task to
 manage the system such as limiting number of test that can be created by
 the tester.
 
 Other possibilities may occur later.
 
 Questions are:
 How should I implement the above project (using Java technology) with
 regard to should I use struts or not?
 
 What will be the benefits of each approach-with or without struts?
 
 With regard to ease of implementation, because I'm new to web
 application,
 which one will be easier-with or without struts (for a newbie-r)? why?
 
 However, I'm tempted to use struts. When I use struts, what simple steps
 should I do to finish the project? Are there similar examples (using
 struts) found at the Net that I can cusomize to my purpose? In this
 case,
 I'm going to use MySQL as database engine.
 
 Thanks for your suggestions and opinions.
 
 
 
 
 -
 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!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Indexed form values

2003-07-14 Thread Sandeep Takhar
session scoped beans or request?

If request - then there have been numerous replies
about this FAQ which is that you have to initialize
all values less than or equal to the index that are
null.

i.e. getObject(int index)

sandeep

--- Amit Kirdatt [EMAIL PROTECTED] wrote:
 I have a struts form where I am doing the following:
 
 logic:present name=form1 property=arrayList1
 scope=request
   logic:iterate id=arrayValue1 name=form1
 property=arrayList1
 html:hidden name=arrayValue1 property=id1
 indexed=true/
 html:hidden name=arrayValue1
 property=exampleBean.stuffValue
 indexed=true/
 html:hidden name=arrayValue1
 property=exampleBean.exampleInfo.exId1
 indexed=true/
   /logic:iterate
 /logic:present
 
 logic:present name=form1 property=arrayList2
 scope=request
   logic:iterate id=arrayValue2 name=form1
 property=arrayList2
 html:hidden name=arrayValue2 property=id2
 indexed=true/
 html:hidden name=arrayValue2
 property=exampleBean1.stuffValue
 indexed=true/
 html:hidden name=arrayValue2
 property=exampleBean1.exampleInfo.exId1
 indexed=true/
   /logic:iterate
 /logic:present
 
 I have to carry these hidden values thru 3 pages
 before inserting into the
 database, the first page is where these values get
 set. On the second page
 the values populate correctly, but on the second
 page the second iterate
 loop does not populate at all. After investigating I
 found that arrayList is
 not populating (size 0) from the second page to the
 third page, but the
 first iterarte loop works just fine thru all pages
 and inserts into the DB
 correctly. I have tried searching on the web and
 haven't found any answers.
 Can somebody please help!
 
 Thanks,
 Amit
 
 
 This e-mail, including attachments, may include
 confidential and/or
 proprietary information, and may be used only by the
 person or entity to
 which it is addressed. If the reader of this e-mail
 is not the intended
 recipient or his or her authorized agent, the reader
 is hereby notified that
 any dissemination, distribution or copying of this
 e-mail is prohibited. If
 you have received this e-mail in error, please
 notify the sender by replying
 to this message and delete this e-mail immediately.
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Page Navigation Philosophy

2003-07-14 Thread Christopher M. DeBracy
I'm new to Stuts and have read several books. To get started I began
converting one of my sites. The site is fairly basic: a navigation frame
contains graphic images driven by Javascript for the mouse handling. The
only form that exists is on a contact page. 

I created global forwards for each of the pages, but then ran into
difficulties getting the navigation bar to work properly. The following code
was generated by Dreamweaver:

a href=home.jsp target=content
onClick=MM_nbGroup('down','group1','home','images/home_3.gif',1)
onMouseOver=MM_nbGroup('over','home','images/home_2.gif','images/home_4.gif
',1) onMouseOut=MM_nbGroup('out')img src=images/home_3.gif alt=
name=home width=66 height=28 border=0
onload=MM_nbGroup('init','group1','home','images/home.gif',1)/a

So far I've had no luck converting this to a html:link forward because of
the graphic images. All my attemps so far result in compilation errors or
lack of success at run-time.

Aside from this problem, the real question I have is whether I'm making
things more difficult for myself by forcing all navigation through global
forwards.

For simple sites, is it really necessary to have an action for each page,
especially if there's no user input?

Still struggling with the issue of when to do global forwards vs. action
mappings. 

Have picked up a bit by reading the message boards and appreciate any input
you may have.

Thanks.





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



Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Richard Hill
Hi,
I'm working on an action that gets a resultset from a database table
containing 4 columns. I need to pass that information back to the view (jsp)
which will iterate over results. My question is what is the best way to do
this. Do I create an array for each row in the resultset and insert each
array in a collection, passing that back to the view? 

If so, how would you iterate over each array in the collection with the
logic:iterate taglib? All of the examples only show iterations over single
column lists.

Any help would be appreciated.

Thanks,
Richard


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



FW: need help

2003-07-14 Thread Mohan Kalyanasundaram
 Hi,
 
 I am new to Struts and I have to complete a project with an aggressive
 deadline. I want to know the following:
 
 My application will have about 80-100 screens each having different action
 items. Most screens will have a common header, footer, and a navbar. My
 questions are:
 
 I thought of using Tiles for my application. Is that a good idea.
 - Should I have to have one action form for each screen or can I group
 the screens and have one action form for a group of screens. Which would
 be a preferred method?
 - Should I have to have one action class for each screen or can I
 group the action classes the same way as forms? Which would be a preferred
 method?
 - Every screen of mine is going to be a jsp page. I want to populate
 the form data at the time when someone enters the page from another page
 and I want to write the data into the database at the time when the user
 leaves a page with an action. Is this possible in the same action class?
 How does the flow work? Does the control go to the action class first
 before the form data is picked up for display. If that is the case, will
 there be an easy way for me to set the form data from the same action
 class for the form before the data is displayed? Where can I see a sample
 code if I use one single action class for loading the data and for
 processing the actions within the form? What should be the setting within
 the struts-config file for the above scenario.
 
 Sorry, if my questions are dumb. I need help.
 
 Thanks in advance,
 Mohan
 

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



RE: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Shane Mingins
Hi Richard

For what it is worth this is how I am doing it:

My form has a Collection called products which contains product objects.
A product has a name and description.  The id value product is then used
to refer to each object in the collection in a bean write statement,
displaying the name and description in each column.

In this case I am also writing a link with the index value of the
collection.

logic:iterate id=product name=ChannelForm property=products
tr
td align=left
bean:write name=product property=name /
/td
td align=left
bean:write name=product  property=description
/
/td
td align=center
html:link page=/EditChannel.do?action=editProduct
indexed=true
bean:message key=link.edit/
/html:link
/td
/tr
/logic:iterate

HTH
Shane

-Original Message-
From: Richard Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 15 July 2003 11:36 a.m.
To: '[EMAIL PROTECTED]'
Subject: Iterating the resultset contents in the view (jsp)

Hi,
I'm working on an action that gets a resultset from a database table
containing 4 columns. I need to pass that information back to the view (jsp)
which will iterate over results. My question is what is the best way to do
this. Do I create an array for each row in the resultset and insert each
array in a collection, passing that back to the view? 

If so, how would you iterate over each array in the collection with the
logic:iterate taglib? All of the examples only show iterations over single
column lists.

Any help would be appreciated.

Thanks,
Richard


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

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



RE: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Raible, Matt
The easiest way IMO is to do the following:

1.  Create ActionForms or POJOs to represent each row returned from your
table.
2.  Put these in a List and put them in a scope (i.e. request or session).
3.  Display them with the Display Tag Library (http://displaytag.sf.net).

HTH,

Matt

-Original Message-
From: Richard Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 5:36 PM
To: '[EMAIL PROTECTED]'
Subject: Iterating the resultset contents in the view (jsp)


Hi,
I'm working on an action that gets a resultset from a database table
containing 4 columns. I need to pass that information back to the view (jsp)
which will iterate over results. My question is what is the best way to do
this. Do I create an array for each row in the resultset and insert each
array in a collection, passing that back to the view? 

If so, how would you iterate over each array in the collection with the
logic:iterate taglib? All of the examples only show iterations over single
column lists.

Any help would be appreciated.

Thanks,
Richard


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

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



Re: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread David Graham
--- Richard Hill [EMAIL PROTECTED] wrote:
 Hi,
 I'm working on an action that gets a resultset from a database table
 containing 4 columns. I need to pass that information back to the view
 (jsp)
 which will iterate over results. My question is what is the best way to
 do
 this. Do I create an array for each row in the resultset and insert each
 array in a collection, passing that back to the view? 

A fairly standard approach is to create a class that represents a row of
your ResultSet and store a List of those objects in the request for the
page to iterate over.  

If you don't want to create a class for each result, you should check out
the BeanUtils DynaBeans.  This little gem:
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/RowSetDynaClass.html
allows you to transer ResultSet data to DynaBeans in a trivial amount of
code.

David


 
 If so, how would you iterate over each array in the collection with the
 logic:iterate taglib? All of the examples only show iterations over
 single
 column lists.
 
 Any help would be appreciated.
 
 Thanks,
 Richard
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: struts books

2003-07-14 Thread Tin Pham
I recommend getting 2 books,
Manning Struts In Action and O'Reilly Programming Jakarta Struts.



Butt, Dudley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all,

 Can anyone recommend which of the struts books as listed I should get. I
cannot purchase all. Which of these books are still current with the version
 of struts currently out there?

 Pls recommend! thx




 NOTICE:

 This message contains privileged and confidential information intended
 only for the person or entity to which it is addressed.
 Any review, retransmission, dissemination, copy or other use of, or
 taking of any action in reliance upon this information by persons or
 entities other than the intended recipient, is prohibited.

 If you received this message in error, please notify the sender
 immediately by e-mail, facsimile or telephone and thereafter delete the
 material from any computer.

 The New Africa Capital Group, its subsidiaries or associates do not
 accept liability for any personal views expressed in this message.




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



RE: Iterate tag

2003-07-14 Thread Kevin J Citron
I'm fairly new to struts. So, if this sounds like an easy question.
Bear with me.
Here is what I would like to able to to

use the iterate tag to iterate over a collection
creating a link to another page for each item of the iteration.
something like this.

ul
logic:iterate id=productCategory name=productCategoryThingy 
property=productCategories
lihtml:link page= /html:link/li
/logic:iterate
/ul

what I'm missing comes after the page attribute in the html:link tag
I can print out the items in the list using,
bean:write name=productCategory property=name/
Any help would be greatly appreciated.



--

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403


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


RE: Iterate tag

2003-07-14 Thread David Graham
What Servlet API version are you using?  If it's 2.3, you should consider
using the standard JSTL tags c:forEach and c:out instead of the
proprietary Struts counterparts.

David

--- Kevin J Citron [EMAIL PROTECTED] wrote:
 I'm fairly new to struts. So, if this sounds like an easy question.
 Bear with me.
 
 Here is what I would like to able to to
 
 use the iterate tag to iterate over a collection
 creating a link to another page for each item of the iteration.
 
 something like this.
 
 ul
 logic:iterate id=productCategory name=productCategoryThingy 
 property=productCategories
  lihtml:link page= /html:link/li
 /logic:iterate
 /ul
 
 what I'm missing comes after the page attribute in the html:link tag
 I can print out the items in the list using,
  bean:write name=productCategory property=name/
 
 
 Any help would be greatly appreciated.
 
 
 
 
 -- 
 
 Kevin J Citron
 Sr. Object Imagineer
 Optimized Objects, Inc.
 EL Paso, Texas 79930
 (915) 565-5777/566-2403
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Iterate tag

2003-07-14 Thread Kevin J Citron
Thanks for the reply.
I'm using JBoss 3.2.1 with Tomcat 4.1.24.
I'll have to check if it's 2.3
Is struts soon going to move to the JSTL stuff ???


David Graham wrote:

What Servlet API version are you using?  If it's 2.3, you should consider
using the standard JSTL tags c:forEach and c:out instead of the
proprietary Struts counterparts.
David

--- Kevin J Citron [EMAIL PROTECTED] wrote:
 

I'm fairly new to struts. So, if this sounds like an easy question.
Bear with me.
Here is what I would like to able to to

use the iterate tag to iterate over a collection
creating a link to another page for each item of the iteration.
something like this.

ul
logic:iterate id=productCategory name=productCategoryThingy 
property=productCategories
lihtml:link page= /html:link/li
/logic:iterate
/ul

what I'm missing comes after the page attribute in the html:link tag
I can print out the items in the list using,
bean:write name=productCategory property=name/
Any help would be greatly appreciated.



--

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403


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



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403



Re: Iterate tag

2003-07-14 Thread Kevin J Citron
Looks like 4.1.x is 2.3 compliant.

Kevin J Citron wrote:

Thanks for the reply.
I'm using JBoss 3.2.1 with Tomcat 4.1.24.
I'll have to check if it's 2.3
Is struts soon going to move to the JSTL stuff ???


David Graham wrote:

What Servlet API version are you using?  If it's 2.3, you should 
consider
using the standard JSTL tags c:forEach and c:out instead of the
proprietary Struts counterparts.

David

--- Kevin J Citron [EMAIL PROTECTED] wrote:
 

I'm fairly new to struts. So, if this sounds like an easy question.
Bear with me.
Here is what I would like to able to to

use the iterate tag to iterate over a collection
creating a link to another page for each item of the iteration.
something like this.

ul
logic:iterate id=productCategory name=productCategoryThingy 
property=productCategories
lihtml:link page= /html:link/li
/logic:iterate
/ul

what I'm missing comes after the page attribute in the html:link tag
I can print out the items in the list using,
bean:write name=productCategory property=name/
Any help would be greatly appreciated.



--

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403


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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403


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


Re: Using ResourceBundle's subclass in Struts

2003-07-14 Thread Duan Qiang
Hi, Craig, James and David,

Thank you very much for your replies. I understand the problem now.

I have noticed the MessageResources in struts, however, for my application,
I have to maintain two versions of the application, one is the web version
and the other is standalone version. One of my software components has its
own way to handle message resources, for example, it recognizes
messagebunde.key as a message bundle entry.

As I can understand, I should use two sets of message resources in my case,
one set of classes subclassing ResourceBundle to use my software component
and the other set subclassing/using MessageResources in Struts.

Regards,

dq

- Original Message - 
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 4:04 AM
Subject: Re: Using ResourceBundle's subclass in Struts




 On Mon, 14 Jul 2003, David Graham wrote:

  Date: Mon, 14 Jul 2003 12:22:55 -0700 (PDT)
  From: David Graham [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: Using ResourceBundle's subclass in Struts
 
  --- James Mitchell [EMAIL PROTECTED] wrote:
   On Monday 14 July 2003 03:26, Duan Qiang wrote:
Hi,
   
I posted a question but seems nobody replied.
  
   That usually indicated a lack of interest, not a lack of concern.
  
Anyone tried to define a
subclass of ResourceBundle and use it in Struts?
  
   None that I'm aware of.  There are several reasons for Craig's
decision
   not to
   use ResourceBundle for application messaging when he originally wrote
   Struts.
   For more details on that decision, search the archives.
 
  The only reason I can remember is that ResourceBundle is frustratingly
not
  Serializable, making it unsuitable for webapp message passing.
 

 That was definitely a problem.  But MessageResources in Struts also offers
 more facilities than using ResourceBundle directly.  In particular, it
 does the parameter substitution thing for you in a single call.

 One of the items early on the 1.2.x time frame is to migrate Struts to use
 the commons-resources package (currently in jakarta-commons-sandbox).  One
 of the benefits gained by doing this will be a much easier way to plug in
 alternative providers for the message text messages (including a way to
 use any ResourceBundle implementation directly), without giving up the
 convenience features of having things together in one method call.

  David

 Craig

 -
 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: c:import functionality in an Action class ?

2003-07-14 Thread James Mitchell
On Monday 14 July 2003 12:25, Ranjangaonkar, Vaibhav (HQP) wrote:
 I am looking for an Action class like IncludeAction but
 this class should be able to include contents from an external
 source and store it in request/session scope, much like the
 c:import  tag in JSTL. But, I want to use this functionality
 outside of a JSP. Is there something like that already ? If not,
 do we need an one or we can get away without it ?

Please ask user questions on the users list.


 Please advise,
 Thanks.

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



Re: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Craig R. McClanahan


On Mon, 14 Jul 2003, Richard Hill wrote:

 Date: Mon, 14 Jul 2003 16:36:17 -0700
 From: Richard Hill [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Iterating the resultset contents in the view (jsp)

 Hi,
 I'm working on an action that gets a resultset from a database table
 containing 4 columns. I need to pass that information back to the view (jsp)
 which will iterate over results. My question is what is the best way to do
 this. Do I create an array for each row in the resultset and insert each
 array in a collection, passing that back to the view?


That is certainly one approach.  Indeed, commons-beanutils has a useful
little class (org.apache.commons.beanutils.RowSetDynaClass) that is
ideally suited to this use case.  It creates a List of DynaBeans
representing the data content returned by the SELECT.  Because it makes a
copy, you can close the result set (and return the connection back to the
connection pool) before forwarding to the page.

 If so, how would you iterate over each array in the collection with the
 logic:iterate taglib? All of the examples only show iterations over single
 column lists.


Let's assume you have done this in your Action:

  ResultSet rs = ...;
  RowSetDynaClass rsdc = new RowSetDynaClass(rs);
  rs.close();
  request.setAttribute(customers, rsdc.getList());

so you now have a request attribute containing the list.  Now, in your
page, you can say things like:

  logic:iterate id=customer name=customers
Name is bean:write name=customer property=name/
Status is bean:write name=customer property=status/
  /logic:iterate

and so on.  Details of RowSetDynaClass are in the javadocs for BeanUtils:

  http://jakarta.apache.org/commons/beanutils/

 Any help would be appreciated.

 Thanks,
 Richard


Craig

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



Re: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
Hi Kris,
I have studied eventlisteners in a book[programming jakarta struts].I think below 
mentioned url will provide u with the required info.. 
 
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3
 
Thanks
Prashanth

Kris Schneider [EMAIL PROTECTED] wrote:
I don't really see how event listeners and filters are almost the same thing.
Can you elaborate? Is it possible to provide a customized request or response
object through an event listener? Can event listeners be mapped to either a
specific servlet or URL pattern?

Quoting Prashanth.S :

 I think u can also use eventlisteners which are allmost same thing as
 filters..
 Regards
 Prashanth
 
 Kris Schneider wrote:
 Seems like the easiest thing to do would be to write a Filter mapped to
 /*
 that uses HttpServletRequest.getRequestURI to capture the requested URI. In
 a
 conformant Servler 2.3 container, the Filter will only operate on the
 original
 client request, not forwards or includes.
 
 Quoting david chan :
 
  Hi,
  I am writing a RequestProcessor that is a subclass of
  Struts 1.1 RequestProcessor, the purpose is to track
  user activities, i.e. which link the user clicked,
  which page the user requested etc.
  I override the method processForwardConfig, and put
  my tracking function first, here is how it looks:
  
  //my code to log user request
  logPage(request.getRequestURI());
  super.processForwardConfig(request, response, forward
  );
  
  
  However, there is one problem with this approach, 
  If there is action chaining (or server side forward),
  that will be also logged, but that is not the user
  requested URI, and I don't need to log any of chained
  action URI or server side forwarded URI. 
  
  Any suggestion how to deal with this problem?
  
  Thanks.
  David
 
 -- 
 Kris Schneider 
 D.O.Tech 

-- 
Kris Schneider 
D.O.Tech 

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Iterating the resultset contents in the view (jsp)

2003-07-14 Thread Kris Schneider
Another datapoint: JSTL provides an interface called 
javax.servlet.jsp.jstl.sql.Result:

public interface Result {
  public SortedMap[] getRows();
  public Object[][]  getRowsByIndex();
  public String[]getColumnNames();
  public int getRowCount();
  public boolean isLimitedByMaxRows();
}
and a utility class javax.servlet.jsp.jstl.sql.ResultSupport:

public class ResultSupport {
  public static Result toResult(ResultSet rs);
  public static Result toResult(ResultSet rs, int maxRows);
}
to accomplish something similar. The SortedMap instances returned from 
Result.getRows are keyed by the ResultSet's column names and use the 
Comparator String.CASE_INSENSITIVE_ORDER so that you don't have to worry 
about matching the case of the column name exactly. So, depending on 
what your preference is, you can just do:

ResultSet rs = ...;
Result result = ResultSupport.toResult(rs);
request.setAttribute(MyConstants.RESULT, result);
or:

ResultSet rs = ...;
Result result = ResultSupport.toResult(rs);
Map[] rows = result.getRows();
request.setAttribute(MyConstants.ROWS, rows);
David Graham wrote:
--- Richard Hill [EMAIL PROTECTED] wrote:

Hi,
I'm working on an action that gets a resultset from a database table
containing 4 columns. I need to pass that information back to the view
(jsp)
which will iterate over results. My question is what is the best way to
do
this. Do I create an array for each row in the resultset and insert each
array in a collection, passing that back to the view? 


A fairly standard approach is to create a class that represents a row of
your ResultSet and store a List of those objects in the request for the
page to iterate over.  

If you don't want to create a class for each result, you should check out
the BeanUtils DynaBeans.  This little gem:
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/RowSetDynaClass.html
allows you to transer ResultSet data to DynaBeans in a trivial amount of
code.
David



If so, how would you iterate over each array in the collection with the
logic:iterate taglib? All of the examples only show iterations over
single
column lists.
Any help would be appreciated.

Thanks,
Richard
--
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: tracking user activities: how to ignore action chaining (or serverside forward)

2003-07-14 Thread Kris Schneider
Prashanth,

Thanks, but my point was that they're really nothing alike. I wasn't 
asking the questions because I didn't know the answers, I was asking 
because the answers would illustrate some of the differences. If the 
information in the link you provided implies that event listeners and 
filters are almost the same thing then it's horribly misleading.

Prashanth.S wrote:
Hi Kris,
I have studied eventlisteners in a book[programming jakarta struts].I think below mentioned url will provide u with the required info.. 
 
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3
 
Thanks
Prashanth

Kris Schneider [EMAIL PROTECTED] wrote:
I don't really see how event listeners and filters are almost the same thing.
Can you elaborate? Is it possible to provide a customized request or response
object through an event listener? Can event listeners be mapped to either a
specific servlet or URL pattern?
Quoting Prashanth.S :


I think u can also use eventlisteners which are allmost same thing as
filters..
Regards
Prashanth
Kris Schneider wrote:
Seems like the easiest thing to do would be to write a Filter mapped to
/*
that uses HttpServletRequest.getRequestURI to capture the requested URI. In
a
conformant Servler 2.3 container, the Filter will only operate on the
original
client request, not forwards or includes.
Quoting david chan :


Hi,
I am writing a RequestProcessor that is a subclass of
Struts 1.1 RequestProcessor, the purpose is to track
user activities, i.e. which link the user clicked,
which page the user requested etc.
I override the method processForwardConfig, and put
my tracking function first, here is how it looks:
//my code to log user request
logPage(request.getRequestURI());
super.processForwardConfig(request, response, forward
);
However, there is one problem with this approach, 
If there is action chaining (or server side forward),
that will be also logged, but that is not the user
requested URI, and I don't need to log any of chained
action URI or server side forwarded URI. 

Any suggestion how to deal with this problem?

Thanks.
David
--
Kris Schneider 
D.O.Tech 
--
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: tracking user activities: how to ignore action chaining (or server side forward)

2003-07-14 Thread Prashanth.S
Hi kris,
Thanks for the info.Iam a newbie to java and i came to know after reading books that 
their functionality is allmost similar.Now through u i came to know that they r 
different.Thanku very much for guiding me.Is there any resource present on net that 
would guide me in this matter???
Thanks
Prashanth

Kris Schneider [EMAIL PROTECTED] wrote:
Prashanth,

Thanks, but my point was that they're really nothing alike. I wasn't 
asking the questions because I didn't know the answers, I was asking 
because the answers would illustrate some of the differences. If the 
information in the link you provided implies that event listeners and 
filters are almost the same thing then it's horribly misleading.

Prashanth.S wrote:
 Hi Kris,
 I have studied eventlisteners in a book[programming jakarta struts].I think below 
 mentioned url will provide u with the required info.. 
 
 http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3
 
 Thanks
 Prashanth
 
 Kris Schneider wrote:
 I don't really see how event listeners and filters are almost the same thing.
 Can you elaborate? Is it possible to provide a customized request or response
 object through an event listener? Can event listeners be mapped to either a
 specific servlet or URL pattern?
 
 Quoting Prashanth.S :
 
 
I think u can also use eventlisteners which are allmost same thing as
filters..
Regards
Prashanth

Kris Schneider wrote:
Seems like the easiest thing to do would be to write a Filter mapped to
/*
that uses HttpServletRequest.getRequestURI to capture the requested URI. In
a
conformant Servler 2.3 container, the Filter will only operate on the
original
client request, not forwards or includes.

Quoting david chan :


Hi,
I am writing a RequestProcessor that is a subclass of
Struts 1.1 RequestProcessor, the purpose is to track
user activities, i.e. which link the user clicked,
which page the user requested etc.
I override the method processForwardConfig, and put
my tracking function first, here is how it looks:

//my code to log user request
logPage(request.getRequestURI());
super.processForwardConfig(request, response, forward
);


However, there is one problem with this approach, 
If there is action chaining (or server side forward),
that will be also logged, but that is not the user
requested URI, and I don't need to log any of chained
action URI or server side forwarded URI. 

Any suggestion how to deal with this problem?

Thanks.
David

-- 
Kris Schneider 
D.O.Tech 

-- 
Kris Schneider 
D.O.Tech 



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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: tracking user activities: how to ignore action chaining (or serverside forward)

2003-07-14 Thread Kris Schneider
Absolutely. One place to start would be Sun's own J2EE 1.3 Tutorial:

http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html

Specifically, there's a section called Java Servlet Technology:

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html

Also, the Servlet 2.3 Specification is the definitive guide and it's not 
that bad a read:

http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

And there's always the Servlet home page itself:

http://java.sun.com/products/servlet/

Prashanth.S wrote:
Hi kris,
Thanks for the info.Iam a newbie to java and i came to know after reading books that 
their functionality is allmost similar.Now through u i came to know that they r 
different.Thanku very much for guiding me.Is there any resource present on net that 
would guide me in this matter???
Thanks
Prashanth
Kris Schneider [EMAIL PROTECTED] wrote:
Prashanth,
Thanks, but my point was that they're really nothing alike. I wasn't 
asking the questions because I didn't know the answers, I was asking 
because the answers would illustrate some of the differences. If the 
information in the link you provided implies that event listeners and 
filters are almost the same thing then it's horribly misleading.

Prashanth.S wrote:

Hi Kris,
I have studied eventlisteners in a book[programming jakarta struts].I think below mentioned url will provide u with the required info.. 

http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=3

Thanks
Prashanth
Kris Schneider wrote:
I don't really see how event listeners and filters are almost the same thing.
Can you elaborate? Is it possible to provide a customized request or response
object through an event listener? Can event listeners be mapped to either a
specific servlet or URL pattern?
Quoting Prashanth.S :



I think u can also use eventlisteners which are allmost same thing as
filters..
Regards
Prashanth
Kris Schneider wrote:
Seems like the easiest thing to do would be to write a Filter mapped to
/*
that uses HttpServletRequest.getRequestURI to capture the requested URI. In
a
conformant Servler 2.3 container, the Filter will only operate on the
original
client request, not forwards or includes.
Quoting david chan :



Hi,
I am writing a RequestProcessor that is a subclass of
Struts 1.1 RequestProcessor, the purpose is to track
user activities, i.e. which link the user clicked,
which page the user requested etc.
I override the method processForwardConfig, and put
my tracking function first, here is how it looks:
//my code to log user request
logPage(request.getRequestURI());
super.processForwardConfig(request, response, forward
);
However, there is one problem with this approach, 
If there is action chaining (or server side forward),
that will be also logged, but that is not the user
requested URI, and I don't need to log any of chained
action URI or server side forwarded URI. 

Any suggestion how to deal with this problem?

Thanks.
David
--
Kris Schneider 
D.O.Tech 


--
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: Online Multiple Choice Testing System--Struts will be considered...

2003-07-14 Thread Jing Zhou

- Original Message - 
From: nurkhamid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 2:16 AM
Subject: Online Multiple Choice Testing System--Struts will be considered...



 I'm going to design a web application. I'll call the great project Online
 Multiple Choice Testing System, that could be deployed in my LAN-ed
campus.

Such multiple choice testing system is a sample in the Carrier User's Guide
at http://www.netspread.com

 There will be at least three types of users: guest, tester, testee. Guest
 is able to see general information. Testee is able to log in and do a test
 of her choice. Tester is able to create, edit, delete, and manage test.

You could define a user group for testers and another group for testees.
Anonymous guest is supported in Carrier too. The testers can be
assigned to be the owners of some item and action mapping categories.
They are responsible to compose testing web forms.

 Tester can have more than one set of test. Tester is also able to make her
 test as active meaning that it can be used by testee; as disabled meaning
 that the test is inactive-inaccessible by testee; as active for certain
 time and date period meaning that the test can only be done only at
 predertermined time period. Tester is also able to analyze her test items,
 such as statistical analysis.

In Carrier, action mappings (logic web forms) and item forms can be
published and withdrawn. They are available to use only when they are
published by testers.

In the sample, once a testing is started, it is in a workflow process,
called inbox process. It then be moved from stage to stage by the testee or
the tester (who is responsible for grading) You could write time control
codes for the testing stage to limit the total duration the testees could
have.

An very important feature is that testers can replay the testing web forms
submitted in the inbox process. And on the testing web forms, testers
could also specify certain area reserved for instructor only. You'll
find it in the sample. In that area, tester give their grades or
comments to the testees.


 Maybe the fourth type of user will be better, i.e., admin with task to
 manage the system such as limiting number of test that can be created by
 the tester.

Carrie supports this feature too.


 Other possibilities may occur later.

 Questions are:
 How should I implement the above project (using Java technology) with
 regard to should I use struts or not?

 What will be the benefits of each approach-with or without struts?


Carrier is built on top of Struts and a virtuall free Internet IDE. One CPU
license could support thousands of testers and testees on Internet. You
then focus on the socre evaluation engine, testing workflow design,
testing template design, analysis, etc, if you use Carrier as your platform.

 With regard to ease of implementation, because I'm new to web application,
 which one will be easier-with or without struts (for a newbie-r)? why?

 However, I'm tempted to use struts. When I use struts, what simple steps
 should I do to finish the project? Are there similar examples (using
 struts) found at the Net that I can cusomize to my purpose? In this case,
 I'm going to use MySQL as database engine.

MySQL is not recommended. We support Oracle database. If you
do not have Oracle resources, you send email directly to me to schedule
a live demo for Carrier on Internet at our site. You will find as a tester,
you are able to compose live testing web forms in our site completely
on Internet. The software can be downloaded at
http://www.netspread.com/downloads/instructions.html

With the Oracle database, Carrier is able to manage thousands of
testing web forms without any problem.


 Thanks for your suggestions and opinions.



Jing
Netspread Carrier
http://www.netspread.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: Iterate tag

2003-07-14 Thread David Graham
--- Kevin J Citron [EMAIL PROTECTED] wrote:
 Thanks for the reply.
 I'm using JBoss 3.2.1 with Tomcat 4.1.24.
 I'll have to check if it's 2.3
 Is struts soon going to move to the JSTL stuff ???

The Tomcat 4.x series implements the Servlet 2.3 API.  Struts will
continue to support its tags so it's not a matter of Struts moving to
JSTL, it's up to app developers.  I highly recommend the use of the
standard tags because they're easier, more powerful, and every Java web
developer will know them.

David

 
 
 
 David Graham wrote:
 
 What Servlet API version are you using?  If it's 2.3, you should
 consider
 using the standard JSTL tags c:forEach and c:out instead of the
 proprietary Struts counterparts.
 
 David
 
 --- Kevin J Citron [EMAIL PROTECTED] wrote:
   
 
 I'm fairly new to struts. So, if this sounds like an easy question.
 Bear with me.
 
 Here is what I would like to able to to
 
 use the iterate tag to iterate over a collection
 creating a link to another page for each item of the iteration.
 
 something like this.
 
 ul
 logic:iterate id=productCategory name=productCategoryThingy 
 property=productCategories
  lihtml:link page= /html:link/li
 /logic:iterate
 /ul
 
 what I'm missing comes after the page attribute in the html:link tag
 I can print out the items in the list using,
  bean:write name=productCategory property=name/
 
 
 Any help would be greatly appreciated.
 
 
 
 
 -- 
 
 Kevin J Citron
 Sr. Object Imagineer
 Optimized Objects, Inc.
 EL Paso, Texas 79930
 (915) 565-5777/566-2403
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 -- 
 
 Kevin J Citron
 Sr. Object Imagineer
 Optimized Objects, Inc.
 EL Paso, Texas 79930
 (915) 565-5777/566-2403
 
 
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



  1   2   >