Ram Para

Ranch Hand
+ Follow
since Jul 09, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ram Para

This one is working

/api/users/[email protected]/


and

/api/users/[email protected]
is not and throwing 406 exception.
11 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/[email protected]/ but not /api/users/[email protected], not able to figure out what exactly is the reason.
11 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.
15 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>
15 years ago
are you opening the doc in the browser.
just check that ?
15 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.
15 years ago
JSP
persist the count in database or some file.
15 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" %>


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