小编use*_*219的帖子

运行Servlet时收到错误消息(第1行:'密码'附近的语法错误.)

我正在使用servlet来使用J2ME,但每当运行这个时都会收到以下错误消息.

错误:

java.sql.SQLException:[Microsoft] [ODBC SQL Server驱动程序] [SQL Server]第1行:'password'附近的语法不正确.)

public class GetNpostServlet extends HttpServlet
{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse res) 
                     throws ServletException, IOException
{
// Same code appears in doPost()
// Shown both places to emphasize that data is received thru
// different means (environment variable vs stream), 
// yet processed the same inside the servlet
String acct = req.getParameter("account"),
        pwd = req.getParameter("password");    

String balance = accountLookup(acct, pwd);

if (balance == null)
{
  res.sendError(HttpServletResponse.SC_BAD_REQUEST, 
 "Unable to locate  account.");            
  return; …
Run Code Online (Sandbox Code Playgroud)

java java-ee

0
推荐指数
1
解决办法
1346
查看次数

如何使用iOS中的文本和按钮在android中创建标题

我想用android中的文本和按钮创建头文件(在左侧和左侧的Cetner和Buttons中的文本),我已经尝试但根本没用,请指导我...我怎么能为我做这个应用

android android-widget android-emulator android-intent android-layout

0
推荐指数
1
解决办法
2985
查看次数