原创 2007年09月13日 15:48:00

I make a mistake:(9/13/2007 3:48:00 PM )

on jsp page: IN a javascript function, I invoke a java function in this page.   Then I get an error: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    when my colleague told to me that: java code has been execute when jsp page loading, where U want to execute java code after jsp page loading, that's wrong!

I study a function in javascript, that's eval(), like this:

function copyme(i){
     if(i==10) return;
     var myname = eval('formdata.score'+i);
     var toname = eval('document.all.score_left'+(i+1));
     var mytr = eval('document.all.rowscore'+(i+1));
     if(myname.value!=null && myname.value!=''){

2: today I make another mistake:(2007-09-18)

xxx.java--1--> xxx.jsp              xxx.jsp---2--->xxx.java

过程1中可以传递request, if there are request.setAttribute(key, value) in xxx.java, when it forward xxx.jsp, we can get the just value

过程2中不可传递request 到xxx.java,前台到后台只能传递表单数据,要不就放到 hidden input 里。


why we always makes mistake?

This is a very short analysis of why our knowledge is go against the nature of the real world, and ...

don't mistake the float/double's display & real value.

使用单精或双精类型时, 我们查询出来的值可能与真实存储的值有一定差别. 这里体现了眼见不为实的特征. 以下是float4, float8的输出函数. src/backend/utils/a...

The classical mistake in the job interview

When Sarah Lynn Brown is interviewing job candidates, she dreads hearing them say, "I want to use my...

pwnable.kr [Toddler's Bottle] - mistake

We all make mistakes, let’s move on. (don’t take this too seriously, no fancy hacking skill is re...

A formula mistake and its proof in <Computer architecture – a quantity approach>, the 5th edition

Dear author: Hi, my name is QZ, a current master student of National University of Defense Technolog...


让我们重回案发现场······ 当时我是要做一道素数环,就是这道题来着:http://blog.csdn.net/cqbzlytina/article/details/72844258  第一次写好之...