Win a copy of Spring Boot in Practice this week in the Spring forum!

abhishek gowlikar

Greenhorn
+ Follow
since Aug 17, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by abhishek gowlikar

Application is one which supports all the Features of J2EE components like Jsps,Servlets,EJB

Web server is one which supports only Web Components Like Servlets,Jsps
15 years ago
Generic Serverlet is a General Servlet from where you can derive other Protocol Based Servlet like FTP,UTP,SMTP etc etc other then HTTP.

HttpServlet is Exclusively defined for HTTP request.

In Webdevelopment:99% projects are based on httpservlets only

Dont bother about Generic Servlet
15 years ago
datasource is the config file for server how your server recognizes what is the database name and provider.
As per my experience never store picture on Database,Better to store Images on the folder which direct to the folder stored on the server,but address to be stored on the database.


like say we are storing some test.jpg store it on folder

img/test.jpg but the Relative Addres to be stored on

http://machinename:port/img/test.jpg
This kind of problem is Common in Database Connectivity here problem with DataSourceFile.xml is unable to configure,User Database name and password is not proper.

Check it the config/datasourcesName.xml
I think Databeans are Much Gud then the JSTL As per my Real time Experience
15 years ago
JSP
Out of Memory Error will occur because of using some for loops,while loops where it almost reaches to Infinite.

Check the conditions
15 years ago
JSP
<script>
history.back(-1);
</script>
15 years ago
JSP
It is not true that we cannot connect Db from jsp,But it is not a preferable approach:

jsp--->Db like tier 1 model
jsp--->servlets---->dataobjects--->Database MVC Model

Model:Data Objects
View: always The presentation layer have light component(this is the reason we make a Db connection at the Backend may be in DAO or Servlets)
Controller:Here Controller is a Servlets Actions
15 years ago
JSP
One can pass a Java Variable to Javascript variable but reverse Is not possible.

Try to Think some other Way
15 years ago
JSP
<%@page import="javax.servlet.http.HttpSession" %>
Here in Jsp session is a Implicit Object you no need to import are create a instance,

simply use:

String x=(string)session.getAttribute("name");

Remove the import javax.servlet.http.HttpSession"
your programme will work fine
15 years ago
JSP
String _enabled=request.getParameter("enabled");
int ena=-1;
if("on".equals(_enabled))
{
ena=1;
}
else
ena=0;
<input type=checkbox" name="enabled">
<!-- Definatly it will Work ----->
15 years ago
JSP
Here it is simple

when try to retrive the Field from Database,But the Field is Empty
Check the condition like

if(object.variable == null)
{
object.variable="";
}
15 years ago
JSP