Re: calling method of a bean from JSP

2006-09-17 Thread Yujun Liang

Have you tried "Mapped Properties"?
http://struts.apache.org/1.2.9/faqs/indexedprops.html

Regards

On 9/16/06, Strachan, Paul <[EMAIL PROTECTED]> wrote:


you could move the logic into the view/jsp layer...something like:


  

  


or maybe a custom tag library...






From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP



i do not think it works.


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**

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





--
Yujun Liang
[EMAIL PROTECTED]


[Struts 2] problem with s:set and s:if

2006-09-17 Thread Garner Shawn

I'm not sure what I'm doing wront but I only want to write out the
table row and table data tags if it is a new milestone different than
the last one.

I seem to get either all or none here.

Can somebody help me?



MilestoneTentative Release 
DateFeatures

































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



How to OR condition in JSP using Struts

2006-09-17 Thread Hanmay Udgiri

Hi
I want to check an OR condition in struts using logic tags.??
Can we use logic tags to check OR condition??


--
Thanks and Regards
Hanmayya Udgiri


Re: [Struts 2] problem with s:set and s:if

2006-09-17 Thread Ted Husted

Personally, for something like this, I try to simplify the task as
much as possible in the Action. For example, I might put this sort of
a loop in the Action class and create a list of milestone numbers,
each with it's onw list of milestone items. So that the page can just
iterate through the numbers, and the items for each milestone, so that
the page doesn't have to work so hard.

Given a list of milestone numbers on the page, each containing its own
ist of milestone items, if it were me, I'd try something like



 
  
  
   
  

   
   
   
  
   
   




Of course, in the end, there will be the same amount of logic, it's
just a matter of where the logic is being applied. A key benefit of
applying as much logic as possible in the Action class, is that it's
much easier to test and step-thru the code, without getting the web
container involved.

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


On 9/17/06, Garner Shawn <[EMAIL PROTECTED]> wrote:

I'm not sure what I'm doing wront but I only want to write out the
table row and table data tags if it is a new milestone different than
the last one.

I seem to get either all or none here.

Can somebody help me?



MilestoneTentative Release 
DateFeatures

































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





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

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



Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu

this should work. thanks !

On 9/16/06, Strachan, Paul <[EMAIL PROTECTED]> wrote:


you could move the logic into the view/jsp layer...something like:



   



or maybe a custom tag library...






From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP



i do not think it works.


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**

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




Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu

On 9/17/06, Yujun Liang <[EMAIL PROTECTED]> wrote:


Have you tried "Mapped Properties"?
http://struts.apache.org/1.2.9/faqs/indexedprops.html

Regards



this is a good point. I have not tried it. Is it ok (in terms of
performance) to use a custom class as the key, not using Java primitives
like Long ?


Display only specific keys on a page

2006-09-17 Thread Vaylee Mckenzie-Daniels \(VA\)

Hi

I have a hashtable that I am displaying on my jsp page. I am using the
logic iterate tags and the bean properties (ie bean:write name="loop"
property="value"> , but I only want to display specifc key values. How
will I do this?

Thx
Vaylee


~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~