Sudarsan Raman

Greenhorn
+ Follow
since Aug 20, 2003
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 Sudarsan Raman

Currently my tld files are available within jars only.

Our application is being evaluated for Shared Library (SL) in WAS env. If this is the case, I'm forced to take the tld files out of the Jars (since the Jars are moving to SL and put them under WEB-INF.

I was wondering if there is a way so that the tld files gets accessed from the JARS which is in SL.

Regards,

Sudarsan.
14 years ago
JSP
Hi All,

Is it possible to keep the taglib tld files (of custom tags) placed outside WEB-INF?

We can place our taglib tld files within directly WEB-INF folder or a folder under WEB-INF (say tld/tlds), or even within a jar file which is placed under WEB-INF/lib.

If the tld file is being referred from a jar file, is it possible to place the JAR file within a SHARED LIBRARY (of WAS) ?

If this is do-able, pl. update me how.

Regards

Sudarsan.
14 years ago
JSP
Hi,

I need to compile java files in batches. For this I'm trying out this following example.

- I have a directory "code" which contains around 1071 java files
- I need the classes to get generated in "output" directory.
- I have a "javac.tmp" file that has only one line "myBean.java"
(This myBean.java is part of the "code" directory)

- I need to compile only this particular file.
- I want to use only includesfile and not includes attribute

The reason for not using includes is that the list of files that has to be compiled will grow (I don't know the limit includes, what if the the file list is around 500 ??). Includesfile is supposed to take just a filename and this file should contain list of files.

What I'm trying :

<project name ="project" default ="init" >
<target name="init" >
<echo>compiling</echo>
<javac srcdir="./code" destdir="./output" includes="*.java" includesfile="./javac.tmp" />
</target>
</project>

Output :

Buildfile: build.xml

init:
[echo] compiling
[javac] Compiling 1071 source files to /users7/e46011/javafile/output

Problem : It tries to compile all the files in the directory "code". Does the includesfile file require to have the filenames in some format (anything other than filenames on different lines) - Something like package name etc ??

Thanks,

Sudarsan.
17 years ago
Hi,

I have a project that is having java sources of about 8000 (handwritten and generated) or so. They are distributed into various folders/sub folders (based on their functionality or packages or dependencies and some other criteria)

Few of the folders contains about 1500 or more sources.

Our build goes picking up sources from directory by directory. We are sure this count of source will keep increasing as people develop more. So one day we might face a situation where in javac for the directory with too many souces fail because of insufficient memory. (Increasing the max memory for javac might not be the right solution)

Is there a way we can make ant pick files in a batch of 200 sources, compile it (pass it to javac), then pick the next set ??

This way, I can make sure that my java build nevers fails for insufficient memory.

Pl. reply back with any similar experiences had.

Thanks in Advance.

Sudarsan.
17 years ago
Has anybody tried XML to Excel ??

I want to open my xml files in excel but it should open up in some predefined format. Has anybody done something like this ?

Regards,

Sudarsan.
Hi,
I have an issue while I try to bring up SVG graphs in the "https://" or SSL mode.
When the graph is about to come, it throws up an dialog box for file download.
I have checked the content type and it is given as (image/svg-xml)(which is the correct one), have also added the new (allowable) mime types to my weblogic app-server's web.xml.
Anybody who overcame such a problem, pl. suggest what is missed.
Thanks & Regards,
Sudarsan.
20 years ago
Hi,
I would like to know if the content of Response (HTTPSevletResponse) can be saved to a file (in the hard-disk).
(I want to do it in the servlet, i.e. without any user intervention.)
If it is possible then how ?
Thanks & Regards,
Sudarsan.
20 years ago
When I parse my xml using xsl, too many unwanted code is seen in my HTML output. For example
<
TD valign="bottom" nowrap="yes" style="cursor efault;" class="fpColumnHeader" onclck="javascript:fn()" xmlns:fpi18n="http://www.jclark.com/xt/java/com.i2.fp.servlets.FPI18n" xmlns:int="http://www.jclark.com/xt/java/java.lang.Integer"
>
These statements i.e.
xmlns:fpi18n="http://www.jclark.com/xt/java/com.i2.fp.servlets.FPI18n" xmlns:int="http://www.jclark.com/xt/java/java.lang.Integer"
adds upto 100K.
How can I avoid these from coming as a part of the output??
Regards,
K. Sudarsan.
Can't Ur variable be with ' and " ??
str1 = 6'3"Frame
will be
str1 = 6'3"Frame
This will be helpful (only) if U R using the value to be printed on the HTML page.
I have a servlet which calls the XT parser to give (supposed to)
the output as an SVG image.
Now what happens is the Servlet is submitted twice.
I can see this in the access.log
The 2nd access to the server is untraceable, don't know how or why
this happens.
This behaviour is seen only when the media type is "image/svg+xml".
Other case like "text/xml" there is no second access but again what I
get is only the text (which can be copied to a .svg file and opened)
If any of U have seen any such behaviour and cracked it, pl. help.
Thanks in advance.
Sudarsan.
Hi,
I'm trying to use xalan for SVG, things seems to go thru properly,
I get the SVG output but this SVG output comes as file download.
i.e. It comes with Open or Save buttons.
My xsl utput is something like this.
<xsl utput method="xml" omit-xml-declaration="no" media-type="image/svg+xml"/>
or (tried with both)
<xsl utput method="html" omit-xml-declaration="no" media-type="image/svg+xml"/>

Is that fine or I need to do add any other attributes ??
Is the problem described above because of the xsl utput??
Hi,
Is the XSL document cached by the browser.
I have a senario like XML is generated at the server
(while some report is requested). Now the XSL is also
at the server-side, I want this XML to be parsed at the
client side and I want to avoid downloading the XSL every
time!
Is this possible ??