大约有 7,000 项符合查询结果(耗时:0.0329秒) [XML]
How can I avoid Java code in JSP files, using JSP 2?
...from a database to display in some table, if necessary based on some query parameters, then implement a servlet and write code accordingly in doGet() method. E.g.:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
...
Examples of GoF Design Patterns in Java's core libraries
...hus)
javax.faces.component.UIComponent#getChildren() (practically all over JSF UI thus)
Decorator (recognizeable by creational methods taking an instance of same abstract/interface type which adds additional behaviour)
All subclasses of java.io.InputStream, OutputStream, Reader and Writer have a c...
Modify request parameter with servlet filter
...modify the source. I've decided to write a servlet filter to sanitize the parameter before it is seen by the page.
8 Answe...
Where to place and how to read configuration resource files in servlet based application?
...
Ex: In web.xml file the tag
<context-param>
<param-name>chatpropertyfile</param-name>
<!-- Name of the chat properties file. It contains the name and description of rooms.-->
<param-value>...
What is the need of JSF, when UI can be achieved with JavaScript libraries such as jQuery and Angula
I was reading about JSF that its a UI framework and provides some UI components. But how is it better or different from number of components that are available from jQueryUI, AngularJS, ExtJS, or even plain HTML, CSS and JavaScript.
...
JSF vs Facelets vs JSP [duplicate]
...
JSF is a standardized Java framework for web UIs based on an MVC pattern
JSPs are a (much older) standard for generating web pages from templates - these can be used as the View in a JSF application, but also separately from ...
JSF backing bean structure (best practices)
...t, I can get people's opinions on best practices for the interface between JSF pages and backing beans.
6 Answers
...
What is the difference between JSF, Servlet and JSP?
...ny of the overridden methods of HttpServlet, such as doGet() and doPost().
JSF (JavaServer Faces)
JSF is a component based MVC framework which is built on top of the Servlet API and provides components via taglibs which can be used in JSP or any other Java based view technology such as Facelets. Fac...
Backing beans (@ManagedBean) or CDI Beans (@Named)?
...
CDI is preferred over plain JSF because CDI allows for JavaEE-wide dependency injection. You can also inject POJOs and let them be managed. With JSF you can only inject a subset of what you can with CDI.
...
Handling a colon in an element ID in a CSS selector [duplicate]
...
In JSF 2,0, you can specify the separator using the web.xml file as init-param of javax.faces.SEPARATOR_CHAR
Read this:
Is it possible to change the element id separator in JSF?
share
|
improv...