Ajan Balakrishnan

Ranch Hand
+ Follow
since Jan 04, 2001
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 Ajan Balakrishnan

ANyBody got any idea?
Thanks
22 years ago
I don't know if this is the right place to post but i didnot see anywhere else to post. Sorry about that folks.
My question : i'm using jetspeed as my portlalling tool. Currently i have a 2 column layout which is the default. Is there any way we can change this to 3 columns and more. If so please let me know how.
Thanks folks as always
Ajan
[This message has been edited by Ajan Balakrishnan (edited October 10, 2001).]
22 years ago
What it meant was enclose the scriplet within double quotes
<jsp:include page="<%=avariable%>"/>

22 years ago
Hi folks,
I have a sample XML document,

How to delete <service id=1> from <package id=1> and insert a new service, say <service id=4> within <package id=1> using a java program. I know how to read a node and stuff but not delete and insert. Any sample code is greatly appreciated

Thanks
AJan
This is what i would have done but may not be the best.
your login.html call the validation.jsp on submit. Your validation.jsp calls a validation bean which contains a method which will return "true" or "false" depending on the success or failure of your validation. Now check the return value of that method inside your jsp. If it returns faLse throw an exception which will automatically take you to the error jsp page, if you have one defined in your jsp(or redirect it to error.jsp explicitly) else use <jsp:forward> tag to go to the next success page

Hope this helps.
Ajan
[This message has been edited by Ajan Balakrishnan (edited March 23, 2001).]
23 years ago
This is sample code i used for testing. I think this will give you a basic idea of how these things work. You can modify the code to suit your need
Interface Code

RMI Client Code

Implentation Code. Here is where you can make your database calls.


RMI server

FYI, UDBConnection,TmachineCmpntBean,TOutageLogBean are my connection and DB query beans
Let me know if this helps
Thanks
Ajan

[This message has been edited by Ajan Balakrishnan (edited March 15, 2001).]
23 years ago
Any one know of a tool to see the source code from a class file. Once i saw a tool which does exactly that but i couldn't seem to remember the URL now. Any Body got ideas.
I apologize if this post is in a wrong discussion group
Thanks
Ajan
23 years ago
Did yout try URL encoding
for example in your case your parameter value will be "hello%20xyz%20how%20r%20u?" where %20 is for space
OR
<a href=**\myservlet?param=URLEncoder.encode(hello xyz how r u)</a>
if you are using jsp. Remember to decode it while retreiving the value
I'm not sure if this is what you are looking for but worth giving a chance
AJan

[This message has been edited by Ajan Balakrishnan (edited March 10, 2001).]
23 years ago
Ben,
See the post https://coderanch.com/t/263541/java/java/Java-Mail-Attachments
Here I gave a code for sending attachments using Javamail. For multiple attachments add more bodyparts as required.

Ajan

[ UD: changed URL to the current format ]
[ March 10, 2006: Message edited by: Ulf Dittmer ]
23 years ago
If you are using JavaMail you have to use MimeMultipart , MimeBodyPart API's. The following is a sample code to send a file attachment

Let me know if this helps

Ajan

[This message has been edited by Ajan Balakrishnan (edited March 05, 2001).]
23 years ago
Which o/s are you using
WINNT or WIN98/and up
WIn98 and up
---------
open up autoexec.bat file
add this line
SET CLASSPATH=c:\jakarta-tomcat-3.2.1\lib\servlet.jar
reboot the system

WINNT
-----
settings -->control panel-->system-->environment variables
and set your classpath(define a variable CLASSPATH and its value as c:\jakarta-tomcat-3.2.1\lib\servlet.jar)

Let me know if u have any more problems
Ajan
23 years ago
Yes. You need to add one "servlet.jar" file in your CLASSPATH. This is where all your servlet API's are kept.You can find this jar file in your servlet's engine "lib" directory.
For tomcat3.2.1 it will be under jakarta-tomcata-3.2.1\lib\

Hope this helps
Ajan
23 years ago