Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Ram Para

Ranch Hand
+ Follow
since Jul 09, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ram Para

This one is working

/api/users/abc@xyz.com/


and

/api/users/abc@xyz.com
is not and throwing 406 exception.
6 years ago
I have defined a rest request Handler like this

@RequestMapping(value="/{userId}", method = RequestMethod.GET, produces = MediaType.APPLICATION_XML)
public @ResponseBody
Domain getUserProfile(@PathVariable String userId) throws XmlException{


It works like /api/users/abc@xyz.com/ but not /api/users/abc@xyz.com, not able to figure out what exactly is the reason.
6 years ago
Can you paste your code ?
Ideally it should work.
It seems to be as if the you already have some records in Student table.
public interface SessionFactory extends Referenceable, Serializable

Creates Sessions. Usually an application has a single SessionFactory. Threads servicing client requests obtain Sessions from the factory.

Implementors must be threadsafe.

SessionFactorys are immutable. The behaviour of a SessionFactory is controlled by properties supplied at configuration time. These properties are defined on Environment.

2nd level you should be used when you need high performance with less number of database hits.
it can be used with Single VM or clustered VM's.
Same pbject can be shared across different vms.
HttpSession is accessible only to the threads that are servicing requests belonging to
that session. We may think that there can be only one request from the user at a time and,
therefore, the session scope would be thread safe; however, that’s not the case. A user can
open multiple browser windows and send requests through multiple windows. In such
instances, all the requests belong to the same session and all the threads processing these
requests will be able to access the session attributes simultaneously.
10 years ago
You need to configure jdbcTemplate also like this

<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" >
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="lazyInit">
<value>true</value>
</property>
</bean>
10 years ago
are you opening the doc in the browser.
just check that ?
10 years ago
JSP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="application/vnd.ms-excel; charset=windows-1252" %>

make sure that these two lines are on the top of jsp.
10 years ago
JSP
persist the count in database or some file.
10 years ago
try adding these lines at the top of JSP.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="application/msword; charset=windows-1252" %>


10 years ago
JSP
why don't you simply remove duplicates and then insert the records ?