Re: null actionform returned by action servlet

2006-05-23 Thread I HARIKRISHNA
Use Cris Cross Debugging technique.
  ie:remove each entry in Strutsconfig and try to replace the formbean name in 
Struts config and test it like this 
   
  Surely you will have atleast one Action mapping where you are not getting 
this exception  .Take backup of that Strutsconfig and try to break it up as 
said above .You your self can do it

Asif Saleem <[EMAIL PROTECTED]> wrote:
  Hi Richard,

Here is the action mapping from my struts-config file:

type="websams.web.pft.AddPFTActivityForm"/>


type="websams.web.pft.AddPFTActivityAction"
name="addPFTActivityForm"
scope="request"
validate="false"
input="/jsp/pft/pftActivityDetail2.jsp" >





I continue to get null action form from the action servlet.

Regards




On 5/23/06, Richard Yee wrote:
>
> Asif,
> Do you have a name attribute set in your action definition? The name
> attribute should be set to a form-bean name. Why don't you send your
> struts-config.xml file?
>
> -Richard
>
> Asif Saleem wrote:
> > Hi,
> >
> > I am starting to use struts for my project. I have a proble that the
> > action
> > servlet is always returning NULL ActionForm to the Action class. Note
> > that I
> > am using the struts 1.0 framework in which the ActionServlet
> instantiates
> > and populates the actionform.
> >
> > I have checked the struts-config.xml file many times and I see no
> problem
> > there. Kindly help me to figure out where else can the problem be.
> >
> > Thanks
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: How to pass request parameters through a waiting page?

2006-05-23 Thread starki78
Hi Adam, an example
would be great!

This is really a great problem to us!
Especially then the post method is called!

Thanks a lot in advance
Starky


-- Initial Header ---

>From  : "Adam Samere" [EMAIL PROTECTED]
To  : "user" user@struts.apache.org
Cc  :
Date  : Tue, 23 May 2006 22:16:44 -0400
Subject : Re: How to pass request parameters through a waiting page?







> Hi Starki!
>
> You should easily be able to grab the request parameters on your waiting 
> page, then use them in the generated target URL. I'm assuming your waiting 
> page
> then redirects the user to the target page using meta tags or javascript, 
> right? I'll be happy to provide an example if you'd like.
>
> Adam
>
> Hi!
>
> I set request-paramteres within an jsp
> but introduced a waiting page to the next action.
> Now the request parameter cannot be found anymore!
> How can I achieve that the waiting jsp, recopies the
> request-attributes? Is this possible in any way?
> I don't want to write it to the session!
>
> Thanks a lot!
> Starki
>
>
>
> -
> 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 set hidden field in struts

2006-05-23 Thread Pankaj Gupta
Thanks Bruce for the inputs. Can you pl suggest some ways of achieving 
it. Also tell me how can I do the same through container supported 
security. I would be using tomcat 5 for deployment.


regards,
Pankaj

Bruce Link wrote:


Hi Pankaj,

If you do not want to use container-supported security, storing 
information in the session that captures the login is typical. You 
then need to check the session information in every page which 
requires login, and delete the information (or invalidate the session) 
when the user logs out or times out.


Using a hidden field is not at all foolproof, since the field is not 
hidden from the user (he/she can see it by viewing the page source) 
and it is easily spoofed. Not all of the requests you get need to come 
from your forms, anyone with telnet can send you hand-crafted GET/POST 
requests.



Inactive hide details for Pankaj Gupta <[EMAIL PROTECTED]>Pankaj 
Gupta <[EMAIL PROTECTED]>



*Pankaj Gupta <[EMAIL PROTECTED]>*

May 22, 2006 10:07 PM
Please respond to
"Struts Users Mailing List"




To

Struts Users Mailing List 

cc


Subject

How to set hidden field in struts




Hi,

I want to implement a feature in struts wherein nobody can open a page
directly by copying the url and pasting it in a new browser window.i.e.
any page of the application can only be reached through login page. If
the user pastes the url in the browser, he is redirected to the login
page. For this I am planning to keep the user's role in session scope
and verify it before loading any page. Also I intend to set a hidden
field in the next page to be displayed and check it before loading of
the new page. If the hidden field is not set, the new page wont be
loaded and the user would be redirected to the login page.

Please suggest if it is the right way and if yes how can I set a hidden
field in struts.

regards,
Panks

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

2006-05-23 Thread Dakota Jack

I just notice this.  I hope that Struts is not going to polute the air waves
with these silly statements about how SOA relates to AJAX, etc.  SOA is an
architecture and is orthogonal to all these interests.  Please, please,
please do not start some crappy misinformation about a serious topic.  SOA
is about services at the business level and has nothing remotely to do with
these conversations.  Please, please, please, again, try to make sure that
this sort of discussion is not encouraged: it is just too painful to read.

On 3/3/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:


On 3/3/06, netsql <[EMAIL PROTECTED]> wrote:
>
>
>
http://www-128.ibm.com/developerworks/library/j-shale0228/?ca=dgr-lnxw07Shale
>
> or WW2?
> Which does services better?


"Services" as in the dynamic back end of an AJAX or SOA type request?

You can use either .. WW2 lets you use the standard interceptor mechanism
that you use for standard POST handling to decorate the handlers, while
Shale Remoting lets you either bind directly to a processing method, or
indirectly to a Commons Chain based pipeline.

"Better" tends to be a more personal evaluation, based on what you like
and/or are familiar with -- but both approaches can meet the functional
needs.

.V


Craig





--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~


Re: How to pass request parameters through a waiting page?

2006-05-23 Thread Adam Samere

Hi Starki!

You should easily be able to grab the request parameters on your waiting page, then use them in the generated target URL. I'm assuming your waiting page 
then redirects the user to the target page using meta tags or javascript, right? I'll be happy to provide an example if you'd like.


Adam

Hi!

I set request-paramteres within an jsp
but introduced a waiting page to the next action.
Now the request parameter cannot be found anymore!
How can I achieve that the waiting jsp, recopies the
request-attributes? Is this possible in any way?
I don't want to write it to the session!

Thanks a lot!
Starki



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



[ANN] The answer to the question about monitoring?

2006-05-23 Thread Leon Rosenberg

Hi ,

Once a month the same question is asked on this list (both tomcat- and
struts-users):
"How can I monitor my application". The best answer the asker can get:
look at the access logs.

At the beginning I thought it were a joke. It wasn't. After seeing the
same question (and most important the same answer) fifth time I
decided to change this. I have written various monitoring tools over
years, now I have gathered and repackaged them to an open source
monitoring system kit : Moskito.

Moskito can gather all relevant monitoring data from all layers of
your application (of course you'll have to integrate it first) from
servlet/action to the middleware client - to the middleware servant
and into the dao. If some parts of your application will get slower or
produce errors once, you will never have to guess what it is, you will
simply know :-)

I'm proud to announce that Moskito version 0.1 is available for testing.

Moskito's homepage is located here:
http://moskito.anotheria.net/

a very simple webapp-demo here:
http://anotheria.net:8180/moskitodemo/

Moskito now contains following features:
- Interval based statistic framework
- Easy statistics logging
- Built-in monitoring for web-apps

and will have following features until end of next month:
- Webbased UI for stats control/monitoring.
- Virtual Stats
- Conditional guards
and so on.


happy testing
leon

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



RE: [Shale] How to cancel the

2006-05-23 Thread Gary VanMatre
>From: "James Reynolds" <[EMAIL PROTECTED]> 
>
> 
> Hmm, I downloaded the latest Shale libs and the first thing I notice is 
> that the validator fires for an h:inputText that isn't rendered. This 
> is what I have on my page: 
> 
>
>  style="font-weight:bold;"
>  rendered="#{!members$myAccount.editName}"/>
> value="#{sessionScope.visit.user.lastName}"
>rendered="#{members$myAccount.editName}"
>   binding="#{members$myAccount.lastNameInput}"
> required="true">
>arg="Last name"
>server="true"
>client="true"/>
>errorClass="errorText"/>
>
> 
> 
> The inputText boxes are not rendered unless the user clicks a "Update 
> Name" button that changes the boolean "editName" property. The problem 
> is that the Update Name button is triggering the validation on the 
> un-rendered InputText control. 
> 
> I suppose the form's onSubmit event caller assumes the existence of the 
> Input boxes. 
>

Yeah, that's a bug.  The ValidatorScript should not generate javascript
for components that are not rendered.  

Please create an issue tracker for this one - http://issues.apache.org/struts/.
As a quick fix, you might try adding the same value binding to the 
commonValidator client attribute.

   


Gary
 
> 
> -Original Message- 
> From: Gary VanMatre [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 23, 2006 12:52 PM 
> To: Struts Users Mailing List 
> Subject: Re: [Shale] How to cancel the 
> 
> >From: "James Reynolds" 
> > 
> > 
> > I'm coding a cancel button on an update form. I've set its immediate 
> > attribute to true, but that isn't skipping the client side validation. 
> > Is there a way to do this, or must I only use server validation in 
> > this case? 
> > 
> 
> If you are using the JSF runtime commandButton or commandLink component, 
> the JavaScript, "bCancel=true;", will be injected into the onclick event 
> when the "immediate" is set to "true". 
> 
> http://issues.apache.org/struts/browse/SHALE-37 
> 
> Originally, this worked for all the "javax.faces.Command" family but it 
> was just limited to the two JSF runtime command components due to a 
> tomahawk component issue, 
> http://issues.apache.org/struts/browse/SHALE-68. 
> 
> Gary 
> 
> 
> > Thanks 
> > 
> > 
> > - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

Harsh: Issue with float validation instruts validator

2006-05-23 Thread Chaudhary, Harsh
I have a field which is being validated as: 

  


  test
  
( *this* > 0 )
  
   
  

Well the validwhen has a bunch of other conditions. I just left them out
for clarity.

Anyways, this field is a float and its valid when its value is greater
than 0. This works perfectly when I enter a 0 in the field i.e. I get an
error. But if I type in 0.0, it validates fine. Not only that, if I type
in .1 in the field, I get an error whereas this should be a valid value.
But 0.1 works fine. I can only think this is a bug in the validation.

Has anyone else noticed this issue? Any ideas or workarounds?

Harsh.

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



[OT] Re: validation

2006-05-23 Thread Dave Newton
fea jabi wrote:
> Have 3 inputfields using which the user will be able to enter the SSN.

Why do I not always feel my personal data is safe?

Dave



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



RE: [Shale] How to cancel the

2006-05-23 Thread James Reynolds

Hmm, I downloaded the latest Shale libs and the first thing I notice is
that the validator fires for an h:inputText that isn't rendered.  This
is what I have on my page:









The inputText boxes are not rendered unless the user clicks a "Update
Name" button that changes the boolean "editName" property.  The problem
is that the Update Name button is triggering the validation on the
un-rendered InputText control.

I suppose the form's onSubmit event caller assumes the existence of the
Input boxes.


-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 12:52 PM
To: Struts Users Mailing List
Subject: Re: [Shale] How to cancel the 

>From: "James Reynolds" <[EMAIL PROTECTED]>
>
> 
> I'm coding a cancel button on an update form. I've set its immediate 
> attribute to true, but that isn't skipping the client side validation.
> Is there a way to do this, or must I only use server validation in 
> this case?
> 

If you are using the JSF runtime commandButton or commandLink component,
the JavaScript, "bCancel=true;", will be injected into the onclick event
when the "immediate" is set to "true".

http://issues.apache.org/struts/browse/SHALE-37

Originally, this worked for all the "javax.faces.Command" family but it
was just limited to the two JSF runtime command components due to a
tomahawk component issue,
http://issues.apache.org/struts/browse/SHALE-68.
 
Gary


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


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



RE: validation

2006-05-23 Thread Miller, Andy
use the maxlength attribute on your field:


Andy Miller
IS Designer
Butte College
530.895.2946

-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 12:28 PM
To: user@struts.apache.org
Subject: validation

creating a jsp in which the user will be entering their SSN.

Have 3 inputfields using which the user will be able to enter the SSN.

Have to make sure the user entered only 3 digits in first inputfield,
only 2 
digits in the second input field and 4 digits in the third inputfield.

using validation.xml for validation.

Also, is there anyway in jsp for not allowing the user to enter more
digits 
in each of the inputfields.

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]


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



RE: validation

2006-05-23 Thread Chaudhary, Harsh
Validate each field using integer and intRange attribute values for
validation.

 e.g.

  



 
min000
 max999


And so on.

As for making sure on the client side that the user does not enter more
than 3 digits, use the "maxLength" attribute of the HTML text field.
Link: http://www.w3schools.com/htmldom/dom_obj_text.asp Further, you can
also write a JavaScript function to make sure that only numeric values
are allowed in the field.

Harsh.

-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 2:28 PM
To: user@struts.apache.org
Subject: validation


creating a jsp in which the user will be entering their SSN.

Have 3 inputfields using which the user will be able to enter the SSN.

Have to make sure the user entered only 3 digits in first inputfield,
only 2 
digits in the second input field and 4 digits in the third inputfield.

using validation.xml for validation.

Also, is there anyway in jsp for not allowing the user to enter more
digits 
in each of the inputfields.

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]

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



validation

2006-05-23 Thread fea jabi

creating a jsp in which the user will be entering their SSN.

Have 3 inputfields using which the user will be able to enter the SSN.

Have to make sure the user entered only 3 digits in first inputfield, only 2 
digits in the second input field and 4 digits in the third inputfield.


using validation.xml for validation.

Also, is there anyway in jsp for not allowing the user to enter more digits 
in each of the inputfields.


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]



[Shale-Clay] EL Expressions

2006-05-23 Thread Ryan

I'm just curious... is there any reason why this expression wouldn't work
in a Shale configuration file.  The background is that I'm trying to use a
dataList component from the MyFaces project to print out commas.  I know
that the following will not work:


 
  
  
 


yet, this does:


 
  
  
 


I assumed the values were just pass-through, but what EL is it supporting?
 Maybe I'm just using the wrong version. :)  As usual, I'll make a wiki
post about it. :)

Thanks,
Ryan



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



RE: [Shale] How to cancel the

2006-05-23 Thread James Reynolds

It was the last announced Alpha update finished around the end of March.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Tuesday, May 23, 2006 12:44 PM
To: Struts Users Mailing List
Subject: Re: [Shale] How to cancel the 

On 5/23/06, James Reynolds <[EMAIL PROTECTED]> wrote:
>
>
> I'm coding a cancel button on an update form.  I've set its immediate 
> attribute to true, but that isn't skipping the client side validation.
> Is there a way to do this, or must I only use server validation in 
> this case?


This sounds like an issue that has been reported previously[1], and
resolved as fixed.  How recent is the version of Shale you are using?

Thanks


Craig

[1] http://issues.apache.org/struts/browse/SHALE-37


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



Re: [Shale] How to cancel the

2006-05-23 Thread Gary VanMatre
>From: "James Reynolds" <[EMAIL PROTECTED]> 
>
> 
> I'm coding a cancel button on an update form. I've set its immediate 
> attribute to true, but that isn't skipping the client side validation. 
> Is there a way to do this, or must I only use server validation in this 
> case? 
> 

If you are using the JSF runtime commandButton or commandLink component, the 
JavaScript, "bCancel=true;", will be injected into the onclick event when the 
"immediate" is set to "true".

http://issues.apache.org/struts/browse/SHALE-37

Originally, this worked for all the "javax.faces.Command" family but it was 
just limited to the two JSF runtime command components due to a tomahawk 
component issue, http://issues.apache.org/struts/browse/SHALE-68.
 
Gary


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

Re: [Shale] How to cancel the

2006-05-23 Thread Craig McClanahan

On 5/23/06, James Reynolds <[EMAIL PROTECTED]> wrote:



I'm coding a cancel button on an update form.  I've set its immediate
attribute to true, but that isn't skipping the client side validation.
Is there a way to do this, or must I only use server validation in this
case?



This sounds like an issue that has been reported previously[1], and resolved
as fixed.  How recent is the version of Shale you are using?

Thanks


Craig

[1] http://issues.apache.org/struts/browse/SHALE-37


[Shale] How to cancel the

2006-05-23 Thread James Reynolds

I'm coding a cancel button on an update form.  I've set its immediate
attribute to true, but that isn't skipping the client side validation.
Is there a way to do this, or must I only use server validation in this
case?

Thanks


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



Re: How to set hidden field in struts

2006-05-23 Thread Bruce Link

Hi Pankaj,

If you do not want to use container-supported security, storing information in the session that captures the login is typical.  You then need to check the session information in every page which requires login, and delete the information (or invalidate the session) when the user logs out or times out.

Using a hidden field is not at all foolproof, since the field is not hidden from the user (he/she can see it by viewing the page source) and it is easily spoofed.  Not all of the requests you get need to come from your forms, anyone with telnet can send you hand-crafted GET/POST requests.


Pankaj Gupta <[EMAIL PROTECTED]>








Pankaj Gupta <[EMAIL PROTECTED]> 
May 22, 2006 10:07 PM

Please respond to
"Struts Users Mailing List" 








To
Struts Users Mailing List 


cc



Subject
How to set hidden field in struts








Hi,

I want to implement a feature in struts wherein nobody can open a page 
directly by copying the url and pasting it in a new browser window.i.e. 
any page of the application can only be reached through login page. If 
the user pastes the url in the browser, he is redirected to the login 
page. For this I am planning to keep the user's role in session scope 
and verify it before loading any page. Also I intend to set a hidden 
field in the next page to be displayed and check it before loading of 
the new page. If the hidden field is not set, the new page wont be 
loaded and the user would be redirected to the login page.

Please suggest if it is the right way and if yes how can I set a hidden 
field in struts.

regards,
Panks

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




Re: [WEB-SERVICES ]

2006-05-23 Thread Mike Elliott

On 5/23/06, temp temp <[EMAIL PROTECTED]> wrote:

Web services.  How web services are written in java. Are there any 
tutorials to understand the  concept of web services?


What particular kind of a web service did you have in mind?  You
mentioned Enterprise Java Beans.  Those are not a web service but
might be part of some middleware used by a web service.  If you can
give us an example, perhaps we can help.

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



[OT] Re: [WEB-SERVICES ]

2006-05-23 Thread Dave Newton
temp temp wrote:
> Web services.  How web services are written in java. 

That's a rather open-ended question; you may want to look elsewhere.

Perhaps trying a search for "java web services" on google:
http://www.google.com/search?q=java+web+services

There is more than enough information to get you started.

Dave



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



[WEB-SERVICES ]

2006-05-23 Thread temp temp
Web services.  How web services are written in java. Are there any 
tutorials to understand the  concept of web services?
  Several  application servers provide tools which builds web service on a 
button click.
  This way I  can create a web service but I cannot understand what files 
are needed and how  to write them on my own without the help of any application 
servers?
  Apache axis  has its own   tools to generate dependent  class files and 
apache axis as per the example it self is a web application and  I deploy my 
web services into this application. I want the basic understanding  to create a 
web service.
  For example  developing a enterprise bean involves creating interfaces, 
implementation  classes, deployment descriptors and packing them into a jar 
file.
  All  tutorials tell what an enterprise bean consists of and how write 
them. 
  But in case  of web services all api's has its own tools to generate 
dependent classes,  config files. 
  Is there a  java standard way to create web service?
Thanks & Regards
  

-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

How to pass request parameters through a waiting page?

2006-05-23 Thread starki78
Hi!

I set request-paramteres within an jsp
but introduced a waiting page to the next action.
Now the request parameter cannot be found anymore!
How can I achieve that the waiting jsp, recopies the
request-attributes? Is this possible in any way?
I don't want to write it to the session!

Thanks a lot!
Starki




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



[OT] Re: displaying a field as bold

2006-05-23 Thread Dave Newton
I HARIKRISHNA wrote:
> What is the need for validation if the field is nonmandatory 

Just because a field isn't mandatory doesn't mean that it shouldn't be
validated if it _is_ entered.

Dave



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



RE: Req on

2006-05-23 Thread Albrecht Leiprecht
I use Javawebparts Ajax Tags for exactly that purpose ;)

http://javawebparts.sourceforge.net/


Rgds
Albi

-Original Message-
From: The Jasper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 1:29 PM
To: Struts Users Mailing List
Subject: Re: Req on 

Hi,

I'm not quite sure how you'd do it, but it seems like you could use
logic tags to do this.
something like:

 wrote:
>   Javascript...
>
> Andy Miller
> IS Designer
> Butte College
> 530.895.2946
> -Original Message-
> From: Radha Krishna [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 22, 2006 7:56 AM
> To: user@struts.apache.org
> Subject: Req on
>
> Hi All,
>
> I have one simple question.
>
> i have two controls in same form.
>
> when we select one control,then other one should get populated without
> calling the Action
>
> ie the options in the second control depends on the selected value of
> first control.
>
> please tell me the best way to handle this one.
>
> thanks in advance
>
> __
> 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]
>
>
>
>
> Thanks and Regards,
> Novin Jaiswal
> +919890089443(M)
> +912039511388(H)
> +912026901306(O) direct
> +912026982424 Extn:1306
>
> -
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
rates starting at 1¢/min.
>

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

2006-05-23 Thread The Jasper

Hi,

I'm not quite sure how you'd do it, but it seems like you could use
logic tags to do this.
something like:


Hi

  Javascript...the right way

  one change of the one select combo box call some function which will fill up 
the othercombo box.

  U can search on google for such code.

  regards
  Novin

"Miller, Andy" <[EMAIL PROTECTED]> wrote:
  Javascript...

Andy Miller
IS Designer
Butte College
530.895.2946
-Original Message-
From: Radha Krishna [mailto:[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 7:56 AM
To: user@struts.apache.org
Subject: Req on

Hi All,

I have one simple question.

i have two controls in same form.

when we select one control,then other one should get populated without
calling the Action

ie the options in the second control depends on the selected value of
first control.

please tell me the best way to handle this one.

thanks in advance

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




Thanks and Regards,
Novin Jaiswal
+919890089443(M)
+912039511388(H)
+912026901306(O) direct
+912026982424 Extn:1306

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



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



Re: displaying a field as bold

2006-05-23 Thread Hanmay Udgiri

Hi
let me put the code which we are using


 
   
  mask
  ^[0-9, a-zA-Z]*$

 
   field[0]
   region
   
   
   fieldTest[0]
   EQUAL
   
   
   fieldValue[0]
   LAC
   
   
   field[1]
   addressCheckHidden
   
   
   fieldTest[1]
   EQUAL
   
   
   fieldValue[1]
   on
   

 
 


  minlength
  1


  maxlength
  25




here the field is mandatory if the region is EMEA/LAC,and optional for any
other region.
And even if it is optional We have to still check if he enters correct data
for that field.

So in JSP based on these condition we are currently displaying like




We are not using property files bze the same field can be mandatory for same
region based on certain condition.


Thanks and Regards
Hanmayya Udgiri

On 5/23/06, I HARIKRISHNA <[EMAIL PROTECTED]> wrote:


What is the need for validation if the field is nonmandatory and if it  is
required then how will you do in Struts>?>>???

[EMAIL PROTECTED] wrote:  Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



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




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo!
Messenger with Voice.



RE: displaying a field as bold

2006-05-23 Thread I HARIKRISHNA
What is the need for validation if the field is nonmandatory and if it  is 
required then how will you do in Struts>?>>???

[EMAIL PROTECTED] wrote:  Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat 


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



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




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

Re: Capture JSP Response

2006-05-23 Thread Antonio Petrelli

Dinesh Mehra ha scritto:

- Then I tried creating filters, I created a response filter alongwith a
response wrapper and then try to capture the response but I am not 
able to

capture the response.



Uh are you sure? Remember that you have to implement both getWriter and 
getOutputStream!

Ciao
Antonio


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



Re: How to set hidden field in struts

2006-05-23 Thread Antonio Petrelli

Pankaj Gupta ha scritto:

Hi,

I want to implement a feature in struts wherein nobody can open a page 
directly by copying the url and pasting it in a new browser 
window.i.e. any page of the application can only be reached through 
login page.


Only two words: intercepting filters.
http://java.sun.com/blueprints/patterns/InterceptingFilter.html
Ciao
Antonio

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



Re: problem?

2006-05-23 Thread Hanmay Udgiri

Hi
Please check the error key which ur using in validation.xml is present in
Resources properties.

Thanks and Regards

On 5/23/06, Yang Sun <[EMAIL PROTECTED]> wrote:


Hi,

I am using struts 1.2.9 for my project now. And for validating the user
input, I use DynaValidationForm and validation.xml to rule the user input.
At the client side (web page), I use the following code to show the error
information to the user.










But the error I got related to  tag, the error log said:
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/view/layouts/centerlayout.jsp': ServletException in
'/WEB-INF/view/user/login/login.jsp': Cannot find bean: "error" in any
scope

From the document, I see that html:messages will put the error variable
into
the page scope. But why bean:write cannot find the error variable?

I also have a simple test that I change the  to a constant
string, say "aaa". Then the output will be some aaa strings (depends on
how
many errors detected). So I guess may be html:messages have not put the
error into the scope.

Please help me to have a look at it. Thanks.

Regards,
Yang




Re: displaying a field as bold

2006-05-23 Thread Hanmay Udgiri

Hi
Let me explain in more details
We have a field Social Security Number this field could be mandatory if the
user enters US account number or optional if he enters a Canada account
number.
We are using same JSP.
So instead of having logic tags in JSP,do we any generic framework where in
JSP it can reduce the no of lines.
The same applies for validation in validation.xml(We have required and
requiredif in Struts.
But here we need a condition for each field.And we have around 100 field and
the same field can be mandatory or optional based on condition.If I have to
use requiredif then I have to have 100 extra field saying the field in
mandatory).Do we have any other type of implementation
I guess I have explained it properly

Thanks and Regards
Hanmayya Udgiri

On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field  in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



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




Capture JSP Response

2006-05-23 Thread Dinesh Mehra

Hi,

Requirements :

- I have a form in a jsp on submission of which I need to send an e-mail.
- On submission of the form, I am calling another .do page & getting the
response. This response I dont need to show in the jsp but capture this html
response and use this as a string to construct the email message body.
- I need to capture the html response as a String. I tried using
 but from that I am not able to capture the "out" object since
I need to display a "Email Sent" message on the same jsp.
- Then I tried creating filters, I created a response filter alongwith a
response wrapper and then try to capture the response but I am not able to
capture the response.
- I am using WebLogic 7.0 and Java 1.3

Any kind of help will appreciated.


--
Regards,
Dinesh


RE: displaying a field as bold

2006-05-23 Thread Rakesh.Bhat
Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,
 
Kind regards,
 
Rakesh Bhat 


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field  in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



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



displaying a field as bold

2006-05-23 Thread Hanmay Udgiri

Hi
   We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field  in bold if mandatory,non-bold if optional and just label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri


Re: Is tile definations Instance is singleton

2006-05-23 Thread navin mca
Hi Antonio,
   
  Thanks alot for your support to the community, I really appreciate it.
   
  >It depends on your implementation. Anyway I think the solution I wrote 
>in the last e-mail is better for you (the one with JSP Tiles custom tags).
> 

  Even wht u have suugested, I had already thought to implement it first by 
creating two diffrent definition file to cater this problem with some layout 
page which will handle the condition.
   
  Thanks once gain 
  regards,
  Novin
   
  

Antonio Petrelli <[EMAIL PROTECTED]> wrote:
  navin mca ha scritto:
> Hi Antonio ,
> 
> 

> > value="/WEB-INF/dimensions-config.xml"/>
> 

WHOOPS!! I am sorry wrong cun'n'paste:



value="my.package.FactorySetSubClass"/>



> 
> 1. wht should I put in dimensions-config.xml file (Do you want to say that I 
> should put my tile definition in it which is having such complex accessing 
> problem.)
> 

Err... sorry again, ignore it :-P
> 
> 2. wht should I do to implement DefinitionsFactory or extend FactorySet , I 
> had read the documentation but there is no much help regarding these classes.
> 

In fact you are right, there is no tutorial or such, only Javadocs:
http://struts.apache.org/struts-action/struts-tiles/apidocs/org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html
http://struts.apache.org/struts-action/struts-tiles/apidocs/org/apache/struts/tiles/xmlDefinition/FactorySet.html

> Do u want to say that after making above configuration in the struts config 
> file FactorySet will be automatically implemented by struts and one request 
> will be served by one exclusive instance of the same tile definition file.
> 

It depends on your implementation. Anyway I think the solution I wrote 
in the last e-mail is better for you (the one with JSP Tiles custom tags).
> 
> if not then let me explain or direct me to some example or tutorial.
> 

There is probably no example of using the multi-channel support of 
Tiles, maybe only Dimensions tried to use it.

HTH
Ciao
Antonio

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




Thanks and Regards, 
Novin Jaiswal 
+919890089443(M) 
+912039511388(H) 
+912026901306(O) direct 
+912026982424 Extn:1306

-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better. 

Re: shopping cart source code

2006-05-23 Thread Jorge Martín Cuervo
El lun, 22 de 05 de 2006 a las 19:00, rajan pahuja escribió:
Programming Jakarta Struts - Chuck Cavaness - ISBN 0-596-00328-5

This book is great, despite i don't have the last revisión, IMHO it's a
must read resource.

> find it in book programming Struts by chuck cavass,orielly pulications.
>   the struts is explained in the whole book based on shopping cart example.
> 
> Mounir Bohsali <[EMAIL PROTECTED]> wrote:  Hi,
> 
> Does anyone know if there is a Struts free open source shopping cart?
> I found two but they cost $500-$13,000. Any free ones?
> 
> Thanks,
> 
> mbohsali.
> 
> 
> __
> 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]
> 
> 
> 
>   
> -
>   Yahoo! India Answers Share what your know-how and wisdom
>  Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download 
> now

-- 
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



Re: Is tile definations Instance is singleton

2006-05-23 Thread Antonio Petrelli

navin mca ha scritto:

Hi Antonio ,
   
   
value="/WEB-INF/dimensions-config.xml"/>
  


WHOOPS!! I am sorry wrong cun'n'paste:

 
   value="my.package.FactorySetSubClass"/>

 

   
  1. wht should I put in dimensions-config.xml file (Do you want to say that I should put my tile definition in it which is having such complex accessing problem.)
  


Err... sorry again, ignore it :-P
   
  2. wht should I do to implement DefinitionsFactory or extend FactorySet , I had read the documentation but there is no much help regarding these classes.
  


In fact you are right, there is no tutorial or such, only Javadocs:
http://struts.apache.org/struts-action/struts-tiles/apidocs/org/apache/struts/tiles/xmlDefinition/DefinitionsFactory.html
http://struts.apache.org/struts-action/struts-tiles/apidocs/org/apache/struts/tiles/xmlDefinition/FactorySet.html


  Do u want to say that after making above configuration in the struts config 
file FactorySet will be automatically implemented by struts and one request 
will be served by one exclusive instance of the same tile definition file.
  


It depends on your implementation. Anyway I think the solution I wrote 
in the last e-mail is better for you (the one with JSP Tiles custom tags).
   
  if not then let me explain or direct me to some example or tutorial.
  


There is probably no example of using the multi-channel support of 
Tiles, maybe only Dimensions tried to use it.


HTH
Ciao
Antonio

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



Re: Is tile definations Instance is singleton

2006-05-23 Thread Antonio Petrelli

navin mca ha scritto:

Hi Antonio,
   
  >Oh boy your English gave me an headache!


  I am really sorry for my bad english.
   
  Following is my tile definition.
   
  
   
  
   
   
  
  
   
   
   
   
   


Uh sorry, I forgot an important thing. Maybe instead of using Tiles 
definitions, you can use the  with  tags, as 
explained in:

http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292375
I did not try but if you use JSTL's  tag with  maybe it 
will work.

Ciao
Antonio

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



Re: Is tile definations Instance is singleton

2006-05-23 Thread navin mca
Hi Antonio ,
   
  Thanks alot for your help.
   
  Could u pls explain me how following code will help me to solve the race 
condition
   
   

   
  1. wht should I put in dimensions-config.xml file (Do you want to say that I 
should put my tile definition in it which is having such complex accessing 
problem.)
   
  2. wht should I do to implement DefinitionsFactory or extend FactorySet , I 
had read the documentation but there is no much help regarding these classes.

  Do u want to say that after making above configuration in the struts config 
file FactorySet will be automatically implemented by struts and one request 
will be served by one exclusive instance of the same tile definition file.
   
  if not then let me explain or direct me to some example or tutorial.
   
  Hope my queries are sensible to you.
   
  regards,
  Novin
   
   
  

Antonio Petrelli <[EMAIL PROTECTED]> wrote:
  navin mca ha scritto:
> Hi Antonio,
> 
> >Oh boy your English gave me an headache!
>
> I am really sorry for my bad english.
> 
> Following is my tile definition.
> 
> 
> 


> 

> 
> 
> 
> 
> 
> 
> 
> 

> 
> Here 
> 
> 
> 
> is the condional tile which will be added/removed at run time from the tile 
> definition object based on some request flag.
> 
> So my query is 
> 
> What will happen when there will be multiple calls for the same Tile 
> definition for both form of the tile object(with or without position3.jsp 
> tile)
> 

It is a so-called race-condition: it depends what happens first. Anyway 
it will lead you to a 50% chance to have it wrong. How Tiles definitions 
are created depends on the DefinitionsFactory. The default one creates 
definitions for their use in the whole application. Therefore if you 
change it once, it will be changed forever (until you change it again :-P ).
The only way to solve your problem is to implement DefinitionsFactory or 
extend FactorySet class. To configure it modify struts-config.xml this way:

**snip**


value="/WEB-INF/dimensions-config.xml"/>



**snap**
Ciao
Antonio


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




Thanks and Regards, 
Novin Jaiswal 
+919890089443(M) 
+912039511388(H) 
+912026901306(O) direct 
+912026982424 Extn:1306

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