Ashok Mudgapalli

Greenhorn
+ Follow
since Jun 24, 2003
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 Ashok Mudgapalli

Hi Every body,
My dynavalidation works fine when the struts application is not modularized. When I did modularize my application into two modules (A and B) the validation fails. The validation form is in module B and the default module is A. When I try to come from A module to B module, the jsp mapped in module B displays all the fields fine. However, when I click the jsp without filling any fields, the DyanValidatorForm fails to do the validation and it takes me to next jsp. The same jsp shows validation errors when executed under stand alone (no modules) struts app. I am using struts 1.1 under WSAD 5.1.1. Can any body have any suggestions or direct me to a resource? It would be nice if there are some example where dynavalidation is done under struts modular application.
I appreciate your help. Thanks.
19 years ago
Hi every body,
Here is my situation... I have two modules in my application. We have developed default application (while ago) where we did not implement modularization. Now we have to develop another application which is going to become a module of first app. Following is the way I tried to modularize my app.
The web.xml looks like...
...
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/bb</param-name>
<param-value>/WEB-INF/struts-config-bb.xml</param-value>
</init-param>
..
The Action class...
under execute method.. {
mapping.findForward("bbModule");
}
The struts-config...
<action-mappings>
<action path="/secureLogon" type="com.LogonAction" name="secureLogonForm" scope="request">
<forward name="bbModule" path="/bb/accountSummary.do" contextRelative="true" redirect="true"></forward>
</action>
</action-mappings>
The struts-config_b....
<action-mappings>
<action path="/accountSummary"
type="com.AccountSummaryAction"
name="accountSummaryForm">
<forward name="success" path="/WEBINF/pages/bb/accountSummary/accountSummary.jsp" /> </action>
</action-mappings>
The AccountSummary class's execute method has..
return mapping.findForward("success");
Every thing works fine until I request accountSummary.jsp to display. I am developing under WSAD 5.1.1. In debug mode, I can see that I am returning from AccountSummary class (referenced in struts-config-bb.xml) with a "success" forward value. After this I will get "page can not be found" error page. The url on the browser points to correct path (http://localhost:8080/IBWS/bb/accountSummary.do). I tried to follow struts module switching example. I don't know what I am doing wrong. BTW..The "IBWS" is the root of the app. Without modules, this application is working fine. But when I want to switch between modules, I have problem.
Your help is greatly appreciated. Thank you very much.
19 years ago
I am new to ldap. How do I add a user to a particular group in ldap? I am using IBM ldap and my admin had created several groups to which I need to add users programatically. Can any one tell me how to do this?
Thanks!
20 years ago
I am new to ldap. How do I add a user to a particular group in ldap? I am using IBM ldap and my admin had created several groups to which I need to add users programatically. Can any one tell me how to do this?
Thanks
20 years ago
By the way, all my TLD declarations are included in a single jsp (ibwsHeader.jsp) and I included
<%@ include file="ibwsHeader.jsp"%> on each jsp.
This is where I am having problem. If I do TLd declarations directly without puting them in ibwsHeader.jsp, every thing works fine. I appreciate your feedback.
Thanks
20 years ago
I am in WSAD 5.0 and trying to use the code assist feature in jsp. It works fine with html tags, jsp tags but not with custom tags in jsp. I have jars in build path and corresponding TLDs in WEB-INF folder. I have no problem in poping up code assist in WSAD 4.0 with same code. But it fails in WSAD 5.0 with custom tags. On the other hand, the java code assist works fine in both environments.
My jsps have TLD references declared on top of each file.
Your valuable suggestions are highly appreciated.
Thanks
20 years ago
I found an answer. Here is what I am doing.
I redirect the response to a simple html, this html will have simple javascript code. This code first changes the history of the browser by using location.replace() method to current url. Then I do window.close() which closes the window without opening any dialog box.
20 years ago
Hey friends, Varun and Bibeault, Thanks for your replies. It's not the question of understanding the HTML. Nor I am new to html markup language. Here is my issue once more.
The window I am talking about is opened after clicking on an outlook email message (Intranet). This jsp gets created after the link posts to a servlet. This will become my main window. User enters some data on this jsp and submits to servlet. At this point I would like to close this window after successful completion of save.
I have been trying to do window.close() after successful submission but it opens a dialog asking the user "DO you want to close the window....?".
My issue is.. when ths user submits jsp to servlet, the response should close the window without any dialog box (assuming there is no error).
Again Thanks to both of you for your suggestions.
20 years ago
You are right, I would like to report any errors before I close the window. In my case, I use servlet to save the user's data to database. After successful save, I would like the servlet to emit window.close() response.
How I can emit a window.close() as part of the response of the servlet? Could you please provide some details?
Thanks
20 years ago
Can I close a browser window auomatically after posting to the servlet? Right now what I am doing is... after posting to servlet, I am redirecting the response to a jsp which has window.close()in <body> </body>. I am not sure whether this is the best way to do. I appreciate your feedback very much.
Thanks
20 years ago
I have been trying to load properties file into web app in WSAD using following code.
Properties p = new Properties();
InputStream i = Runtime.getRuntime().getClass().getResourceAsStream("connect.properties");
The location of the properties file is at Java source/connect.properties. When I try to load the properties file as above, I am getting null InputStream. I have tried to give absolute path to get to connect.properties with no success. The same code works fine in Eclipse but not in WSAD 4. May be I am missing some thing here! I would appreciate your help on this issue.
Thanks
20 years ago
Thanks for your input. I ended up adding the jar file in WEB-INF/lib directory and every thing works fine now.
20 years ago
I have created a web project in WSAD 4.0 and set it's build path with several needed jar files. When try to run a jsp using WTE server, I am getting an error "ClassNotFoundException". For example, my jsp is referencing Category class of Log4J.jar, the console gives me Category class not found exception. I have checked the jar for Category class and it exists in that jar. This jar is in build path of the project. I do not know why my project is not able to access jar(s) placed in project's build path. I would appreciate your help.
Thanks
20 years ago