about return in c:if tag

2003-02-05 Thread Kishi Mikio
Hi,

c:if test=...
  % return; %
/c:if

As above, I want to return in c:if tag, but can not
In this case, what is the best practice ?

Is creating my custom tag (myTag:return)
, which return SKIP_PAGE immediately, better ?

Thanks in advance

Mikio Kishi

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




Re: about return in c:if tag

2003-02-05 Thread Shawn Bayern
On Thu, 6 Feb 2003, Kishi Mikio wrote:

 Hi,
 
 c:if test=...
   % return; %
 /c:if
 
 As above, I want to return in c:if tag, but can not
 In this case, what is the best practice ?
 
 Is creating my custom tag (myTag:return)
 , which return SKIP_PAGE immediately, better ?
 
 Thanks in advance

You don't seem to mind using scriptlets, so

 c:if test=...
   % if (1==1) return; %
 /c:if

would work.  Your own my:return would indeed probably be cleaner,
though.

-- 
Shawn Bayern
JSTL in Action   http://www.manning.com/bayern


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