Re: Alternate color in html:iterate

2005-07-14 Thread amitava . basak

1. Have 2 classes in CSS.

2. within iterate write:
tr class='bean name= property=listRowClass /' 
td html:../td
..

/tr

3. In the corresponding form:

 public String getListRowClass() {
  if ( oddRow.equals(listRowClass))
  listRowClass = evenRow;
  else
  listRowClass = oddRow;

  return listRowClass;
  }

Short  sweet isn't it?

(Basuda no comments)

Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

How to pass index from iterator tag to JS

2005-07-14 Thread Vivek Chauhan
Hi,

How can I pass the index of the iteratorlogic:iterator tag to a Javascript 
function.
I had used JSP scriptlet but tht wz not working..
vivek




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



Re: How to pass index from iterator tag to JS

2005-07-14 Thread Leon Rosenberg
logic:iterate bla indexId=i
  a href=# onClick=myFunctionCall('bean:write name=i/')  
  /a
/logic:iterate

just an example.
regards
Leon

On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
 Hi,
 
 How can I pass the index of the iteratorlogic:iterator tag to a Javascript 
 function.
 I had used JSP scriptlet but tht wz not working..
 vivek
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Problem with html:link

2005-07-14 Thread amitava . basak

I have a html:link action=MyAction 

 in struts config i have  action path=MyAction 
forward=MyGlobalForward 

In global forward i have forward name=MyGlobalForward path=a.jsp


now i have a parameter in the link. the mapping produced is 
MyAction?transId=100922

i want to forward to that page with the parameter appened to the hyperlink 
using this best practice.


Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Generic template

2005-07-14 Thread Steve Bosman
On 7/13/05, Vijay K Anand [EMAIL PROTECTED] wrote:
 Hi All
 
 Any blueprint how can we write genric code for manipulating data in a
 table ,
 

Can you expand your question please? If you are interested in
displaying tabular data in your JSPs have a look at the DisplayTag
http://displaytag.sourceforge.net/ - with a bit of extension this can
also be used for outputting form inputs. Where I work we then have a
ActionForm (representing the table) which contains a list of
ActionForms (representing each row).

Steve

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



Re: How to pass index from iterator tag to JS

2005-07-14 Thread Vivek Chauhan
Ya.. Thnx for ur suggestion..
actually the problem is with struts only you can nest two struts tags..
Wht I wz doing..
logic:iterate name=someForm property=someList id=someList 
indexId=index

html:checkbox name=someList property=someStatus indexed=true 
onclick=javascript: changeSomeCheckBox(bean:write name=index /) /

/loigic:iterate

But this didnt work so Now I m using input type = checkbox  tag

Is there a way to work only using Struts tags..without resorting to pure 
HTML...



Thanks,

Vivek

html:checkbox onclick=foo(bean:write name=index) /
Leon Rosenberg [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 logic:iterate bla indexId=i
  a href=# onClick=myFunctionCall('bean:write name=i/')
  /a
 /logic:iterate

 just an example.
 regards
 Leon

 On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
 Hi,

 How can I pass the index of the iteratorlogic:iterator tag to a 
 Javascript
 function.
 I had used JSP scriptlet but tht wz not working..
 vivek




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

 




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



Re: How to pass index from iterator tag to JS

2005-07-14 Thread Leon Rosenberg
ah ok:

html:checkbox name=someList property=someStatus indexed=true 
 onclick=%=javascript: changeSomeCheckBox(+index+)% /

regards
Leon


On Thu, 2005-07-14 at 12:59 +0530, Vivek Chauhan wrote:
 Ya.. Thnx for ur suggestion..
 actually the problem is with struts only you can nest two struts tags..
 Wht I wz doing..
 logic:iterate name=someForm property=someList id=someList 
 indexId=index
 
 html:checkbox name=someList property=someStatus indexed=true 
 onclick=javascript: changeSomeCheckBox(bean:write name=index /) /
 
 /loigic:iterate
 
 But this didnt work so Now I m using input type = checkbox  tag
 
 Is there a way to work only using Struts tags..without resorting to pure 
 HTML...
 
 
 
 Thanks,
 
 Vivek
 
 html:checkbox onclick=foo(bean:write name=index) /
 Leon Rosenberg [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  logic:iterate bla indexId=i
   a href=# onClick=myFunctionCall('bean:write name=i/')
   /a
  /logic:iterate
 
  just an example.
  regards
  Leon
 
  On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
  Hi,
 
  How can I pass the index of the iteratorlogic:iterator tag to a 
  Javascript
  function.
  I had used JSP scriptlet but tht wz not working..
  vivek
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: [OT] olipmic rings metaphor

2005-07-14 Thread Borislav Sabev

Leon Rosenberg wrote:





---Ursprüngliche Nachricht-
Von: Borislav Sabev [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 13. Juli 2005 18:54

An: Struts Users Mailing List
Betreff: [OT] olipmic rings metaphor

How do you classify Security and Authorization issues in this 
metaphor?


In my current project I have troubles since code that is 
related somehow to Authorization is spread over all rings. 
Still it's difficult to me to have a clear understanding how 
to implement in a nice, consistent way. I'll appreciate any 
suggestions or recommendations about this problem.


   



I think each layer has its own security and authorization sublayers (a layer
itself can be composed of multiple layers) in the corba world better known
as interruptors. But each layer should only make decision based on the
knowledge which the layer itself posseses. 
 

I fully agree here, that's why I consider Authorization as a ring that 
intersect all other rings, and this means it depend on each of them.
But it fact better metaphor for it is that is a small ring inside every 
other ring, i.e. not seen as one monolithic ring.



So the presentation layer decides whether a user is allowed to execute a
specific use case by checking user's permissions and roles. 
The business layer decides whether the specific method can be called from

specific caller (a host for example), and the persistence layer decides
which process/host can access the database. If you think about what you want
to protect from whom, and act accordingly.
 

These are System Authorization activities, but I mean Business 
Authorization activities.
For example I have companies with some persmisions and their employees 
inherit and extend them.
There are 3 types of Business Roles: suppliers, consumers and 
controlers. (think the names are enough to explain what they do more or 
less)
There are different BO that suppliers put in the system, controlers 
check them and publish them (i.e. make the visible to the consumers)
Suppliers can read all BO, but can change (edit, delete) only owned 
objects. Controler can do all that Supplier can do + publishing.

Consumers can only read and make requests.
So let's imagine I have to show a single list of some BO by some search 
criteria. The result list can be a mixture of BO owned and not owned 
objects.

So here is list of checks that has to be performed to acomplish this:
1. Can the user see the list - this should  be  enforced by  the 
controler  and view  layers
2. Which BO will be collected from persistence (or cache) layer - only 
owned, owned + published etc - this should be enforced by the model and 
persistance layer.
3. Check for every item in the list if it can be edited/published by the 
user - this should be in the view only ( to show a link or button for 
each item for edit )


So now you see how such simple usecase spread authorization logic over 
all the layers ( not conserning hosts, db connections etc).


Regards
Borislav

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



Re: [OT] Java as a Daemon

2005-07-14 Thread Richard Reyes
thanks
On 7/14/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
 I'm with Larry. Cron rocks. The only problem you should have in mind: if
 your job needs more then the time between the jobs, you've lost.
 We had actually this problem, and it killed the db, because (2 years
 after initially written) the script lasted more then 24 hours, and after
 a week 5 instances of it runned, blocking each other and producing a
 load of 10 on the machine.
 
 So simply add a check am I already running to your code, and it will
 be fine :-)
 
 regards
 Leon
 
 On Wed, 2005-07-13 at 21:49 -0600, Larry Meadors wrote:
  I would probably go the route of the .sh file.
 
  At the risk of starting a big flame war, cron is solid as a rock, and
  all of the memory used by your app will be freed up when the JVM
  exits. Why make it more complex by adding quartz or tomcat to the mix
  if you do not have to.
 
  Simple is *almost* always better.
 
  Larry
 
 
  On 7/13/05, Richard Reyes [EMAIL PROTECTED] wrote:
   Hello Guys,
  
   I need your suggestions. I have a task to create an application to
   sync records between 2 Oracle 10g database. Not the whole records of
   the database though, just the now and then transactional updates.
   Access to the db's would be both via web services. I think I have an
   option to do this like
   - a simple java application executed via .sh file
   - a java application running as a daemon on a unix box
  
   But I really am not sure which better path I should take. Any
   suggestions would be very much 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]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: [OT] Java as a Daemon

2005-07-14 Thread Jesse Alexander (KBSA 21)
Hi

(Warning: not an Oracle insider...) 

If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be communicated. And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 14, 2005 3:53 AM
To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file 
- a java application running as a daemon on a unix box

But I really am not sure which better path I should take. Any
suggestions would be very much 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]



Validation framework - gobal formset

2005-07-14 Thread Marc Demlenne
Hello, 

Using Struts Validation Framework, how is it possible to use only one
formset in validation.xml for ALL locales, when using only
locales-independant validations ?

I use formset ... /formset but get the error that the form is not
found under locale en_US, i.e.

Having more formset like formset language=en solves the problem,
of course, but I don't want to have redundancy in this file while it's
useless.

Shouldn't it be possible to define only general case, and to fallback
on it when specific case isn't define ? Is there a special issue to
resolve this ?

Thanks in advance for any help !

-- 
Marc Demlenne

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



Re: [OT] Java as a Daemon

2005-07-14 Thread Duncan Mills
Indeed the Oracle Database itself has a DBMS_JOB procedural package 
which acts just like Cron in the database - so that provides another way 
to tackle the problem - On the other hand  the Oracle database also has 
a whole set of replication features which are designed for syncing data 
between databases instances in realtime if necessary - have a serious 
look at these built-in functions of the database infrastructure before 
you build something new to do the same job.


Duncan

Jesse Alexander (KBSA 21) wrote:


Hi

(Warning: not an Oracle insider...) 


If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be communicated. And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 14, 2005 3:53 AM

To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file 
- a java application running as a daemon on a unix box


But I really am not sure which better path I should take. Any
suggestions would be very much 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]

 



--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]


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



Re: How to pass index from iterator tag to JS

2005-07-14 Thread Vivek Chauhan
Thanks Leon,

The problem is solved.. but still we had to use JSP scriptlets... but I dont 
mind tht till I am using Struts tags...


Leon Rosenberg [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 ah ok:

 html:checkbox name=someList property=someStatus indexed=true
 onclick=%=javascript: changeSomeCheckBox(+index+)% /

 regards
 Leon


 On Thu, 2005-07-14 at 12:59 +0530, Vivek Chauhan wrote:
 Ya.. Thnx for ur suggestion..
 actually the problem is with struts only you can nest two struts 
 tags..
 Wht I wz doing..
 logic:iterate name=someForm property=someList id=someList
 indexId=index

 html:checkbox name=someList property=someStatus indexed=true
 onclick=javascript: changeSomeCheckBox(bean:write name=index /) /

 /loigic:iterate

 But this didnt work so Now I m using input type = checkbox  tag

 Is there a way to work only using Struts tags..without resorting to pure
 HTML...



 Thanks,

 Vivek

 html:checkbox onclick=foo(bean:write name=index) /
 Leon Rosenberg [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  logic:iterate bla indexId=i
   a href=# onClick=myFunctionCall('bean:write name=i/')
   /a
  /logic:iterate
 
  just an example.
  regards
  Leon
 
  On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
  Hi,
 
  How can I pass the index of the iteratorlogic:iterator tag to a
  Javascript
  function.
  I had used JSP scriptlet but tht wz not working..
  vivek
 
 
 
 
  -
  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]



How to avoid calling .do again once click F5 button.

2005-07-14 Thread senthil Kumar
Hi All.,

In our application, I hava a list of tasks. Each task have a chech box and once 
checked the check box and click AddAlert button,  alert for the checked task 
is created.

Up to this functionality working fine for me.

 My problem is once creating alert and unfortunately click F5 button, again the 
alert is created for the same task  i.e the same alert action(.do) calling 
again.


How to avoid it.
any one help me.


Thanks in advance.


Regs.,
Senthil S




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved

Re: How to avoid calling .do again once click F5 button.

2005-07-14 Thread Leon Rosenberg
before Michael jumps on the train :-)

simply send a redirect after executing create action to the list action
again?

regards
Leon

On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:
 Hi All.,
 
 In our application, I hava a list of tasks. Each task have a chech box and 
 once checked the check box and click AddAlert button,  alert for the 
 checked task is created.
 
 Up to this functionality working fine for me.
 
  My problem is once creating alert and unfortunately click F5 button, again 
 the alert is created for the same task  i.e the same alert action(.do) 
 calling again.
 
 
 How to avoid it.
 any one help me.
 
 
 Thanks in advance.
 
 
 Regs.,
 Senthil S
 
 
 
 
 This e-mail and any files transmitted with it are for the sole use of the 
 intended recipient(s) and may contain confidential and privileged 
 information. If you are not the intended recipient or received it in error, 
 please contact the sender by reply e-mail and destroy all copies of the 
 original message. Please do not copy it for any purpose or disclose its 
 contents.
 
 Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved



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



Re: Problem with html:select

2005-07-14 Thread lk

Balasubramaniam, Sezhiyan wrote:

I usually set the JavaScript add-options statements using logic-iterate and on 
the event of user clicks a button; this function will be called which will 
populate the select box.

function refreshSelect()
{
logic:iterate id=MIP_SUBGRP_CD name=MIP_SUBGRP_CD
		document.forms[0].eligMipSubgrpCd.options[%=y%] = 
		new Option('bean:write name=MIP_SUBGRP_CD property=description/','bean:write name=MIP_SUBGRP_CD property=code/');

%y++;%
/logic:iterate
}

You can try this. But avoid using forms[0] or the scriptlets in logic 
tags(though it works fine)

Make sure that the select is populated correctly and don't forget to select 
some item[s] before submits the form.

Bala

Thanks for your answer.

Now if I submit the form I select all the options, but I get the 
following error from Tomcat:


^^
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
[...]

root cause

org.apache.commons.beanutils.ConversionException: Cannot assign value of 
type 'java.lang.String' to property 'chosen' of type 'java.util.ArrayList'

at org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:423)
[...]
^^


'chosen' is the select I want to read.

If I don't select any item I don't get that error but of course chosen 
is empty.


The html code is:

!-- ### --
tr
td style=width:200px;
span class=etichettaInvestimenti disponibili/span:
select class=transfer name=possible size=5 multiple
c:forEach var=row items=${elencoinvestimenti} varStatus=status
option value=c:out value=${row.id} /c:out value=${row.nome} /
/option
/c:forEach  
/select
/td
!-- ### --  
td style=width:30px;
a href=javascript:copyToList('possible','chosen')
img src=gestione/images/icon_frecciadx.gif width=21 height=21
/abr
a href=javascript:copyToList('chosen','possible')
img src=gestione/images/icon_frecciasx.gif width=21 height=21
/a
/td
!-- ### --  
td style=width:200px;
span class=etichettaInvestimenti collocabili/span:
html:select property=chosen size=5 styleClass=transfer 
multiple=true 		

/html:select
/td

The firs selct is given; the second is populated by clicking over a 
button (using a javascript that put the values in the select box).


LuKe


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Digitalpix: Il metodo più comodo, veloce e conveniente
* per stampare le tue foto digitali migliori.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1523d=14-7

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



Re: How to avoid calling .do again once click F5 button.

2005-07-14 Thread Yaroslav Novytskyy

Hello!

I would advise to use synchronization via Session tockens. (I'm working 
at this process' automation at the moment). Struts' Action already has, 
what is needed for this are saveToken() and isTokenValid() methods.


This technique makes it imposible to execute an action more then once 
(if not on purpouse) exclueding double-submits, refreshes, 
by-bookmark-visits.


Read the doc and check if that is what you need. And if yes, you can 
take look in my two days old message titled synchronization strategies 
- I beleave most answers (along with some questions :) ) are there.


Yaroslav Novytskyy

Leon Rosenberg wrote:

before Michael jumps on the train :-)

simply send a redirect after executing create action to the list action
again?

regards
Leon

On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:


Hi All.,

In our application, I hava a list of tasks. Each task have a chech box and once checked 
the check box and click AddAlert button,  alert for the checked task is 
created.

Up to this functionality working fine for me.

My problem is once creating alert and unfortunately click F5 button, again the 
alert is created for the same task  i.e the same alert action(.do) calling 
again.


How to avoid it.
any one help me.


Thanks in advance.


Regs.,
Senthil S




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved





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

2005-07-14 Thread Borislav Sabev

Rafael Taboada wrote:

Hi folks I'm using validation framework in order to validate my fields in a 
form.

I have three fields in a search form:
strUsername
strFromDate
strToDate
But we have the rule that the user can fill strUsername or use dates range. 
I mean he can search by username or he can search by dates range...
When I use validation, it validates all the fields My question is how 
can I set my search rule??? the user can search by username or by dates 
range... If he choose username so validation only has to validate username 
field... But if he choose dates range, so validation has to validate only 
FromDate and ToDate...

Any help would be appreciated...
Thanks in advance.

 


You have at least 3 choices:
1. client side validation i.e. to use javascript onSubmit to check such 
logic

2. write your own validator - see commons-validator for more info
3. validate it in the form.validate() metod
all 3 have +/- I recomend you the 3th method.

Regards
Borislav

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



RE: How to avoid calling .do again once click F5 button.

2005-07-14 Thread parimal
Yes I do believe using tokens is a cleaner way

rgds
parimal

-Original Message-
From: Yaroslav Novytskyy [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: How to avoid calling .do again once click F5 button.


Hello!

I would advise to use synchronization via Session tockens. (I'm working
at this process' automation at the moment). Struts' Action already has,
what is needed for this are saveToken() and isTokenValid() methods.

This technique makes it imposible to execute an action more then once
(if not on purpouse) exclueding double-submits, refreshes,
by-bookmark-visits.

Read the doc and check if that is what you need. And if yes, you can
take look in my two days old message titled synchronization strategies
- I beleave most answers (along with some questions :) ) are there.

Yaroslav Novytskyy

Leon Rosenberg wrote:
 before Michael jumps on the train :-)

 simply send a redirect after executing create action to the list action
 again?

 regards
 Leon

 On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:

Hi All.,

In our application, I hava a list of tasks. Each task have a chech box and
once checked the check box and click AddAlert button,  alert for the
checked task is created.

Up to this functionality working fine for me.

 My problem is once creating alert and unfortunately click F5 button,
again the alert is created for the same task  i.e the same alert action(.do)
calling again.


How to avoid it.
any one help me.


Thanks in advance.


Regs.,
Senthil S




This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in error,
please contact the sender by reply e-mail and destroy all copies of the
original message. Please do not copy it for any purpose or disclose its
contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved




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



what's wrong with this simple code

2005-07-14 Thread Vicky
I don't see anything displayed on jsp with below
simple code in my struts action class. 
 
MenuComponent mc = new MenuComponent(); 
mc.setName(Menu 1); 
mc.setLocation(Menu 1); 
mc.setTitle(Menu 1); 
 
MenuComponent mc2 = new MenuComponent(); 
mc2.setName(Menu 2); 
mc2.setLocation(Menu 2); 
mc2.setTitle(Menu 3); 
 
mc2.setParent(mc); 
 
repository.addMenu(mc); 
 
session.setAttribute(changeMgmtRepository,
repository); 
 
///jsp 
all required tag libs, imports in jsp and below code. 
 
body 
div class=dynamicMenu tree  
menu:useMenuDisplayer name=ListMenu
repository=changeMgmtRepository  
 
c:forEach var=menu items=${repository.topMenus} 
menu-el:displayMenu name=${menu.name}/ 
/c:forEach 
 
/menu:useMenuDisplayer 
 
/div 
/body


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [OT] olipmic rings metaphor

2005-07-14 Thread Ted Husted
On 7/14/05, Borislav Sabev [EMAIL PROTECTED] wrote:
 I fully agree here, that's why I consider Authorization as a ring that
 intersect all other rings, and this means it depend on each of them.
 But it fact better metaphor for it is that is a small ring inside every
 other ring, i.e. not seen as one monolithic ring.

Another word for authorization might be customization. In the case of
authorization, we are imposing customization, but many applications
have users that wish to customize how the application behaves. They
might want to use a different skin, or have a different number of
items appear in a result list, or start on a different page of the
application.

One way to address customization is to build the notion of a user
profile into the application. The user profile can contain the
information each ring might require to customize the user experience.

We are doing this at work now. If a user agent doesn't already have a
profile, the first thing we do is create one. The profile is passed up
to the business layer with each business request, and the business
commands make some decisions based on the user's profile.

Of course, profiles are not for everyone. You have to store the
profile somewhere, and that usually means using session state (if you
want it to be secure). Now that we have sticky bits, session isn't the
red flag it used to be, but some applications still have to choose
between scalability and customization. And, that's what engineering is
about: choosing.

-Ted.

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



how to subscribe to tag lib user list

2005-07-14 Thread syed abrar
  


Can any one tell me the id to subscribe to tag libs user list.

I got a problem if any one of you have asolution please send it

I have a code which s written using tag libs...and while i try to run it its 
giving me an error 

Unable to load tag handler class 
org.apache.strutsel.taglib.html.ELTextTag for tag html-el:text

If anyone has solution or know a user list from which i can get the help please 
mail it.









[OT] Internet Time (was Re: Putting execute() in ActionForm)

2005-07-14 Thread Ted Husted
On 7/11/05, Craig McClanahan [EMAIL PROTECTED] wrote:
 Just remember ... the lifetime of Struts 1.x (five years since initial
 conception, four years since 1.0) is basically a geologic era in terms
 of Internet time :-).

Ahh, but time is an illusion, and Internet time doubly so :) 

It seems to me that a lot of us are still solving the same problems we
had five years ago with the same applications we wrote five years ago.
Struts promised us applications that would be easier to maintain than
rewrite, and, boy, has it delivered.

Of course, over the last five years, we've managed to make Struts
applications even easier to write and maintain, with features like
declarative validation and exception handling, Tiles, JAAS support,
modules, multiple configurations, Wildcard mappings, BSF Scripting,
Workflow, DynaActionForms, LazyDynaActionForms, and even instant
DynaActionForms (FormDef) -- to name a few :)

We still don't have UI components, but Struts works fine with
coolness gizmos like DisplayTags and Layout. Of course, Struts plays
nice with other great tools, like SecurityFilter and SiteMesh. And
while Struts is harder to test than we would like, libraries like
Struts TestCase and Web Canoo lighten the load.

Most recently, just as Microsoft starting to think about Ajax support, 

* http://weblogs.asp.net/scottgu/archive/2005/06/28/416185.aspx

members of the Struts community are delivering Ajax support. 

*  http://javawebparts.sourceforge.net/

It is disappointing that Struts 1.3.x has stalled again -- since there
is some real innovation under that hood. But at least we are within
spitting distance. Eventually, I'm sure someone will be able to spare
a few days to push it out the door.

-Ted.

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



Re: [OT] Java as a Daemon

2005-07-14 Thread David Whipple
We use the cron approach as well.  Using a simple mechanism and having
separate JVMs has proven very good for maintenance, etc.

Dave



   
 Larry Meadors 
 [EMAIL PROTECTED] 
 ail.com   To 
   Struts Users Mailing List   
 07/13/2005 11:49  user@struts.apache.org, Richard   
 PMReyes [EMAIL PROTECTED] 
cc 
   
 Please respond to Subject 
   Struts Users   Re: [OT] Java as a Daemon   
   Mailing List   
 [EMAIL PROTECTED] 
  he.org  
   
   
   




I would probably go the route of the .sh file.

At the risk of starting a big flame war, cron is solid as a rock, and
all of the memory used by your app will be freed up when the JVM
exits. Why make it more complex by adding quartz or tomcat to the mix
if you do not have to.

Simple is *almost* always better.

Larry


On 7/13/05, Richard Reyes [EMAIL PROTECTED] wrote:
 Hello Guys,

 I need your suggestions. I have a task to create an application to
 sync records between 2 Oracle 10g database. Not the whole records of
 the database though, just the now and then transactional updates.
 Access to the db's would be both via web services. I think I have an
 option to do this like
 - a simple java application executed via .sh file
 - a java application running as a daemon on a unix box

 But I really am not sure which better path I should take. Any
 suggestions would be very much 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]



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



Re: how to subscribe to tag lib user list

2005-07-14 Thread Wendy Smoak

From: syed abrar [EMAIL PROTECTED]
I have a code which s written using tag libs...and while i try to run it 
its giving me an error

Unable to load tag handler class
org.apache.strutsel.taglib.html.ELTextTag for tag html-el:text
If anyone has solution or know a user list from which i can get the help 
please mail it.


I think you're in the right place. :)  It looks like you're trying to use 
the Struts-EL html-el:text tag, without struts-el.jar on the classpath.


Look in the 'contrib' directory of your Struts distribution, and copy all 
the .jar files in contrib/struts-el/lib to the WEB-INF/lib directory of your 
webapp.


--
Wendy Smoak










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



Re: [OT] Java as a Daemon

2005-07-14 Thread Daniel Henrique Ferreira e Silva
Hi,

Just adding my 2 cents.
Go with Duncan because:
1) He works for Oracle, so he _must_ know what he's saying :)
2) His approach works nice here in my job. Oracle's replication
features work good. If you are a bad luck guy that doesn't have a DBA
in your team (yeah, it is possible) you can try using a db link so
your code doesn't need to make two database connections. Let Oracle
handle the connection to the other database :)

HTH,
Daniel Silva.



On 7/14/05, David Whipple [EMAIL PROTECTED] wrote:
 We use the cron approach as well.  Using a simple mechanism and having
 separate JVMs has proven very good for maintenance, etc.
 
 Dave
 
 
 
 
  Larry Meadors
  [EMAIL PROTECTED]
  ail.com   To
Struts Users Mailing List
  07/13/2005 11:49  user@struts.apache.org, Richard
  PMReyes [EMAIL PROTECTED]
 cc
 
  Please respond to Subject
Struts Users   Re: [OT] Java as a Daemon
Mailing List
  [EMAIL PROTECTED]
   he.org
 
 
 
 
 
 
 
 I would probably go the route of the .sh file.
 
 At the risk of starting a big flame war, cron is solid as a rock, and
 all of the memory used by your app will be freed up when the JVM
 exits. Why make it more complex by adding quartz or tomcat to the mix
 if you do not have to.
 
 Simple is *almost* always better.
 
 Larry
 
 
 On 7/13/05, Richard Reyes [EMAIL PROTECTED] wrote:
  Hello Guys,
 
  I need your suggestions. I have a task to create an application to
  sync records between 2 Oracle 10g database. Not the whole records of
  the database though, just the now and then transactional updates.
  Access to the db's would be both via web services. I think I have an
  option to do this like
  - a simple java application executed via .sh file
  - a java application running as a daemon on a unix box
 
  But I really am not sure which better path I should take. Any
  suggestions would be very much 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]
 
 
 
 -
 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 1.2 v 1.3

2005-07-14 Thread Access Denied
Alls,

I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?

tia,
buddy

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



Re: [OT] Java as a Daemon

2005-07-14 Thread Martin Gainty

Jesse

For specific packages I would look at  dbms_streams_tablespace_adm
I would look at Oracle's Moving Data Faster/Pulling Tablespaces article 
available at

http://www.oracle.com/technology/oramag/oracle/04-sep/o54data.html
And of course consult the folks at Oracle if you have a support contract!

In any case let us know how you make out,
Maritn-
 Original Message - 
From: Duncan Mills [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 14, 2005 4:41 AM
Subject: Re: [OT] Java as a Daemon


Indeed the Oracle Database itself has a DBMS_JOB procedural package which 
acts just like Cron in the database - so that provides another way to 
tackle the problem - On the other hand  the Oracle database also has a 
whole set of replication features which are designed for syncing data 
between databases instances in realtime if necessary - have a serious look 
at these built-in functions of the database infrastructure before you 
build something new to do the same job.


Duncan

Jesse Alexander (KBSA 21) wrote:


Hi

(Warning: not an Oracle insider...)
If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be communicated. And then somehow make the update
in the second Oracle-db.

just my 2cents
Alexander

-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, July 
14, 2005 3:53 AM

To: Struts Users Mailing List
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file - a java application 
running as a daemon on a unix box


But I really am not sure which better path I should take. Any
suggestions would be very much 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]




--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[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: Validation framework

2005-07-14 Thread Nitish Kumar


With no intentions to create yet another thread of I dont like Validator
Framework. I just wanted to know if there was any way of using validation
framework to validate collections element, without writing
bean.collection[0].property for the property, as it might not be possible to
know the size of collection (else why would I use collection? )

To make it easier, a lot of times i have a collection of textboxes to be
populated with numbers, Is there any way of validating?

overriding validate() method of ActionForm, is not an option, as I am using
BeanValidatorForm. 


Thanks and Regards, 
Nitish Kumar 




-Original Message-
From: Borislav Sabev [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:34 PM
To: Struts Users Mailing List
Subject: Re: Validation framework


Rafael Taboada wrote:

Hi folks I'm using validation framework in order to validate my fields in a

form.
 I have three fields in a search form:
 strUsername
strFromDate
strToDate
 But we have the rule that the user can fill strUsername or use dates
range. 
I mean he can search by username or he can search by dates range...
 When I use validation, it validates all the fields My question is how 
can I set my search rule??? the user can search by username or by dates 
range... If he choose username so validation only has to validate username 
field... But if he choose dates range, so validation has to validate only 
FromDate and ToDate...
 Any help would be appreciated...
 Thanks in advance.

  

You have at least 3 choices:
1. client side validation i.e. to use javascript onSubmit to check such 
logic
2. write your own validator - see commons-validator for more info
3. validate it in the form.validate() metod
all 3 have +/- I recomend you the 3th method.

Regards
Borislav

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

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



Re: How to avoid calling .do again once click F5 button.

2005-07-14 Thread Martin Gainty

Indeed
The intricacies of session scoped beans vs request scoped beans with regards 
to the security enforcement provisions of the transaction token are explored 
at

http://www.netspread.com/tips2.html
Please keep us apprised as to how you make out,
Martin-
- Original Message - 
From: Yaroslav Novytskyy [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 14, 2005 5:44 AM
Subject: Re: How to avoid calling .do again once click F5 button.



Hello!

I would advise to use synchronization via Session tockens. (I'm working at 
this process' automation at the moment). Struts' Action already has, what 
is needed for this are saveToken() and isTokenValid() methods.


This technique makes it imposible to execute an action more then once (if 
not on purpouse) exclueding double-submits, refreshes, by-bookmark-visits.


Read the doc and check if that is what you need. And if yes, you can take 
look in my two days old message titled synchronization strategies - I 
beleave most answers (along with some questions :) ) are there.


Yaroslav Novytskyy

Leon Rosenberg wrote:

before Michael jumps on the train :-)

simply send a redirect after executing create action to the list action
again?

regards
Leon

On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:


Hi All.,

In our application, I hava a list of tasks. Each task have a chech box 
and once checked the check box and click AddAlert button,  alert for 
the checked task is created.


Up to this functionality working fine for me.

My problem is once creating alert and unfortunately click F5 button, 
again the alert is created for the same task  i.e the same alert 
action(.do) calling again.



How to avoid it.
any one help me.


Thanks in advance.


Regs.,
Senthil S




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged 
information. If you are not the intended recipient or received it in 
error, please contact the sender by reply e-mail and destroy all copies 
of the original message. Please do not copy it for any purpose or 
disclose its contents.


Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights 
Reserved





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



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




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



Re: Struts 1.2 v 1.3

2005-07-14 Thread Wendy Smoak

From: Access Denied [EMAIL PROTECTED]

I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?


No.  Most of the major changes in 1.3 are 'behind the scenes' and will not 
affect the way you configure and use the framework.


You're welcome to start working with 1.3.0-dev immediately-- one way to do 
that is to download nightly build files from: 
http://svn.apache.org/builds/struts/maven/ .


Or, you can build it locally with Maven. 
http://wiki.apache.org/struts/StrutsMaintenanceMaven  (If you tried before 
and it didn't work, try it again as several fixes to the build files went in 
recently.)


Here are some notes on upgrading from 1.2 to 1.3 to keep in mind as you 
read: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 .  Please add 
to the Wiki page if you discover anything new. :)


Have fun!
--
Wendy Smoak



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



struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Aleksandar Matijaca
Hi there,

I have an application that I am working on that requires two different role 
levels (administrator and user).
The administrator, will have some extra links visible to them. I want to use 
only one struts-config file.
I am currently running into a scalability issue -- here is what I mean:



action path=/someAction ... 

forward name=a_success path=someAdministratorPath.def !-- I am using 
tiles --
forward name=u_success path=someUserPath.def !-- I am using tiles --

/aciton

The someAdministratorPath.def has a jsp with different kind of a menu 
structure - for administrators only,
and someUserPath.def has a jsp with a subset of different menu structures -- 
the only real difference between
the two .def files is a single jsp.

Somehow the above seems awkward and unscalable to me, and I am afraid I will 
run into a problem later. 
I know that I can probably put in some c:if statements in one of the JSPs, 
and there discriminate between
a User and Administrator, but somehow, that seems like a band-aid solution.

If you have any idea on how to restructure this thing, please let me know.

Thanks, Alex.


Re: Struts 1.2 v 1.3

2005-07-14 Thread Wendy Smoak

From: Wendy Smoak [EMAIL PROTECTED]

No.  Most of the major changes in 1.3 are 'behind the scenes' and will not 
affect the way you configure and use the framework.


That didn't come out quite right.  I meant that the changes in 1.3 don't 
*have* to affect the way you configure and use the framework, so you're not 
wasting your time reading James' book. :)


--
Wendy Smoak




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



Re: Struts 1.2 v 1.3

2005-07-14 Thread Access Denied
I've seen Maven listed amongst the Apache projects and read a little. 
Is it supposed to replace CVS and SVN?  Is this something we should be
using routinely?

tia,
buddy

On 7/14/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 From: Access Denied [EMAIL PROTECTED]
  I just bought and am reading James Holmes' book, Struts: The Complete
  Reference (Osborne 2004), which covers 1.2.  I just learned from one
  of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
  wasting my time and should be studying other literature?
 
 No.  Most of the major changes in 1.3 are 'behind the scenes' and will not
 affect the way you configure and use the framework.
 
 You're welcome to start working with 1.3.0-dev immediately-- one way to do
 that is to download nightly build files from:
 http://svn.apache.org/builds/struts/maven/ .
 
 Or, you can build it locally with Maven.
 http://wiki.apache.org/struts/StrutsMaintenanceMaven  (If you tried before
 and it didn't work, try it again as several fixes to the build files went in
 recently.)
 
 Here are some notes on upgrading from 1.2 to 1.3 to keep in mind as you
 read: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 .  Please add
 to the Wiki page if you discover anything new. :)
 
 Have fun!
 --
 Wendy Smoak
 
 
 
 -
 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 1.2 v 1.3

2005-07-14 Thread Ivan Rodriguez

Maven is for building projects, like Ant does.

Access Denied escribió:

I've seen Maven listed amongst the Apache projects and read a little. 
Is it supposed to replace CVS and SVN?  Is this something we should be

using routinely?

tia,
buddy
 




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



Re: Alternate color in html:iterate

2005-07-14 Thread Rick Reumann

Leon Rosenberg wrote the following on 7/13/2005 6:06 PM:


Rick is it possible to extend your tag with attr. statusName to give the
name of the attribute in a scope which holds 
the value instead of the value itself? :-)  


Sure that would work. I love JSP tag files.. so darn easy to work with.

--
Rick

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



Re: Alternate color in html:iterate

2005-07-14 Thread Rick Reumann

[EMAIL PROTECTED] wrote the following on 7/14/2005 2:21 AM:

1. Have 2 classes in CSS.

2. within iterate write:
tr class='bean name= property=listRowClass /' 
td html:../td
..

/tr

3. In the corresponding form:

 public String getListRowClass() {
  if ( oddRow.equals(listRowClass))
  listRowClass = evenRow;
  else
  listRowClass = oddRow;

  return listRowClass;
  }

Short  sweet isn't it?


Well, I'm not sure it is. You are missing some things in the code above. 
For one, where is your logic for setting the property listRowClass to 
oddRow or evenRow ? That has to be taking place somewhere?


Second, I think it's a very bad idea to do this in a form bean. For one, 
I rarely even am using my form beans for display purposes. I use the 
List of value objects (or maps if I'm going the map route). Second, you 
are going to have to duplicate that code above in every form bean which 
is a waste. Sure you can provide a helper method to do it, but how is 
that better than creating a true tag or tag file?


I am curious where you logic is to set up listRowClass with the 
appropriate value?


--
Rick

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



Forwarding in custom RequestProcessor

2005-07-14 Thread Peter . Zoche
Hi!

I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
corresponding error page. What is the best way to do this? I tried
the following:

request.getRequestDispatcher( membershipExpired.jsp ).forward( request,
response );

which works fine. But this is surely not how struts should work because
I have hardcoded the target in my code, and not configured in my
struts-config.xml for example. So if the error page changes I have to
chnage my code and not only the struts-config.xml. Does anybody know
a better solution? I tried a global-forward like this but it didn't work:

global-forwards
forward name=nodb path=/membershipExpired.jsp /
/global-forwards

with

request.getRequestDispatcher( nodb ).forward( request, response );

Perhaps I made a mistake somewhere...

Peter


--

MATERNA GmbH Information  Communications
Vosskuhle 37
44141 Dortmund
Tel:  +49-231-5599-8868
Fax: +49-231-5599-678868

[EMAIL PROTECTED]
www.annyway.dewww.materna.de
www.annyway.com  www.materna.com

Visit us at the following events:
ACI EUROPE, Munich
June, 22 - 24, 2005

ACI EUROPE, Verona
September, 26 - 28, 2005

CTIA Wireless I.T.  Entertainment 2005, San Francisco
September, 27 - 29, 2005

Con4, Cologne
September, 27 - 29, 2005


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



Re: How to avoid calling .do again once click F5 button.

2005-07-14 Thread Michael Jouravlev
I guess it is easier to repost, than to explain how to search mailing
list. Rick, Leon, you already have read this ;)

=== cut here ===
Tokens are better solution than nothing, but not the best. Token
works *after* POST request has been resubmitted. It can help to
prevent *data resubmission* on business/persisntence layer, but it
does nothing to prevent browser message: Do you want to resend
POSTDATA? What? What is POSTDATA? I don't care what it is, and I
don't know do I want to resend it or not, just show the damn page. The
simple send POST, get page approach results in horrible UI, like I
had to go through when I was ordering parts for my car. Car make-POST
form. Model-POST form. Year-POST form. Suspension part-POST form.
Struts (no put intended)-POST form - (looking for Tokico struts,
don't see any). Go Back. Do you want to resend POSTDATA? - No - I
see the same page. Back again. Do you want to resend POSTDATA? - Yes
- The previous page is reloaded with the same POST, running the same
query on the server. Same happens three or four more times. I wanted
to strangle the programmer who desinged that. Right, if pages were
cachable, it would help. Or if I used Opera. But this is only one
example of many. In other cases Opera caching does not help, it gets 
in the way.

Another example. You want to log in. You enter name, it is incorrect,
it is redisplayed. Again, and again, and again. You decided to drop
the idea, and to return back. How many times you need to click Back?

Also, token knows nothing about your business data. You are
shopping in the online store. You selected item, clicked Add to
cart, it was added, and you forwarded to another page. Then you
realised that you need two of them. You click Back, see the same item
again and click Add to cart. Now it tells you that you cannot do
this, because you are resubmitting the same request, apparently by
mistake. Your webapp can prove it to you, it has the freaking token. 
But it is not a mistake, you actually want to add the same item again.

So, tokens better than nothing, like Yugo comparing to bike. But it is
still a Yugo.
=== cut here ===

Michael

On 7/14/05, Yaroslav Novytskyy [EMAIL PROTECTED] wrote:
 Hello!
 
 I would advise to use synchronization via Session tockens. (I'm working
 at this process' automation at the moment). Struts' Action already has,
 what is needed for this are saveToken() and isTokenValid() methods.
 
 This technique makes it imposible to execute an action more then once
 (if not on purpouse) exclueding double-submits, refreshes,
 by-bookmark-visits.
 
 Read the doc and check if that is what you need. And if yes, you can
 take look in my two days old message titled synchronization strategies
 - I beleave most answers (along with some questions :) ) are there.
 
 Yaroslav Novytskyy
 
 Leon Rosenberg wrote:
  before Michael jumps on the train :-)
 
  simply send a redirect after executing create action to the list action
  again?
 
  regards
  Leon
 
  On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:
 
 Hi All.,
 
 In our application, I hava a list of tasks. Each task have a chech box and 
 once checked the check box and click AddAlert button,  alert for the 
 checked task is created.
 
 Up to this functionality working fine for me.
 
  My problem is once creating alert and unfortunately click F5 button, again 
  the alert is created for the same task  i.e the same alert action(.do) 
  calling again.
 
 
 How to avoid it.
 any one help me.
 
 
 Thanks in advance.
 
 
 Regs.,
 Senthil S
 
 
 
 
 This e-mail and any files transmitted with it are for the sole use of the 
 intended recipient(s) and may contain confidential and privileged 
 information. If you are not the intended recipient or received it in error, 
 please contact the sender by reply e-mail and destroy all copies of the 
 original message. Please do not copy it for any purpose or disclose its 
 contents.
 
 Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
 
 
 
 
  -
  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: Forwarding in custom RequestProcessor

2005-07-14 Thread Mulligan, Scott H
I extended the RequestProcessor to forward between two web applications. The 
following code is what I use to forward to an action that the other web 
application has. Then the other web application can define an action that can 
handle forwarding to whatever jsp it wants.
if (forward.getName().startsWith(common_))
{
getServletContext().getContext(/thinClient/common.do).getRequestDispatcher(/common.do).forward(request,response);
 
return;
}
Scott

 



From: [EMAIL PROTECTED]
Sent: Thu 7/14/2005 10:37 AM
To: user@struts.apache.org
Subject: Forwarding in custom RequestProcessor


Hi!

I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
corresponding error page. What is the best way to do this? I tried
the following:

request.getRequestDispatcher( membershipExpired.jsp ).forward( request,
response );

which works fine. But this is surely not how struts should work because
I have hardcoded the target in my code, and not configured in my
struts-config.xml for example. So if the error page changes I have to
chnage my code and not only the struts-config.xml. Does anybody know
a better solution? I tried a global-forward like this but it didn't work:

global-forwards
forward name=nodb path=/membershipExpired.jsp /
/global-forwards

with

request.getRequestDispatcher( nodb ).forward( request, response );

Perhaps I made a mistake somewhere...

Peter


--

MATERNA GmbH Information  Communications
Vosskuhle 37
44141 Dortmund
Tel:  +49-231-5599-8868
Fax: +49-231-5599-678868

[EMAIL PROTECTED]
www.annyway.dewww.materna.de
www.annyway.com  www.materna.com

Visit us at the following events:
ACI EUROPE, Munich
June, 22 - 24, 2005

ACI EUROPE, Verona
September, 26 - 28, 2005

CTIA Wireless I.T.  Entertainment 2005, San Francisco
September, 27 - 29, 2005

Con4, Cologne
September, 27 - 29, 2005


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


Re: Forwarding in custom RequestProcessor

2005-07-14 Thread Jeff Beal
Calling just request.getRequestProcessor() effectively exits the
Struts environment since the request object doesn't know anything
about struts_config.xml.  You need to use the method and fields of the
RequestProcessor instead.

Try this:

ActionForward expireForward = moduleConfig.findForwardConfig(nodb);
processForwardConfig(request,response,expireForward);
return false;

-- Jeff

On 7/14/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi!
 
 I have extended the RequestProcessor's processPreprocess() method
 in order to perform a simple user authentication mechanism using
 cookies. If a cookie identifying a user is found, but the users member-
 ship has expired, I would like him to be forwarded/redirected to a
 corresponding error page. What is the best way to do this? I tried
 the following:
 
 request.getRequestDispatcher( membershipExpired.jsp ).forward( request,
 response );
 
 which works fine. But this is surely not how struts should work because
 I have hardcoded the target in my code, and not configured in my
 struts-config.xml for example. So if the error page changes I have to
 chnage my code and not only the struts-config.xml. Does anybody know
 a better solution? I tried a global-forward like this but it didn't work:
 
 global-forwards
 forward name=nodb path=/membershipExpired.jsp /
 /global-forwards
 
 with
 
 request.getRequestDispatcher( nodb ).forward( request, response );
 
 Perhaps I made a mistake somewhere...
 
 Peter
 
 
 --
 
 MATERNA GmbH Information  Communications
 Vosskuhle 37
 44141 Dortmund
 Tel:  +49-231-5599-8868
 Fax: +49-231-5599-678868
 
 [EMAIL PROTECTED]
 www.annyway.dewww.materna.de
 www.annyway.com  www.materna.com
 
 Visit us at the following events:
 ACI EUROPE, Munich
 June, 22 - 24, 2005
 
 ACI EUROPE, Verona
 September, 26 - 28, 2005
 
 CTIA Wireless I.T.  Entertainment 2005, San Francisco
 September, 27 - 29, 2005
 
 Con4, Cologne
 September, 27 - 29, 2005
 
 
 -
 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: Forwarding in custom RequestProcessor

2005-07-14 Thread Jeff Beal
request.getRequestProcessor() -- request.getRequestDispatcher()

On 7/14/05, Jeff Beal [EMAIL PROTECTED] wrote:
 Calling just request.getRequestProcessor() effectively exits the

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



Re: [OT] UML class diagrams

2005-07-14 Thread Preeti Iyer
Hi Dave,
You can also try Poseidon or Jude. Both are free. 

--regards.

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



Re: Struts 1.2 v 1.3

2005-07-14 Thread Joe Germuska

At 6:21 AM -0700 7/14/05, Wendy Smoak wrote:

From: Wendy Smoak [EMAIL PROTECTED]

No.  Most of the major changes in 1.3 are 'behind the scenes' and 
will not affect the way you configure and use the framework.


That didn't come out quite right.  I meant that the changes in 1.3 
don't *have* to affect the way you configure and use the framework, 
so you're not wasting your time reading James' book. :)


Also, of course, there are no books on 1.3 out yet -- although I 
understand that there are some in the pipeline!


Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex


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



Re: Forwarding in custom RequestProcessor

2005-07-14 Thread Wendy Smoak
From: [EMAIL PROTECTED]

 I have extended the RequestProcessor's processPreprocess() method
 in order to perform a simple user authentication mechanism using
 cookies. If a cookie identifying a user is found, but the users member-
 ship has expired, I would like him to be forwarded/redirected to a
 corresponding error page. What is the best way to do this? I tried
 the following:

Have you considered doing this in a Filter instead of extending the
RequestProcessor?  I question the wisdom of tying
authentication/authorization so closely to the Struts framework.

With a Filter, you can stick it in front of anything.  For example, I posted
all the documentation for our internal projects on the web server, but
didn't want to leave it wide open.  Though it's all static HTML, it's
packaged as a .war file, and I was able to drop the same Filter I use in
Struts apps in front of it with a simple change to web.xml.

-- 
Wendy Smoak


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



Forward path entry in Struts-config

2005-07-14 Thread rajiv verma
Hi,
  I want to place my JSPs under the WEB-INF directory[login directory].
How ths struts-config entries should look in this case.
If I try to add the following forward--entry:

forward name=success path=/login/welcome.jsp redirect=true
contextRelative=false /
But, this by default looks everything under the context[root].
Any solution to this? I know there is forward pattern, I was trying to
make use of it, but does not seem to work.
Thanks,
Rajiv

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



Token element wrapped with a div tag

2005-07-14 Thread glenn . deschenes
Hi,

Just curious as to why in the JSP the token is wrapped in a div tag?

divinput type=hidden name=org.apache.struts.taglib.html.TOKEN 
value=383952ea7a0093448e02f3f0d635865b/div

I'm using v1.2.7.

Regards,
Glenn

Re: Forward path entry in Struts-config

2005-07-14 Thread Michael Jouravlev
1. Files under WEB-INF cannot be accessed directly from outside, that
is, from browser
2. Redirect generates a new browser request to the server

So, the answer is not possible in your current configuration.

JSP generally should not be accessed from outside, they should be
forwarded to from an action class. You redirect to an action, which
forwards to JSP. This will work.

Michael.

On 7/14/05, rajiv verma [EMAIL PROTECTED] wrote:
 Hi,
   I want to place my JSPs under the WEB-INF directory[login directory].
 How ths struts-config entries should look in this case.
 If I try to add the following forward--entry:
 
 forward name=success path=/login/welcome.jsp redirect=true
 contextRelative=false /
 But, this by default looks everything under the context[root].
 Any solution to this? I know there is forward pattern, I was trying to
 make use of it, but does not seem to work.
 Thanks,
 Rajiv

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



html:select default value overwriting bean value

2005-07-14 Thread Ansley, Tom
Hi all,

 

I have the following code:

 

  td class=form_field width='34%'

  html:select property=countryID tabindex=11

html:options collection=country property=ID
labelProperty=country/

  /html:select

  /td

 

Which basically gets a list of countries and displays them.  But, it
also gets the value that resides in the beans getCountryID method and
sets the value of the drop down to that.

 

But, if I do this:

 

  td class=form_field width='34%'

  html:select property=countryID tabindex=11 value=US

html:options collection=country property=ID
labelProperty=country/

  /html:select

  /td

 

The value=US always overwrites what is in the bean.

 

I would like it to only put that default value into the page if there is
NO value in the bean.

 

Can this be done? 

 

Thanks

Tom Ansley



Re: html:select default value overwriting bean value

2005-07-14 Thread ichy
Hi, Tom

did you try to use ActionForm#reset() to set default
value for countryID to US ?
 getCountryID() you are talking is a method of
ActionForm, right?
 ichy


Re: [OT] olipmic rings metaphor

2005-07-14 Thread Borislav Sabev

Martin Gainty wrote:


Boris-
I see Security as implemented by RingBearer Frodo in Lord of the Rings
The caretaker of the ring travels thru all domains and access to the 
other dimension (portal which contains final results) regardless of 
any domain he travels thru

Begreife?
Martin-


Since I'm not a big fan of Frodo and company, I like the Ted's methaphor 
of torch much understandable (at least for me) :-)

Anyway the idea behind is the same.
BTW, i often use ThreadLocals to save such objects that have to make a 
round trip through all the layers - but this is not a universal approcah.


Regards
Borislav (or Boris)



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



RE: html:select default value overwriting bean value

2005-07-14 Thread Ansley, Tom
Hi Ichy,

I did think about that but the way my global settings are set the
default value for country is found in the jsp page.  Maybe I need to
rethink this.  I was just hoping there might be another workaround.
i.e. somehow first check the bean and if nothing then use the default
value.

Yes, getCountryID() is a method of the ActionForm.

Thanks
Tom

-Original Message-
From: ichy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 14, 2005 10:06 AM
To: Struts Users Mailing List
Subject: Re: html:select default value overwriting bean value

Hi, Tom

did you try to use ActionForm#reset() to set default
value for countryID to US ?
 getCountryID() you are talking is a method of
ActionForm, right?
 ichy

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



html:radio Javascript

2005-07-14 Thread dumbQuestionsAsker _

Hi everybody.
I got a little problem using html:radio with javascript.
I got a table I want to hide/show a cell if a radio is selected, I tried to 
do it using javascript without any success.
By default the cell is hidden, that's why I can't only use the onclick() 
event to take care of users who push the F5 key.


any idea?

_
Vidéoconférence plein écran avec MSN Messenger http://g.msn.fr/FR1001/866


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



Re: [OT] olipmic rings metaphor

2005-07-14 Thread Frank W. Zammetti
As far as security and authorization goes, where I work we very much view
it as, I suppose, a ring around the Olympic rings... perhaps a 100m track?
:)

We have completely externalized security from all our applications and
have built a fairly robust Security Framework, on top of J2EE security and
LDAP.  Further, we are now taking customization and adding it in.

Currently, once a user is authenticated and authorized, it is only THEN
that the application code begins.  The application can make simple queries
to get basic user info (name, group, whatever attributes are stored in
LDAP), but things like what can this particular user do within this
particular app is still within each app.  This is what we are
generalizing and moving out to the framework now.  We have some good ideas
about doing this, and keeping it generic enough to work across-the-board,
but I suppose we'll know if we succeeded in a few months.

I think validation gets into a whole other problem domain.  We haven't
come up with that answer yet, Olympic analogy or not :)


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, July 13, 2005 3:20 pm, Ted Husted said:
 On 7/13/05, Borislav Sabev [EMAIL PROTECTED] wrote:
 How do you classify Security and Authorization issues in this metaphor?

 In my current project I have troubles since code that is related somehow
 to Authorization is spread over all rings. Still it's difficult to me
 to have a clear understanding how to implement in a nice, consistent
 way. I'll appreciate any suggestions or recommendations about this
 problem.

 The classic Layers pattern describes a systems layer that runs along
 all the layers, so that it is adjacent to each one.

 Many Struts applications run into this problem not only with
 authorization but with validation. We often want to have some
 validation on the client-side, to enhance the user experience and to
 reduce load on the server, but, we can't do all the validation
 client-side, because there are things that only the server can know.
 (Like if the credentials tendered are valid.)

 -Ted.

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



I remember now why I said I usually use my VO in my ActionForm

2005-07-14 Thread Rick Reumann
The reason I often end up using my Value Object directly in my 
ActionForm is because rarely do I ever end up with a nice simple case 
where the users are submitting simple form fields. Typically I end up 
with cases where I have to deal with a bunch of nested beans. It gets 
INCREDIBLY cumbersome to try to duplicate the same exact nested 
structure with objects in a form bean that need to represent the same 
exact nested structure of the objects. I'd be curious for those of you 
that 'only' use straight properties in your ActionForm deal with this? 
How do you deal with a situation where you have to edit for example a 
master detail record that contains nested objects? It's so much easier 
dealing with the VOs for this kind of stuff.


--
Rick




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



struts validation framework

2005-07-14 Thread Sivakumar Santharam
I am trying to restrict a field input value between 1 and 12. The user has to 
enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and 
for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the 
problem is only if I enable javascript validation.

Did anybody come across this peculiar behaviour? Any help is appreciated.

This is my sample code:

field property=injuryTimeHour 
depends=intRange,minlength,maxlength
arg0 key=injury.time.hour /
arg1 name=minlength key=${var:minlength} 
resource=false /
arg1 name=maxlength key=${var:maxlength} 
resource=false /
var
var-nameminlength/var-name
var-value2/var-value
/var
var
var-namemaxlength/var-name
var-value2/var-value
/var
arg1 name=intRange key=${var:min} 
resource=false/
arg2 name=intRange key=${var:max} resource=false/
var
var-namemin/var-name
var-value1/var-value
/var
var
var-namemax/var-name
var-value12/var-value
/var
/field



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



RE: struts validation framework

2005-07-14 Thread Jay Burgess
Yes.  It's because the leading zero is saying the numbers are octal, so 01-07
are valid octals, 08-09 are invalid octals, and 10-12 are valid octals.  

Jat

| Jay Burgess [Vertical Technology Group]
| Essential Technology Links via RSS
| http://www.vtgroup.com/

 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sivakumar Santharam
Sent: Thursday, July 14, 2005 2:07 PM
To: user@struts.apache.org
Subject: struts validation framework

I am trying to restrict a field input value between 1 and 12. The user has to 
enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and 
for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the 
problem is only if I enable javascript validation.

Did anybody come across this peculiar behaviour? Any help is appreciated.

This is my sample code:

field property=injuryTimeHour 
depends=intRange,minlength,maxlength
arg0 key=injury.time.hour /
arg1 name=minlength key=${var:minlength} 
resource=false /
arg1 name=maxlength key=${var:maxlength} 
resource=false /
var
var-nameminlength/var-name
var-value2/var-value
/var
var
var-namemaxlength/var-name
var-value2/var-value
/var
arg1 name=intRange key=${var:min} 
resource=false/
arg2 name=intRange key=${var:max} resource=false/
var
var-namemin/var-name
var-value1/var-value
/var
var
var-namemax/var-name
var-value12/var-value
/var
/field



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



basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann

Ok this is basic, but I'm stumped here at the moment...

Imagine a Map of Animals. (Animal has a name property)

map.put(new Integer(1), new Animal() );
map.put(new Integer(2), new Animal() );

In my Action form this map is in there as:

private Map animalsMap;
getAnimalsMap()
setAnimalsMap(Map map);

Question:

In this example I know the key names (1 and 2). I want to be able to 
update the name for each animal that is in the map from a form:


html:text property=animalsMap[1].name/
html:text property=animalsMap['1'].name/

html:text property=animalsMap[2].name/

neither of the above works, but I'm not sure why. Do I need to have a 
getAnimalsMap(Object key) method? If so that's annoying, since if my map 
was nested in a value ojbect I could get this to work fine.


What stupid easy thing am I doing wrong here?

(By the way I know the maps are populated correctly because I can do 
this in JSTL and see the field fine.. in this case 'metadata' equals 
concept of 'name' above)


c:forEach items=${tierMaintenanceForm.metadataObjectsMap} var=meta 
varStatus=metaStatus

${meta.key} -- ${meta.value.metadata} br/br/
 /c:forEach


--
tia,

Rick





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



RE: struts validation framework

2005-07-14 Thread Joe Germuska

At 12:14 PM -0700 7/14/05, Jay Burgess wrote:
Yes.  It's because the leading zero is saying the numbers are 
octal, so 01-07

are valid octals, 08-09 are invalid octals, and 10-12 are valid octals.


Jay's exactly right here.  Your options:

(1) hack the Javascript validation; commons-validator provides a 
mechanism for specifying your own Javascript and falls back to 
loading it from the commons-validator.jar (well, in recent versions; 
in earlier versions, the javascript was in the config XML files and 
hacking it will be pretty obvious.)  I'm pretty sure the server-side 
validation doesn't care about octals.


(2) use a mask validator with a pattern like ^(0[1-9]|1[0-2])$

Joe


Jat

| Jay Burgess [Vertical Technology Group]
| Essential Technology Links via RSS
| http://www.vtgroup.com/



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sivakumar Santharam
Sent: Thursday, July 14, 2005 2:07 PM
To: user@struts.apache.org
Subject: struts validation framework

I am trying to restrict a field input value between 1 and 12. The user has to
enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and
for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the
problem is only if I enable javascript validation.

Did anybody come across this peculiar behaviour? Any help is appreciated.

This is my sample code:

field property=injuryTimeHour
depends=intRange,minlength,maxlength
arg0 key=injury.time.hour /
arg1 name=minlength key=${var:minlength}
resource=false /
arg1 name=maxlength key=${var:maxlength}
resource=false /
var
var-nameminlength/var-name
var-value2/var-value
/var
var
var-namemaxlength/var-name
var-value2/var-value
/var
arg1 name=intRange key=${var:min}
resource=false/
arg2 name=intRange key=${var:max} resource=false/
var
var-namemin/var-name
var-value1/var-value
/var
var
var-namemax/var-name
var-value12/var-value
/var
/field



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



--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex


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



Security constraint not working

2005-07-14 Thread Neil Aggarwal
Hello:

According to this page:
http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts.html

In order to prevent people of accessing jsp pages directly
without using my struts controller, I added this to my web.xml:

  !-- Do not allow users to load jsps directly --
  security-constraint
web-resource-collection
  web-resource-nameno_access/web-resource-name
  url-pattern*.jsp/url-pattern
/web-resource-collection
  /security-constraint

I added it and I can still load a page with the url
to the jsp.  Here is an example:

http://dev.rentclubs.com/rentclubs/howWeStarted.jsp

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com


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



Re: basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann

Rick Reumann wrote the following on 7/14/2005 3:17 PM:

Ok this is basic, but I'm stumped here at the moment...

Imagine a Map of Animals. (Animal has a name property)

map.put(new Integer(1), new Animal() );
map.put(new Integer(2), new Animal() );

In my Action form this map is in there as:

private Map animalsMap;
getAnimalsMap()
setAnimalsMap(Map map);

Question:

In this example I know the key names (1 and 2). I want to be able to 
update the name for each animal that is in the map from a form:


html:text property=animalsMap[1].name/
html:text property=animalsMap['1'].name/

html:text property=animalsMap[2].name/


From the FAQ I'm going to try this in my ActionForm..


 public Object getStringMapped(String key) {
return map.get(key);
}

public void setStringMapped(String key, Object value) {
map.put(key, value);
}


--
Rick

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



Re: basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann

Rick Reumann wrote the following on 7/14/2005 4:20 PM:


 From the FAQ I'm going to try this in my ActionForm..


 public Object getStringMapped(String key) {
return map.get(key);
}

public void setStringMapped(String key, Object value) {
map.put(key, value);
}


When in doubt look at the docs:)

The above worked fine..and then...

html:textarea property='metadataMapped(1).metadata' rows=10 cols=40 /

--
Rick

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



ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Grzegorz Stasica

hi,

I'm checking struts-flow package and one of it's features Remote RPC 
support (termed Ajax but with JSON instead of XML) for calling flow 
methods from the client. As much as I can see now there is no problem 
to invoke actions from struts-config but as much as I see all page is 
being rendered although I assume only part of should be. Does anybody 
has an experience with updating some part of a page from struts-flow.jar 
package. I'd like at once give up and start using DWR.

My code is as follow:

function main() {

forwardAndWait(start,
   { random  : random,
 hint: hint,
 guesses : guesses} );

forwardAndWait(success1,
   { random  : random,
 hint: hint,
 guesses : guesses} );
break;
}

and struts-config
action path=/testList
  name=xForm
  type=net.sf.struts.flow.FlowAction
  className=net.sf.struts.flow.FlowMapping

  set-property property=function value=main /

  forward name=start path=/testList1.do?do=start1/
  forward name=success1 path=/testList1.do?do=success1/
  forward name=success path=/testList1.do?do=success/
/action


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



Re: ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Don Brown
I'm not sure I understand the question, but if you just want the
ability to call Java methods from the client, I'd go with DWR.  Struts
Flow is a bit more experimental looking at rethinking web applications
as continuations-based Javascript-glued apps where the view logic can
be written in the same language on the server and client.

The particular feature you are talking about is the ability to call
server-side Javascript methods from the client side.  At this point, I
wouldn't recommend using Struts Flow right out of the trunk as it is a
work in progress.  DWR, on the other hand, is a tested and proven
project that, again, does sound more like what you are looking for.

Don

On 7/14/05, Grzegorz Stasica [EMAIL PROTECTED] wrote:
 hi,
 
 I'm checking struts-flow package and one of it's features Remote RPC
 support (termed Ajax but with JSON instead of XML) for calling flow
 methods from the client. As much as I can see now there is no problem
 to invoke actions from struts-config but as much as I see all page is
 being rendered although I assume only part of should be. Does anybody
 has an experience with updating some part of a page from struts-flow.jar
 package. I'd like at once give up and start using DWR.
 My code is as follow:
 
 function main() {
 
  forwardAndWait(start,
 { random  : random,
   hint: hint,
   guesses : guesses} );
 
  forwardAndWait(success1,
 { random  : random,
   hint: hint,
   guesses : guesses} );
  break;
 }
 
 and struts-config
  action path=/testList
name=xForm
type=net.sf.struts.flow.FlowAction
className=net.sf.struts.flow.FlowMapping
 
set-property property=function value=main /
 
forward name=start path=/testList1.do?do=start1/
forward name=success1 path=/testList1.do?do=success1/
forward name=success path=/testList1.do?do=success/
  /action
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Security constraint not working

2005-07-14 Thread erikweber
Shouldn't there be an authconstraint in there?

auth-constraint/, or something like that? Can't remember exactly.

Looks to me like you have defined the resource but not declared who (in this 
case nobody) has access to it.

Erik


-Original Message-
From: Neil Aggarwal [EMAIL PROTECTED]
Sent: Jul 14, 2005 3:48 PM
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: Security constraint not working

Hello:

According to this page:
http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts.html

In order to prevent people of accessing jsp pages directly
without using my struts controller, I added this to my web.xml:

  !-- Do not allow users to load jsps directly --
  security-constraint
web-resource-collection
  web-resource-nameno_access/web-resource-name
  url-pattern*.jsp/url-pattern
/web-resource-collection
  /security-constraint

I added it and I can still load a page with the url
to the jsp.  Here is an example:

http://dev.rentclubs.com/rentclubs/howWeStarted.jsp

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.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: Security constraint not working

2005-07-14 Thread Neil Aggarwal
Erik:

Doh!  I guess I did not copy the whole thing.

Thanks for the help.

Neil


--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 14, 2005 3:42 PM
 To: Struts Users Mailing List
 Subject: Re: Security constraint not working
 
 
 Shouldn't there be an authconstraint in there?
 
 auth-constraint/, or something like that? Can't remember exactly.
 
 Looks to me like you have defined the resource but not 
 declared who (in this case nobody) has access to it.
 
 Erik
 
 
 -Original Message-
 From: Neil Aggarwal [EMAIL PROTECTED]
 Sent: Jul 14, 2005 3:48 PM
 To: 'Struts Users Mailing List' user@struts.apache.org
 Subject: Security constraint not working
 
 Hello:
 
 According to this page:
 http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts.html
 
 In order to prevent people of accessing jsp pages directly
 without using my struts controller, I added this to my web.xml:
 
   !-- Do not allow users to load jsps directly --
   security-constraint
 web-resource-collection
   web-resource-nameno_access/web-resource-name
   url-pattern*.jsp/url-pattern
 /web-resource-collection
   /security-constraint
 
 I added it and I can still load a page with the url
 to the jsp.  Here is an example:
 
 http://dev.rentclubs.com/rentclubs/howWeStarted.jsp
 
 Any ideas?
 
 Thanks,
   Neil
 
 --
 Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! http://newsletter.JAMMConsulting.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]



Question about html:rewrite tag...

2005-07-14 Thread Andrew Leer
I have a tiles controller which populates an html:select.  The html:options
values will contain a struts actions which will be used by a Javascript
method in the html:select's onChange attribute to forward the user to a page
when the html:select changes.  

 

Now my question is, how do I get the same functionality of the
html:rewrite tag to rewrite/encode the URL in my tiles controller?

 

Thanks,

 

Andrew J. Leer

Software Engineer

MobilVox, Inc.

* (724) 349-3339 x315

[EMAIL PROTECTED]

 



Re: Forward path entry in Struts-config

2005-07-14 Thread Laurie Harper

rajiv verma wrote:

Hi,
  I want to place my JSPs under the WEB-INF directory[login directory].
How ths struts-config entries should look in this case.
If I try to add the following forward--entry:

forward name=success path=/login/welcome.jsp redirect=true
contextRelative=false /
But, this by default looks everything under the context[root].
Any solution to this? I know there is forward pattern, I was trying to
make use of it, but does not seem to work.
Thanks,
Rajiv


Have you tried with a path of /WEB-INF/login/welcome.jsp and redirect set 
to false? As Michael points out you wont be able to do this using 
redirects, but forwards should work OK.


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Laurie Harper
Not sure what a .def file is, but I think you're on the right track with 
combining them and using conditional logic within the JSP to control what's 
displayed based on user role. Look at logic:present role=''/ for a simple 
way to wrap role-dependent markup in your JSPs:


  http://struts.apache.org/userGuide/struts-logic.html#present

L.

Aleksandar Matijaca wrote:

Hi there,

I have an application that I am working on that requires two different role 
levels (administrator and user).
The administrator, will have some extra links visible to them. I want to use 
only one struts-config file.

I am currently running into a scalability issue -- here is what I mean:



action path=/someAction ... 

forward name=a_success path=someAdministratorPath.def !-- I am using 
tiles --

forward name=u_success path=someUserPath.def !-- I am using tiles --

/aciton

The someAdministratorPath.def has a jsp with different kind of a menu 
structure - for administrators only,
and someUserPath.def has a jsp with a subset of different menu structures -- 
the only real difference between

the two .def files is a single jsp.

Somehow the above seems awkward and unscalable to me, and I am afraid I will 
run into a problem later. 
I know that I can probably put in some c:if statements in one of the JSPs, 
and there discriminate between

a User and Administrator, but somehow, that seems like a band-aid solution.

If you have any idea on how to restructure this thing, please let me know.

Thanks, Alex.




--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: html:select default value overwriting bean value

2005-07-14 Thread Laurie Harper
The html tags don't support what you want directly; if you specify a 
'value' attribute it always takes precedence. You can set the default in 
the form bean (either in your setup action, or using jsp:setProperty/ or 
similar in the JSP page) and not use a value attribute or, if that's not 
possible, you can use an expression for the value attribute to get the 
behaviour you want.


For example, assuming there is a bean named 'selectedCountry' with the 
value 'US', you could use something like the following:

html:select property=countryID tabindex=11
value=${empty MyFormBean.countryID
   ? selectedCountry
   : MyFormBean.countryID}

HTH,

L.

Ansley, Tom wrote:


Hi Ichy,

I did think about that but the way my global settings are set the
default value for country is found in the jsp page.  Maybe I need to
rethink this.  I was just hoping there might be another workaround.
i.e. somehow first check the bean and if nothing then use the default
value.

Yes, getCountryID() is a method of the ActionForm.

Thanks
Tom

-Original Message-
From: ichy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 14, 2005 10:06 AM

To: Struts Users Mailing List
Subject: Re: html:select default value overwriting bean value

Hi, Tom

did you try to use ActionForm#reset() to set default
value for countryID to US ?
 getCountryID() you are talking is a method of
ActionForm, right?
 ichy



--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: Token element wrapped with a div tag

2005-07-14 Thread Laurie Harper

[EMAIL PROTECTED] wrote:

Just curious as to why in the JSP the token is wrapped in a div tag?

divinput type=hidden name=org.apache.struts.taglib.html.TOKEN 
value=383952ea7a0093448e02f3f0d635865b/div


I'm using v1.2.7.


What does your JSP look like?

L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: Struts 1.2 v 1.3

2005-07-14 Thread Ted Husted
On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:
 I just bought and am reading James Holmes' book, Struts: The Complete
 Reference (Osborne 2004), which covers 1.2.  I just learned from one
 of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
 wasting my time and should be studying other literature?

Hmmm, I may have said almost, but I did not mean to imply soon. 

Right now, no one seems to be trying to push 1.3 out the door. There
is not even a release plan. The only timeframe for 1.3 is
indefinate. It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should indefinate happen, it would not make any 1.2
material obsolete. By 1.3, we mean the release would be backwardly
compatible with 1.2.

-Ted.

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



[OT] Re: How to hide URL in Adress bar?

2005-07-14 Thread Dave Newton

John Henry Xu wrote:


It is bad using only one URL.

Not always. For some applications, especially 
non-search-engine-sensitive ones, it makes perfect sense.


Dave



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



Re: Struts 1.2 v 1.3

2005-07-14 Thread erikweber
Ted, is there a list of tasks for 1.3? By volunteer, are you referring only 
to current Struts committers?

Erik


-Original Message-
From: Ted Husted [EMAIL PROTECTED]
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 1.2 v 1.3

On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:
 I just bought and am reading James Holmes' book, Struts: The Complete
 Reference (Osborne 2004), which covers 1.2.  I just learned from one
 of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
 wasting my time and should be studying other literature?

Hmmm, I may have said almost, but I did not mean to imply soon. 

Right now, no one seems to be trying to push 1.3 out the door. There
is not even a release plan. The only timeframe for 1.3 is
indefinate. It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should indefinate happen, it would not make any 1.2
material obsolete. By 1.3, we mean the release would be backwardly
compatible with 1.2.

-Ted.

-
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 1.2 v 1.3

2005-07-14 Thread netsql

[EMAIL PROTECTED] wrote:

Ted, is there a list of tasks for 1.3? By volunteer, are you referring only 
to current Struts committers?



Anyone can edit / search bugzila.
Anyone can post a diff to code. Only a comiter can ... comit code.

(you become a comiter when comiters get tired of comiting your code)

.V


Erik


-Original Message-
From: Ted Husted [EMAIL PROTECTED]
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 1.2 v 1.3

On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:


I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?



Hmmm, I may have said almost, but I did not mean to imply soon. 


Right now, no one seems to be trying to push 1.3 out the door. There
is not even a release plan. The only timeframe for 1.3 is
indefinate. It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should indefinate happen, it would not make any 1.2
material obsolete. By 1.3, we mean the release would be backwardly
compatible with 1.2.

-Ted.

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



Validation Framework Manual

2005-07-14 Thread Rafael Taboada
Hi folks... In http://struts.apache.org/userGuide/dev_validator.html
 I try to use a sample about validwhen
 field property=emailAddress depends=validwhen
arg0 key=userinfo.emailAddress.label/
var
var-nametest/var-name
var-value((sendNewsletter == null) or (*this* != null))/var-value
/var
/field
 But it gives me an error:
 
javax.servlet.ServletException: antlr/TokenStream

org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:300)

org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

 *causa raíz* 

java.lang.NoClassDefFoundError: antlr/TokenStream
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
java.lang.Class.getMethod0(Class.java:2611)
java.lang.Class.getMethod(Class.java:1579)

org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:623)

org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
org.apache.commons.validator.Field.validateForRule(Field.java:811)
org.apache.commons.validator.Field.validate(Field.java:890)
org.apache.commons.validator.Form.validate(Form.java:174)
org.apache.commons.validator.Validator.validate(Validator.java:367)

org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
com.sancristobal.Actions.VentaAction.buscarVenta(VentaAction.java:62)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)

org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

 Do u know why???... Where can I find a manual about how to fill my 
validation.xml???... I mean, what do I have to put in my tags (var-name, 
var-value, ...)
 Thanks in advance

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

No creo en el destino pues no me gusta tener la idea de controlar mi vida


Re: Validation Framework Manual

2005-07-14 Thread Wendy Smoak
From: Rafael Taboada [EMAIL PROTECTED]

 java.lang.NoClassDefFoundError: antlr/TokenStream

That just looks like you're missing antlr.jar from the classpath.  Is it in
WEB-INF/lib?

-- 
Wendy Smoak


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



Re: Validation Framework Manual

2005-07-14 Thread Rafael Taboada
Yeah, that was the problem...
 Do u know a tutorial about how to fill my validation.xml?
 I want to know what i have to put in each tag.



-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

No creo en el destino pues no me gusta tener la idea de controlar mi vida


Re: Validation Framework Manual

2005-07-14 Thread Dave Newton

Rafael Taboada wrote:


Yeah, that was the problem...
Do u know a tutorial about how to fill my validation.xml?
I want to know what i have to put in each tag.
 

Are the docs at http://struts.apache.org/userGuide/dev_validator.html 
not satisfactory?


Dave



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



Re: [OT] Java as a Daemon

2005-07-14 Thread Richard Reyes
Hi Guys,

Thanks for all the input. I'll suggest the oracle dbms_job approach
seems reasonable. My last option would be to create a cron job.

Richard

On 7/14/05, Martin Gainty [EMAIL PROTECTED] wrote:
 Jesse
 
 For specific packages I would look at  dbms_streams_tablespace_adm
 I would look at Oracle's Moving Data Faster/Pulling Tablespaces article
 available at
 http://www.oracle.com/technology/oramag/oracle/04-sep/o54data.html
 And of course consult the folks at Oracle if you have a support contract!
 
 In any case let us know how you make out,
 Maritn-
  Original Message -
 From: Duncan Mills [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Thursday, July 14, 2005 4:41 AM
 Subject: Re: [OT] Java as a Daemon
 
 
  Indeed the Oracle Database itself has a DBMS_JOB procedural package which
  acts just like Cron in the database - so that provides another way to
  tackle the problem - On the other hand  the Oracle database also has a
  whole set of replication features which are designed for syncing data
  between databases instances in realtime if necessary - have a serious look
  at these built-in functions of the database infrastructure before you
  build something new to do the same job.
 
  Duncan
 
  Jesse Alexander (KBSA 21) wrote:
 
 Hi
 
 (Warning: not an Oracle insider...)
 If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
 Maybe you could have a Java-class that is called whenever you make an
 update that needs to be communicated. And then somehow make the update
 in the second Oracle-db.
 
 just my 2cents
 Alexander
 
 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, July
 14, 2005 3:53 AM
 To: Struts Users Mailing List
 Subject: [OT] Java as a Daemon
 
 Hello Guys,
 
 I need your suggestions. I have a task to create an application to
 sync records between 2 Oracle 10g database. Not the whole records of
 the database though, just the now and then transactional updates.
 Access to the db's would be both via web services. I think I have an
 option to do this like
 - a simple java application executed via .sh file - a java application
 running as a daemon on a unix box
 
 But I really am not sure which better path I should take. Any
 suggestions would be very much 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]
 
 
 
  --
 
  Regards
 
  Duncan Mills
  Senior Principal Product Manager
  Oracle Application Development Tools
 
  [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Validator throws exception

2005-07-14 Thread Michael Jouravlev
I am trying to validate from properties. First I thought that error
was caused because I use nested properties (can I ?)

But now I have only one property, not nested, and I get this:

Jul 14, 2005 7:02:57 PM org.apache.struts.validator.ValidatorForm validate
SEVERE: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Fi
eld, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.Validat
orAction, org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletReq
uest)
at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
at org.apache.commons.validator.Field.validateForRule(Field.java:811)
at org.apache.commons.validator.Field.validate(Field.java:890)
at org.apache.commons.validator.Form.validate(Form.java:174)
at org.apache.commons.validator.Validator.validate(Validator.java:367)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
at 
net.jspcontrols.dialogs.samples.mailreader.RegistrationForm.validate(RegistrationForm.java:88)

This is my form definition: public class RegistrationForm extends
ValidatorForm implements ICRUDForm  {
...
String password2 = null;
public String getPassword2() {return password2;}
public void setPassword2(String password2) {this.password2 = password2;}
}

This is validation.xml:

form-validation
formset
form name=RegistrationForm
field property=password2
depends=required
arg   key=prompt.password2/
/field
/form
/formset
/form-validation

Any insight? I have used Validator before.

Michael.

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



Re: [OT] Java as a Daemon

2005-07-14 Thread Richard Reyes
Hi Duncan,

Will there be a way that the source DB access the target directly?
Because right now these DB's are accessed via web services Im thinking
if the source DB can directly connect to the target DB.

Also these procedural package, can they send notification emails?

On 7/14/05, Duncan Mills [EMAIL PROTECTED] wrote:
 Indeed the Oracle Database itself has a DBMS_JOB procedural package
 which acts just like Cron in the database - so that provides another way
 to tackle the problem - On the other hand  the Oracle database also has
 a whole set of replication features which are designed for syncing data
 between databases instances in realtime if necessary - have a serious
 look at these built-in functions of the database infrastructure before
 you build something new to do the same job.
 
 Duncan
 
 Jesse Alexander (KBSA 21) wrote:
 
 Hi
 
 (Warning: not an Oracle insider...)
 
 If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
 Maybe you could have a Java-class that is called whenever you make an
 update that needs to be communicated. And then somehow make the update
 in the second Oracle-db.
 
 just my 2cents
 Alexander
 
 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 14, 2005 3:53 AM
 To: Struts Users Mailing List
 Subject: [OT] Java as a Daemon
 
 Hello Guys,
 
 I need your suggestions. I have a task to create an application to
 sync records between 2 Oracle 10g database. Not the whole records of
 the database though, just the now and then transactional updates.
 Access to the db's would be both via web services. I think I have an
 option to do this like
 - a simple java application executed via .sh file
 - a java application running as a daemon on a unix box
 
 But I really am not sure which better path I should take. Any
 suggestions would be very much 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]
 
 
 
 
 --
 
 Regards
 
 Duncan Mills
 Senior Principal Product Manager
 Oracle Application Development Tools
 
 [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: Validation Framework Manual

2005-07-14 Thread James Mitchell

You can always just memorize the DTD :)

On the other hand, you could pick up a good text editor with autocompletion 
that supports DTD/XML Schema.  Even after Eclipse WTP M4 shipped, I prefer 
XML Buddy, so much so that I went ahead and purchased the Pro license a few 
months back.



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: Dave Newton [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 14, 2005 8:41 PM
Subject: Re: Validation Framework Manual



Rafael Taboada wrote:


Yeah, that was the problem...
Do u know a tutorial about how to fill my validation.xml?
I want to know what i have to put in each tag.

Are the docs at http://struts.apache.org/userGuide/dev_validator.html not 
satisfactory?


Dave



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






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



Re: Validator throws exception

2005-07-14 Thread James Mitchell

Yes, you can use nested properties the same as anywhere else.

I see a stack trace below, but what is the actual error you got?


--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: Michael Jouravlev [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, July 14, 2005 10:11 PM
Subject: Validator throws exception


I am trying to validate from properties. First I thought that error
was caused because I use nested properties (can I ?)

But now I have only one property, not nested, and I get this:

Jul 14, 2005 7:02:57 PM org.apache.struts.validator.ValidatorForm validate
SEVERE: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,

org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Fi
eld, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.Validat
orAction, org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletReq
uest)
   at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
   at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
   at 
org.apache.commons.validator.Field.validateForRule(Field.java:811)

   at org.apache.commons.validator.Field.validate(Field.java:890)
   at org.apache.commons.validator.Form.validate(Form.java:174)
   at 
org.apache.commons.validator.Validator.validate(Validator.java:367)
   at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
   at 
net.jspcontrols.dialogs.samples.mailreader.RegistrationForm.validate(RegistrationForm.java:88)


This is my form definition: public class RegistrationForm extends
ValidatorForm implements ICRUDForm  {
...
   String password2 = null;
   public String getPassword2() {return password2;}
   public void setPassword2(String password2) {this.password2 = password2;}
}

This is validation.xml:

form-validation
   formset
   form name=RegistrationForm
   field property=password2
   depends=required
   arg   key=prompt.password2/
   /field
   /form
   /formset
/form-validation

Any insight? I have used Validator before.

Michael.

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



Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-14 Thread James Mitchell
I think it is high time we get something out there for 1.3, even if it never 
makes it past beta, at least we are moving.


I'm about to head out on a working-vacation, and while I'm gone, I'll try to 
get the release plan put together.  Does anyone have any time they'd like to 
donate in a week or so to help with this?



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: netsql [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Thursday, July 14, 2005 7:27 PM
Subject: Re: Struts 1.2 v 1.3



[EMAIL PROTECTED] wrote:
Ted, is there a list of tasks for 1.3? By volunteer, are you referring 
only to current Struts committers?




Anyone can edit / search bugzila.
Anyone can post a diff to code. Only a comiter can ... comit code.

(you become a comiter when comiters get tired of comiting your code)

.V


Erik


-Original Message-
From: Ted Husted [EMAIL PROTECTED]
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 1.2 v 1.3

On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:


I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?



Hmmm, I may have said almost, but I did not mean to imply soon. Right 
now, no one seems to be trying to push 1.3 out the door. There

is not even a release plan. The only timeframe for 1.3 is
indefinate. It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should indefinate happen, it would not make any 1.2
material obsolete. By 1.3, we mean the release would be backwardly
compatible with 1.2.

-Ted.

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



[OT] Can a simple java app access web services

2005-07-14 Thread Richard Reyes
Hi Guys,

Can a simple java app access a web service? Or do I need to install axis?

Thanks
Richard

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



Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Aleksandar Matijaca
That is a very interesting tag, I have never used it - thanks Laurie!!
 Cheers, Alex.


 On 7/14/05, Laurie Harper [EMAIL PROTECTED] wrote: 
 
 Not sure what a .def file is, but I think you're on the right track with
 combining them and using conditional logic within the JSP to control 
 what's
 displayed based on user role. Look at logic:present role=''/ for a 
 simple
 way to wrap role-dependent markup in your JSPs:
 
 http://struts.apache.org/userGuide/struts-logic.html#present
 
 L.
 
 Aleksandar Matijaca wrote:
  Hi there,
 
  I have an application that I am working on that requires two different 
 role
  levels (administrator and user).
  The administrator, will have some extra links visible to them. I want to 
 use
  only one struts-config file.
  I am currently running into a scalability issue -- here is what I mean:
 
 
 
  action path=/someAction ... 
 
  forward name=a_success path=someAdministratorPath.def !-- I am 
 using
  tiles --
  forward name=u_success path=someUserPath.def !-- I am using tiles 
 --
 
  /aciton
 
  The someAdministratorPath.def has a jsp with different kind of a menu
  structure - for administrators only,
  and someUserPath.def has a jsp with a subset of different menu 
 structures --
  the only real difference between
  the two .def files is a single jsp.
 
  Somehow the above seems awkward and unscalable to me, and I am afraid I 
 will
  run into a problem later.
  I know that I can probably put in some c:if statements in one of the 
 JSPs,
  and there discriminate between
  a User and Administrator, but somehow, that seems like a band-aid 
 solution.
 
  If you have any idea on how to restructure this thing, please let me 
 know.
 
  Thanks, Alex.
 
 
 
 --
 Laurie, Open Source advocate, Java geek and novice blogger:
 http://www.holoweb.net/~laurie/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: [OT] Can a simple java app access web services

2005-07-14 Thread Frank W. Zammetti

Hi Richard,

Axis is the server-side of the WS equation (although maybe it can 
perform some client duties, I'm not certain), so more than likely it 
wouldn't come into play anyway.


The simple answer is yes, a simple Java app can access a web service.

There are classes that will specifically help you do so, but you can 
also fake it, at least if it is a SOAP-based service (I'm not as 
familiar with RCP-type services).  For SOAP-based services, all you 
really need to do is construct an XML message and use the usual HTTP 
methods in the standard JDK to send it.


You might be interested to look at my StrutsWS project because there is 
exactly what your asking for included: a simple Java app that accesses 
the services the example project provides (in short, StrutsWS is an 
extension to Struts that allows Actions to be exposed as services).  You 
can find it at http://sourceforge.net/projects/strutsws/


Frank

Richard Reyes wrote:

Hi Guys,

Can a simple java app access a web service? Or do I need to install axis?

Thanks
Richard

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




.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-14 Thread Michael Jouravlev
(imitating Donkey) Me, me, pick me! ;-)

I am currently in the process of rewriting Mail Reader with Struts
Dialogs. You would not believe how nicer it gets ;)

Michael.

On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
 I think it is high time we get something out there for 1.3, even if it never
 makes it past beta, at least we are moving.
 
 I'm about to head out on a working-vacation, and while I'm gone, I'll try to
 get the release plan put together.  Does anyone have any time they'd like to
 donate in a week or so to help with this?

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



Re: Validator throws exception

2005-07-14 Thread Michael Jouravlev
This is it, this is all I got. ValidationAction.validate() returns
null, no errors. I call validate() manually from action class, is this
OK?

On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
 Yes, you can use nested properties the same as anywhere else.

 I see a stack trace below, but what is the actual error you got?

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



Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Wendy Smoak

From: Aleksandar Matijaca [EMAIL PROTECTED]
I have an application that I am working on that requires two different 
role levels (administrator and user).
The administrator, will have some extra links visible to them. I want to 
use only one struts-config file.


Have you looked at Struts Menu?  I'm currently using a tabbed menu that's 
based on roles.

  http://struts-menu.sourceforge.net/

--
Wendy Smoak 




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



Re: Releasing 1.3 [was: Re: Struts 1.2 v 1.3]

2005-07-14 Thread Frank W. Zammetti
James, are there any specific tickets that are a direct impediment to a 
1.3 release, as opposed to those things that could be dealt with 
post-release?


Identifying those might help focus effort, especially if there are 
non-commiters that might like to help but aren't sure exactly how best 
to do so (with the specific goal of working towards a release I mean).


Frank

James Mitchell wrote:
I think it is high time we get something out there for 1.3, even if it 
never makes it past beta, at least we are moving.


I'm about to head out on a working-vacation, and while I'm gone, I'll 
try to get the release plan put together.  Does anyone have any time 
they'd like to donate in a week or so to help with this?



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - From: netsql [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, July 14, 2005 7:27 PM
Subject: Re: Struts 1.2 v 1.3



[EMAIL PROTECTED] wrote:

Ted, is there a list of tasks for 1.3? By volunteer, are you 
referring only to current Struts committers?




Anyone can edit / search bugzila.
Anyone can post a diff to code. Only a comiter can ... comit code.

(you become a comiter when comiters get tired of comiting your code)

.V


Erik


-Original Message-
From: Ted Husted [EMAIL PROTECTED]
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 1.2 v 1.3

On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:


I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2.  I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released.  Am I
wasting my time and should be studying other literature?




Hmmm, I may have said almost, but I did not mean to imply soon. 
Right now, no one seems to be trying to push 1.3 out the door. There

is not even a release plan. The only timeframe for 1.3 is
indefinate. It could be a week, or a month, or five months. It all
depends when a volunteer can step up to the plate.

Of course, should indefinate happen, it would not make any 1.2
material obsolete. By 1.3, we mean the release would be backwardly
compatible with 1.2.

-Ted.

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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


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



[SOLVED] Validator throws exception

2005-07-14 Thread Michael Jouravlev
On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
 I see a stack trace below, but what is the actual error you got?

Hmm, it works on another machine, with different combination of
struts/common libs. So, seems just a lib mixup.

Michael.

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



Cancel button and security

2005-07-14 Thread Przemyslaw Lupinski
Hello,

Many developers use tag html:cancel/ to perform action without validation
(and for other reasons). It's usefull but it can be danger because of
security. If we don't serve cancel button in every Action or BaseAction then
it's possible to perform some actions without validation.
How?
It's very simple. Just putting parameter in url
org.apache.struts.taglib.html.CANCEL=1 or adding form element
input type=hidden name=org.apache.struts.taglib.html.CANCEL value=1.

I've tried this trick in many sites written in Struts.

I advise to remember about this problem if we don't have a validation in
business layer.

--
Przemyslaw Lupinski


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