RE: Tile Problem

2004-03-25 Thread Avinash Gangadharan
Try the code below. This should work. 

[CODE]
.
<%@ taglib uri="/WEB-INF/lib/struts-bean.tld" prefix="bean" %>



.









.
[/CODE]

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 4:52 PM
To: Struts Users Mailing List
Subject: Re: Tile Problem


I followed your suggestion.  Now, when I ran my
application, I got 

article.Main.title???en_US.??? 

displayed in the browser.  Still, cannot pick up the

article.Menu.title=Registered Members

in the application.properties (which is located in the
ApplicationRoot/WEB-INF/classes/resources folder).

Here is my code:

[CODE]
.
<%@ taglib uri="/WEB-INF/lib/struts-bean-el.tld"
prefix="bean-el" %>



.








.
[/CODE]

In my tiles-def.xml, I have:

[CODE]
   
  
  
  
   
[/CODE]

-Caroline


--- Jason Lea <[EMAIL PROTECTED]> wrote:
> Are you using the struts-el tags.  You might have
> them installed as
> bean-el in which case you would need to use
> 
>  name="title"/> key="${titleKey}"/>
> 
> I only use the EL tags, so I just use bean as the
> tag prefix eg <%@
> taglib uri="/WEB-INF/jsp/tags/struts-bean-el.tld"
> prefix="bean" %>
> 
> 
> 
> Caroline Jen wrote:
> 
> >I tried both of your suggestions.  For example, I
> have
> >
> >[code]
> >.
> >
> > >name="title"/> >key="${titleKey}"/>
> >
> >
> >
> >
> >
> >.
> >[/code]
> >
> >I got java.lang.IllegalArgumentException: can't
> parse
> >argument number titleKey
> >
> >--- Jason Lea <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>If you are using JSTL you can do this:
> >>
> >> >>name="title"> >>key="${titleKey}"/>
> >>
> >>if that doesn't work, try this:
> >>
> >> >>name="title"/> >>key="${titleKey}"/>
> >>
> >>
> >>
> >>Caroline Jen wrote:
> >>
> >>
> >>
> >>>In general, the tile works fine for me except the
> >>>"title" piece.
> >>> 
> >>>[CODE]
> >>>.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>.
> >>>[/CODE]
> >>>
> >>>In my tiles-def.xml, I have:
> >>>
> >>>[CODE]
> >>>  
> >>>  >>>value="article.Menu.title"/>
> >>>  >>>value="/article/content/menu.jsp"/>
> >>>  >>>value="/article/common/navbarMenu.jsp"/>
> >>>  
> >>>[/CODE]
> >>>
> >>>The problem is that my application displays
> >>>
> >>>article.Menu.title
> >>>
> >>>in the browser, instead of going to the application.properties 
> >>>(which is in the ApplicationRoot/WEB-INF/classes/resources folder)
> >>>  
> >>>
> >>to
> >>
> >>
> >>>get
> >>>
> >>>article.Menu.title=Registered Members
> >>>
> >>>What should I do?
> >>>
> >>>__
> >>>Do you Yahoo!?
> >>>Yahoo! Finance Tax Center - File online. File on
> >>>  
> >>>
> >>time.
> >>
> >>
> >>>http://taxes.yahoo.com/filing.html
> >>>
> >>>  
> >>>
>
>>-
> >>
> >>
> >>>To unsubscribe, e-mail:
> >>>  
> >>>
> >>[EMAIL PROTECTED]
> >>
> >>
> >>>For additional commands, e-mail:
> >>>  
> >>>
> >>[EMAIL PROTECTED]
> >>
> >>
> >>> 
> >>>
> >>>  
> >>>
> >>--
> >>Jason Lea
> >>
> >>
> >>
> >>
> >>
> >>
>
>-
> >  
> >
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Finance Tax Center - File online. File on
> time.
> >http://taxes.yahoo.com/filing.html
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> --
> Jason Lea
> 
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

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



RE: [OT] Object Design Question

2004-03-12 Thread Avinash Gangadharan
That's the way I have it now, a view object querying the datastore and
forming the business objects. The view issues a query for the parent and
then calls the views of the children to give their list of objects for that
parent and then constituting the parent completely.  I agree getting them
back together and then parsing them out would be better but sure not a clean
OO way of getting data.

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 1:01 PM
To: Struts Users Mailing List
Subject: RE: [OT] Object Design Question


+1. Join the tables in a query and write an algorithm to parse the 
+results into
the view you need. One connection, one query, let the database do the work.
Not very OO, but very efficient.


robert

> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 3:37 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Object Design Question
> 
> 
> It's always on a case by case basis.  When and how much do you need at 
> a given time?  Hibernate/JDO/OJB/etc can handle these things for you 
> via a config to specify lazy relationships.
> 
> When you are talking about web application with read data (data purely 
> pushed to the view like a list of persons with addresses), then the 
> best way IMHO is to write a special view object and query for this 
> case.
> 
> List View Objects
> Select By Id
> Grab Business Object By Id
> 
> 
> 
> -Original Message-
> From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 12, 2004 2:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] Object Design Question
> 
> People,
> I have a design question. It is regarding the retrieval of parent 
> and child objects in the best possible manner. For eg. Let's say there 
> is a Person object with properties such as ssn, lastName and 
> firstname. It also has a list child objects ( "Address" ) of addresses 
> and a list of previous employees ( "Employee" ). The Person, Address 
> and Employee objects are separate tables in the DB linked thru ssn.
> 
> Now what do you guys think is the most efficient way of retrieving a 
> complete Person.
> 
> The simplest way is ofcourse issue 3 queries one for person, other for 
> the list of address and the third for previous employees. But this 
> does not scale well with increasing size of the table data. For 100 
> rows of Person 201 queries are issued. 1 which gets 100 persons, 100 
> each for there subequent address and previous employees. Similarly for 
> a 1000,  2001 queries.
> 
> Complex queries may be a solution which relies on filtering the 
> resultset but is there a more simple and intelligent approach.
> 
> Is there a problem with the inherent design itself or is this a common 
> problem.
> 
> Thanks and Regards
> Avinash
> 
> -
> 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]



[OT] Object Design Question

2004-03-12 Thread Avinash Gangadharan
People,
I have a design question. It is regarding the retrieval of parent and
child objects in the best possible manner. For eg. Let's say there is a
Person object with properties such as ssn, lastName and firstname. It also
has a list child objects ( "Address" ) of addresses and a list of previous
employees ( "Employee" ). The Person, Address and Employee objects are
separate tables in the DB linked thru ssn.

Now what do you guys think is the most efficient way of retrieving a
complete Person. 

The simplest way is ofcourse issue 3 queries one for person, other for the
list of address and the third for previous employees. But this does not
scale well with increasing size of the table data. For 100 rows of Person
201 queries are issued. 1 which gets 100 persons, 100 each for there
subequent address and previous employees. Similarly for a 1000,  2001
queries. 

Complex queries may be a solution which relies on filtering the resultset
but is there a more simple and intelligent approach.

Is there a problem with the inherent design itself or is this a common
problem.

Thanks and Regards
Avinash

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



RE: Alternating table rows in jsp's table using struts

2004-03-04 Thread Avinash Gangadharan
Great!!! 
Enjoy. I sure did. 
Thanks to the display-tag project team.


-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 11:43 AM
To: Struts Users Mailing List
Subject: RE: Alternating table rows in jsp's table using struts 


Avinash,
Man, this is excellent.I wanna jump in and strat coding now. Will post back
my success soon.
 
Thanks,
Sam.

Avinash Gangadharan <[EMAIL PROTECTED]> wrote:
Not at all. It was a breeze for me. Look at the examples and do not miss
looking at the source code of each JSP for that example. You'll be amazed
how simple they are. Talk about doing it yourself  Man that's a lot of
boring work and much more overhead. 
The best thing about it --- get the source and change it the way you want it
and build it if you do not like something in it or want it to be different. 



-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:27 AM
To: Struts Users Mailing List
Subject: RE: Alternating table rows in jsp's table using struts 


Yes, I saw this cool tool too.
Is it too much overhead to install itis what I was wondering

Thanks!

Avinash Gangadharan wrote:
Try display-tag http://displaytag.sourceforge.net/
It does everything you need...
Sorting
Paging 
Alternate row colors ... 
And much much more
It's really cool

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:15 AM
To: [EMAIL PROTECTED]
Subject: Alternating table rows in jsp's table using struts 


Hi,
Any taglib/custom tags for alternating row colors in jsp.. Thanks

(I can atatch my table creation code in jspusing Thanks.


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.

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


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.

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


-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

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



RE: Getting the real request url

2004-03-04 Thread Avinash Gangadharan
Hen,
   From what I could figure you want to get the ".do" uri right ?
If that is the case, I do not think the request parameters that Craig
mentioned from the SRV 8.4.2 would give you that as it is out of the struts
controller scope already by then.
But here's what you could do :
Struts sets a request attribute with the key 
"org.apache.struts.action.mapping.instance"
This gived you the AppConfig Object in your request scope and then "path"
property gives you the ".do" URI .





HTH
Avinash


-Original Message-
From: Henri Yandell [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:51 AM
To: Struts Users Mailing List
Subject: Re: Getting the real request url




On Thu, 4 Mar 2004, Craig R. McClanahan wrote:

> This technique works fine.  In a Servlet 2.4 environment (Tomcat 5 or 
> later) environment, however, it is unnecessary ... when the Struts 
> controller servlet executes the RequestDispatcher.forward() call, the 
> servlet container will create request attributes under the following 
> keys, to capture the path elements of the original request (rather 
> than the new request):
>
> * javax.servlet.forward.request_uri
> * javax.servlet.forward.context_path
> * javax.servlet.forward.servlet_path
> * javax.servlet.forward.path_info
> * javax.servlet.forward.query_string
>
> For more info, see Section SRV.8.4.2 of the Servlet 2.4 spec.

Hopefully you won't mind me using you as a walking spec for a clarification.
If it forwards twice to a third jsp file, what do the properties above refer
to? The first uri or the second?

Thanks,

Hen


-
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: Alternating table rows in jsp's table using struts

2004-03-04 Thread Avinash Gangadharan
Not at all. It was a breeze for me. Look at the examples and do not miss
looking at the source code of each JSP for that example. You'll be amazed
how simple they are. Talk about doing it yourself  Man that's a lot of
boring work and much more overhead. 
The best thing about it --- get the source and change it the way you want it
and build it if you do not like something in it or want it to be different. 



-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:27 AM
To: Struts Users Mailing List
Subject: RE: Alternating table rows in jsp's table using struts 


Yes, I saw this cool tool too.
Is it too much overhead to install itis what I was wondering
 
Thanks!

Avinash Gangadharan <[EMAIL PROTECTED]> wrote:
Try display-tag http://displaytag.sourceforge.net/
It does everything you need...
Sorting
Paging 
Alternate row colors ... 
And much much more
It's really cool

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:15 AM
To: [EMAIL PROTECTED]
Subject: Alternating table rows in jsp's table using struts 


Hi,
Any taglib/custom tags for alternating row colors in jsp.. Thanks

(I can atatch my table creation code in jspusing Thanks.


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.

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


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.

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



RE: Alternating table rows in jsp's table using struts

2004-03-04 Thread Avinash Gangadharan
Try display-tag http://displaytag.sourceforge.net/
It does everything you need...
Sorting
Paging 
Alternate row colors ... 
And much much more
It's really cool

-Original Message-
From: as as [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:15 AM
To: [EMAIL PROTECTED]
Subject: Alternating table rows in jsp's table using struts 


Hi,
Any taglib/custom tags for alternating row colors in jsp.. Thanks
 
(I can atatch my table creation code in jspusing  Thanks.


-
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster.

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



RE: ActionClass

2004-02-23 Thread Avinash Gangadharan
Are'nt you talking about what DispatchAction class does ???



-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 1:38 PM
To: Struts Users Mailing List
Subject: RE: ActionClass


for example XYZAction class handle multiple request coming from several
different JSPs .to identify the request I can pass some unique action
parameter and execute appropriate block.

My question is that is there any feature available is Struts so that I can
identify the request where it is coming from rather than define different
path against each request and associate that path with the XYZAction class.

Path would be the same(no action parameter passed)for all request but
XYZAction class must be smart enough to identify the source and redirect the
result to the page where it is coming from.

-Ramadoss







-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:08 PM
To: Struts Users Mailing List
Subject: Re: ActionClass


Define what you mean by "where the request is coming from" and what kind of
processing you would like to optionally perform. It is not clear what you
are trying to accomplish -- give some more details so we can help.

-Max

- Original Message - 
From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 23, 2004 11:26 AM
Subject: ActionClass


Hi,
   Is there any features in Struts using which I can make the
ActionClass smart enough to understand where the request is coming from and
execute appropriate block ? If so could you pls drop some light on it?

Thank you in advance,

-Ramadoss






-
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: Tiles and message-resources

2004-02-19 Thread Avinash Gangadharan
That was a great trick Jayesh. It solved my problem too.

Thx.
Avinash

-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 18, 2004 11:39 AM
To: Struts Users Mailing List
Subject: RE: Tiles and message-resources


You could pass in the key, instead of the actual text



and in your consumer jsp you could do,





hth
-jayash

-Original Message-
From: Thad Humphries [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 11:33 AM
To: Struts Users Mailing List
Subject: Tiles and message-resources


Is there any way to for a tlles definition to take a value from the 
message-resources file?  For example, if I wanted only one file to control
my 
applications text, could 



pull the value from the message-resources file like a JSP would do.


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



Tiles and message resources

2004-02-19 Thread Avinash Gangadharan
Group,
I'm having a problem if I use the message-resources inside my tiles
jsp. I'm doing something similar to the standard tiles sample for designing
a layout for menus with the selected menu shown differently. 
I'm doing something like this :

<% String sel = ( String ) request.getAttribute( foo.SELECTEDMENU ); %>

  
  
 

  


  
  


Now in my layout, I check for the selected menu and do something like :

 
<%=item%>


Here item is the value of the Menu Items( 
etc... ) which I iterate over.

The menu items gets rendered just fine. But the above logic block never
returns a true and therefore never prints the selected menu in the way I
want it to.
So I see the menu normally with none of them selected.

The moment I replace the 

RE: Conditional tag for method results

2004-02-18 Thread Avinash Gangadharan
Exactly I thought so and that is why in my question I asked "if I can
replace the following with a much better looking tag library usage "
I wanted to make sure there is'nt something already out there which I can
simply use. Moreover I do think that the struts logic tag should have a
generic attribute which takes any runtime exression and evaluated it's
result for comparison.




-Original Message-
From: Gopalakrishnan, Jayesh
To: Struts Users Mailing List
Sent: 2/18/2004 1:33 PM
Subject: RE: Conditional tag for method results

You will need to create a simple custom tag for this.
Its pretty simple, & plenty of samples are available.


-jayash


-Original Message-
From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 1:20 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Conditional tag for method results


I did look at those earlier, unfortunately I could not figure out how
can I
pass in a method call with a paramater passed to it, as the expression
for
comparison.
The tags allow bean properties, cookie , request parameter etc...
Could you tell me how can I use a method call with a parameter that I
pass
from within the JSP for evaluating the result.

Thx
A

-Original Message-
From: Niall Pemberton
To: Struts Users Mailing List
Sent: 2/18/2004 1:07 PM
Subject: Re: Conditional tag for method results

Yo can either use the Struts "logic" tags, or the standard tag library
(JSTL)

JSTL:  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Struts Logic Tags:
http://jakarta.apache.org/struts/userGuide/struts-logic.html

Niall
- Original Message - 
From: "Avinash Gangadharan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 8:43 PM
Subject: Conditional tag for method results


> Hello All,
> I'm fairly new to the world of struts so pardon me if this has
already
> been asked.
>
> Could someone tell me if I can replace the following with a much
better
> looking tag library usage:
>
> <% if( foo.method( "xyz" ) ) { %>
>   
>   Submit
>   
> % } %>
>
> You can assume that foo exists in the scope of the page.
>
> Thanks and Regards
> Avinash
>
> -
> 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]

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



RE: Conditional tag for method results

2004-02-18 Thread Avinash Gangadharan
I did look at those earlier, unfortunately I could not figure out how can I
pass in a method call with a paramater passed to it, as the expression for
comparison.
The tags allow bean properties, cookie , request parameter etc...
Could you tell me how can I use a method call with a parameter that I pass
from within the JSP for evaluating the result.

Thx
A

-Original Message-
From: Niall Pemberton
To: Struts Users Mailing List
Sent: 2/18/2004 1:07 PM
Subject: Re: Conditional tag for method results

Yo can either use the Struts "logic" tags, or the standard tag library
(JSTL)

JSTL:  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Struts Logic Tags:
http://jakarta.apache.org/struts/userGuide/struts-logic.html

Niall
- Original Message - 
From: "Avinash Gangadharan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 8:43 PM
Subject: Conditional tag for method results


> Hello All,
> I'm fairly new to the world of struts so pardon me if this has
already
> been asked.
>
> Could someone tell me if I can replace the following with a much
better
> looking tag library usage:
>
> <% if( foo.method( "xyz" ) ) { %>
>   
>   Submit
>   
> % } %>
>
> You can assume that foo exists in the scope of the page.
>
> Thanks and Regards
> Avinash
>
> -
> 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]



Conditional tag for method results

2004-02-18 Thread Avinash Gangadharan
Hello All,
I'm fairly new to the world of struts so pardon me if this has already
been asked. 

Could someone tell me if I can replace the following with a much better
looking tag library usage:

<% if( foo.method( "xyz" ) ) { %> 
  
  Submit
  
% } %>

You can assume that foo exists in the scope of the page.

Thanks and Regards
Avinash

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



DisplayTag: each element in a table of it's own

2004-02-06 Thread Avinash Gangadharan
Hello All,
I have a question for people using the displaytag tablib for table
rendering. I was wondering is there an easy way I can display each of the
object in my list that gets rendered as a row to show in a table of its own(
showing the header again ).

Thx
Avinash

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