Figure 2 shows the SearchResult portlet after a user enters the string user input data on the QuickSearch legacy page, and then clicks the Submit button.
图2显示用户在QuickSearch遗留页面输入字符串“User input data”并单击“Submit”按钮之后的SearchResult Portlet。
This method expects a String user role-name parameter.
此方法接受一个用户角色名的字符串参数。
When you've been typing in words to the keyboard like your name or any word that you're trying to provide to the user, a string really looks like this.
当你们通过键盘键入单词,比如你的名字,或者你想提供给用户的任何单词,一个字符串实际上看起来就是这样。
Otherwise, what was the point of getting a string from the user if I'm not handed the result to actually do something interesting with.
否则的话,它不把值带给我们,我们就做不了想做的事情,那我们还要它有什么用呢?
So now, in a program and you're asking the user for a string.
我们再回到程序里,向用户要一个字符串。
应用推荐