sampy jagan

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

Recent posts by sampy jagan

To determine if a user has JavaScript enabled, the <noscript> tag suggested by Sunita seems to be a good option.
Alternatively you can create a HIDDEN form field in the HTML and call a JavaScript function on the onload event, altering the value of this HIDDEN form field. That way, if the form field has been altered, then we know JavaScript is enabled (else the JavaScript function that alters the HIDDEN form field wouldn't have been called).
Here is the sample code for Checking Borwser Name & Ver.

call the above functions on the body onload event�
Regards
Jagan
21 years ago
JSP
1. Are there any significant advantages in terms of performance of using JDO as an alternative for EJB1.1's-BMP.
2. How is the support for JDO in JBoss in the context of JDO using app server resources like Connection Pools & etc.
3. With EJB 2.0's LocalHome & LocalRemote (thereby eliminating distribution overhead). Is JDO heading towards a dead end.
4. Does JBoss or any other open source app servers support EJB 2.0.
Any insight into the above will be of great help. Thanks in Advance.
Regards
jagan
Why go for Gif parsing & etc when there are so many open source chart utilities, which apart from generating pie, bar & bla bla bla.. charts, have much more features like zooming, printing, saving & etc.
Have a look at the article :
http://www.javaworld.com/javaworld/jw-12-2002/jw-1227-opensourceprofile.html
You can download one from
http://www.object-refinery.com/jfreechart
Regards
jagan
21 years ago
JSP
The above change you have to make in Server.xml
Regards
jagan
21 years ago
JSP
What is the WebServer you are using?
If it is Tomcat you can try increasing the checkInterval attribute. It specifies how often to check for expired sessions, default is 60 Seconds.
Ex:
<SessionExpirer checkInterval="120" />
Regards
jagan
21 years ago
JSP
Probably this could be the usual problem associated with ServletOutputStream and JspWriter. You cant use both togheter.
Check out Davids reply
https://coderanch.com/t/282083/JSP/java/Writer-or-Stream-already-obtained
Regards
jagan
21 years ago
JSP
Sorry, Ignore my prev reply.
For Tomcat change the listings attribute of the StaticInterceptor to false in Server.xml
Ex:
<StaticInterceptor listings="false" />
Regards
jagan
21 years ago
JSP
Probably you wont find one Readymade.
you have to code one yourself, use ResultSet.getBytes(), or ResultSet.getObject()
Note that in Sybase the default SQL Select size is 32K. Larger images will be silently truncated, in that case use Statement.setMaxFieldSize(), Also see to it that you dont give a too large value which will make your JDBC run out of memory.
Regards
jagan
21 years ago
JSP
Internet Explorer 5.0 is not configured properly to download files in secure mode (https).
You will see the following message:
Internet Explorer cannot download my_file.xls from www.my_site.com. The file could not be written to the cache.
To configure Internet Explorer properly, you need to set the Do not save encrypted pages to disk option. Here is how you do it:

Go to the Internet Explorer Tools menu
Select Internet Options...
Select Advanced tab
Scroll down to Security
Check the Do not save encrypted pages to disk option
Note that this problem only occurs with files which require an external viewer, e.g. Word, Excel, or PDF. It does not occur with images and html that are viewed with Internet Explorer itself.
Regards
jagan
21 years ago
JSP
How about trying some JSP chart utilities.
See if the following article is of any use
http://www.javaworld.com/javaworld/jw-12-2002/jw-1227-opensourceprofile.html
Here is the opensource chart utility.
https://sourceforge.net/projects/jfreechart
If you are trying to generate Excel file in the server for each request and provide a link for the same, try assosiating their names with session id so as to them unique for each user. Also you may have to think of writing a Scheduler to clean up the numerous files you generated.
Regards
jagan
21 years ago
JSP
In Web.xml, set the listing attribute to false to disable the directory browsing.
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
Hope this helps...
Regards
jagan
21 years ago
JSP
Your server takes care of compiling the jsp pages, However if you want to override the defaults, you can pass parameters to the JSP Compiler. This you specify in the server specific deployment descriptor (for ex in weblogic it is weblogic.xml).
Comming to your question, you can set the precompile attribute to true to ensure that your pages are compiled at the deployment time.
Regards
Jagan
21 years ago
JSP
Cool... All the best...
21 years ago
JSP
Here is a useful link, have a look.... He is using hyperlink to call the .rpt files.
http://home.attbi.com/~pooja.mohan/files/hyperlink.html
21 years ago
JSP
Hi Joseph
Sorry for the delayed reply, I believe you are trying to convert the Crystal Rpt's .DLL files to .class files to be used in jsp pages, With ref to your prev question.
Well here are the steps for the same.
Crystal Reports come with a craxdrt.dll which is to be embedded in you page to which you pass the parameters and etc. To use it in your jsp page convert your .dll into java classes using microsoft SDK for java and embed those classes in you pages.
Follow the steps.
1. install microsoft sdk java 4.0.
2. jactivex <your>.dll
It should create a package in winnt\java\trustlib
3. compile all these .java files.
jvc -x- *.java
4. include this package in your jsp page.
Hope it helps.....
Regards
Jagan
21 years ago
JSP