而Loop [英] While Loop

查看:74
本文介绍了而Loop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,


我正在尝试使用jsps将文本行中的数据行打印到webapge上。但我不能让while循环工作。有人可以帮我吗???

代码如下:

Hi Guys,

I am trying to print lines of data from a text file on to a webapge using jsps. but i can not get the while loop to work. Can Someone help me please???
code is below:

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案


大家好,


我正在尝试将文本行中的数据行打印到webapge使用jsps。但我不能让while循环工作。有人可以帮我吗???

代码如下:

Hi Guys,

I am trying to print lines of data from a text file on to a webapge using jsps. but i can not get the while loop to work. Can Someone help me please???
code is below:

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


使用if语句我能够使用jsp打印出第一个句子,但现在我想使用while循环打印出文本文件中的所有行,但它在网页上返回null。
Using a if statement I was able to print out the first sentence using a jsp, but now i want to print out all the lines from a text file using a while loop but it returns null on the webpage.



您忘了指定问题。发生了什么,你想发生什么?
You forgot to specify the problem. What is happening and what do you want to happen?



你应该有

You should have

展开 | 选择 | Wrap | 行号


这篇关于而Loop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆