Praveen Rajendran

Greenhorn
+ Follow
since Dec 25, 2009
Merit badge: grant badges
For More
Hamden, CT, USA
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Praveen Rajendran

I am trying to find out how to convert a pdf file to a pcl file using java based API. Currently I am using a Adobe API through JACOB (Java COM Bridge) for this pcl creation but want to get out of that and use any Java based API or opensource.

I came across the StreamPrintService which can do such print file conversion but able to convert only a GIF file to a PS.

When I try to lookup for StreamPrintServiceFactory with input DocFlavor as GIF and output as PCL its saying no factories exist. Is this factory related to the Printers configured on my machine? I have tried the same after configuring the printer which prints PCL files but still no luck.

Code that I used is:



Appreciate any help.
14 years ago
I would like to comment on this way from an enterprise application standpoint...

XML files are good for storing configuration parameters which determine connectivity to external applications as you can carry those files always along with the application archive (deployable component)
Databases would be preferred for lookup data and storing those details which you do not wish to package along with the application.

In general databases are by default deemed for storing data while XMLs are more preferred to be used as means of propogating stored data rather than storing as static for frequent retrieval. If XMLs are used to store data then need to look for servers to store the XMLs itself.
14 years ago
Hi Richard,
I am not sure which jar files you are mentioning(custom built or external). If those are custom jar files built by you and you have the source for them in same workspace of Eclipse then you can achieve what you were asking.

I guess it can do that by configure the project reference to the source project of the library(jar) in your workspace. This would mean that instead of using the jar file you are directly referencing to the source of the jar file.

But if you are mentioning about 3rd party jar files for which you do not have source then i guess its not possible to open it up unless you decompile it as you mentioned.

@Netra - You are right...

@Ulf - This is all about an Indian movie "3 Idiots" and not about the movie "Saw 3"
15 years ago
3 idiots was awsome movie.. Start to end entertainer. Especially the speech delivery by Chatur a.k.a Silencer was non stop laughter...
15 years ago
Hi Chinni,

If its regarding what code to use in your first servlet to communicate to the second that your are having question, you can use either of the below:



Or you can use ServletContext's getRequestDispatcher(String resource) to do the same.



I was able to see a good link which explains this pretty simpler and clearer way. Click here to access it.
Let me know if it helps
15 years ago
Hi Ravi,
I guess you can write your caching program in a servlet such that the cache function will be done in a while loop with always true condition. Also the timing interval of caching can be done by using Thread.sleep(time) method defining the interval time in milli seconds. The servlet can be configured to trigger on application startup using web.xml.
Let me know if this makes sense.
Adding to Devaka's response, you may have to create services on your side based on what data is required which the third party should be able to invoke and retrieve data.
Hi Kingsley,

I guess it is better to have your question as a seperate thread and not to combine with this one. Also I believe there are lot of other threads with the same question. Recommend you to read through them also.

From your screenshot attached what I can tell you is to check if the CLASSPATH variable has the directory location of your class file ie C:\src.
15 years ago
Okay so i guess as a next step could you try to put the xwork-core-2.1.5.jar in the application server's lib folder instead of the application's lib folder.
This is just to check if the class is getting picked up.
15 years ago
Could you please elaborate on the error message you are seeing.

The screenshot is not showing any error messages and only the warning symbol of IDE (guess its eclipse) is shown. Also from your side confirm if the tld files are placed correctly.
15 years ago
Please try the below.

Hi Campbell,

Apologies for the short words . Thanks for bringing to attention . Corrected the same with a strike through.

I am new to replying posts in Javaranch. Till date was only reading it. Thought of putting some time to help other to the way I can. Will take care going forward about spellings
15 years ago
Please check if your classpath is set appropriately. The error is due to the fact that your class file is not present in the classpath.

Also i have reformatted your program as it had couple of mistakes in java key words like Integer and System.out.println().

You can try usig the below code:

15 years ago
Hi,
This can be done using below code:

definition of button


on onclick function the below code can be


Let me know if this helps your requirement.