asa dos

Greenhorn
+ Follow
since Oct 08, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by asa dos

i solve it thanks
15 years ago
JSP
thanks so much people , i tried this example
Example


but i get error say JSONObject not found , note that i put the library in WEB_INF\lib
15 years ago
JSP
why people here get angry so easily ...
any how thanks all people and try to cheer up
15 years ago
JSP
well yes i mean struts ,,,thanks Anirvan Majumdar (notice iam she not he)...
coz when i search over the internet all the jsp example for json include servlet too
so i was just wondering
David Newton dont be angry
15 years ago
JSP
hi

iam wondering can i use json with only jsp without servlet or struct ... if yes how can i see example?
thanks
15 years ago
JSP
well i learn how to get data from jsp server side using ajax and jquery
my problem is this


this jqGrid use php as server side , i know to change it to jsp i have to just change this php page to jsp

to

but my problem is i dont understand php i want to change this to jsp



15 years ago
JSP
hello
how are you all hope your fine
first i know jsp and iam new to jquery world ...
so i spend three days read tutorials about jquery to learn how to use jqGrid plugin but i come with nothing
so can anybody please tell me how to use jqGrid with jsp ??
thanks
15 years ago
JSP
helllo
i do the squars but i cannt draw the lines right
this is the code
import java.applet.* ;
import java.awt.* ;
public class hw_Lines extends Applet {
int SEGMENTS ;
public void init() {
SEGMENTS = getDefParam("Segments",10) ;
}
public void paint(Graphics g) {
int w = getSize().width - 10 ;
int h = getSize().height - 10 ;
int n=3;
w=w/n;
h=h/n;
int dh=0;
int min=Math.min(w,h);
min=min-10;

int dd=(w-min)/2;
int ff=(h-min)/2;



for (int i = 0 ; i <n ; i++) {

int dw=0;

for (int j = 0 ; j <n ; j++) {
g.drawRect(dw+dd+j,dh+ff+j,min,min) ;
dw=dw+w;
double dx = (double) w / SEGMENTS ;
double dy = (double) h / SEGMENTS ;
double x = 0 ;
double y = 0 ;
for (int k = 0 ; k <=SEGMENTS ; k++) {
g.drawLine((int) x,h,min,min) ;
g.drawLine(w, (int) y,0,0) ;
g.drawLine((int)x,0,w,h ) ;
g.drawLine(0, (int) y,w,h) ;
x += dx ;
y += dy ;
}
}
dh=dh+h;
}

}
int getDefParam(String ParamName, int dv) {
String s = getParameter(ParamName) ;
return (s == null) ? dv : Integer.valueOf(s).intValue() ;
}
}
18 years ago
i change in the code
import java.applet.* ;
import java.awt.* ;
public class hw4_Lines extends Applet {

public void paint(Graphics g) {
int w = getSize().width - 10 ;
int h = getSize().height - 10 ;
int n=3;

for (int j=0;j<n;j++)
{ w=w/n;
h=h/n;
for(int k=0;k<n;k ++){

int min=Math.min(w,h);
int wr=w-min+10;
int hr=h-min+10;

g.drawRect(wr/2+k*w,hr/2+k*h,min,min) ;

}//for k
}//for j
}

}//class paint


the output is the squars are diagnal ??!i dont know why
18 years ago
hi every one
how are you all?
i need to do this click the image to see large




i have write a code the draw only one i dont know how to do all
this the code i wrote


import java.applet.* ;
import java.awt.* ;
public class hw01_Lines extends Applet {
int SEGMENTS ;
public void init() {
SEGMENTS = getDefParam("Segments",10) ;
}
public void paint(Graphics g) {
int w = getSize().width - 10 ;
int h = getSize().height - 10 ;
g.drawRect(0,0,w,h) ;
double dx = (double) w / SEGMENTS ;
double dy = (double) h / SEGMENTS ;
double x = 0 ;
double y = 0 ;
for (int i = 0 ; i <=SEGMENTS ; i++) {
g.drawLine(0,0,(int) x,h) ;
g.drawLine(0,0,w, (int) y) ;
g.drawLine(w,h,(int) x,0) ;
g.drawLine(w,h,0, (int) y) ;
x += dx ;
y += dy ;
}
}
int getDefParam(String ParamName, int dv) {
String s = getParameter(ParamName) ;
return (s == null) ? dv : Integer.valueOf(s).intValue() ;
}
}

any one help me ??
18 years ago