numan ahmad

Ranch Hand
+ Follow
since Jan 27, 2011
Merit badge: grant badges
For More
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by numan ahmad

I would like to create an app that support Amharic(አማርኛ) Ethiopian Language. Android Jelly Bean 4.3 supports it but i want to achieve this feature in all version prior to Jelly Bean 4.3. How can i achieve? Is there any library or working sample, which will support prior versions of Android OS.

Thanks
10 years ago
i want to develop ad video call service during calling process in android.Mean if a person call to another person then a video ad is start playing until the other person pickup the call.please help me how can i achieve that? what terminology should i use for that? flow chart ? thanks in advance.
10 years ago
i have read the apidoc.......
may you please tell me how i can make my own actionlistner please please guide me ?
what classes should i make and what methods wrote in them ?
11 years ago
public class lopotop extends JFrame implements ActionListener {

button.addActionListener(this);

public void actionPerformed(ActionEvent e) {

//something happens

}

}

I have come across this a number of times and have simply memorised how it is written but I have very little (if any) understanding of what is actually going on, something I find hugely frustrating. What do we mean when we pass (this) to the parameters? Again when we pass (ActionEvent e) what do we mean?
And now i basically want to make my own actionlistner to understand the working (don't want to use java built in classes or libraries) some one please guide me how i can do that how many classes should i make , what method use in them?

I have tried reading on this matter and have heard talk of overriding methods and other seemingly mind boggling terms but I have not fully grasped this. I am not content simply writing things I do not understand.

I would appreciate a link to a helpful resource that could help me in this regard or, better yet, if someone who understands this spares a moment to explain this as though they were speaking to a rather dull 15year old

Many thanks in advance for your help.
11 years ago
if i do not use JDBC/ODCB then sir what should i used for web application ?
12 years ago
JSP
ok sir but may you please tell me what is the mistake in this code ?
12 years ago
JSP
Respected sir this is my code
please tell me what is wrong in it ?

<%@ page import="java.sql.*" %>
<%
String username=request.getParameter("name");
String password=request.getParameter("pass");
String qry="Select * from student where username='"+username+"'and password='"+password+"'";
//out.println(qry);

String driver="sun.jdbc.odbc.JdbcOdbcDriver";

Class.forName(driver);
java.sql.Connection con=DriverManager.getConnection("Jdbc:Odbc:LHR");
java.sql.Statement stmt=con.createStatement();
java.sql.ResultSet rs=stmt.executeQuery("qry");
if (rs.next())
{
session.setAttribute("username", password);

<jsp:forward page="about.html">
</jsp:forward>
else {
out.println("Invalid username & password");
}
%>
12 years ago
JSP
hay to all...
i am new in jsp and making login form and i got an error please tell me how can i remove that error...

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
work\localhost_8080%2Fexamples\_0005cjsp_0005cvalidate_0002ejspvalidate_jsp_0.java:76: Missing term.
session.setAttribute("username", password);
12 years ago
JSP
Respected sir now i got that error :(

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
work\localhost_8080%2Fexamples\_0005cjsp_0005cabc_0002ejspabc_jsp_0.java:74: Ambiguous class: java.beans.Statement and java.sql.Statement
Statement st=con.createStatement();


ever there is nothing wrong in my statement .
12 years ago
JSP

i am new in jsp and making login system. when i execute my jsp page using tomcat i got an error i did not understand what kind of that error. some one please tell me what kind of that error and how can i remove it ..i excuse for my English because it is my 3rd language
thanks in advance

Error: 500
Internal Servlet Error:

org.apache.jasper.compiler.ParseException: D:\jsp\abc.jsp(0,4) Invalid directive
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:170)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1002)
at org.apache.jasper.compiler.Parser.parse(Parser.java:998)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:154)
at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:226)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:255)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:403)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:224)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:347)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
at java.lang.Thread.run(Thread.java:662)
12 years ago
JSP
my class teacher teach me like that and i am doing as they teach me...
sorry i did not get your point??? i watched lot of tutorials on youtube and every one use definition tag to write java function...
12 years ago
JSP
hay every one i am new in java programing and need your help..
i make a form in HTML page and want to transfer data on jsp page but its giving me an error that "local variable g in method getGrage() is not initialized" please help me friends.i shall be very thankful to you and thanks in advance ..
here is my code

<%!
public int getGrade(int s){

int g ;
if ((s>=10000) && (s<=20000))
g=1;
else if((s>=8000 && s<=10000))
g=2;
else if((s>=5000 && s<=8000))
g=3;
else if ((s>=4000 && s<=5000))
g=4;

return g;


}

public int getText( char g){

double t;
if (g==1)
t=.2;
else if(g==2)
t=.1;

else if(g==3)
t=.05;

else if(g==4)
t=.02;

return t;

}
%>

<%
int Salary =Integer.parseInt(request.getParameter("s"));
int Allowance =Integer.parseInt(request.getParameter("a"));
int PF =Integer.parseInt(request.getParameter("p"));
int GrosSalary=Allowance+Salary;

int grad=getGrade(Salary);

double persentage=getText(grad);

double text=Salary*persentage;
double netDeduction=text+PF;

double TotalSalary=GrosSalary-netDeduction;
12 years ago
JSP