Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2492
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Steve <tinker123@gmail.com> |
| Newsgroups | comp.lang.java.help |
| Subject | Re: LINTing Javascript in a Java WebApp |
| Date | Tue, 12 Feb 2013 08:40:19 -0500 |
| Organization | M.Y.O.B. |
| Lines | 43 |
| Message-ID | <kfdgms$4f4$1@dont-email.me> (permalink) |
| References | <kfb9jr$69d$1@dont-email.me> <3b447074-316f-4e1a-bb0f-0b54b4a547b6@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 12 Feb 2013 13:39:40 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="50005cf82f3a28e62a2c6605d9efca85"; logging-data="4580"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wU4SXMBZG3JDLJm56TGMrAGI06f4IWJY=" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 |
| In-Reply-To | <3b447074-316f-4e1a-bb0f-0b54b4a547b6@googlegroups.com> |
| Cancel-Lock | sha1:eWiVApZjXMDuZlkrIUXIe1JkqMg= |
| Xref | csiph.com comp.lang.java.help:2492 |
Show key headers only | View raw
On 2/11/2013 3:45 PM, Lew wrote: > Steve wrote: >> I have a number a Java webapp with a number of embedded ( in JSPs ) >> Javascripts and straight *.js files. > > Hmm. Not a good clean separation there. > >> More than few times I've built the webapp and deployed it only to find >> I've made a trivial error, like forgetting a semicolon in the Javascript. > > Why do you need so much Javascript? Some of it client side data validation that was done a long time ago before frameworks made server side data validation less of a PITA. Some of it is to enforce rules the users asked for ( example, if check box A is selected client side, disable textfield B, etc, etc ). Some of it is AJAX used to decrease the number of screens the user has to submit. Some of is gluing in various JQuery features, like a pop-up calendar for picking dates ( not something I asked for, the users love it ). > The Aptana plugin for Eclipse > www.aptana.org > provides more advance Javascript editing. Awesome, thank you. > > It seems wrong to put a lot of JS into a JSP. Or any, really. I've been hearing that since the year 2,000. I would still love for it to be true :) > But you might try using static pages with the same Javascript and debug the JS that way. > Freeze one possible output that the JSP might generate and try to use its Javascript. That is pretty much what I have been doing. I was hoping for the convenience of type as you go error highlighting like I can get with Java. Steve
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-11 12:26 -0500
Re: LINTing Javascript in a Java WebApp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-11 11:42 -0800
Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-12 08:40 -0500
Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-11 12:45 -0800
Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-12 08:40 -0500
Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-12 09:45 -0800
Re: LINTing Javascript in a Java WebApp Steve <tinker123@gmail.com> - 2013-02-13 14:26 -0500
Re: LINTing Javascript in a Java WebApp Lew <lewbloch@gmail.com> - 2013-02-13 14:56 -0800
Re: LINTing Javascript in a Java WebApp Roedy Green <see_website@mindprod.com.invalid> - 2013-02-13 18:43 -0800
csiph-web