我有2个jsp页面。在索引页面中,我正在选择一个下拉值,并将所选值作为url参数传递给SearchResults页面。http://localhost:8080/SearchResults.jsp?jobCat=InformationTechnology我正在捕获InformationTechnology使用以下代码传递的参数。查询应在表格中显示所选值的结果。(我正在选择工作类别,结果应显示所选工作类别下的应聘者)String jobCategory = request.getParameter("jobCat");以下是我的查询String queryString ="Select ?a ?b"+" Where { ...."+" Filter (?a = "+ jobCategory +")"+// jobCategory is the String variable " }";但是我收到ParseException错误。是否有另一种方法可以像在类似情况下一样在SPARQL查询中使用字符串变量。提前致谢
添加回答
举报
0/150
提交
取消