Shaila Goyal

Greenhorn
+ Follow
since Apr 26, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Shaila Goyal

Hi All,
Has anybody used Spring Portlet MVC. Can you please share some online references to get started with the same.

And also need suggestion on How feasible it is to use for a portlet based Portal application.

Any other information/documentation if you have, please share.

Thanks
Shaila
Hi,
Thanks a lot for this valuable information.
18 years ago
Hi All,
Please suggest me a good book for developing Web Applications using Java, JSP,Java Script,XML etc etc.

A book that talks about ABC of the topic like - servers etc.

Thanks in Advance
Shaila
18 years ago
Hi,
the spelling is correct - by mistake i gave this name to my class thats why this entry in XML.
And thats what i wanted to mention - that i couldn't found the phone class in the book(the code for this class is not given in the book also i'm clear that what should go in that class if i want to code it myself)

Regards,
Shaila
Hi Satou,
Thanks for pointing such a silly mistake.
I'm not clear with this key thing given in my previous code which is

<entry key="src.java.phone">
<bean id="phoneEditor"
class="src.java.PhoneEdito">
</bean>
</entry>


and there is no such class as src.java.phone
becauseof that now i'm getting the exception:
org.springframework.beans.factory.BeanInitializationException: Could not load required type [src.java.phone] for custom editor; nested exception is java.lang.ClassNotFoundException: src.java.phone
Thanks a lot,

Its working now.
In the book - the required imports are not mentioned, that creates problems.

Currently i'm working on Chapter2 and under 2.4.4 Customizing property editors where it gives the below entry to add to configuration file:

<bean id="customEditorConfigurer" class="org.springframework.
beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="com.springinaction.chapter02.Phone">
<bean id="phoneEditor"
class="com.springinaction.02.PhoneEditor">
</bean>
</entry>
</map>
</property>
</bean>

when i run this code - i get
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'customEditorConfigurer' defined in class path resource [src/java/Hello.xml]: Bean class [org.springframework. beans.factory.config.CustomEditorConfigurer] not found; nested exception is java.lang.ClassNotFoundException: org/springframework/ beans/factory/config/CustomEditorConfigurer

What i'm missing here?

Thanks again,
Shaila
Hi,
I'm trying to run the following code from Spring In Action given under the topic Writing a bean Post Processor.but it doesn't compile: it says "Field" cannot be resolved to a type

package src.java;
import org.springframework.beans.factory.config.*;
import org.springframework.beans.*;
public class Fuddifier implements BeanPostProcessor {
public Object postProcessAfterInitialization(
Object bean, String name) throws BeansException {
Field[] fields = bean.getClass().getDeclaredFields();
try {
for(int i=0; i < fields.length; i++) {
if(fields[i].getType().equals(
java.lang.String.class)) {
fields[i].setAccessible(true);
String original = (String) fields[i].get(bean);
fields[i].set(bean, fuddify(original));
}
}
} catch (IllegalAccessException e) {
e.printStackTrace();
}
return bean;
}
private String fuddify(String orig) {
if(orig == null) return orig;
return orig.replaceAll("(r|l)", "w")
.replaceAll(" (R|L) ", "W");
}
public Object postProcessBeforeInitialization(
Object bean, String name) throws BeansException {
return bean;
}
}

Also "Registering Bean post Processors" topic is not so clear to me.

Please help
Shaila
I apologize for that. I was not aware of the process to put queries on JavaRanch.

Shaila
Hi Satou,
It seems that you are using Spring. I'm new to Spring and referring to the book - Spring In Action.
I'm not able to run the samle code given in this book.

Can you please help me getting started with the same.
We are looking forward to use Spring for a portlet based portal application.

Please suggest some good references - easy to follow as i'm a fresher.

Thanks in Advance,
Shaila
Hi,
I'm using Eclipse to run my code. What do i do to enable assertion? I'm using Java 1.4
I just tried giving a double value to a Float constructor , it does compile and run
A is the correct option
Hi Junilu,
I've added Spring.jar and commons-logging.jar to th lib folder but when i'm trying to compile the code which you've posted - it says 'ClassPathResource cannot be resolved to a type'.
do i need to put any other jar?
I'm very much a beginner in JAVA & Spring Framework so little confused about how the directory structure should be and i've got this book Spring in Action but i couldn't really run the examples given there.
Can you please refer some online links which can help or give a brief description about how it works.

Thanks & Regards
Shaila
Hi All,
I'm working on a portlet application with my team, we are looking for framework options to migrate our application to a suitable one.

most of the portlets we've on our site display HTML content stored in a content management system currently which is provided by Novell framework.Other do some processing based upon user inputs.

I'm looking for detailed documentation on Spring framework features so that we can decide upon to use or not to use Spring for our application.
any help is appreciated.

Regards,
Shaila