AnirbanAgartala Bhattacharjee

Greenhorn
+ Follow
since Mar 10, 2006
Merit badge: grant badges
For More
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 AnirbanAgartala Bhattacharjee

Does anyone know how to create data source in TOMCAT 5.5.4? I successfully created data sources in earlier versions of TOMCAT. So if anyone has become able to do this, pls do post a response.
Hi all I am struggling to create Data Source in TOMCAT 5.5.4. Does anyone know the procedure to do that.

Anirban Bhattacharjee
17 years ago
Can anyone pls provide some help rgding SwitchAction? I am not becoming able to work it out.I 've defined two configuartion files , namely -
1. web.xml < Code fragment >

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>


<init-param>
<param-name>config/admin</param-name>
<param-value>/WEB-INF/struts-config-admin.xml</param-value>
</init-param>

1. struts-config.xml
<action-mappings>
<action
path ="/switch"
type ="org.apache.struts.actions.SwitchAction">
</action>
<action path="/Login123"
name="loginBean"
type="com.action.LoginAction"
input="/jsp/login.jsp"
scope="request"
className=
"com.customMapping.MyActionMapping"
parameter ="method">
<set-property property = "logResults" value = "true" />
<forward name="success"
path="/switch.do?page=/login.do&prefix=/admin"
/>
</action-mappings>

2. Now I ve defined struts-config-admin.xml as follows-

<action
path = "/switch"
type= "org.apache.struts.actions.SwitchAction" />

<action
path = "/admin/login"
name = "loginBean"
type = "com.action.admin.LoginAction"
>
<forward name = "success" path = "/jsp/switchAction.jsp" />
</action>


Now after creating this I am not getting the output.

Regards-
Anirban, Jnior member<SCJP>
18 years ago
I ve one jsp . And in this I have two submit buttons. If I code in a manner like this-
<input type = "submit" name = "method"
value ="<bean:message key ="button.name"/>"> <!-- [ button.name = name]-->
</input>
<input type = "submit" name = "method"
value ="<bean:message key ="button.address"/>"><!--[button.address=address ]-->
</input>. Then the two button labels are "name" nad "address". But if I code
<html:submit property ="method"> <bean:message key="button.name">.. . Then I get the button labels as "name" and "name adress". Why this is happening.How this can be prevented?
18 years ago