Robin Rath

Greenhorn
+ Follow
since Jan 07, 2008
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 Robin Rath

I got reply from Ranch friends regarding implicitly invoking customized package. But i am not satisfied with the answer. If it is not possible then how java.lang is possible? If it is the job of compiler then java.lan also provides us a class called as Complier by using this we can change the action of java compiler as we wish. So can anybody give some more explanatory answer.
13 years ago
Hi All,

I know the definition of Abstract class and Inheritance, also the differences. But I need a clear view on these two concepts.That is
In which situation we will use Abstract class and Inheritance.
13 years ago
Hi All,
I want to write a package that should be imported automatically like java.lang. Can anybody help me!Its urgent please reply me soon, I will be greatfull to you.
13 years ago
Hi All,
I want to write a package that should be imported automatically like java.lang. Can anybody help me!Its urgent please reply me soon, I will be greatfull to you.
13 years ago
I have a little bit knowledge that i want to share with you. You can do the following changes
1. First you have to change your DTD in both web.xml and struts-config.xml file.
2. You have to add plug in details in your struts-config.xml if you are going to use any struts plugins in your project which is new to struts2.(Optional)
3. You have to add message resources properties file details in your struts-config.xml file. Because struts2 supports a wide range of properties files for internationalization purpose.
4. Not necessary to change in Actions and Form Beans.
5. You have to download struts1.2 supporting taglibrary files and replace the old struts1.0 or struts1.1 supporting taglibrary files.

I know this much only,may be this little bit information help you lot.
13 years ago
Yes you are right.
By using this tag in server.xml you are eligible for hot deployment but it is not version specific.
The main reason to use this tag is when we are developing a web application we may have to change/modify in our source code. So this needs to be complied and we have to stop the tomcat again restart.
So it seems like time taking and boaring. So we are using this context tag to dynamically take the modified class file, no need to stop the tomcat and restart.
13 years ago
Hi,

I think there is no error in your JSP page, after adding the no-cache in your header also it won't help you.
The error is in your bean. or any of your DAO class. check your list object in those classes. I can guess two things
i. You are creating ArrayList object in a wrong place. (OR)
ii. Closing your ArrayList object in a wrong place.
13 years ago
Actually you didn't mention the error details. So it is quite difficult to guess.
But i am thinking you may have mistake in thse lines.
use only one tag library bcz you are using only html tags so
<%@ taglib uri="/tags/struts-html" prefix="html" %> is enough.
Then instead of using this <html:form action="/first.do"> tag use only <html:form action="first.do"> no "/" slash is required bcz you are mentioning clearly first.do
use <html:text property="nick"/> instead of <input type="text" name="nick" />, bcz you are using struts specific html tags.

in struts-config.xml file just modify like below

<action-mappings>

<action
path="first.do"
name="formbean1"
type="actions.FirstAction"
validate ="false">
<forward name="success" path="/Second.jsp"/>
</action>

</action-mappings>

Try it. It may solve your problem.
13 years ago
As we know in struts framework ActionServlet is the default controller and also the first servlet which will take the request and according to the request it has enough inteligent to invoke the appropriate Action class.
My question is can i replace this ActionServlet with a Jsp page?. Because after compilation jsp page will acts as a servlet. But in struts every compenents are tightly bound so is it possible???
13 years ago
How to set attributes in ServletConfig object?
13 years ago