Sowji 9490872901 Namnamaa9290143667 Daddy - 9441481845 Arunph: 09989291211 To-Do: 409pg Get Parameter
Sowji 9490872901 Namnamaa9290143667 Daddy - 9441481845 Arunph: 09989291211 To-Do: 409pg Get Parameter
sowji 9490872901
namnamaa9290143667
daddy---9441481845
Arunph: 09989291211
To-do:
409pg
Get Parameter:
String [] sizes = request.getParameterValues (“sizes”);
for(int x=0; x < sizes. length ; x++)
{
out.println (“<br>sizes: “ + sizes[x]);
}
PrintWriter
PrintWriter writer = response.getWriter();
writer.println(“some text and HTML”);
OutputStream
ServletOutputStream out = response.getOutputStream();
out.write(aByteArray);
Redirect:
response.sendRedirect(“http://www.oreilly.com”);
RequestDispatcher
A request dispatch does the work on the ser ver side
RequestDispatcher view = request.getRequestDispatcher(“result.jsp”);
view.forward(request,response);
Access InitParam:
out.println(getServletConfig().getInitParameter(“adminEmail”));
doubt:pg151
<init-param>
<param-name>adminEmail</param-name>
<param-value>[email protected]</param-value>
</init-param>
<init-param> <param-name>mainEmail</param-name>
<param-value>[email protected]</param-value>
</init-param>
in doget method
9373449490
00540A
JSP:
ctx.setAttribute(“mail”, emailAddr);
}
%>
Setting a page-scoped attribute <% Float one = new Float(42.5); %> <%
pageContext.setAttribute(“foo”, one); %>
Using the pageContext to set a session-scoped attribute <% Float two = new Float(22.4); %> <
% pageContext.setAttribute(“foo”, two, PageContext.SESSION_SCOPE); %>
Using the pageContext to fi nd an attribute when you don’t know the scope <%= pageContext.fi
ndAttribute(“foo”) %>
9372383171
stopServer.bat WebSphere_Portal
serverStatus.bat –all
EL implicit objects:
${ cookie.userName.value}
DOUBTS IN PORTALS:
PORTAL CNFIG
PORTAL CONTEXT
UPLOADFILE
PG 175
28281732
portlet:
LIFECYCLE MANAGEMENT
The portlet container is responsible for invoking lifecycle methods on the portlet instances and providing
them with the required runtime environment. A portlet container is an extension to servlet container, that
is, it provides what a servlet container provides, and additionally manages the portlet instances. The
portlets access their runtime environment using PortletContext object (similar to ServletContext),
which allows portlets to share data with other portlets and Servlets in the same portlet application.
RVHMX-KTJ8P-X7K2G-PC2M2-M6D76
SRIK NUM:8886037777
HTTP://EICHELGARTENWEG2.BLOGSPOT.COM/2009/01/MYSQL-AND-
WEBSPHERE-APPLICATION-SERVER.HTML
HTTP://DEV.MYSQL.COM/DOC/REFMAN/5.0/EN/CONNECTOR-J-INSTALLING-
CLASSPATH.HTML
[email protected] 9958228258