RE: JSP Syntax
i ran into this problem yesterday. For me its related to having 2 "<" signs in a row eg, the following expression <<%="sometext"%> id="anid" /> will not get translated at all. ie the output will be <<%="sometext"%> id="anid" /> It seems Orion is getting confused by haveing 2 "<" signs together when processing the JSP If I change my expression to <%=" id="anid" /> then everything works OK. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Randahl Fink Isaksen Sent: Friday, 2 February 2001 1:54 AM To: Orion-Interest Subject: JSP Syntax I have two very similar lines of code - one of them causes a weird syntax interpretation on Orion. According to my reference books the two expressions should produce the same result. Does anyone know why these expressions work differently on Orion? Correct on Orion: /sub<%= t.getString() %> Incorrect on Orion: <%= "/sub" + t.getString() %> FYI: I am using 1.3.8. R.
Re: JSP Syntax
According to me both are same. i think its a bug in orion. Sarathy >I have two very similar lines of code - one of them causes a weird syntax >interpretation on Orion. According to my reference books the two >expressions >should produce the same result. Does anyone know why these expressions work >differently on Orion? > > >Correct on Orion: /sub<%= t.getString() %> > >Incorrect on Orion: <%= "/sub" + t.getString() %> > > >FYI: I am using 1.3.8. > >R. > > _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: JSP Syntax
That seems odd. Could you please tell us what the two versions produce. That might help. Nick At 04:53 PM 2/1/01 +0100, you wrote: >I have two very similar lines of code - one of them causes a weird syntax >interpretation on Orion. According to my reference books the two expressions >should produce the same result. Does anyone know why these expressions work >differently on Orion? > > >Correct on Orion: /sub<%= t.getString() %> > >Incorrect on Orion: <%= "/sub" + t.getString() %> > > >FYI: I am using 1.3.8. > >R.
JSP Syntax
I have two very similar lines of code - one of them causes a weird syntax interpretation on Orion. According to my reference books the two expressions should produce the same result. Does anyone know why these expressions work differently on Orion? Correct on Orion: /sub<%= t.getString() %> Incorrect on Orion: <%= "/sub" + t.getString() %> FYI: I am using 1.3.8. R.
RE: JSP syntax checker
I never package my files on develop; I have folders for ejb classes and for web files in the application directory; When I change something in the ejb classes, I touch the orion-ejb-jat.xml and orion-application.xml and orion redeploy the application; In the application.xml i have something like that app-ejb app-web / Where app-ejb and app-web are folders; For more read the orion-archive; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Heiko Gottschling Sent: mercredi 10 janvier 2001 09:58 To: Orion-Interest Subject: Re: JSP syntax checker Hi, > you dont have to package a .war and deploy it every time. You can run the > app directly from the development directory for example by defining your > own application in server.xml, like this: > > and referencing that app in default-web-site.xml, like: > This sounds interesting... does this work for an entire EAR, too? How can you cause Orion to re-deploy the application in this case? Using an EAR, Orion always notices when the EAR file is updated, how is it with unpackaged directories? cu Heiko
SV: JSP syntax checker
Title: SV: JSP syntax checker Orion will notice changed files when using unpacked applications. WR > -Ursprungligt meddelande- > Från: Heiko Gottschling [mailto:[EMAIL PROTECTED]] > Skickat: den 10 januari 2001 00:58 > Till: Orion-Interest > Ämne: Re: JSP syntax checker > > > Hi, > > > you dont have to package a .war and deploy it every time. > You can run the > > app directly from the development directory for example by > defining your > > own application in server.xml, like this: > > > > and referencing that app in default-web-site.xml, like: > > > > This sounds interesting... does this work for an entire EAR, > too? How can you > cause Orion to re-deploy the application in this case? Using > an EAR, Orion > always notices when the EAR file is updated, how is it with > unpackaged > directories? > > cu > Heiko >
Re: JSP syntax checker
On Wed, 10 Jan 2001, Heiko Gottschling wrote: > This sounds interesting... does this work for an entire EAR, too? Yes. > How can you > cause Orion to re-deploy the application in this case? Using an EAR, Orion > always notices when the EAR file is updated, how is it with unpackaged > directories? Orion *should* notice changes in any of the files. In practice, it sometimes fails to. I've found it necessary to shut down and wipe the appropriate app-deployments directory to positively force redeployment. But then again, I don't have anything in production use, so swift reboots are not a problem for me. //Mikko
Re: JSP syntax checker
Hi, > Suns own Forte for Java - and the community edition is free, too! > > It is a very nice tool, and the JSP syntax checking is just a single cool > feature among many. I am using JBuilder4 Foundation (which does not have any JSP features :-((). I looked into Forte once shortly, but there were some strange window-resizing bugs, which made it a pain to work with (like windows getting minimized when changing the virtual desktop and newly opened windows having sizes of 20x20 or so). Must have had something to do with Sun's JDK in connection with KDE... cu Heiko
Re: JSP syntax checker
Hi, > you dont have to package a .war and deploy it every time. You can run the > app directly from the development directory for example by defining your > own application in server.xml, like this: > > and referencing that app in default-web-site.xml, like: > This sounds interesting... does this work for an entire EAR, too? How can you cause Orion to re-deploy the application in this case? Using an EAR, Orion always notices when the EAR file is updated, how is it with unpackaged directories? cu Heiko
Re: JSP syntax checker
Hi, > I've been using a build file for ant (from Apache) which does all the > compiling/packaging for me. Used in conjunction with Ultraedit's tool > support, there's about 3 keypresses (and a short delay) to see the results > in the browser. Bear that it's sufficient to force the browser to reload > the page from the server, as it will then recompile it. There's a short > delay for this, but it's on the order of a second or two. That's exactly as I do it now, with an ant script. Edit, package & deploy with ant, wait for Orion to update the application, go to the browser, login (I use form-based login in my app) and click to the modified JSP page, wait for Orion to compile it... the whole procedure can take up to one minute, which is quite a long time if you have to go through this repeatedly due to some typos in the page :-( cu Heiko
RE: JSP syntax checker
Suns own Forte for Java - and the community edition is free, too! It is a very nice tool, and the JSP syntax checking is just a single cool feature among many. Yours Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Heiko Gottschling Sent: 9. januar 2001 17:21 To: Orion-Interest Subject: JSP syntax checker Hi, is there a tool which can check the (java) syntax of a JSP file? It's very time consuming to always have to package a .war file, deploy it, click through the application to the modified JSP and have the app server compile it and then fix the errors... would be nice if a syntax check could be done in advance cu Heiko
RE: JSP syntax checker
The problem is that jasper (and the Jrun JSP compiler) don't necessarily compile things like the orion compiler does. They give different errors, especially when it comes to orion specific keywords. We are using the Jrun compiler in our nightly builds currently. What we would really like is to use the Exact Same jsp syntax checker and compiler that Orion does when it runs the application. However, we want to be able to do it offline, without having Orion started on a web server / port. I can't find any information in the API, and my question to the Orion Support people wasn't responded to. Any help would be appreciated. Tony Tony Wilson -Original Message- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 11:33 AM To: Orion-Interest Subject: Re: JSP syntax checker you dont have to package a .war and deploy it every time. You can run the app directly from the development directory for example by defining your own application in server.xml, like this: and referencing that app in default-web-site.xml, like: for syntax checking, my only advice would be to use jasper (which is the JSP compiler of the tomcat servlet engine). It can be invoked from the command line. - Original Message - From: "Heiko Gottschling" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 5:20 PM Subject: JSP syntax checker > Hi, > > is there a tool which can check the (java) syntax of a JSP file? It's very > time consuming to always have to package a .war file, deploy it, click > through the application to the modified JSP and have the app server compile > it and then fix the errors... would be nice if a syntax check could be done > in advance > > cu > Heiko >
RE: JSP syntax checker
I think this may be a good start: http://jakarta.apache.org/tomcat-4.0/jakarta-tomcat-4.0/jasper/doc/jspc.html Jason Boehle [EMAIL PROTECTED] -Original Message- From: Heiko Gottschling [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 10:21 AM To: Orion-Interest Subject: JSP syntax checker Hi, is there a tool which can check the (java) syntax of a JSP file? It's very time consuming to always have to package a .war file, deploy it, click through the application to the modified JSP and have the app server compile it and then fix the errors... would be nice if a syntax check could be done in advance cu Heiko
Re: JSP syntax checker
> is there a tool which can check the (java) syntax of a JSP file? It's very > time consuming to always have to package a .war file, deploy it, click > through the application to the modified JSP and have the app server compile > it and then fix the errors... would be nice if a syntax check could be done > in advance I've been using a build file for ant (from Apache) which does all the compiling/packaging for me. Used in conjunction with Ultraedit's tool support, there's about 3 keypresses (and a short delay) to see the results in the browser. Bear that it's sufficient to force the browser to reload the page from the server, as it will then recompile it. There's a short delay for this, but it's on the order of a second or two. Trond.
Re: JSP syntax checker
you dont have to package a .war and deploy it every time. You can run the app directly from the development directory for example by defining your own application in server.xml, like this: and referencing that app in default-web-site.xml, like: for syntax checking, my only advice would be to use jasper (which is the JSP compiler of the tomcat servlet engine). It can be invoked from the command line. - Original Message - From: "Heiko Gottschling" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 5:20 PM Subject: JSP syntax checker > Hi, > > is there a tool which can check the (java) syntax of a JSP file? It's very > time consuming to always have to package a .war file, deploy it, click > through the application to the modified JSP and have the app server compile > it and then fix the errors... would be nice if a syntax check could be done > in advance > > cu > Heiko >
Re: JSP syntax checker
Then don't package it. Just configure application to use a directory instead of war file. Fix the error and just click to continue debugging. As far I understand war,ear is supposed to be used for final deployment. Boris - Original Message - From: "Heiko Gottschling" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 11:20 AM Subject: JSP syntax checker > Hi, > > is there a tool which can check the (java) syntax of a JSP file? It's very > time consuming to always have to package a .war file, deploy it, click > through the application to the modified JSP and have the app server compile > it and then fix the errors... would be nice if a syntax check could be done > in advance > > cu > Heiko
Re: JSP syntax checker
Hi JBuilder enterprise can do alot for you. It alerts you of errors in both HTMl and java code of your .jsp . Syntax colouring, code completion and a hierarchy view of you HTML are helpful too. Compile time errors are a different story, you'll have to deploy the .jsp for that. Marcel - Original Message - From: "Heiko Gottschling" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 5:20 PM Subject: JSP syntax checker > Hi, > > is there a tool which can check the (java) syntax of a JSP file? It's very > time consuming to always have to package a .war file, deploy it, click > through the application to the modified JSP and have the app server compile > it and then fix the errors... would be nice if a syntax check could be done > in advance > > cu > Heiko >
RE: JSP syntax checker
go to [ORION]/applications/[YOUR-APP]/[YOURWAR] directory... you can edit .jsp files there, without having to redeploy... to compile, just navigate the page (from your browser) HTH JP PS: some IDE's have built in jsp compilers: Pramati, Forte, JDeveloper, Kawa just configure correctly the compiler's classpath... -Original Message- From: Heiko Gottschling [mailto:[EMAIL PROTECTED]] Sent: Martes, 09 de Enero de 2001 13:21 To: Orion-Interest Subject: JSP syntax checker Hi, is there a tool which can check the (java) syntax of a JSP file? It's very time consuming to always have to package a .war file, deploy it, click through the application to the modified JSP and have the app server compile it and then fix the errors... would be nice if a syntax check could be done in advance cu Heiko
JSP syntax checker
Hi, is there a tool which can check the (java) syntax of a JSP file? It's very time consuming to always have to package a .war file, deploy it, click through the application to the modified JSP and have the app server compile it and then fix the errors... would be nice if a syntax check could be done in advance cu Heiko