vishwanath nadimpally

Ranch Hand
+ Follow
since Jan 25, 2005
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 vishwanath nadimpally

Thank you. I escaped it and it works as it should.
15 years ago
I am testing a regular expression for telephone number validation. I am getting the desired results in all cases except in a few cases.
This test will work for phone numbers of format:
1)111-222-3333
2)111.222.3333
3)111 222 3333
4)111.222-3333 or 111-222.3333
5)1112223333
6)(111)-222-3333
7)(111).222-333 or (111)-222.3333
8)111 222 333
9)(111) 222 3333


But it works for numbers like: 111#222*3333.
Can anyone tell me what's wrong with the expression?

Thanks.
15 years ago
I am running Jboss 4.0.2. When ever I am logged in to my work network I am using their smtp server. If I am using remote login, the fire-wall prevents me from using the smtp.

So I am trying to use Gmail smtp with JBoss. I tweaked my mail-service.xml to look like this:


This doesnt work. I keep getting this error:

class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first 14sm45889362wrl

I need help please..
15 years ago
I am preparing for SCJP and have 2 doubts regarding interfaces.

1)An interface is like a 100% abstract class. For an abstract class, the compiler provides a default constructor when a concrete subclass of the abstract class is instantiated.

So similarly does the compiler provide a default constructor for the interface when the first concrete class that implements an interface is instantiated?

2) What is the class heirarchy for an interface? Like every object in java extends java.lang.Object, is there a superclass for an interface (Not the class that is implementing the interface).

Appriciate any help.
15 years ago
I know this might sound stupid, but is there a size limit on the amount of data that can be stored in a HttpSession object?

I am trying to cache some data for an application that I am using.I am not running an application server, just tomcat 5.5.12. This application uses GIS (Geographical Information System) maps which will be associated with a users location.Each image is about 250x400. Also these maps may be used for subsequent access. These maps reside inside a legacy system(server).

What is the best strategy to cache these maps on to a jsp/servlet framework?
15 years ago


derrick tan:
I already import all the packages that i want to use and this is a standard package that my supervisor gave


what do you mean by 'this is a standard package. There are no standard packages in java. They are not like zip files or jar files that you can add one to another one.

You would have to import all packages needed with separate import statements.
Also, if you are using many classes from the same package you can do so by using the '*' like import com.example.*;
15 years ago
JSP
This is what you are looking for :

http://www.webvisions.com/jsp/

http://www.vsplash.com/

http://www.indianhosting.net/

I cannot guarantee that any of them are good though.
15 years ago

Originally posted by Bear Bibeault:



good point!
15 years ago


I generally accomplish this by defining a name for each page and use a properties file to associate paths to the names. That way, if a path changes, all I need to do is to change the properties file



I do the same, with my jsp's defined as public static final String inside an interface and have my controllers implement the interface.
15 years ago
fname = new String(fname.getBytes(),"UTF-8");

Why do you need this? you can just use the file name as it is.
15 years ago
A jsp is meant for presentation.

The normal practice is to have javabeans which are like special java classes with properties and getters and setters for these properties and have java classes which make the actual database calls to get and set the values for a java bean.

The normal practice is to instantiate your beans inside a servlet or jsp and put them in session as you need them.
15 years ago
JSP
Hi Raghu and Jonathan,
can you elucidate on the 'interceptors' in the new EJB3 and does your book throw light on this new feature?

Also I have read that the new EJB3 has changed the way enterprise beans are called and accessed by replacing the service locator pattern that utilizes JNDI with something called 'Dependency Injection Pattern' (Courtesy: Java World). Can you explain what this means please.
[ October 24, 2006: Message edited by: vishwanath nadimpally ]
replace "http://java.sun.com/jstl/core" with "http://java.sun.com/jstl/core_rt" and see if it works
15 years ago
JSP
This is a nice article on how to fix the logout problem. http://www.javaworld.com/javaworld/jw-09-2004/jw-0927-logout.html
15 years ago
If you are using struts, there is a struts-layout tag library which gives you various options like grids, panels etc. To findout more go here: http://struts.application-servers.com/
15 years ago
JSP