Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Change The Background Color Of The Jsp

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-02-2010
Member
 
Join Date: Nov 2009
Posts: 652
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.

Reply With Quote
  #2  
Old 27-02-2010
Member
 
Join Date: May 2008
Posts: 2,384
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
}
Reply With Quote
  #3  
Old 27-02-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
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>
Reply With Quote
  #4  
Old 27-02-2010
Member
 
Join Date: Apr 2008
Posts: 1,948
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
Reply With Quote
  #5  
Old 27-02-2010
Member
 
Join Date: May 2008
Posts: 2,008
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>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Change The Background Color Of The Jsp"
Thread Thread Starter Forum Replies Last Post
change Metro background color on windows 8 Naila Customize Desktop 1 09-08-2012 08:30 PM
How Can I Change the background Color Of A JOptionPane? Adrina_g Software Development 5 27-01-2010 09:41 AM
Change the background color of QTextEdit Gomeler Software Development 3 27-11-2009 01:13 PM
How to change background color scheme in MSN messenger? Rahman Khan Windows Software 3 28-03-2009 06:18 PM
Change the background color of the welcome screen in windows XP Daley Customize Desktop 1 24-12-2008 10:18 PM


All times are GMT +5.5. The time now is 09:35 AM.