Question:
Converting JSP to HTML?
Confused
2010-12-16 09:24:53 UTC
A technical question for JAVA programmers. I'm from a C++ background so don't understand completely how the web programming world works. I am working on enhancing an existing website which is built in Java/JSP and my predicament is this:

Every time we have to build a new page, there's one team of HTML programmers who build this page and do the logic in JQuery and then give it to the other set of Java programmers who convert this into JSP.

Same problem lies with editing a page - first HTML/JQuery guys edit their code and then give it to JSP guys who "integrate" these changes to JSP.

To me, it looks like something isn't quite right - why do we need two separate people to work on the same piece of code.

Can any Java/JSP guru enlighten me if I'm missing something here?

Many thanks
Three answers:
lansingstudent09101
2010-12-16 09:35:55 UTC
A JSP "page" is a program where every single line is basically a

System.out.println(""); that prints HTML statement with the System.out.println ommitted for brevity.



If you've ever worked with any web programming, there's two types of logic here, server-side and client side. JQuery only does client side work, it can't write to the database, or communicate with the database, all it can do is change what the client sees. (If you're a pattern person, think of it as the VIEW in an MVC, it can't do any business logic or anything secure.)



The programmers are adding the actual logic, which does all the backend processing and filtering of input.



Java does provide a solution to this called tag libraries, which is cumbersome and annoying, but it would allow the html developers to develop in HTML-like ways, but possibly take more time.



For C++ you can think of it this way, your program can only receive input over the network, and it outputs French, you have a source file with french words, you write the program, but then you need the french from a translator, which you then insert into a table somewhere. You probably don't want the French translator touching your code, but you also probably shouldn't be writing French since you're not an expert at it.
Keith C
2010-12-16 18:00:24 UTC
I think current working process have no problem. To get a cool web page up and running, we need 5 type of skill

1. Designer - design the cool webpage in png, jpg or gif and cut them to small pieces.

2. HTML editor or programmer - program the HTML by referring to the designer's design

3. Client side script programmer (javascript) - in your case is using jquery framework

4. Server side programmer - in your case is jsp programmer

5. Database programmer - need SQL knowledge



Usually, designer can do HTML editor job and a programmer can do client side, server side and database job. It's depend on the skill. For some script like AJAX, it required both client side and server side programming skill and knowledge.



Hope this help.
?
2010-12-16 17:41:57 UTC
jsp is java embedded in html. in a webpage designing part is done in html whereas the logical part(like chkng a condition, performing sm task according to user's choice etc) is taken care of by jsp.

since, both the parts hv different roles, it is divided into different group of prgrammrs.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...