sha ram

Greenhorn
+ Follow
since Nov 25, 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 sha ram

I could not find validation.xml under the web-inf directory. Please help me . How should I get this file? I work on websphere studio 5.0
Thanks
20 years ago
Try this....
<%
ArrayList liste = new ArrayList();
liste.add("apple");
liste.add("grapes");
java.util.HashMap h = new java.util.HashMap();
h.put("MyID",liste);
request.setAttribute("attr",h);
%>
<logic:iterate id="it" name="attr">
<logic:iterate name="it" property="value" id="order">
<bean:write name="order" />
</logic:iterate>
</logic:iterate>
20 years ago
Is there a nested logic iterate tag? If so, Please give me an example.
20 years ago
I could only see below files under web-inf/lib.
Is there a way I am suppose to add this file. Please help me.
ibm-web-bnd.xmi
ibm-web-ext.xmi
struts-bean.tld
struts-config.xml
struts-html.tld
struts-logic.tld
struts-nested.tld
struts-template.tld
struts-tiles.tld
web.xml
20 years ago
Hello
I want to use the validation in my page. I have no idea where this validation.xml is? Can you guide me.
20 years ago
Thanks. I tried removing all other parts of the code and just added what you sent. It works fine for me too.
Can you help me with the code below. I need to put the below code using iterate tag.
<%
/*
java.util.HashMap tps = submitForm.getToppings();
Set keys = tps.keySet();
Iterator I = keys.iterator();
while(I.hasNext())
{
String myKey = (String)I.next();
String myValue = (String)submitForm.getTopping(myKey);
out.println(myKey +" "+ myValue);
}*/
%>
20 years ago
<%
Map map = new HashMap();
map.put("seven", new Integer(7));
map.put("nine", new Integer(9));
map.put("thirteen", new Integer(13));
request.setAttribute("map",map);
%>
<logic:iterate id="hs" name="map">
<bean:write name="hs" property="key"/>=
<bean:write name="hs" property="value"/>
</logic:iterate>
I found this sample code in net. But I get error. How to resolve?
[Servlet Error]-[Cannot find bean hs in any scope]: javax.servlet.jsp.JspException: Cannot find bean hs in any scope
20 years ago
<html:html>
<HEAD>
<%@ page import="java.util.*" %>
<%@ page import="test.struts_example.*" %>
<TITLE></TITLE>
</HEAD>
<jsp:useBean id="submitForm" class="test.struts_example.SubmitForm"
scope="request"></jsp:useBean>
<BODY>
P>Thank you
<%=request.getAttribute("name")%>
</P>
************************************************
<%
java.util.HashMap tps = submitForm.getToppings();
Set keys = tps.keySet();
Iterator I = keys.iterator();
while(I.hasNext())
{
String myKey = (String)I.next();
String myValue = (String)submitForm.getTopping(myKey);
out.println(myKey +" "+ myValue);
}
%>
*****************************
I want to use iterator tag instaed of the code marked between ****
Please help asap.
</BODY>
</html:html>
20 years ago
Can some one help me in using logic tag in struts.
I have a simple form and one of the fields returns Hashmap
In my action form class I have getHashmap()..returns hashmap
I have a result jsp page which should retrieve the values from hashmap.
How to do this using logic tag?
[ December 11, 2003: Message edited by: sha ram ]
20 years ago
What is meant by publishing to the server?
20 years ago
What is the difference between web.xml and application.xml file. What is the purpose of these files.
20 years ago
Hi
I have the IBM websphere studio application developer 5.0 and I am trying to run the test server and it gives me eror saying An error occurred starting, DefaultEAR
How should I rectify this error?
Or brief me about the things I need to take care of when executing webapplication on test server. What should I do with DEfaultEAR?

[11/25/03 13:24:31:838 EST] 5e42b6e5 ApplicationMg E WSVR0101W: An error occurred starting, DefaultEAR
[11/25/03 13:24:31:858 EST] 5e42b6e5 ApplicationMg A WSVR0217I: Stopping application: DefaultEAR
[11/25/03 13:24:32:159 EST] 5e42b6e5 ApplicationMg A WSVR0220I: Application stopped: DefaultEAR
[11/25/03 13:24:37:296 EST] 5e42b6e5 ApplicationMg A WSVR0217I: Stopping application: IBMUTC
[11/25/03 13:24:37:326 EST] 5e42b6e5 WebContainer A SRVE0170I: Stopping Web Module: IBM Universal Test Client.
[11/25/03 13:24:37:476 EST] 5e42b6e5 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: destroy
[11/25/03 13:24:37:506 EST] 5e42b6e5 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: destroy
[11/25/03 13:24:37:676 EST] 5e42b6e5 ApplicationMg A WSVR0220I: Application stopped: IBMUTC
[11/25/03 13:24:38:397 EST] 5e42b6e5 WsServer E WSVR0003E: Server server1 failed to start
com.ibm.ws.exception.RuntimeError
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:275)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:243)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:352)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:235)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:131)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
---- Begin backtrace for nested exception
com.ibm.etools.archive.exception.NoModuleFileException: A file does not exist for module element having uri: HelloWorld.war
at com.ibm.etools.commonarchive.impl.ModuleRefImpl.checkType(ModuleRefImpl.java:803)
at com.ibm.etools.commonarchive.impl.ModuleRefImpl.initModuleFileFromEAR(ModuleRefImpl.java:292)
at com.ibm.etools.commonarchive.impl.ModuleRefImpl.getModuleFile(ModuleRefImpl.java:279)
at com.ibm.ws.classloader.ClassGraph.addModule(ClassGraph.java:74)
at com.ibm.ws.classloader.ClassLoaderManager.initialize(ClassLoaderManager.java:126)
at com.ibm.ws.classloader.ClassLoaderManager.<init>(ClassLoaderManager.java:103)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:485)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
[11/25/03 13:24:38:457 EST] 5e42b6e5 WsServer E WSVR0009E: Error occurred during startup
20 years ago