Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Umar Hathab Abdullah

Greenhorn
+ Follow
since Jan 23, 2003
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 Umar Hathab Abdullah

Hi,
I am having two JSP's one for adding and another editing a customer details. My Requirement is such that I can have one extra field in Edit jsp where as its not present in add JSp.
Here I want to use Single Action So I have created an action which subclasses DispatchAction.
I am also using Struts validator which will redirect the request to a page base on "input" attribute value from struts-config.xml.
Since my add and edit jsp's are different, I can't give a common jsp in the input attribute.
Please suggest whether I can handle this problem.
16 years ago
Hi,
I am using the struts menu..
<Menu name="AdministrationMenu" title="Administration" >
<Item name="add" title="Add" action="/preAddAdmin.do" target="_blank"/>
<Item name="edit" title="Edit/Modify" action="/selectAdmin.do?operation=edit" />
<Item name="delete" title="Delete" action="/selectAdmin.do?operation=delete" />
</Menu>
Here I want to open the link in new window..But this is not happening though I have target attribute set.
This is my menuDisplayer..
<menu:useMenuDisplayer name="ListMenu" bundle="org.apache.struts.action.MESSAGE" >
<menu isplayMenu name="AdministrationMenu"/>
</menu:useMenuDisplayer>
Please help me on this.
16 years ago
Hi,
I am trying to use my own login modue with orion server.
I have one myjaas.config file under c:/umar
I dont what seetings I have to do so that this file is read correctly. As of now I am getting "Unable to locate a login configuration" error.
in java.security file, I have this entry
login.config.url.1=file:${java.home}/lib/security/myjaas.config
I have also copied myjass.config into ${java.home}/lib/security folder.
Please write me whether I need to edit any of the orion xml file.
UMAR
16 years ago
Hi,
I am trying to use my own login modue with orion server.
I have one myjaas.config file under c:/umar
I dont what seetings I have to do so that this file is read correctly. As of now I am getting "Unable to locate a login configuration" error.
in java.security file, I have this entry
login.config.url.1=file:${java.home}/lib/security/myjaas.config
I have also copied myjass.config into ${java.home}/lib/security folder.
Please write me whether I need to edit any of the orion xml file.
UMAR
16 years ago
Hi,
I am using struts menu to display the items..
THis is my jsp.
====
<%@ taglib uri="struts-menu" prefix="menu" %>
<menu:useMenuDisplayer name="ListMenu"
bundle="org.apache.struts.action.MESSAGE">
<menu:DisplayMenu name="AdministrationMenu"/>
<menu:DisplayMenu name="DICMenu"/>
<menu:DisplayMenu name="SystemError1"/>
<menu:DisplayMenu name="ModifyRatesMenu"/>
<menu:DisplayMenu name="ViewCustomerDetailsMenu"/>
<menu:DisplayMenu name="ViewEDIStringMenu"/>
<menu:DisplayMenu name="TransmissionTestingMenu"/>
<menu:DisplayMenu name="ProductandServicesMenu"/>
<menu:DisplayMenu name="ALMMenu"/>
</menu:useMenuDisplayer>
===
When I run the jsp, I am able to see the elements but the css is not effected.In the view source, I can see class="menubar" but the code for including the css file is not created.
Please help me on this.
Under Web-inf/lib, I have struts-menu-2.2.jar which doesnt contain the css files. Should I extract the war file.
I am already running a application and I want to use the menu with that application..

Regards,
Umar...
[ edited to disable smilies -ds ]
[ April 16, 2004: Message edited by: Dirk Schreckmann ]
16 years ago
Hi,
Use the following Tag...

<html:javascript formName="LogonForm"
dynamicJavascript="true"
staticJavascript="false"/>
<script language="Javascript1.1" src="staticJavascript.jsp"></script>

Code for staticJavascript.jsp
=====
<%@ page language="java" %>
<%-- set document type to Javascript (addresses a bug in Netscape according to a web resource --%>
<%@ page contentType="application/x-javascript" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:javascript dynamicJavascript="false" staticJavascript="true"/>
======
16 years ago
Hi Marc,
I am actually using Struts Validator. Can I overwrite the validate method in this case?
UMAR
16 years ago
Hi,
Any updates/thoughts on this question?
Your help would be greatly appreciated.
Thanks.
UMAR
16 years ago
Hi,
I have the following in my Validator.xml.
<field property="categoryDescription" depends="required,maxlength">
<arg0 key="admin.categoryDescription"/>
<arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
<var><var-name>maxlength</var-name><var-value>255</var-value></var>
</field>
When I submit the form I am getting the following error message.
"Category Description cannot be greates than null characters"
Can any one tell me why I am getting null instead of 255.
Thanks,
Umar
16 years ago
Hi,
I am doing the server side validation using struts in my application. When I submit the form without entering the values for the mandatory fields, All the error messages are printed.
Can I anyone tell me how to display only the first message from ActionErrors using <html:errors> or other methods(Which I suppose I am not aware).
Thanks for your valuable time.
Regards,
Umar
16 years ago
Thanks Jeanne,
But will you tell me how this is possible when doing the client side javascript validation.
I would also like to know how we can hide the messages both for server side and client side validations.
I am new to validator and I wud greatly appreciate the help.
Regards,
Umar
16 years ago
Hi,
I have two text fields in my form. I am using the validator for the form validation.
What happens is that when I submit the form, I get the validation message for both the fields like " Name is required field,Password is required field".
Please write me how can I stop the validation so that I can display one one message.
Thanks,
Umar
16 years ago
Hi,
I have a web application deployed on Orion Servert. I am using Struts stuffs.
This is my validation.xml
<form-validation>
<formset>
<form name="employeeForm">
<field
property="name"
depends="required">
<arg0 key="employeeForm.name"/>
</field>
</form>
</formset>
</form-validation>
In the struts-config.xml, I have the following..
<global-forwards>
<forward name="employeeform" path="/employeeForm.jsp"/>
</global-forwards>

<!-- Action Mapping Definitions -->
<action-mappings>
<action path="/insertEmployee"
type="net.reumann.InsertEmployeeAction"
name="employeeForm"
scope="session"
input = "employeeform"
>
<forward
name="success"
path="/confirmation.jsp"/>
<forward
name="failure"
path="/confirmation.jsp"/>

</action>
</action-mappings>

When I submit my JSP, And If I dont enter the name field , Validation fails as expected but my request is not getting forwarded.
I am getting this message from the console.
Deligating Via Forward to 'employeeform'.
I am getting Internal Server error on the page.

When I enter the name field, the flow goes fine.
Please help me on this.
Thanks,
Umar
16 years ago
Hi,
(I want to use some utility methods in c ut tag)
Can any one tell me the struts equivalent of
<%= Utility.replaceHTMLTags("umar ") %>

Can I have use this syntax.
<c ut value="${Utility.replaceHTMLTags(UMAR)}" />
Please help me on this..
I am new to struts.
Regards,
Umar
16 years ago
Hi,
Thanx a lot.I have put into the PATH.It works fine.
A.Umar
17 years ago