Change The Background Color Of The Jsp
Hello, I am creating one project in java programming with the help of JSP technology. I want to know the details from which I can able to Change The Background Color Of The Jsp Page. If you know how can I able to change the background color of the JSP page then please help me about it. Reply me as soon as possible.
Re: Change The Background Color Of The Jsp
With the help of the Style Sheet you can able to change the background color of the page. For that you can able to use the line of code below:
Code:
BODY
{
background-color: # 8080FF;//For blue color
}
Re: Change The Background Color Of The Jsp
Hello, You can simply make use of the code below for changing the background color of the jsp page. It is a simple code in jsp.
Code:
<HTML>
<HEAD>
<TITLE>Background Color Changer</TITLE>
</HEAD>
<%
String backColor = request.getParameter("COLOR");
if (backColor == null)
backColor = "WHITE";
%>
<BODY BGCOLOR="<%= backColor %>" >
<H1>Background Color will be changed</H1>
</BODY>
</HTML>
Re: Change The Background Color Of The Jsp
Hello, I think you must need to make use of the books below and get your problem solved:
- Concurrent Programming in Java: Design Principles and Pattern
- Designing Enterprise Applications with the J2EE Platform, Second Edition
- Designing Web Services with the J2EE 1.4 Platform: JAX-RPC, SOAP, and XML Technologies
- Effective Java, Second Edition
- Inside Java 2 Platform Security: Architecture, API Design, and Implementation
Re: Change The Background Color Of The Jsp
Hey, I have the program below in jsp which will simply set the color of the page which you provide and if you don't provide anything then it will simply set the white color as your background:
Code:
<HTML>
<HEAD>
<TITLE>
JSP page Color Changer
</TITLE>
</HEAD>
<%
String backgroundcolor = request.getParameter("COLOR");
%>
<%
if (backgroundcolor == null)
{
%>
<BODY BGCOLOR="FFFFFF" >
<%
}
else
{
%>
<BODY BGCOLOR="<%= backgroundcolor %>" >
<%
}
%>
<H1>
Conditionally working
</H1>
<%
if (backgroundcolor == null)
{
%>
It will simply use the White.
<%
}
else
{
%>
It will simply use your requested.
<%
}
%>
</BODY>
</HTML>