简体   繁体   English

从jsp页面定期调用Servlet(Java)

[英]Periodically call of a Servlet from jsp page (Java)

I have a problem and i don't know how to resolve it... 我有一个问题,我不知道如何解决...

I have 2 .dbf files with ~10000 records (geospatial informations) that i want to read from a jsp page, every time i read 200 records i have to send them to a servlet in some format (i haven't decided yet). 我有2个.dbf文件,它们具有〜10000个记录(地理空间信息),我想从jsp页面读取,每当我读取200条记录时,都必须将它们以某种格式发送到servlet(我尚未决定)。 The Servlet must save every record as a Document object in Google Appengine (the limit of 200 records is specified by Appengine api's). Servlet必须将每条记录保存为Google Appengine中的Document对象(200条记录的限制由Appengine api指定)。

I can't upload the file to server and read server-side cause of some AWT classes not supported by Appengine, then i tried to read the files client-side and send to server the parsed records but i don't know how i can do this. 我无法将文件上传到服务器并读取Appengine不支持的某些AWT类的服务器端原因,然后我尝试读取客户端文件并将已解析的记录发送到服务器,但是我不知道该怎么办做这个。

Someone have a solution to this problem? 有人对此问题有解决方案吗?

jsp , once complied, is nothing but a servlet . jsp一旦被编译,就只是一个servlet That being said, you say: 话虽如此,你说:

I can't upload the file to server and read server-side cause of some AWT classes not supported by Appengine 我无法将文件上传到服务器,也无法读取服务器端AppEngine不支持的一些AWT类的原因

Once you finish reading 200 records, why not insert it into the appengine from the jsp itself. 阅读完200条记录后,为什么不从jsp本身将其插入到appengine The jsp will run on the server either way. jsp将以任何一种方式在服务器上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM