Anshuman Chakraborty

Greenhorn
+ Follow
since Oct 05, 2010
Mumbai, India.
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Anshuman Chakraborty

It can be determined using the difference of current time and last accessed time to compare with maximum inactive interval allowed.

If the difference is more than or equal to inactive interval, The session was expired by the container else it was invalidated.

5 years ago
Response has already been commited (out.flush()) and its too late to call request dispatcher.
This is causing IllegalStateException.
5 years ago
I also had the same argument with them but, unfortunately it didn't work.

Thanks anyways for your precious time.
7 years ago

Business Department officials have created few pdf documents.
They want these documents to be available in such a way that other employees can read the content but can't save or forward it.


Please suggest.



7 years ago

Is there other way I can achieve this ?
i.e. Allow user to view the content but not save it.
7 years ago
Hi all,

I am using below mentioned code (into Servlet) for streaming PDF file to the client .





My query is that I need to disable both Navigation bar and Toolbar of PDF on the browser so that client can't copy the file [Security Reasons.].
I have seen this done in many of the portals which I want to implement into my Application.

I also went through many posts but was not satisfied with the answer.


Can you please help me here.




7 years ago
Hi,

Did you check Container's log file.

Suggestion :
Try printing the values you receive from JSP.
Hi,

I am using Jasper Report [ver 4.0.2] for the first time and was going through one of the tutorials.

The code goes like this


Well the problem is
1. The exported pdf file is fine and contains all the records from database.
2. html and xls file doesn't contain records but the head and footer is present and the line separating the records are also present.
Basically, formatting is present except for actual database records.

JasperViewer shows all the records.



Library used
* jasperreports-4.0.2.jar
* jasperreports-applet-4.0.2.jar
* jasperreports-fonts-4.0.2.jar
* jasperreports-javaflow-4.0.2.jar
* commons-beanutils-1.8.0.jar
* commons-collections-2.1.1.jar
* commons-digester-1.7.jar
* commons-javaflow-20060411.jar
* commons-logging-1.0.4.jar
* iText-2.1.7.jar
* poi-3.6.jar
7 years ago
Yes Eric,

This was the issue.

I also updated the variable name as rightly pointed out.


Thank you very much.

Hi,

My code is as follows




The reason I am using input tag with type as hidden because I need to know which button was hit so that I can insert or update accordingly and send the error across (if generated).


When I click any of the buttons (i.e. either Save or Update) with no data on any of the text boxes.

1. It hits the server without actually getting itself validated first. I did put a dummy alert() inside the script to check the same.

When I use form attribute onsubmit="return validate(this);" and remove the onclick attributes of both the buttons,

1. It validates the form but continues to hit the server when false is returned. I can't use this form onsubmit event since I am loosing hidden attribute's value.

Modified code as follows:-



I don't know where is the issue.


Please Help !!!.



I hope you guys will forgive me for visiting the site after a very long time.


Sorry Ernest,
I misinterpretted it initially.
7 years ago
The behavior is to look for the requested classes in the current directory first.
When not found, it tries to find the same in the path specified by environment classpath (from left to right).
7 years ago
Jim,

PriorityQueue doesn't override clone() method.
The only option left is Iterate through the queue, clone the elements and assign it to a new queue.

Now cloning can be done using either of the two steps

1. Override the clone method.
2. Else create a new object using existing object.

Correct me if I am wrong.
7 years ago