Kishor Samant

Greenhorn
+ Follow
since Apr 11, 2012
Merit badge: grant badges
For More
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 Kishor Samant

Hi,

I was writing a post method with two string path param in it. While running jersey client i got 405 but when tried hitting the URL directly from browser it executed properly. Adding code below.

Service,
@GET
@Path("/DownloadByTime/{startTime}&{endTime}")
@Produces(MediaType.TEXT_PLAIN)
/**
* @param startTime
* @param endTime
* @return is success
*/
public String downloadByTime(@PathParam("startTime") String startTime,@PathParam("endTime") String endTime){
}


Client,
String url ="http://localhost:8080/....../DownloadByTime/
DefaultClientConfig config = new DefaultClientConfig();
Client client = Client.create(config);
WebResource resource = client.resource(url);
ClientResponse response = resource.path(startTime+"&"+endTime).post(ClientResponse.class);


The URL I hit from browser,
http://localhost:8080/......./DownloadByTime/2013-10-11T08:32:55+00:00&2013-10-11T20:32:55+00:00
10 years ago
On my application server machine ,I have done drive mapping using specific user.
But with web application running on Tomcat I am not able to access this drive because tomcat runs as a windows service and not with user which has the actual access to drive mapped.
So i want know how to run web application on tomcat server with specific user.
12 years ago
I have XML file content as shown below.

<FileIndex>
<Document SEQUENCE="0" FILENAME="A.xml" />
<Document SEQUENCE="1" FILENAME="B.htm" />
<Document SEQUENCE="2" FILENAME="C.htm" />
<Document SEQUENCE="3" FILENAME="D.htm" />

I want to get the value of attribute FILENAME where value of attribute SEQUENCE is equls to "1". Which would be the preferred way? SAX, DOM, XPath? and How to implement it?
12 years ago