The reason for separating the view and the model is not that the html guys are dumb. God knows they are absolutely brilliant. Too much so usually.
I think the best, clearest, example of what is wrong I have seen is exhibited by the simple stuff in Bitter Java at pages. 57-58. I cannot tell you how many times I have seen really smart people do what occurs on page 57, a ridiculous mix of view and model logic in the model. Another thing in that book that is really good, and probably very close to the probable error being pointed out in this case, and it matches up well with Ted Husted's explanation of what MVC really is in a Java web container in Struts in Action (which is "way cool"), is the discussion of how the response and the request, even if relating to the same page, need to be abstracted to understand the MVC pattern and why it is important to Java web containers, cf. pages 89 and following and page 95 for a diagram we all should really understand well.
That's my two cents. Love the issue. When it comes to things like interfaces, threads, and MVC, in my opinion we get a lot more heat than light in the Java world.
Micael
At 09:24 PM 12/5/2002 +0800, you wrote:
MicaelAh, you mean where you have an html guy doing the JSPs, and someone else doing the actions and custom tags? Fair enough. Mind you, Id have thought complex logic would be beyond the skills of your average html guy? ;->-----Original Message----- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 21:22 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: if condition with "or" I meant the java programmers, not the server machine. -----Original Message----- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 8:16 AM To: 'Struts Users Mailing List' Subject: RE: if condition with "or" Where do you think tags get run? -----Original Message----- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 21:17 To: 'Struts Users Mailing List' Subject: RE: if condition with "or" When the logic is this complex, shouldn't it be in Java or is that putting too much pressure on the server side? -----Original Message----- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 6:33 AM To: 'Struts Users Mailing List' Subject: Re: if condition with "or" Can't you make a collection, iterate though the 'or' (||) values Do something once and then breakout? Like a switch statement Umm not something i've tried i'll get back to you after i've run some tests. Cheers mark On 5-12-2002 12:13, "Jon.Ridgway" <[EMAIL PROTECTED]> wrote: > Hi Jana, > > You might want to look at struts-el (JSTL expression language > extension for struts). To implement with logic:eqal I think you would > have to have three separate logic:equal blocks each containing the > same jsp code, perhaps included. > > Jon Ridgway > > > -----Original Message----- > From: Jana Navaneethan [mailto:[EMAIL PROTECTED]] > Sent: 04 December 2002 22:24 > To: Struts Users Mailing List > Subject: if condition with "or" > > Hi, > I want to use <logic:equal> in my JSP to replace the following > code. > > if (count = 0 || count = 2 || count = 4) > do something..... > > How to achieve this using <logic:equal> By the count is index value of > the iterator i.e indexId. > > Thanks in advance, > Jana. > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > The contents of this email are intended only for the named addressees > and may contain confidential and/or privileged material. If received > in error please contact UPCO on +44 (0) 113 201 0600 and then delete > the entire e-mail from your system. Unauthorised review, distribution, > disclosure or other use of this information could constitute a breach > of confidence. Your co-operation in this matter is greatly > appreciated. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-------------------------------------------------------
This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>