> [mailto:[EMAIL PROTECTED] On Behalf Of Oleg Kobchenko
> However, what is suggested for login logic is quite an > interesting idea: it can be thought of as "Markup-Behind". ... > They are not just HTML file--they have extension .jhp. > We need just to distinguish JHP with markup for templates and > JHP as script evaluated as is. Your description of "Markup-Behind" ( http://www.jsoftware.com/jwiki/Web/Markup-Behind ) helped me solidify in my mind what I, in my naivety, was trying to accomplish. I agree that a key issue is how to distinguish the JHP code from the JHP markup templates. The current example on the wiki uses ".html" for the extension of JHP markup templates. This doesn't feel right to me because it implies that the file is in fact HTML (which it isn't) and it means that it's now not possible to differentiate between straight HTML files and ones containing JHP. My initial reaction was to give them a ".jhp" extension. The downside to that (apart from the original one of not being able to distinguish template from code) was that the extension isn't recognised by HTML editors. This kills syntax colouring, as well as functions like HTML validation and Dreamweaver/Expression Web templating. My current solution is to give JHP markup templates the extension of ".asp". The HTML editors recognise this and work with them appropriately. It enables me to easily identify files containing JHP code vs JHP markup templates. And because they are processed by the appropriate ".jhp" file before being sent to web server or browser, the ".asp" extension doesn't (ever?) turn up in URLs. This approach works fine for now but is still "cheating" (using an extension for something that it isn't). Although as long as the only JHP present in the ".asp" file are "<%= varname %>" statements, then I suppose it is in fact valid ASP. Can't think of a better solution at the moment. I have documented this on the wiki at http://www.jsoftware.com/jwiki/RicSherlock/Temp/UserLogin (What would be an appropriate location for that page?) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
