chandan kumar mitwaa

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

Recent posts by chandan kumar mitwaa

Hello Vivek

I am using eclipse. I created a new project using New Spring Project wizard. I had downloaded Spring framework 3 from the official spring site. Now I extracted it somewhere on my computer. Then I add the jar files in the folder "dist" to my project classpath.

The structure as it appears in my Project Explorer is like this:

SequenceGenerator

:Spring Elements
:Beans
>bean.xml
:src
:mit
>Main.java
>SequenceGenerator.java
@JRE System Library

#org.springframework.aop-3.0.0.RELEASE.jar
#org.springframework.asm-3.0.0.RELEASE.jar
#org.springframework.aspects-3.0.0.RELEASE.jar
#org.springframework.beans-3.0.0.RELEASE.jar
#org.springframework.context-3.0.0.RELEASE.jar
#org.springframework.context.support-3.0.0.RELEASE.jar
#org.springframework.core-3.0.0.RELEASE.jar
#org.springframework.expression-3.0.0.RELEASE.jar
#org.springframework.instrument-3.0.0.RELEASE.jar
#org.springframework.instrument.tomcat-3.0.0.RELEASE.jar
#org.springframework.jdbc-3.0.0.RELEASE.jar
#org.springframework.jms-3.0.0.RELEASE.jar
#org.springframework.orm-3.0.0.RELEASE.jar
#org.springframework.oxm-3.0.0.RELEASE.jar
#org.springframework.spring-library-3.0.0.RELEASE.libd
#org.springframework.test-3.0.0.RELEASE.jar
#org.springframework.transaction-3.0.0.RELEASE.jar
#org.springframework.web-3.0.0.RELEASE.jar
#org.springframework.web.portlet-3.0.0.RELEASE.jar
#org.springframework.web.servlet-3.0.0.RELEASE.jar
#org.springframework.web.struts-3.0.0.RELEASE.jar


Please help me on this, what am I missing?
14 years ago
Hi everyone,

I am new to Spring. This is my first Spring Application but I was unable to successfully run it. I have tried a lot but I am not getting the reason why it is not running.

Application name: SequenceGenerator


bean.xml


SequenceGenerator.java


Main.java




When I press the run button in eclipse the Output is :




Please help me on this.

14 years ago
I had to pay 2 questions for my negligence. From the very start I neglected "Java Patterns" and thought I would study that at last. But I made two questions wrong in the exam. This is really hurting me. I was hoping for above 95%. Learnt a lesson.

But I am happy, and sharing this with you is so healing. I look for some words from you rancher friends.

Thank you very much.
14 years ago
Hi friends,

I passed SCWCD with 92%, yesterday. Thank you all.

I would say, I love this forum very much.
14 years ago
Hi saurabh soni,

Welcome to JavaRanch!!

You should start a new topic for your query. Please note that your post is not relevant or related to this topic. Also any code must be enclosed between [ code][\ code] so that it will be automatically formatted for better readability.

Also refer to: How To Ask Questions On Java Ranch
14 years ago
I read EJB 3.0 only a little, from O' Reilly's Enterprise JavaBeans 3.0, 1.5 years back and I found it quite interesting. I am not sure of Spring. I browse through companies and most of them require Spring. I have seen only a few asking for EJB. Is it that Spring is widely used?

14 years ago
Hello Vivek,

Can I manage learning both hand to hand, at same time?? Or I should complete one and go for the other?? How long is it going to take, if I learn them separately?

However I want to add both to my basket, may be in some near future. For the time being I want to have an experience level which helps me deliver considerable output to my company. Please reply in these contexts.
14 years ago
Hi everyone,

I want to learn one out of Spring and EJB. I have a little idea about EJB 3.0. I am about to complete my graduation and take a job.
Please suggest me which one should I choose and why?

14 years ago

Maciek Mike wrote:Hi,

...In one of my mock questions I found this as the correct answer. Could someone please provide any example of vendor-specifiv authentication scheme?
Thanks in advance.




Please specify the source of the mock question. As such <auth-method> can take only one of the four values in DD.
Hello Ankit,

[E-Mail ID DELETED] is the email through which I bought a SCJP voucher priced at Rs 4000 last August.

This is the mail I would like to share here as receieved from the concerned Institution on 2/06/2009:
[E-Mail DELETED]


This time,[ie on 16/1/2010] I contacted them for SCWCD voucher on [email id removed] for SCWCD voucher and they replied through [E-Mail ID DELETED].

[E-Mail DELETED]


The other email [E-Mail ID DELETED]: I got a reply from this when i mailed an enquiry about sun vouchers to Edu_Enquiry_IN@sun.com, which in turn I got from http://in.sun.com/aboutsun/contact/training.jsp.




Below given are two email addresses:

[email Ids removed]

You can send a request for information on vouchers to the same. They are charging Rs 5500/- for a voucher with validity upto December 31, 2010. While NIITs, may cost not less than Rs 6000/-.

Happy Birthday
14 years ago

The answer on page 420 states that it will FAIL at request.
If the Bean exists on the request scope with value "Evan" why does it fail?
I am missing something but I don't know where.


I have tried above code but it does not fail. I think you too should try once.

<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="1.0">



Use version="2.0" instead.

Hope that it works.
Hello Tomasz


When you think of it - a URL needs to be rewritten only when it is pointing back to the same application, right? There's no point in passing a session ID to any other application (in fact - it might be insecure).



I have added this line as the last line in my code:




And both the containers are giving me the output:


Encoded 14: /SessionUsingURLRewriting/../nondir/nonexistent.jsp;jsessionid=ebab003123420dc7494140ed08c7




I don't think that the url is still pointing to the same application.
What do you say???