SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
The modern standard is to not put Java code in JSP pages, and to focus on using the JSTL and EL.
SCJA
~Currently preparing for SCJP6
Java != JavaScriptOriginally posted by Dan Walin:
Is it ok to add javascript?
Any Java executes on the server in order to format the HTML page to be sent to the client,. Remember, JSP is a server-side concept. Once the page leaves the server, it's just HTML.If there is a Java way of doing this kind of thing I would be happy to give up dependence on javascript.
You'll no doubt find other opinions, but I think that JSF is a steaming pile that should never have survived the conceptual phase. If you like to build 5-ton machines full of gee-gaws in order to wipe your mouth with a napkin, JSF may be for you. Personally, I like to use the simplest tool that gets the job done.Originally posted by Brian Legg:
Thanks Bear!! I'm sorry to hear about the JSF's... those were going to be my next target area for study. I thought using JSF's with Struts was considered "standard" these days?
Very wise. Understanding the underlying principles will help you decide what's a useful tool, what's hype, and what just gets in the way.Well, I want to get a feel for how to do most of these things the "hard way" first so that when I go to using Struts, Spring, or Stripes I can appreciate what it is they are supposedly making easier.
Those are competitors, so I don't understand how you would use them together.Originally posted by Brian Legg:
[QB]Thanks Bear!! I'm sorry to hear about the JSF's... those were going to be my next target area for study. I thought using JSF's with Struts was considered "standard" these days?
The Struts framework is an open source framework for building Web applications just like the JavaServer Faces (JSF) technology. Both frameworks are intended to help developers apply the Model-View-Controller pattern for Web application architecture.
The Struts-Faces integration library allows developers to use Faces UI components at the front end of their applications, while still allowing the familiar controller function and flexibility of a Struts application. This gives developers the ease of the Faces event listener programming model, the richness of the Faces UI component libraries, the flexibility and control of Struts navigation control, and the power of the Struts validation framework.
When it comes time to decide which framework to use when developing your applications, the choice between JSF and Struts is not mutually exclusive. They are actually intended to be used together effectively in a variety of ways.
SCJA
~Currently preparing for SCJP6
Nonsense. They may be able to work seamlessly together, but JSF is certainly not designed for that.Originally posted by Brian Legg:
Everything I've read so far on JSF says that they were designed to be used with Struts
Legend has it that if you rub the right tiny ad, a genie comes out.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|