cc wrote:
> As someone mentioned, jspc generates a java file which then has to be
> compiled with javac.  But if the java file can be 
> successfully generated, that's enough for me.  I just want to make
> sure that the file is syntactically correct, so that when I do load
> it into my app server, I know it will compile properly.

I'm no expert on this, but I'm almost certain that a JSP file that
is successfully translated to a Java file does not necessarily
compile successfully. I think that's because there are two types
of errors in JSP pages:
1. JSP syntax errors, like a malformed <%@ page...> tag
2. Java syntax errors, like "fro(i=0;..."

While Tomcat's jspc (and probably all JSP compilers) checks
for type 1 errors, I believe it doesn't check for type 2 errors.
These show up when the Java file is compiled using javac.
(I'm not sure but I think jspc can automatically call javac.)

Therefore, to achieve what you want, you'd have to actually
compile the JSP page all the way to a class file.

HTH.
-Thomas

> -----Original Message-----
> From: Christopher Cobb [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 9:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Eap-list] Feature Requests
> 
> 
> I generally don't use ant because it does not provide the fine-grained
> file-by-file dependency checking that make does.  When building large
> projects you generally want to be able to build 
> incrementally, that is,
> build exactly and no more than is necessary to accommodate 
> the files that
> have changed.  Unfortunately, ant does not support this form 
> of building.
> 
> I could certainly compile them by hand.  In fact, in vi I 
> have a key mapped
> to 'make' the current file.  So if I happen to be editing a 
> JSP file, make
> (and therefore vi) knows how to handle it.
> 
> As someone mentioned, jspc generates a java file which then has to be
> compiled with javac.  But if the java file can be 
> successfully generated,
> that's enough for me.  I just want to make sure that the file is
> syntactically correct, so that when I do load it into my app 
> server, I know
> it will compile properly.
> 
> cc
> 
> Edoardo Comar wrote:
> 
> > I see.
> > Can't you use ANT to invoke jspc ?
> > many of us asked as a feature customizable keybinding for 
> ant targets.
> >
> > Edo
> >
> > > -----Original Message-----
> > > From: Christopher Cobb [mailto:[EMAIL PROTECTED]]
> > > Sent: 27 November 2001 16:48
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [Eap-list] Feature Requests
> > >
> > >
> > > I don't want any wizards, either.  I just want to be able to
> > > compile my JSP pages to see if there are any errors!
> > > Tomcat's jspc is just about as easy to invoke as javac, so
> > > 'integration' would entail:
> > >     - including the tomcat distribution (put it right 
> next to jikes)
> > >     - invoking jspc when CTRL-F9 is pressed on a JSP page
> > >     - throw away the generated class files
> > >
> > > Now, debugging JSP pages would also be nice, but that's a
> > > whole different story.
> > >
> > > cc
> > >
> > > Edoardo Comar wrote:
> > >
> > > > -1 to any appserver integration. If you want wizards go 
> jbuilder. I
> > > > like IDEA to be raw. The power of plain code editing 
> and analysis
> > > >
> > > > Edo
> > > >
> > > > PS - feature request should go to
> > > > [EMAIL PROTECTED]
> > > > Not
> > > > [EMAIL PROTECTED]
> > > >
> > > > > -----Original Message-----
> > > > > From: Christopher Cobb [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 27 November 2001 15:53
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: [Eap-list] Feature Requests
> > > > >
> > > > >
> > > > > That's where Tomcat interation would be nice.  In
> > > JBuilder 5 you can
> > > > > hit CTRL-F9 on a JSP page and it appears to call Tomcat's jspc
> > > > > compiler to compile the page.  Even if you are not using
> > > Tomcat as a
> > > > > JSP container, it would still be nice to be able to
> > > directly compile
> > > > > JSP pages, even if you end up throwing away the 
> generated class
> > > > > files.
> > > > >
> > > > > "Nemec, Richard" wrote:
> > > > >
> > > > > > Mike,(1) this feature might be very expensive. Every app.
> > > > > server has
> > > > > > its own JSP compiler andthere is no plain common mapping
> > > > > between these
> > > > > > two. You can do something like thatin Forte, but 
> that is one of
> > > > > > reasons why is it so HUGE.(2) You can do that. Menu:
> > > Code/Implement
> > > > > > methods... r.
> > > > > >
> > > > > >      -----Original Message-----
> > > > > >      From: Mike Liu [mailto:[EMAIL PROTECTED]]
> > > > > >      Sent: Monday, November 26, 2001 11:55 PM
> > > > > >      To: Eap-List@Intellij. Com
> > > > > >      Subject: [Eap-list] Feature Requests
> > > > > >
> > > > > >      Hi all,
> > > > > >
> > > > > >      Hopefully this is where I submit feature 
> requests.Here's
> > > > > >      two:
> > > > > >
> > > > > >      1)JSP Debugging.On the actual JSP file, not 
> the compiled
> > > > > >      servlet
> > > > > >
> > > > > >      2)"Implement methods" feature where it
> > > automatically creates
> > > > > >      the method signatures defined in the 
> interface(s) for the
> > > > > >      class that implements these interface(s).
> > > > > >
> > > > > >      Any votes?
> > > > > >
> > > > > >      Thanks,
> > > > > >
> > > > > >      Mike Liu
> > > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Eap-list mailing list
> > > > > [EMAIL PROTECTED]
> > > http://www.intellij.com/mailman/listinfo/eap->
> > > > > list
> > > > >
> > >
> > > >
> > > > _______________________________________________
> > > > Eap-list mailing list
> > > > [EMAIL PROTECTED]
> > > > http://www.intellij.com/mailman/listinfo/eap-list
> > >
> > >
> > > _______________________________________________
> > > Eap-list mailing list
> > > [EMAIL PROTECTED]
> > > http://www.intellij.com/mailman/listinfo/eap-> list
> > >
> >
> > _______________________________________________
> > Eap-list mailing list
> > [EMAIL PROTECTED]
> > http://www.intellij.com/mailman/listinfo/eap-list
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 


************************************
If this email is not intended for you, or you are not responsible for
the delivery of this message to the addressee, please note that this
message may contain ITT Privileged/Proprietary Information.  In such
a case, you may not copy or deliver this message to anyone.  You should
destroy this message and kindly notify the sender by reply email.
Information contained in this message that does not relate to the
business of ITT is neither endorsed by nor attributable to ITT.
************************************



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to