I got exception something like, the action '*.action' could not be loaded... Im not sure. But i think, im using '*.action' for both struts 1 and
Also should there be two different web.xml for struts 1 and struts 2.
if we use struts 1 and struts 2 both in our aplication; then our action should be different like; for struts 1---> it should be as '*.do' and for struts 2 ---> it should be '*.action'.
Im in great trouble i have to finish my module; but im exceeding my schedule. If possible again i will try to reproduce the exact error, which i got.
But what i need now is; I need to call actions from both struts.xml and struts-config.xml file; how should i differ it;
how should my web.xml file be...?
how to point the struts 1 and struts 2 actions....?
Thank you very much for you reply
Im looking forward for further replies.
Thank you very much, for your views on struts 1 and struts 2.
I will go through the link mentioned above. I will let you know the queries if I have any.
Now i can run both struts 1 and struts 2 action in a single application, by defining it in mapping as *.do for struts 1 and *.action for struts 2.
But now im using struts2 tag library, 'struts-tags.tld'. Before it was working fine, when i used '<s:tabbbedpanel> of struts 2 tag, but now its not coming also before i tried using <s:tree> tag and <s:tabbedPanel> it was working fine, but now it is not working. Can you please give me some idea of what may be wrong in my work.
if you need my 'jsp' page to see i can paste it here.
Looking forward for your reply.
Thanks and Regards
Also I need a sample code, to check the exception, that struts 1 '*.do' does not look with struts 2 struts.xml file and struts 2 '*.action' does not look struts 1 struts-config.xml file.
Thanks and Regards,
Is there any problems in using libraries, that are used for developing struts 1 application with struts 2. Like say im using several common jars and dwr jars and other webservice jars, and if we do struts 2 within the existing one, will there be any version compatibility.
Please suggest me some ideas; Im looking forward for your ideas.
Thanks and Regards,
Im using struts 2 '<s:tabbedPanel>' but for me tabs are not displaying; instead the div values given inside the tabbed panel is displayed;
If i see the firefox console; 'dojo is not defined' error is throwing.
Please help me in fixing this; but before i could display the tabbed pane with out any problem; but now im not sure what might have happend.
Thanks and Regards,
Originally posted by prabhu rangan:
In my firefox, console i see a error message as 'dojo is not defined', But the same application works fine for my friend.
Im using 'struts2.0.6 core.jar'. do i need to do something more.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ taglib prefix="s" uri="/tags/struts-tags" %>
<title>Struts 2 Login Application!</title>
<link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
<s:head theme="ajax" debug="true"/>
<s:form action="doLogin.action" method="POST">
<s:tree theme="ajax" id="root" label="Root">
<s:treenode theme="ajax" id="child1" label="<b>Child 1</b>" />
<s:treenode theme="ajax" id="subchild1" label="SubChild 1">
<s:treenode theme="ajax" id="subchild2" label="SubChild 2" />
<s:treenode theme="ajax" id="subchild3" label="SubChild 3" />
<s:treenode theme="ajax" id="child2" label="<b>child 2</b>" />
<s:textfield name="username" label="Login name"/>
<s assword name="password" label="Password"/>
<s:submit value="Login" align="center"/>
This is my sample jsp code: Jesus for the struts-tag.tld, i have defined it in my web.xml, and have mentioned that path in my jsp page.
Go through this page and let me know what im doing wrong.
Yes Jesus you are right. But i did everything correct. For me now If i call an action with *.do, it looks the struts 1 config file and if i call an action as *.action, it looks the struts 2 struts.xml file; That is not the problem for me, im using <s:tabbedPanel>, but the tab is not displayed for me and if i see the console, it shows an error 'dojo is not defined'.