This week's book giveaway is in the Spring forum.
We're giving away four copies of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 and have Marten Deinum & Iuliana Cosmina on-line!
See this thread for details.
Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Adding an Ajax / JS front end to Struts

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been working on a Struts 1.2.9 / MySQL project for a while, building up the core functionality without paying too much attention to the UI.
Now the business logic is in place the UI needs to look the part in todays Web 2.0 world.
I work in Netbeans and my key knowledge is in Java. Very little JavaScript knowledge and no Ajax knowledge.
My question is what would people here recommend to make the move into coding the front-end? Is there a good plugin for Netbeans someone can recommend? Should I import the project to Eclipse to use it's features? What technology offers the most rapid, yet dynamic development of the front-end? I see jQuery is highly praised - are there any implications in using this with Struts?

I look forward to hearing your thoughts.

Rob
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its depends upon what do you want to do with Front end ?
Do you want some decoration, styles on your page?
- Use CSS
Do you wnat a multimeda contents ?
- Use flash, audio/video, gif, etc
Need some validation, effects ?
Javascript, jQuery, mootools, scriptoules & prototype libraries,
There are other UI libraries available, like Google Web Toolkit, DWR, pojo Yahoo UI.
etc

This is best of my knowledge all I can provide.
 
Rob Brown
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fair point Sagar, and thanks for your thoughts.
CSS with <DIV>s is something I've already started on (all tables at the moment). I'm doing this using Netbeans but it's perhaps not the most efficient tool to use for this purpose.
The only multimedia at present are simple images posted by users.
Validation is currently done by Struts ActionForms. The CSS should tidy the presentation of any errors up, although it does require posting of the form rather than client-side validation.
The rest is down to simply making the site interact well with the user. Maybe some dynamic menus, mouseover image effects, etc.
What's your preferred app for editing the front-end when incorporating any or all of the libraries you mention?
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Rob CB", please check your private messages for an important administrative matter.
 
Bear Bibeault
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob CB wrote:I see jQuery is highly praised - are there any implications in using this with Struts?


jQuery is an excellent choice for using with server-side libraries as it is powerful yet unobtrusive. jQuery doesn't get in the way of anything Struts (or other server-side framework) wants to do, and vice versa. This cannot be said for the highly intrusive libraries, particularly tools like DWR and GWT.
 
Ranch Hand
Posts: 398
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also try Dojo which provides a rich collection of UI widgets. But I won't recommend you to mix Dojo with Struts tags. However, Dojo doesn't care about which server side framework you use. You can do all your client side works in Dojo with very minimal efforts and of-course you need not to be a master in javascript to use it.
 
Bear Bibeault
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mourouganandame Arunachalam wrote:But I won't recommend you to mix Dojo with Struts tags.


Yes, Dojo is more intrusive than jQuery so it's harder to mix-and-match.
 
Rob Brown
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jQuery looks pretty cool I have to say. The UI builder and widgets look really nice on quick inspection.

Would you normally add this type of stuff to your site using Dreamweaver, or is Netbeans good enough?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Brown wrote:Would you normally add this type of stuff to your site using Dreamweaver, or is Netbeans good enough?


I do NOT find any particular IDE or plugin for jQuery development/ JQuery, for me, is simpler form of javascripting and
all you need is some hand on various methods and core concepts of JQuery with editor which highlights the syntax.
 
Bear Bibeault
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any IDE that has JavaScript support should do.

I would never let Dreamweaver anywhere near a file of mine.
 
Mourouganandame Arunachalam
Ranch Hand
Posts: 398
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As said, you can use any IDE which supports javascript. Netbeans also a good choice.

You can also try Spket IDE

Or you may be interested to try KomodoEdit with Jquery Library Extension
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic