I am testing to throw out a value in the array, like myarray={"9","0","8"} change to array={"9","8"}
Code:
String location[] = request.getParameterValues("select");
java.util.Stack stack = new java.util.Stack();
int...
i am testing the queue and push in jsp, but there is error:
Unable to compile class for JSP.
Do you have any idea
String location[]= new String[3];
location[0]="0";
location[1]="9";
location[2]="0";
Queue q = new Queue();
for(int j=0;j<3;j++)
{...
There is a table in a form contain different combo boxes.
How can i return the combo boxs'values only when it is changed by the user and put the value in the string array??
some of my code:
for (int i=0; i<size; i++)
{
java.util.StringTokenizer st = new java.util.StringTokenizer(check, ",");
id1 = st.nextToken();
id2 = st.nextToken();
}
an error:
cannot resolve symbol
symbol : constructor StringTokenizer
(java.lang.String[],java.lang.String)...
how to display the current date in format yyyy-MM-DD, same as the default format of mySQL
i try this in jsp,
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String formattedDate = df.format(theDate);
out.print(formattedDate);
error
cannot resolve symbol symbol : class DateFormat
In jsp, how can i write a sql that allow to select some fields where a field, that is a date MM/DD/YYYY, in that table need to be earier than today's date.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.