show value in array into textbox

2006-07-12 Thread Patil, Sheetal
hi everybody,
i am doing an application for an survay. here i have a list of questions
and i am getting answer by the users for that questions.
to read the answers i create an int array in actionform as
int[] answers;
and in jsp i write like
 

in action i get the data as
answers[0] or answers[1] ect..
 
it works fine and i am able to get the answers filled by the user 
 
but now the problem is with updating an survay
for updating in action i put values in actionform as
form.answers[0]=100;
form.answers[1]=200;
and setted actionform to it's scope
now i can show the values stored in jsp using



as
100
200
 
but the problem is that i want textboxes to get input for the questions
so i put as previously
 

this displays textboxes and returns inseted values finely
but in textbox it shows address kind of thing rather than showing 100 /
200 in textbox
 
so is there any way to show values stored in array into textbox
 
 
 

Sp

 


Re: Redirect not working

2006-07-12 Thread Rob Whelan
Right now you are:
* preventing direct JSP access... then
* telling the browser to access the JSP directly.

"Redirect" means it will send an HTTP redirect to the browser, and the
browser will try to access the new URL.

So I'm not sure what you're trying to do; if you really want a redirect
(and the new URL will show in the browser location bar) you should
redirect to another action.  (And if there's no data to put in the
request, etc., you can make this a simple forwarding action that will
just show the JSP, like ).  If
you just want to send the rendered JSP straight to the browser, don't
set redirect="true".

-Rob

Pankaj Gupta wrote:
> Hi All,
>
> I have specified redirect="true" in my action forwards but tomcat
> fails to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder
> so as to avoid direct jsp access. Please suggest how can I make
> redirect to work.
>
> regards,
> Pankaj
>
> -
> To unsubscribe, 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: Redirect not working

2006-07-12 Thread James Woodward
I may be wrong but if all the jsp pages are in the WEB-INF directory and 
you try to redirect to a .jsp file it's basically the same as loading it 
directly. I think you have to use a forward to access it. You could 
probably get around it if you created an action to specifically display 
the jsp file and use a redirect to that action.


Keep in mind I'm no expert and could be completely wrong about this one.

James

Pankaj Gupta wrote:

Hi All,

I have specified redirect="true" in my action forwards but tomcat 
fails to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder 
so as to avoid direct jsp access. Please suggest how can I make 
redirect to work.


regards,
Pankaj

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




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



Redirect not working

2006-07-12 Thread Pankaj Gupta

Hi All,

I have specified redirect="true" in my action forwards but tomcat fails 
to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder so as to 
avoid direct jsp access. Please suggest how can I make redirect to work.


regards,
Pankaj

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



Re: Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden

Thanks Wendy, that worked.  I ended up replacing the "H" with "home" and "V"
with "visiting", which is what they represent.  I'm not sure I would have
considered that, since  worked.




The usual... consult the JavaBeans specification for property naming
conventions. :)

If a property name begins with two uppercase letters, it is not
decapitalized.  The introspector is likely having trouble with
HPlayer1Team1Name and hPlayer1Team1Name.



I guess Struts tags and JSTL tags have different rules on case changes.




(aside:  wouldn't you rather pass the player and team numbers as
parameters?)



It's too long an explaination but I have 20 players in the UI.  It's a golf
score card, for a tournament.  2 country clubs, each with 5 teams of two and
their scores.  Hence the really kooky naming convention.




I'd have to play with it to make sure, but try either
* rename it to have two lowercase letters at the beginning, or
* use HPlayer1TeamName everywhere

--
Wendy

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




Struts/Spring/Tiles/StrutsTestCase

2006-07-12 Thread rukka

I have struts application that works with spring. I do have few questions

my struts-config.xml looks like this...
..
   
   
   


what should I setup controller as:

processorClass="org.springframework.web.struts.DelegatingTilesRequestProcessor" 
nocache="true" locale="true"  />
  
or


processorClass="org.apache.struts.tiles.TilesRequestProcessor" 
nocache="true" locale="true"  /> 


what is the difference??

I got strutsTestcase almost working with spring wired actions. On that 
front I have one question:


How do I find forward name and path from programetically:

TilesRequestProcessor tilesProcessor = 
(TilesRequestProcessor)this.context.getAttribute("org.apache.struts.action.REQUEST_PROCESSOR");


does return null .

what I want to do is given the forward name, find the path. basically 
get the struts-config.xml




thanks

rukka







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



Re: Where oh where is my ActionForm?

2006-07-12 Thread Wendy Smoak

On 7/12/06, Monkeyden <[EMAIL PROTECTED]> wrote:


No getter method for property: "hPlayer1Team1Name" of bean: "
com.foo.web.action.captain.ScoreSubmitForm"

...

public String getHPlayer1Team1Name() {
  return this.hPlayer1Team1Name;


The usual... consult the JavaBeans specification for property naming
conventions. :)

If a property name begins with two uppercase letters, it is not
decapitalized.  The introspector is likely having trouble with
HPlayer1Team1Name and hPlayer1Team1Name.

(aside:  wouldn't you rather pass the player and team numbers as parameters?)

I'd have to play with it to make sure, but try either
* rename it to have two lowercase letters at the beginning, or
* use HPlayer1TeamName everywhere

--
Wendy

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



Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden

Tomcat 4.1 & Struts 1.2.9

Anyone seen this?  I get this message when I try to access properties of my
ActionForm, though the form is clearly there, since I can print the
values using JSTL:

No getter method for property: "hPlayer1Team1Name" of bean: "
com.foo.web.action.captain.ScoreSubmitForm"

Here is the method:

com.foo.web.action.captain.ScoreSubmitForm
public class ScoreSubmitForm extends BaseActionForm{
public ScoreSubmitForm() {}
...
public String getHPlayer1Team1Name() {
 return this.hPlayer1Team1Name;
}
...
}

JSP:


I even decompiled the class file in the /WEB-INF/classes directory.  It's
there.


Re: Continuing after authentication

2006-07-12 Thread netsql
Most people use JAAS/JDBC reals built into app servers like Resin, 
Tomcat, etc.

It's done for you... and bug free.
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
.V

James Woodward wrote:

Hello everyone,

I'm trying to figure out if there is an elegant solution to what I want 
to do.


The application I am working on allows users to sign up for an account 
and then enroll themselves into any courses currently being offered.


This is the scenario.

User Bob visits the site and views a calendar of courses. Bob decides to 
view the description of a course that is being offered July 29th. Bob is 
interested in the course and clicks on the Register button. Bob has not 
authenticated at this point and is given a page that requires him to 
enter his ID and Password. Bob enters the ID and Password and then . . .


--What I want to happen is this--
Once Bob authenticates I want him to be able to continue on with what he 
was doing. I want him to be taken to the next step of the registration 
process which will include a message saying something like "You are 
about to register in the course "Programming with Struts" on July 29th" 
Are you sure you want to continue.


--What really happens is this--
Once Bob enters his ID and password he is forwarded to some default page 
like Index.do


My current implementation has a secureAction that is extended by any 
action that a user must be authenticated to access. This secureAction 
checks to see if there is a session variable that is created when you 
authenticate. If this variable doesn't exist it takes you to the logon 
page. If it does exist you continue doing what you had intended to do.


It's probably obvious but keep in mind that this requires that we keep 
track of the courseid as well as the intended url. I have numerous pages 
that extend the secureAction and would like the idea of being able to 
continue where you were before authenticating to work for all of them.


If you have seen or done anything similar I'd appreciate any idea's you 
have on the subject.


James



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



Continuing after authentication

2006-07-12 Thread James Woodward

Hello everyone,

I'm trying to figure out if there is an elegant solution to what I  
want to do.


The application I am working on allows users to sign up for an  
account and then enroll themselves into any courses currently being  
offered.


This is the scenario.

User Bob visits the site and views a calendar of courses. Bob decides  
to view the description of a course that is being offered July 29th.  
Bob is interested in the course and clicks on the Register button.  
Bob has not authenticated at this point and is given a page that  
requires him to enter his ID and Password. Bob enters the ID and  
Password and then . . .


--What I want to happen is this--
Once Bob authenticates I want him to be able to continue on with what  
he was doing. I want him to be taken to the next step of the  
registration process which will include a message saying something  
like "You are about to register in the course "Programming with  
Struts" on July 29th" Are you sure you want to continue.


--What really happens is this--
Once Bob enters his ID and password he is forwarded to some default  
page like Index.do


My current implementation has a secureAction that is extended by any  
action that a user must be authenticated to access. This secureAction  
checks to see if there is a session variable that is created when you  
authenticate. If this variable doesn't exist it takes you to the  
logon page. If it does exist you continue doing what you had intended  
to do.


It's probably obvious but keep in mind that this requires that we  
keep track of the courseid as well as the intended url. I have  
numerous pages that extend the secureAction and would like the idea  
of being able to continue where you were before authenticating to  
work for all of them.


If you have seen or done anything similar I'd appreciate any idea's  
you have on the subject.


James

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



Re: Tags in struts

2006-07-12 Thread Maya menon
ok...
   
  good thought, looking at Javascripr right now to edit the options in list 
box..
   
  -Maya

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

Just had a thought...you can set the "style" attribute on the 
element to say 'style="display: none;"' to hide a row in the list. 
Additionally, it collapses the list so that there's not an empty space. 
Very cool, IMHO.

-Adam

Adam Gordon wrote:
> Maya-
>
> If you use validation, you really don't want to use the value 
> attribute at all because when the JSP reloads after a failed 
> validation, the struts widget will take it's value from the value 
> attribute you specified and NOT not take it from the bean. This is 
> why I suggested just setting the property on the bean to the empty 
> string inside the Action.
>
> If you don't use validation, then you can ignore this.
>
> Depending on what you want to do to the HTML list box after it's 
> rendered you may run into issues. Removing a row is pretty easy. 
> Adding a row is quite difficult and according to W3C it's not fully 
> supported in all browsers. When you add a row, you need to actually 
> specify the element to add and the element it's to 
> be inserted before. Changing the text of a row in a list box 
> shouldn't be hard either. There are some really good (free) 
> Javascript debuggers out there that can give you the whole DOM tree so 
> you know exactly how to reference specified elements of a list box 
> without using alert() debugging.
>
> Happy coding.
>
> Cheers,
>
> -Adam

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




-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

logic:messagesPresent not working

2006-07-12 Thread fea jabi

have the below in the JSP

   
   
   
   
   
   
   

When debugged the code i.e JSP, I see the RequestAttributes does contain the 
ActionErrors object and the also the messages in it.


But doesn't display the message. It executes  then 
going to  statement directly.


What's missing here?

Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



tomahawk tree2 for clay built up tree structure

2006-07-12 Thread stephan opitz

problem is the structure.

if i have an object containing an id and a parentId (which is null, or
linking to another object -> the parent one)

if i get a list from db how is it possible to build up the structure
for the tree2

i tried hashmap or recursive algorithm, but nothing with much success...

any ideas

stephan

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



Re: Tags in struts

2006-07-12 Thread Adam Gordon

Maya-

Just had a thought...you can set the "style" attribute on the  
element to say 'style="display: none;"' to hide a row in the list.  
Additionally, it collapses the list so that there's not an empty space.  
Very cool, IMHO.


-Adam

Adam Gordon wrote:

Maya-

If you use validation, you really don't want to use the value 
attribute at all because when the JSP reloads after a failed 
validation, the struts widget will take it's value from the value 
attribute you specified and NOT not take it from the bean.  This is 
why I suggested just setting the property on the bean to the empty 
string inside the Action.


If you don't use validation, then you can ignore this.

Depending on what you want to do to the HTML list box after it's 
rendered you may run into issues.  Removing a row is pretty easy.  
Adding a row is quite difficult and according to W3C it's not fully 
supported in all browsers.  When you add a row, you need to actually 
specify the  element to add and the  element it's to 
be inserted before.  Changing the text of a row in a list box 
shouldn't be hard either.  There are some really good (free) 
Javascript debuggers out there that can give you the whole DOM tree so 
you know exactly how to reference specified elements of a list box 
without using alert() debugging.


Happy coding.

Cheers,

-Adam


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



Re: Tags in struts

2006-07-12 Thread Adam Gordon

Maya-

If you use validation, you really don't want to use the value attribute 
at all because when the JSP reloads after a failed validation, the 
struts widget will take it's value from the value attribute you 
specified and NOT not take it from the bean.  This is why I suggested 
just setting the property on the bean to the empty string inside the Action.


If you don't use validation, then you can ignore this.

Depending on what you want to do to the HTML list box after it's 
rendered you may run into issues.  Removing a row is pretty easy.  
Adding a row is quite difficult and according to W3C it's not fully 
supported in all browsers.  When you add a row, you need to actually 
specify the  element to add and the  element it's to be 
inserted before.  Changing the text of a row in a list box shouldn't be 
hard either.  There are some really good (free) Javascript debuggers out 
there that can give you the whole DOM tree so you know exactly how to 
reference specified elements of a list box without using alert() debugging.


Happy coding.

Cheers,

-Adam

Maya menon wrote:

Yes Adam.
  Thanks again
   
  in the nested:select tag you can add value="", that changes the

display in such a way that none of the needed options ar selected.
   
  Thanks again.
   
  Now, my display is perfect, have to think about how to update options
in this list box now using javascript. 
   
  -Maya


  


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



Re: taglib nested-el

2006-07-12 Thread Laurent Duparchy


Thanks for the response.

Unless I missed something,  the taglib "nested" is not just a cooler way 
to access child beans, or access  beans inside, say, collection of 
collections ;


The nested taglib allows *_true recursion_ *within JSPs that is not 
possible otherwise with struts standard nor JSTL.


   nested is much much more elegant than using "indexed" property. 
"Indexed' doesn't allow recursion, anyway.


So, I think a nested-el is desirable and relevant.

a cool tutorial to nested taglib :

http://www.keyboardmonkey.com/index.jsp

It allows something like :

treenode.jsp
...

 

   
   
 
   
  
  





Lance wrote:


There is no nested-el. The struts-nested, struts-logic and struts-bean tags
are pretty much dead. If you're not already, use the JSTL tags as I'm sure
most of the people on this list will tell you.

http://java.sun.com/products/jsp/jstl/

-Original Message-
From: Laurent Duparchy [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 07:41

To: user@struts.apache.org

Hi,

(Sorry if you already get this message, I'm sure if it had been sent.)

is there a taglib "nested-el" ?

If not, what is the turnarround to evaluate an expression within a 
 tag ?




-
To unsubscribe, 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: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho

Hi Wendy,

As per my requirement, I need to validate only when next button is hit. I
can validate manually for server-side validation, it is working. How do I
control for clients-side validation?
If I include javascript tag in my jsp, it is going to validate even if I hit
previous or next button. 

Thanks for your help
-- 
View this message in context: 
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5291882
Sent from the Struts - User forum at Nabble.com.


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



Struts Action Multiple Request

2006-07-12 Thread RODRIGUES DE ALMEIDA Thiago
Hi All,
I would like to have some "light" for a problem that i have in my app.

I need to process multiple request to the same Struts Action:
The user has the capability for openning multiple windows (browser) that
make a request in the same action for same DB results.

My problem is concerning performance. If the user opens more than 4
windows, everthing becomes very slow.

What would you recommend as possible solution ?

Thanks in advance,

Thiago de Almeida

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



RE: Tags in struts

2006-07-12 Thread Maya menon
Yes Adam.
  Thanks again
   
  in the nested:select tag you can add value="", that changes the display in 
such a way that none of the needed options ar selected.
   
  Thanks again.
   
  Now, my display is perfect, have to think about how to update options in this 
list box now using javascript. 
   
  -Maya

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

A. I understand now. You want a list box, not a drop-down list.
Drop-down lists require that one, and only one, item be selected. List
boxes allow for zero, one, or more options to be selected.

Check out the "Dropdown box" section of the Struts Wiki:
http://wiki.apache.org/struts/StrutsWidgets

It explains how to have the tag render as a list-box rather
than a drop-down list.

I've not yet used a list box but I imagine if you set the bean property
(that matches the property of the list box) to the empty string (or perhaps
even null), no item will be selected when rendered.

Hope this helps.

-Adam

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 12 July 2006 07:21
To: Struts Users Mailing List
Subject: Re: Tags in struts

Adam,

Thanks for the suggestion. I checked with our users, they didnt like the
idea of inserting a text in the listbox. They see it as confusing.

So, ideally my users lik to have listboxes with No values selected...

Any idea how it can be achieved ?

Thanks.




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

RE: Server side validation not working

2006-07-12 Thread Lance
1. Is validate="true"?

2. Or are you explicitly calling ActionForm.validate() in your action?
If so you'll have to call Action.saveErrors().

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 14:05
To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes

Samere, Adam J wrote:
> Did you set the input attribute on your action mapping in
> struts-config.xml ? 
>
> -Original Message-
> From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 8:55 AM
> To: Struts Users Mailing List
> Subject: Re: Server side validation not working
>
> Yes I did.
>
> Krishna, Hari wrote:
>   
>> did u put  properly in jsp
>>
>> -Original Message-
>> From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 6:13 PM
>> To: Struts Users Mailing List
>> Subject: Server side validation not working
>>
>>
>> Hi All,
>>
>> I am using server side validation in my application. The problem is 
>> that when validate() returns an ActionErrors object, the page 
>> displayed becomes blank. I have no clue as to why this is happening. 
>> There is no javascript error or exception thrown.
>>
>> Pl Help.
>>
>> regards,
>> Pankaj
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> Notice:  All email and instant messages (including attachments) sent 
>> to or from Franklin Templeton Investments (FTI) personnel may be 
>> retained, monitored and/or reviewed by FTI and its agents, or 
>> authorized law enforcement personnel, without further notice or
>> 
> consent.
>   
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>   
>> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> The information contained in this message may be privileged,
> confidential, and protected from disclosure. If the reader of this
> message is not the intended recipient, or any employee or agent
> responsible for delivering this message to the intended recipient,
> you are hereby notified that any dissemination, distribution, or
> copying of this communication is strictly prohibited. If you have
> received this communication in error, please notify us immediately
> by replying to the message and deleting it from your computer.
>
> Thank you. Paychex, Inc.
>
>
> -
> To unsubscribe, 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: Does validator work with Lookup dispatch action

2006-07-12 Thread Juergen Kopper

Hi,

mosho schrieb:

I have another question, I was just trying to use LookupDispatchAction. It
looks like if I am extending LookupDispatchAction, I don't have to use
excute method. Is that right? 


That's right.

I can do all the processing in the respective
previous and next methods.

Previous methods looks like ..for ex:

  public ActionForward previous(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException {
  // do add
  return mapping.findForward("previous");
  }

Wendy,you are right my application is a wizard.
  

You also need to override the
   protected Map getKeyMethodMap(){
   }
to map the buttons to the dispatch methods.

Hope that helps
Juergen



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



RE: taglib nested-el

2006-07-12 Thread Lance
There is no nested-el. The struts-nested, struts-logic and struts-bean tags
are pretty much dead. If you're not already, use the JSTL tags as I'm sure
most of the people on this list will tell you.

http://java.sun.com/products/jsp/jstl/

-Original Message-
From: Laurent Duparchy [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 07:41
To: user@struts.apache.org
Subject: taglib nested-el

Hi,

(Sorry if you already get this message, I'm sure if it had been sent.)

is there a taglib "nested-el" ?

If not, what is the turnarround to evaluate an expression within a 
 tag ?



-
To unsubscribe, 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: Action names whithout .do

2006-07-12 Thread Bart Busschots
No, I use the pattern of /do/nameOfAction and the struts tags have no 
problem with that at all.


Lance wrote:

You might find that the struts tags (eg ) rely on the *.do
convention so you may have to manually generate  tags etc.

-Original Message-
From: Akshay Ahooja [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 15:40

To: Struts Users Mailing List
Subject: Re: Action names whithout .do

I believe you would have to change your URL Pattern in Web.XML

ex.
Change


action
*.do


To:


action
/search/*



It might make more sense to use a more general pattern such as:


action
/go/*


And then you can use /go/search for your search action...

HTH,

Akshay



On 7/12/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
  

I was wondering: is it possible to define call actions without using the
.do
in the URL ?
Like www.yyy.com/search instead of www.yyy.com/search.do  ?
If yes, how do I have to configure my web.xml and struts-config.xml files
?

[]s

Miguel

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."






-
To unsubscribe, 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: Action names whithout .do

2006-07-12 Thread Ted Husted

"www.yyy.com/do/search" is supported, if you'd like to use that.

Just use a pattern like /do/* in the web.xml instead of *.do.

It's *not* supported by modules, though.

-Ted.

On 7/12/06, Miguel Galves <[EMAIL PROTECTED]> wrote:

I was wondering: is it possible to define call actions without using the .do
in the URL ?
Like www.yyy.com/search instead of www.yyy.com/search.do  ?
If yes, how do I have to configure my web.xml and struts-config.xml files ?

[]s

Miguel

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."




--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: Detection of process complete

2006-07-12 Thread Paul McMahon
Thanks, that's simple and works.

I seemed to have jumped in the deep end with all this stuff and I'm on a steep 
learning curve...

On Wednesday 12 July 2006 15:20, Samere, Adam J wrote:
> Since you are using Ajax, the returned value is not going to cause the
> browser to navigate to a new page. You can parse the returned value and
> manually direct the browser to a new page by setting the document
> location.
>
> // check status of ajax request, parse data
> If not done
>   ... Do nothing
> If success
>   document.location = "mysuccessAction"
> Else
>   document.location = "myerrorAction"
>
> -Adam
>
> -Original Message-
> From: Paul McMahon [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 10:14 AM
> To: Struts Users Mailing List
> Subject: Detection of process complete
>
> I am having problems getting an action to detect when an external
> process is complete.
>
> I have a "navigation" action class that kicks off the process and then
> directs browser to a progress .jsp page.  redirect="false" so control
> stays with the navigation class.
>
> The progress .jsp page uses AJAX techniques to display ongoing progress,
> by calling a "progress" URL that returns progress fields in XML to fill
> in the progress .jsp page. The progress URL is mapped by Struts to a
> progress action class/form to do this work.
>
> The "progress" action returns "success" or "fail" mapping when the
> process is complete. I expect this to go to a summary page as shown in
> struts config below, but the browser stays on the progress page.
>
> Here are my action mappings:
>   path="/RecoveryNavigation"
> type="com.plasmon.appliance.action.RecoveryNavigationAction"
> scope="session"
> name="RecoveryNavigationForm"
> validate="false">
>
>  
>   path="/appliance/recovery/Options.jsp"
> redirect="false"/>
>   path="/appliance/recovery/CleanOptions.jsp" redirect="false"/>
>   path="/appliance/recovery/Progress.jsp"
> redirect="false"/>
>  
>  
>  
>
>  
>
> Note this action is only "called" from within AJAX javascript in the
> Progress.jsp page:
>
>   input="/appliance/recovery/Progress.jsp"
> name="RecoveryProgressForm"
> path="/RecoveryProgress"
> scope="session"
> type="com.plasmon.appliance.action.RecoveryProgressAction"
> validate="false">
>
>  
>  
>  
>
> When RecoveryProgressAction returns mapping "success" or "fail" I would
> expect redirection to Summary page but this is not happening.
>
> Any ideas?
>
> --
> -Paul McMahon
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> The information contained in this message may be privileged,
> confidential, and protected from disclosure. If the reader of this
> message is not the intended recipient, or any employee or agent
> responsible for delivering this message to the intended recipient,
> you are hereby notified that any dissemination, distribution, or
> copying of this communication is strictly prohibited. If you have
> received this communication in error, please notify us immediately
> by replying to the message and deleting it from your computer.
>
> Thank you. Paychex, Inc.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
-Paul McMahon
-01763 261 466 ext 569

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



RE: Action names whithout .do

2006-07-12 Thread Lance
You might find that the struts tags (eg ) rely on the *.do
convention so you may have to manually generate  tags etc.

-Original Message-
From: Akshay Ahooja [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 15:40
To: Struts Users Mailing List
Subject: Re: Action names whithout .do

I believe you would have to change your URL Pattern in Web.XML

ex.
Change


action
*.do


To:


action
/search/*



It might make more sense to use a more general pattern such as:


action
/go/*


And then you can use /go/search for your search action...

HTH,

Akshay



On 7/12/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
>
> I was wondering: is it possible to define call actions without using the
> .do
> in the URL ?
> Like www.yyy.com/search instead of www.yyy.com/search.do  ?
> If yes, how do I have to configure my web.xml and struts-config.xml files
> ?
>
> []s
>
> Miguel
>
> --
> Miguel Galves - Engenheiro de Computação
> Já leu meus blogs hoje?
> Para geeks http://log4dev.blogspot.com
> Pra pessoas normais
> http://miguelgalves.blogspot.com
>
> "Não sabendo que era impossível, ele foi lá e fez..."
>



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



RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho

I have another question, I was just trying to use LookupDispatchAction. It
looks like if I am extending LookupDispatchAction, I don't have to use
excute method. Is that right? I can do all the processing in the respective
previous and next methods.

Previous methods looks like ..for ex:

  public ActionForward previous(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException {
  // do add
  return mapping.findForward("previous");
  }

Wendy,you are right my application is a wizard.
-- 
View this message in context: 
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5290575
Sent from the Struts - User forum at Nabble.com.


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



RE: Tags in struts

2006-07-12 Thread Adam Gordon
Maya-

A.  I understand now.  You want a list box, not a drop-down list.
Drop-down lists require that one, and only one, item be selected.  List
boxes allow for zero, one, or more options to be selected.

Check out the "Dropdown box" section of the Struts Wiki:
http://wiki.apache.org/struts/StrutsWidgets

It explains how to have the  tag render as a list-box rather
than a drop-down list.

I've not yet used a list box but I imagine if you set the bean property
(that matches the property of the list box) to the empty string (or perhaps
even null), no item will be selected when rendered.

Hope this helps.

-Adam
 
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 12 July 2006 07:21
To: Struts Users Mailing List
Subject: Re: Tags in struts

Adam,
   
  Thanks for the suggestion. I checked with our users, they didnt like the
idea of inserting a text in the listbox. They see it as confusing.
   
  So, ideally my users lik to have listboxes with No values selected...
   
  Any idea how it can be achieved ?
   
  Thanks.



RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho

Thanks for all the replies.

Wendy, I am using struts 1.1 so I don't think I can use EventDispatchAction.

Adam,

what is the difference between MappingDispatchAction and
LookupDispatchAction. Any advantages over LookupDispatchAction?

Also, do you have an example of how to set page attribute and use client
side script to set the page request parameter. 

I am new to this, all your help is appreciated.

Mosho
 
-- 
View this message in context: 
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5290199
Sent from the Struts - User forum at Nabble.com.


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



Re: Detection of process complete

2006-07-12 Thread Martin Gainty
Good Morning Mr McMahon

is your execute method of RecoveryProgressAction class returning-
return mapping.findForward("success");

Anyone else?
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Paul McMahon" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, July 12, 2006 10:13 AM
Subject: Detection of process complete


>I am having problems getting an action to detect when an external process is 
> complete.
> 
> I have a "navigation" action class that kicks off the process and then 
> directs 
> browser to a progress .jsp page.  redirect="false" so control stays with the 
> navigation class. 
> 
> The progress .jsp page uses AJAX techniques to display ongoing progress, by 
> calling a "progress" URL that returns progress fields in XML to fill in the 
> progress .jsp page. The progress URL is mapped by Struts to a progress action 
> class/form to do this work.
> 
> The "progress" action returns "success" or "fail" mapping when the process is 
> complete. I expect this to go to a summary page as shown in struts config 
> below, but the browser stays on the progress page.
> 
> Here are my action mappings:
> path="/RecoveryNavigation"
>type="com.plasmon.appliance.action.RecoveryNavigationAction"
>scope="session"
>name="RecoveryNavigationForm"
>validate="false">
> 
> 
>  redirect="false"/>
>  path="/appliance/recovery/CleanOptions.jsp" redirect="false"/> 
>  redirect="false"/>
> 
> 
>  
> 
> 
> Note this action is only "called" from within AJAX javascript in the 
> Progress.jsp page:
> 
> input="/appliance/recovery/Progress.jsp"
>name="RecoveryProgressForm"
>path="/RecoveryProgress"
>scope="session"
>type="com.plasmon.appliance.action.RecoveryProgressAction"
>validate="false">
> 
> 
> 
> 
> 
> When RecoveryProgressAction returns mapping "success" or "fail" I would 
> expect 
> redirection to Summary page but this is not happening.
> 
> Any ideas?
> 
> -- 
> -Paul McMahon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: Action names whithout .do

2006-07-12 Thread Akshay Ahooja

I believe you would have to change your URL Pattern in Web.XML

ex.
Change

   
   action
   *.do
   

To:

   
   action
   /search/*
   


It might make more sense to use a more general pattern such as:

   
   action
   /go/*
   

And then you can use /go/search for your search action...

HTH,

Akshay



On 7/12/06, Miguel Galves <[EMAIL PROTECTED]> wrote:


I was wondering: is it possible to define call actions without using the
.do
in the URL ?
Like www.yyy.com/search instead of www.yyy.com/search.do  ?
If yes, how do I have to configure my web.xml and struts-config.xml files
?

[]s

Miguel

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."



Re: Does validator work with Lookup dispatch action

2006-07-12 Thread Wendy Smoak

On 7/12/06, mosho <[EMAIL PROTECTED]> wrote:


I am using struts for my application. I have 3 buttons in my form i.e
prev,next,clear.
I read few articles and found that Lookup dispatch action will be the best
option to use.


There's a *much* better option in EventDispatchAction.  It's available
in Struts 1.2.9
http://struts.apache.org/1.2.9/api/org/apache/struts/actions/EventDispatchAction.html


I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need to validate only when next button is hit, is that possible?


Yes, Validator works fine with dispatch actions.  For 2, take a look
at this tutorial on calling validation manually:
  http://www.learntechnology.net/validate-manually.do

It sounds like you have a wizard-type form, so you can make use of the
 'page' attribute in validation.xml to validate the fields on
all pages up to the current one.

--
Wendy

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



Action names whithout .do

2006-07-12 Thread Miguel Galves

I was wondering: is it possible to define call actions without using the .do
in the URL ?
Like www.yyy.com/search instead of www.yyy.com/search.do  ?
If yes, how do I have to configure my web.xml and struts-config.xml files ?

[]s

Miguel

--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."


RE: Does validator work with Lookup dispatch action

2006-07-12 Thread Samere, Adam J
You can set the page attribute on your form validation definition, then
use client side script to set the page request parameter based on which
button is clicked.

You might want to look at MappingDispatchAction as well.

-Original Message-
From: David Durham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 10:20 AM
To: Struts Users Mailing List
Subject: Re: Does validator work with Lookup dispatch action

mosho wrote:
> I have few concerns using lookupdispatch action, 1. Will I be able to 
> validate using struts validator?
> 2. I need to validate only when next button is hit, is that possible?
> 
> Is there any tutorial avialable for using lookup dispatch action.

I've done something similar by explicitly calling form.validate() from
within the "execute" method, but this has a bad smell.  Someone else
probably has a better approach.


-Dave


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


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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



RE: Detection of process complete

2006-07-12 Thread Samere, Adam J
Since you are using Ajax, the returned value is not going to cause the
browser to navigate to a new page. You can parse the returned value and
manually direct the browser to a new page by setting the document
location.

// check status of ajax request, parse data
If not done
  ... Do nothing
If success
  document.location = "mysuccessAction"
Else
  document.location = "myerrorAction"
 
-Adam

-Original Message-
From: Paul McMahon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 10:14 AM
To: Struts Users Mailing List
Subject: Detection of process complete

I am having problems getting an action to detect when an external
process is complete.

I have a "navigation" action class that kicks off the process and then
directs browser to a progress .jsp page.  redirect="false" so control
stays with the navigation class. 

The progress .jsp page uses AJAX techniques to display ongoing progress,
by calling a "progress" URL that returns progress fields in XML to fill
in the progress .jsp page. The progress URL is mapped by Struts to a
progress action class/form to do this work.

The "progress" action returns "success" or "fail" mapping when the
process is complete. I expect this to go to a summary page as shown in
struts config below, but the browser stays on the progress page.

Here are my action mappings:
 
 
 
 
  
 
 
 
 

 

Note this action is only "called" from within AJAX javascript in the
Progress.jsp page:
 
 
 
 
 
 

When RecoveryProgressAction returns mapping "success" or "fail" I would
expect redirection to Summary page but this is not happening.

Any ideas?

--
-Paul McMahon

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


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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



Re: Does validator work with Lookup dispatch action

2006-07-12 Thread David Durham

mosho wrote:

I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need to validate only when next button is hit, is that possible?

Is there any tutorial avialable for using lookup dispatch action.


I've done something similar by explicitly calling form.validate() from 
within the "execute" method, but this has a bad smell.  Someone else 
probably has a better approach.



-Dave


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



Does validator work with Lookup dispatch action

2006-07-12 Thread mosho

Hi,

I am using struts for my application. I have 3 buttons in my form i.e
prev,next,clear.
I read few articles and found that Lookup dispatch action will be the best
option to use.

I have few concerns using lookupdispatch action,
1. Will I be able to validate using struts validator?
2. I need to validate only when next button is hit, is that possible?

Is there any tutorial avialable for using lookup dispatch action.

Thanks
Mosho
-- 
View this message in context: 
http://www.nabble.com/Does-validator-work-with-Lookup-dispatch-action-tf1931125.html#a5289472
Sent from the Struts - User forum at Nabble.com.


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



Detection of process complete

2006-07-12 Thread Paul McMahon
I am having problems getting an action to detect when an external process is 
complete.

I have a "navigation" action class that kicks off the process and then directs 
browser to a progress .jsp page.  redirect="false" so control stays with the 
navigation class. 

The progress .jsp page uses AJAX techniques to display ongoing progress, by 
calling a "progress" URL that returns progress fields in XML to fill in the 
progress .jsp page. The progress URL is mapped by Struts to a progress action 
class/form to do this work.

The "progress" action returns "success" or "fail" mapping when the process is 
complete. I expect this to go to a summary page as shown in struts config 
below, but the browser stays on the progress page.

Here are my action mappings:
 
 
 
 
  
 
 
 
  
 

Note this action is only "called" from within AJAX javascript in the 
Progress.jsp page:
 
 
 
 
 
 

When RecoveryProgressAction returns mapping "success" or "fail" I would expect 
redirection to Summary page but this is not happening.

Any ideas?

-- 
-Paul McMahon

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



RE: bean access in tile def?

2006-07-12 Thread Justin Chin
Dan,

That was my exact thoughts.  I saw the set bean in the DTD, and was
curious why an implementation of get bean wasn't implemented.  I'd
imagine it is similar in required dev work.  I was hoping one of the
struts dev folks would chime in on the subject.  I will continue to use
bean messaging within each of my jsps, but it would be nice to handle it
from a tiles def perspective. 

Thanks,
Justin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 7:04 AM
To: Justin Chin; user@struts.apache.org
Subject: RE: bean access in tile def?

What's always got me about this issue is that the following:

Use and Set Bean in configuration file
It is now possible to use and set beans in the configuration file. Such
bean can then be set as a  or  tag value.
This increase and facilitate menu creation.

Is listed as 'news' on Cedric's site
(http://www2.lifl.fr/~dumoulin/tiles/), dated to May 2002. Anyone know
what this is in reference to?

Dan

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



Re: Tags in struts

2006-07-12 Thread Maya menon
Adam,
   
  Thanks for the suggestion. I checked with our users, they didnt like the idea 
of inserting a text in the listbox. They see it as confusing.
   
  So, ideally my users lik to have listboxes with No values selected...
   
  Any idea how it can be achieved ?
   
  Thanks.

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

Excellent! For a list box, I believe that you must have at least one 
option selected at any given time. If you don't want to provide a 
default and force the user to actually select one (and then you can 
validate the user's input to ensure he/she has actually selected a real 
value) then you can do what we did.

For our Time Zone list box, we created the list of time zones and also 
inserted a text label of "Time Zone" with the value of "" into the 
LabelValueBean List and then in the Action that is executed before the 
JSP page is rendered, we set the property on the bean. So for our time 
zone it would be beanInstance.setTimeZone(""). This defaults our time 
zone list box to display "Time Zone" and if the user tries to submit the 
form without selecting a time zone, our validator informs them that they 
must select a time zone.

Glad it worked.

-Adam

Maya menon wrote:
> Thanks Adam
> 
> Implemented it and it worked.
> One quick question, when we use these tags, one of the options get
> selected by default. How can we modify the tag so that NONE of the
> options get selected by default ?
> 
> Thanks.
>
> 

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




-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta

Yes

Samere, Adam J wrote:

Did you set the input attribute on your action mapping in
struts-config.xml ? 


-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 8:55 AM

To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes I did.

Krishna, Hari wrote:
  

did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is 
that when validate() returns an ActionErrors object, the page 
displayed becomes blank. I have no clue as to why this is happening. 
There is no javascript error or exception thrown.


Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent 
to or from Franklin Templeton Investments (FTI) personnel may be 
retained, monitored and/or reviewed by FTI and its agents, or 
authorized law enforcement personnel, without further notice or


consent.
  

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


  



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


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, 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: Server side validation not working

2006-07-12 Thread Samere, Adam J
Did you set the input attribute on your action mapping in
struts-config.xml ? 

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 8:55 AM
To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes I did.

Krishna, Hari wrote:
> did u put  properly in jsp
>
> -Original Message-
> From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 6:13 PM
> To: Struts Users Mailing List
> Subject: Server side validation not working
>
>
> Hi All,
>
> I am using server side validation in my application. The problem is 
> that when validate() returns an ActionErrors object, the page 
> displayed becomes blank. I have no clue as to why this is happening. 
> There is no javascript error or exception thrown.
>
> Pl Help.
>
> regards,
> Pankaj
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Notice:  All email and instant messages (including attachments) sent 
> to or from Franklin Templeton Investments (FTI) personnel may be 
> retained, monitored and/or reviewed by FTI and its agents, or 
> authorized law enforcement personnel, without further notice or
consent.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

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


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


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



Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta

Yes I did.

Krishna, Hari wrote:

did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is that 
when validate() returns an ActionErrors object, the page displayed 
becomes blank. I have no clue as to why this is happening. There is no 
javascript error or exception thrown.


Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

-
To unsubscribe, 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: Server side validation not working

2006-07-12 Thread Krishna, Hari
did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is that 
when validate() returns an ActionErrors object, the page displayed 
becomes blank. I have no clue as to why this is happening. There is no 
javascript error or exception thrown.

Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



Server side validation not working

2006-07-12 Thread Pankaj Gupta

Hi All,

I am using server side validation in my application. The problem is that 
when validate() returns an ActionErrors object, the page displayed 
becomes blank. I have no clue as to why this is happening. There is no 
javascript error or exception thrown.


Pl Help.

regards,
Pankaj

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



Re: FW: html:text

2006-07-12 Thread fea jabi

Thankyou very much for your responce.



From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: Re: FW: html:text
Date: Tue, 11 Jul 2006 17:32:55 -0400

>  type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">
>

So your form bean defines only one property, named AdHrs, which is a list 
of values.


> 
>  requestURI="PrepareAction.do" >
> 
>   
>  errorStyleClass="errormsg"/>
>   
> 
>   
> 

You're using display:table to expose each entry in the list as a scripting 
variable rows, so rows is a bean of whatever type is stored in the AdHrs 
property, and you're binding the html:text element to the Hrs property of 
that bean.


Note that you have, at this point, broken the link between the form bean 
and the property; Struts has no way to know that the thing referenced by 
the html:text tag is a property on the form once the request is submitted.


What you probably want here is something like property="AdHrs[${rownum}].Hrs" value="${rows.Hrs}"/> -- the property name 
needs to name a property on the form bean. You'll have to consult 
display:table's documentation to figure out how to get rownum.


>
>

This applies a validation rule to the property 'hrs' on the form bean Form. 
As noted above, the only property you've defined is AdHrs. According to 
your code, that property holds a list of beans which have a property named 
Hrs (not hrs).


I'm not sure off hand how to specify validation rules for indexed 
properties, but at the very least you'll need to reference the nested 
property correctly.


L.

fea jabi wrote:


Thanks for your response.
have a table

in one of the columns have . not all rows have the .

need to validate the user entered values in the  using 
validator.xml.


Created an object.java file which holds the row data of the table.  
Created a list of these row objects and stored as a form property.


Not sure how to proceed now. should I put the List as a property in the 
form-bean?? if I did so how will the user edited  updated to 
the list so that I can do validations?


Using the below the table is filled with the right values but when the 
user entered values i nthe input fields the form property hrs has previous 
values itself and does not validate right as it doesn't have the user 
entered values.


need help with this.

Struts Config:
type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">

   
..
...



   redirect="false"/>

   

   
   redirect="false"/>
   redirect="false"/>
   redirect="false"/>
   redirect="false"/>

   

JSP:

.

.
..

   
  





Validation.xml


   
   
   
   
   
   test
   (*this* >= 0)
   
   
   
   






From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: Re: FW: html:text
Date: Thu, 06 Jul 2006 14:36:27 -0400

Does the 'Form' form bean have a property 'hrs'? How is it declared? What 
is the type and base type (parent class) of the form bean? We really need 
to see the relevant parts of your struts-config.xml (form bean 
declaration and action mappings) to tell what's happening.


L.

fea jabi wrote:

can somene help me with this please?

how to do validation in validator.xml


   
   
   
   
   
   test
   (*this* >= 0)
   
   
   
   

Where hrs is the attribute in the row object of the table. Even when I 
enter string value in the text field I see no error messages.




From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: html:text
Date: Wed, 05 Jul 2006 15:36:47 -0400

In a table in one of the columns there are 

is it required that each input item has a corresponding form-bean 
property?



by using the below does it take all the user entered values in the 
column??


Each row is an object and sessionScope.Form.hrs is the list of these 
objects.


requestURI="PrepareAction.do" >


.

   
  errorStyleClass="errormsg"/>





Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



_
Express yourself instantly with MSN Messenger! Download today - it's

dynamic attribure use

2006-07-12 Thread Gomathi
Hai,
What is the use of dynamic attribute of in struts-config.xml
like 
Kindly Regards
gomes

RE: bean access in tile def?

2006-07-12 Thread Dan Langer
What's always got me about this issue is that the following:

Use and Set Bean in configuration file
It is now possible to use and set beans in the configuration file. Such
bean can then be set as a  or  tag value.
This increase and facilitate menu creation.

Is listed as 'news' on Cedric's site
(http://www2.lifl.fr/~dumoulin/tiles/), dated to May 2002. Anyone know
what this is in reference to?

Dan


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



[OT][ANN] Final Call: JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm

2006-07-12 Thread Peter Pilgrim

Hi

We are holding our twentieth birds-of-a-feather (BOF 20) of the Java Web Users 
Group in London, UK.


The speakers:

Emmanuel, Okyere
`` RIFE : The Java EE Petstore Edition''


Emmanuel has been hard at work convert the (in)famous J2EE Petstore
application into RIFE. This is an opportunity to learn about
RIFE and see what it is all about in comparison to a web
frame work like Struts or Java Server Faces. RIFE is an innovative
framework, for example the ``continuations'' part of it has been used
in other Java web framework like the forthcoming
Struts Framework  2.0. This is great chance to learn what other
luminaries, e.g. Geert Bevin are doing in this web technology space.



Peter Pilgrim
`` Rearchitecting Legacy J2EE Applications with Spring ''


This is talks presents hints and tips on using the refactoring
core J2EE functionalities with the Spring Framework.
In particular Peter will talk about refactoring legacy EJBs
into Spring-EJB. He will advise how to manage those application
context files. He will describe the best avenues to get
your IT workshop to think about using and/or doing more Agile
development techniques.


For more information jump to here http://jroller.com/page/javawug . Thanks!

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Re: bean access in tile def?

2006-07-12 Thread Antonio Petrelli

Dan Langer ha scritto:

Hopefully I'm wrong (both for your sake and mine), but that's the
explanation I was given when I asked a similar question.
  


Just for reference: 
http://www.mail-archive.com/user%40struts.apache.org/msg48310.html



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



RE: bean access in tile def?

2006-07-12 Thread Dan Langer

Justin,

I've been working on a similar problem, and based on what I've seen
posted here, I don't think it is doable (using definitions).

Technically, it seems that in order for what you'd like to do to work,
the definitions factory would need to be able to see the scope you're
placing that variable in - but since it's just a configuration file (and
hence isn't parsed/has no scope), it can't.

Hopefully I'm wrong (both for your sake and mine), but that's the
explanation I was given when I asked a similar question.

Dan

-Original Message-
From: Justin Chin 
Sent: Wednesday, July 12, 2006 4:16 AM
To: user@struts.apache.org
Subject: bean access in tile def?

Folks,

I have a message in a jsp which require a dynamic attribute that I set
on a bean from an action class.  I want to use that bean within the
tiles definition file.  Is that possible?  So for example, this is what
I would do in my jsp to get the dynamic attribute:

[...] 

I want to set "directions" dynamically from a bean which I stuff into
the session.  Is that possible, or am I totally off here?

 

Thanks,

Justin


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



Re: bean access in tile def?

2006-07-12 Thread Antonio Petrelli

Justin Chin ha scritto:

Folks,

 


I have a message in a jsp which require a dynamic attribute that I set
on a bean from an action class.  I want to use that bean within the
tiles definition file.  Is that possible?


No, it's not possible. Anyway, are you sure that you want to put a bean 
as a definition attribute? What I mean is that probably you only need to 
extend your base definition with specific ones, overriding the 
"directions" attribute. This is the case when you know all of those 
"directions" attributes at "compile" time.

Otherwise, you can do this in a JSP page:


   


Anyway I think that support for "beanName", "beanScope", etc. attributes 
in Tiles definitions should be provided.


HTH
Ciao
Antonio


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