Re: How to use

2006-05-04 Thread Kjersti Berg

Try making the entire onchange one scriptlet like this:



Kjersti

On 03/05/06, Joey Watson <[EMAIL PROTECTED]> wrote:


u meant using  tag or what? I tried to use the
, but it doesn't work.
I think the reason is. struts is not allow use java or tag for the
paramater's value. like






the result html is

>



<
struts does not translate the '<%=ApplicationAction.ACCSUBJ_CHANGE%>'
to its value 'accsubj_change'.

even I use the . it does be translated.





On 5/3/06, Shshank Jain <[EMAIL PROTECTED]> wrote:
> try using bean tags to write the specific values.
>
> On 5/2/06, Joey Watson <[EMAIL PROTECTED]> wrote:
> >
> > Hi All.
> >
> > I got a problem when I was using . I used to use 
> > before. like
> > 
> >  >   name="applicationItem" indexed="true"
> >   onchange="doSubmitWithIndex(this.form,
> >  '<%=ApplicationAction.ACCSUBJ_CHANGE%>',
> >  '<%=index%>')" >
> > 
> > 
> >
> > those codes can work well. but now I want to use . but
> > the code  '<%=ApplicationAction.ACCSUBJ_CHANGE%>', and '<%=index%>'
> > value can not be get.
> > the value  passd to the doSubmitWithIndex function is
> > <%=ApplicationAction.ACCSUBJ_CHANGE%>  and <%=index%> , not
> > accsubj_change and 0,1,2.
> >
> > Thanks.
> >
> > Joey
> >
> > -
> > 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: Properties

2006-04-12 Thread Kjersti Berg
On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Would like to know why the following doesn't work can anybody explain it
> please.
>
> I have a text box on a page this text box is readonly when the readonly
> property is set to true.
>
>
>  readonly=" name='form' property='readOnly'/>" />


You cannot use tags as attribute values like this. You need to use scriptlet
code.




I think you could accomplish the same using jstl, but I haven't used that
myself, so somebody else explain what's wrong with the last example you
sent. (Besides the obvious missing equal sign, which I'm guessing is a
typo.)


>  value='${form.readOnly}'/>" />
>
> Regards
> Neil Meyer


Kjersti


Re: AW: logic:iterate

2006-02-24 Thread Kjersti Berg
Check out this link from the wiki:
http://wiki.apache.org/struts/StrutsCatalogLazyList, the section on Indexed
properties. In order for it to work, you have to set the id attribute to the
same as the indexed property.

Kjersti

On 24/02/06, Hans-Peter Petek <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> i am really confused now - there can be only a small mistake ... :-((
> If i have no getter and setter for right, the app is running, but after
> submitting the form, the right-object is null (of course)
> if i set the getter and setter for right, i get:
> [Servlet-Fehler]-[BeanUtils.populate]: java.lang.NullPointerException
>
> In this example,
> 
> right and objectName must be the same, or not? objectNames is the
> ArrayList
> (or Array) of my right-objects, but with which property is id mapping?
> because i get in the request the names right[xx].a, right[yy].a, ...
>
> Because in my form-bean i only have a list of objects (e.g. ObjectNames),
> this is an arraylist.
> But when i use objectName as property and also objectName as id (which
> maps
> to my objectNames Arraylist in the form), i get Error 500:
> ServletException
> in 'layout_inside.jsp': ServletException in 'authright-body.jsp': Cannot
> create iterator for this collection (after the 29th entry on the webpage
> ...?!?!?!!?)
>
> In you example, do i have to have a property called right in my
> actionform,
> if yes, what type?
>
> thanks a lot for help
> Hans
>
> _
>
> Von: Brian Holzer [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 23. Februar 2006 21:53
> An: struts-user@jakarta.apache.org
> Betreff: Fwd: AW: logic:iterate
>
>
> Hey Hans,
>   I'll give this another try.  I think you are right and you don't need
> the
> nested tags for this situation.  First off, it says in the docs that an
> Array will work with this tag, but I've only used ArrayLists.  I don't
> forsee any differences in how the tag works with either.  First off your
> properties (a, b, c) need to be defined as Strings and not Integers.  So
> I'm
> guessing that you have an object definition like so after the above
> changes.
>
> public class ObjectName {
>   public String a;
>   public String b;
>   public String c;
>
> methods.
> }
>
> in your ActionForm you have an Array defined which will hold a number of
> these ObjectName instances and a getter getObjectNames().  Your jsp should
> look like the following:
>
> 
> 
> LabelForObject: 
> 
>
>
>
> 
> 
>
>
>
> 
> 
>
>
>
> 
>
> 
> 
>
> Give this a try, I think this is what you are looking for.
>
>
>
> 
> Brian Holzer
> IT Analyst
> Saskatchewan Government Insurance
> email: [EMAIL PROTECTED]
> phone: (306) 751-1629
> fax: (306) 569-7683
>
> >>> "Hans-Peter Petek" <[EMAIL PROTECTED]> 23/02/2006 9:12:47 am >>>
> Hi,
>
> i don´t think so, because i do not have a "department -> customer"
> structure
> (1 to many structure). i only have a list of objects, each object has 3
> properties (a, b, c) of type integer (a,b,c can have a value from 0 to 2).
>
> I want to display a list of these ojects and 3 groups of either 3
> radio-buttons. if the value of a is 2, the last radio-button of the first
> group is selected, if the value of c is 0, the first radio-button of the
> 3rd
> group is selected ...
>
> OBJECT1 0 1 2 0 1 2 0 1 2 (0,1 and 2 is always a group, i can
> select one of the entry, 0 or 1 or 2 in each group -> so i will get for a,
> b, and c a value of 0, 1, or 2)
> OBJECT2 ...
> ...
>
> To display this is not the problem, this is alread working, my ActionForm
> has a property of "rights" which in an Array of my objects.
> private Right[] rights;
>
> The problem is, when i´m submitting the form, i do not get the valus, the
> array is either null, or, if i use the modified version (see below) i get
> a
> [BeanUtils.populate]: java.lang.NullPointerException :-((
>
> Can anyone help me in this case? Or does the nested-tag really is required
> for that - but i dont think so ... it has to work with iterate too,
> doesn´t
> it?
>
> thanks in advance
> Hans
>
> _
>
> Von: Brian Holzer [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 23. Februar 2006 15:15
> An: struts-user@jakarta.apache.org
> Betreff: Fwd: logic:iterate
>
>
> Hey Hans,
> I think you might want to use the nested tags for what you are trying to
> do. Depending on the version of struts you are using, the nested taglib
> could be included with the Struts distribution. Here is a link to some
> tutorials etc. on the nested tags
> http://www.keyboardmonkey.com/next/index.jsp
>
>
>
> 
> Brian Holzer
> IT Analyst
> Saskatchewan Government Insurance
> email: [EMAIL PROTECTED]
> phone: (306) 751-1629
> fax: (306) 569-7683
>
> >>> "Hans-Peter Petek" < [EMAIL PROTECTED] > 23/02/2006 4:24:12 am >>>
> Hi,
>
> does anyone knows a really good docu (with examples) how to use the
> i

Re: IBM Portal server V5.0.2.3

2005-12-13 Thread Kjersti Berg
And you're sure you're using the correct jar-files? That would be the only
thing I could think of that might cause the tag to generate different output
from what you're expecting. Sorry I couldn't help more.

Kjersti

On 13/12/05, Meenakshi Singh <[EMAIL PROTECTED]> wrote:
>
> yes, I did try that. When I use it without encoding, it doesn't recognize
> the .jsp file.
>
> -Original Message-
> From: Kjersti Berg [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 13, 2005 12:36 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: IBM Portal server V5.0.2.3
>
>
> Have you tried using a regular struts tag?
>
> 
>
> We're using the Struts Portal Framework that ships with Webshere Portal
> Server, and this works just fine for us.
>
> Kjersti
> On 08/12/05, Meenakshi Singh <[EMAIL PROTECTED]> wrote:
> >
> > yes I am using WSAD V5.1.1 & using portal server. I have created the
> > portlet
> > & have deployed it in the portal server. however, the href in one of the
> > jsp's is not opening up in the same page where my portlet is showing. It
> > opens up on a diff page. That is my problem. How do I make it open in
> the
> > same page.
> >
> > That is how I am using the href element in my jsp:
> >  > href='<%=response.encodeURL(request.getContextPath
> > ()+"/jsp/CentralNoSearch.j
> > sp")%>' >Search by Central Number
> >
> > Regards,
> > Meenakshi.
> >
> > -Original Message-
> > From: Mark Benussi [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 8:29 PM
> > To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> > Subject: RE: IBM Portal server V5.0.2.3
> >
> >
> > I think what you want is to create a Portlet. Use WebSphere Studio
> > Application Developer to create a new Portlet Application and then
> install
> > this with Portal Server.
> >
> > -Original Message-
> > From: Meenakshi Singh [mailto:[EMAIL PROTECTED]
> > Sent: 07 December 2005 11:39
> > To: Struts Users Mailing List (E-mail)
> > Subject: IBM Portal server V5.0.2.3
> >
> > hiee all,
> >
> >
> > Please help if anyone has used the IBM portal server.
> > I have a small struts app deployed on IBM Portal Server V 5.0.2.3
> > I add 2 jsps to the struts application. In one jsp I am putting a link
> > with
> > a href to point to another jsp.
> > When I click on this link after deploying the portlet, it opens the link
> > in
> > the whole browser window which is not the same as  the portal page. I
> want
> > to open the link in the same portal page.
> >
> > Would anyone please tell me how I can do that?
> >
> > Thanks & Regards,
> > Meenakshi.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: IBM Portal server V5.0.2.3

2005-12-12 Thread Kjersti Berg
Have you tried using a regular struts tag?



We're using the Struts Portal Framework that ships with Webshere Portal
Server, and this works just fine for us.

Kjersti
On 08/12/05, Meenakshi Singh <[EMAIL PROTECTED]> wrote:
>
> yes I am using WSAD V5.1.1 & using portal server. I have created the
> portlet
> & have deployed it in the portal server. however, the href in one of the
> jsp's is not opening up in the same page where my portlet is showing. It
> opens up on a diff page. That is my problem. How do I make it open in the
> same page.
>
> That is how I am using the href element in my jsp:
>  href='<%=response.encodeURL(request.getContextPath
> ()+"/jsp/CentralNoSearch.j
> sp")%>' >Search by Central Number
>
> Regards,
> Meenakshi.
>
> -Original Message-
> From: Mark Benussi [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 07, 2005 8:29 PM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: IBM Portal server V5.0.2.3
>
>
> I think what you want is to create a Portlet. Use WebSphere Studio
> Application Developer to create a new Portlet Application and then install
> this with Portal Server.
>
> -Original Message-
> From: Meenakshi Singh [mailto:[EMAIL PROTECTED]
> Sent: 07 December 2005 11:39
> To: Struts Users Mailing List (E-mail)
> Subject: IBM Portal server V5.0.2.3
>
> hiee all,
>
>
> Please help if anyone has used the IBM portal server.
> I have a small struts app deployed on IBM Portal Server V 5.0.2.3
> I add 2 jsps to the struts application. In one jsp I am putting a link
> with
> a href to point to another jsp.
> When I click on this link after deploying the portlet, it opens the link
> in
> the whole browser window which is not the same as  the portal page. I want
> to open the link in the same portal page.
>
> Would anyone please tell me how I can do that?
>
> Thanks & Regards,
> Meenakshi.
>
>
> -
> 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: html:textarea - escape html special characters

2005-11-09 Thread Kjersti Berg
On 10/11/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Kjersti Berg wrote:
> > The html:textarea will escape html special characters to html
> > entities. Inputing an & will give a string with &. Fair enough.
> > But why does inputting a < or > give you &lt; instead of < ?
>
> Probably as a result of how you're using it; maybe you have nested tags
> leading to the HTML escaping happening twice? Can you post a short
> example that demonstrates the problem you're seeing?
>

You were right. After recieving the input I wrote it using the
bean:write tag. That would write & as I expected, but would also
transform < to &lt;. Adding the filter="false" attribute to the
write tag made it function as I intended.

Kjersti

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



html:textarea - escape html special characters

2005-11-09 Thread Kjersti Berg
The html:textarea will escape html special characters to html
entities. Inputing an & will give a string with &. Fair enough. 
But why does inputting a < or > give you < instead of < ?

Kjersti

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



Re: [OT] Struts , Portal how does this fit

2005-10-05 Thread Kjersti Berg
The WebSphere Portal Server comes with it's own implementation of
Struts for portlet developement.

Kjersti

On 05/10/05, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>
>
>  Hi
>  1 . Suppose we have a site up and running which has
>  been developed using struts, can this website be a
>  part of portal,
>  2 . If we have to develop a portal, can we use
>  struts.
>
>  Is there a tutorial, or how to for creating a portal
>  using struts, or converting a existing website
>  developed using struts into a portal
>
>  Ashish
>
>
>
>
>
>
>
> __
> Yahoo! for Good
> Donate to the Hurricane Katrina relief effort.
> http://store.yahoo.com/redcross-donate3/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Re: Re: validate() not called haunts

2005-08-10 Thread Kjersti Berg
On 11/08/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Re. the "Spam" thing, i really do apologize. I totally understand because
> it probably bugs me more than it bugs anybody else. We are supposed to use
> Lotus notes for mail in our company and I absolutely *hate* it. This
> "spam" thing is just one more annoying "feature". I guess I can look into
> it, but I have a feeling I'll get nowhere.. Only thing I can do is
> remember to manually remove it from the subject every time I write, or
> just use another mail client. But that's another can of worms...
> 

You have my sympathies. I'm also stuck with Lotus Notes at work. I
solved it by getting a gmail account for mailing lists.

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



Re: help on plugin and i18n

2005-08-07 Thread Kjersti Berg
On 05/08/05, peeths @struts <[EMAIL PROTECTED]> wrote:
> hi ,
> 
> i have added 
> but still i'm getting the same error , i 've placed the resource files
> inside WEB-INF folder , how can i recover it .
> 

Is it in the classes folder? It has to be on the webapps classpath.

Kjersti

> regards
> Anoop
> 
> On 5 Aug 2005 05:02:58 -, d d <[EMAIL PROTECTED]> wrote:
> >
> > u can download MyEclipse (MyEclipse Enterprise Workbench) from 
> > Myeclipseside stie. It provides tools for handling struts.
> >
> > For application resource:See if u have configured tag. 
> > in struts_config.xml
> >  > />
> >
> > On Fri, 05 Aug 2005 [EMAIL PROTECTED] wrote :
> > >hi all,
> > >i'm new to struts , i just come up with the concept and i would like
> > >to know where i'll get struts plugin for eclipse for jboss server in
> > >linux .
> > >
> > >i'm working on internationalization , i deployed an application but
> > >i'm getting an error message in the index.jsp page
> > >javax.servlet.ServletException: Missing message for key "app.username"
> > >
> > >i have defined applicationresources property file and also other
> > >property file , but i'm not able to  run the program . what can be the
> > >problem
> > >
> > >regards
> > >Anoop
> > >
> > >-
> > >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: Validating indexed properties using struts

2005-08-04 Thread Kjersti Berg
On 04/08/05, Kalra, Ashwani <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> Can some one give me some sample on how to validate the indexed
> properties in Struts 1.1
> 
I assume you are using the default Validator plugin. 

This is an excerpt from my validation.xml, using indexed properties. 

 
   


  



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



Re: Syntax

2005-07-25 Thread Kjersti Berg
On 25/07/05, Vijay K Anand <[EMAIL PROTECTED]> wrote:
> Hi
> 
> What is wrong in the below code ? Eclipse is making noise...but code
> runs fine...
>  styleId="<%= "c"+(String)CoreID %>" />

Not sure, but this looks odd:
styleId="<%= "c"+(String)CoreID %>" />

How about styleId='<%= "c" + (String)CoreID %>' ? 

Kjersti

> 
> Regards
> Vijay
> 
> -
> 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: Resetting ActionForm properties during validation

2005-07-25 Thread Kjersti Berg
On 25/07/05, Vandenbroucke Gregory <[EMAIL PROTECTED]> wrote:
> My action form fields are Integer or Float objects.
> The thing is, that I would like struts to leave the html fields empty, if
> some user entered alphanumeric text instead of numeric.
> Meaning that my ActionForm properties would be null instead of zero (which
> is semantically more correct). Is there a way to circumvent the auto
> population stuff?
> 
> Thanks,
> gregory
> 
> -----Original Message-
> From: Kjersti Berg [mailto:[EMAIL PROTECTED]
> Sent: lundi 25 juillet 2005 11:52
> To: Struts Users Mailing List
> Subject: Re: Resetting ActionForm properties during validation
> 
> On 25/07/05, Vandenbroucke Gregory <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I have several forms which contain fields that should only accept numeric
> > data. If the entered data wasn't numeric, then during validation of that
> > field I would like to be able to leave the form field empty. But struts
> will
> > auto populate all fields. Meaning that for numeric fields it will enter
> > zero's if the entered data wasn't numeric.
> > Is there any way to circumvent this, and leave the form fields empty if
> the
> > entered data wasn't correct?

I believe there  was a discussion on this a few weeks ago. It is
generally not advised to use typed fields on the form so that the form
can contain invalid data and display them to the user. If you still
want to use typed fields you should probably do the validation
yourself in. The alternative is to create your own version of the
FieldCheck for numeric values. Search the archives for more specifics.

Kjersti

> 
> Are your your form fields strings? If so the user's input will be kept
> even if validation fails. If they are ints you get a 0 instead,
> because that is that that is the default value of an int.
> 
> Kjersti
> >
> > TIA,
> > Gregory.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Resetting ActionForm properties during validation

2005-07-25 Thread Kjersti Berg
On 25/07/05, Vandenbroucke Gregory <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I have several forms which contain fields that should only accept numeric
> data. If the entered data wasn't numeric, then during validation of that
> field I would like to be able to leave the form field empty. But struts will
> auto populate all fields. Meaning that for numeric fields it will enter
> zero's if the entered data wasn't numeric.
> Is there any way to circumvent this, and leave the form fields empty if the
> entered data wasn't correct?

Are your your form fields strings? If so the user's input will be kept
even if validation fails. If they are ints you get a 0 instead,
because that is that that is the default value of an int.

Kjersti 
> 
> TIA,
> Gregory.
> 
> 
> -
> 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: Validating nested, indexed properties

2005-07-08 Thread Kjersti Berg
I should probably slap myself now. This works just fine, if the
struts-config doesn't turn validation off. :)

Kjersti

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



Re: Validating nested, indexed properties

2005-07-08 Thread Kjersti Berg
On 07/07/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> What do you mean when you say it doesn't work?

I mean that when I input characters in an integer-only field, the
validation is not triggered, the values are just set on the form.

However, I have tried to dig a bit more into this, and have looked at
the html generated. And it looks like it might have something todo
with the fact that we are running struts inside a portal. The plain
form attributes are prefixed with a string by the portal, but the
attributes defined using nested, are not. The odd thing though, is
that the values do get to the form, they just don't seem to be
validated. Does the Validator reference the form attributes in a
different way then the form population?

Any ideas? 

Kjersti

> I compared your code with something I have that's working and they
> look pretty much the same.  I have a form with a list of employees,
> and each employee has fields such as "birth".
> 
> The HTML form looks something like this:
> 
>
>
>
>
> 
> 
> Validation rules look like this:
> 
> depends="required,date">
>
>
>datePatternStrict
>MM/dd/
>
>
> depends="required,integer">
>
>
> depends="required,mask">
>
>
>mask
>^\$?\d+(,\d{3})*(\.\d{2})?$
>
>
> 
> This app is using Struts 1.2, though.  If you want to try it out, it's
> available at http://www.rabago.net/struts/formdef/dev/nested.war .
> It's using FormDef (which is a Struts plugin) but FormDef doesn't
> affect validation, so the same rules apply.  Using nested tags also
> don't affect validation.  In fact, you could use plain old HTML tags
> and still use Validator, as long as you name your fields correctly
> and/or populate your form beans properly.
> 
> Hubert
>

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



Re: Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Kjersti Berg
On 7/6/05, Iyanu, Rajasekaran <[EMAIL PROTECTED]> wrote:
> Hi Berg,
> 
>  Thanks for ur prompt reply.
>  Yup, the definitions in Form and Action mapping are the same.. And the
> scope is request throughout...
> 
>  Any more clues in this regard..?
> 

This page
http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html
says that:
"This exception typically occurs because Struts cannot find the form
bean it expects for a specific action according to the mapping in the
struts-config.xml file. Most often, this is probably because the name
given to the form in the name attribute of the form-bean element does
not match the name attribute of the associated action's action
element. In other words, the action and form should each have a name
attribute that matches exactly, including case. It has been reported
that this error has been seen when no name attribute is associated
with the action. If there is no name attribute in an action element,
no form is associated with the action. Others have reported this error
as merely a symptom of something completely unrelated (all too
common), but the mismatch of name attributes in the form-bean and
action elements in the struts-config.xml file is the usual culprit."

Maybe someone else has an idea. Maybe if you provide more background,
people might get a hint?

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



Re: Reg. Can't find form bean for XXXForm : Error.

2005-07-06 Thread Kjersti Berg
On 7/6/05, Iyanu, Rajasekaran <[EMAIL PROTECTED]> wrote:
>  Hi All,
> 
>  I have an Action Form associated with a JSP and an Action class.
>  When I try to access the JSP page, it throws the following exception.
> 
>  "javax.servlet.ServletException: [ServletException in:XXX/YYY.jsp]
> Can't find form bean for ZZZForm"
>  " at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
> tImpl.java:565)"
> 
>  I checked my entries in struts-config file but they are proper.  My
> environemnt here has struts 1.1 in WSAD 5.0.
> 
What does the relevant parts of struts-config look like? Do form
definition and action mapping match? What's the scope?

The only time I have seen this is when my struts-config has been
wrong, but this might not be the case here.

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



Validating nested, indexed properties

2005-07-05 Thread Kjersti Berg
Hi

I would like to validate some nested, indexed properties on my form.
I've googled and found someone having similar problems, but haven't
found a solution yet. Any help would be great.

The form contains a list of Job objects, each having a set of
properties, let's say number and size. I tried to define the
validation like this:


   
 

   


This does not work, although as far as I can tell, this is how the
documentation recommends using it.

However, in the jsp, the values are collected using the nested tag,
not the logic/bean tags.


   


Would this interfere with the validation, or are the two tags
identical when it comes to validation?

I'm using Struts 1.1. 

Kjersti

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



Re: c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Kjersti Berg
On 6/28/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Mick Knutson wrote:
> 
> >Here is my stack:
> >As you can see, the values are there, but it just is not picking them
> >up.
> >Also, here is what I have in the jsp:
> >
> > >property="activity.lastPinChangeDate"/>
> >
> >  >key="label.consumer.lastPinChangeDate" />
> ><%-- >property="consumerActivity.lastPinChangeDate" />--%>
> >[ >value="${consumerValidatorForm.activity.lastPinChangeDate}"/>]
> >
> >What would be the  >

If I understand you correctly, you want to write the contents of the
bean you hav defined? Have you tried


Kjersti

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



Re: Setting value at runtime in logic:equal

2005-06-28 Thread Kjersti Berg
On 6/28/05, Brad Rhoads <[EMAIL PROTECTED]> wrote:
> Nitesh wrote:
> 
> > You are probably looking for...
> > 
> 
> Unfortunately, that gives:
> 
>  cannot find symbol
> symbol  : method getOrderStatus()
> location: class java.lang.Object
>  _jspx_th_logic_equal_0.setValue( orderObj.getOrderStatus() );
> 
> I can see a good value for orderObj.orderStatus in the debugger. I tried
> value="<%= orderObj.orderStatus%>" with the same results.
> 
>  It seems that there is a different scope between tags and scriplets?

The scope is the same, but the type is not specified. You need to do a
cast if you want to go with that solution.
E.g something like this:



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



Re: Pass parameter to javascript function

2005-06-09 Thread kjersti . berg

Really?  IDon't you have to enclose the entire value in one scriptlet
expression? Like this:

 

Kjersti



|+-->
||  "Avjit Singh Jhajj" |
||  <[EMAIL PROTECTED]|
||  fmail.com>  |
||  |
||  09/06/2005 14:07|
||  Please respond to   |
||  "Struts Users Mailing   |
||  List"   |
||  |
|+-->
  
>--|
  | 
 |
  |  To: "Struts Users Mailing List"
 |
  |  cc: [EMAIL PROTECTED]  
 |
  |  Subject: Re: Pass parameter to javascript function 
 |
  
>--|




You can pass the parameters to the javascript as shown underneath by
enclosing the <%=%>  in single quotes...


 

Avjit

On Thu, 09 Jun 2005 [EMAIL PROTECTED] wrote :
>
>How can I pass parameter in to a javascript function from a 
>tag??
>
>
>eg:
>
> />
>...
>...
>
>
>
>Amitava Basak
>ASE
>Tata Consultancy Services Limited
>Mailto: [EMAIL PROTECTED]
>Website: http://www.tcs.com
>
>Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.   If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited.   If you
have received this communication in error, please notify us by reply e-mail
or telephone and immediately and permanently delete the message and any
attachments.  Thank you





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