دنبال کننده ها

۱۳۹۶ بهمن ۱۱, چهارشنبه

java - JasperException in JSP

[ad_1]



I am getting Jasper Exception whenever I import gson libraary . Any idea what is wrong?



<%@ page import="com.google.gson.Gson" %> 
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>

<%String jsonString = request.getParameter("user");
Gson gson = new Gson();
GigyaObject gigObject = gson.fromJson(jsonString, GigyaObject.class);%>


Pom.xml



 <dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.1</version>
</dependency>
</dependencies>[![erroe][1]][1]



[ad_2]

لینک منبع