This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!

Sowrabha

Greenhorn
+ Follow
since Feb 07, 2005
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 Sowrabha

I have a JSP where i try to print a XML data.

PrintWriter out= response.getWriter();
out.write("xml version='1.0'?><?xml-stylesheet type='text/xsl' href='book.xsl'?><students> <student><name>Thomas</name><place>Delhi</place> <number>1111</number> <mark>78</mark></student>></students>"")

After the Jsp executes, I see only the data in the screen. I should see a table along with the data(tables are defined in the XSL file).
Same code works when we use PrintWriter from with in the servlet.It didnt work inside a JSP.
Please suggest me what i am missing.


XSL file is below : <?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="yellow">
<tr>
<th>Name</th>
<th>Place</th>
<th>Number</th>
<th>Mark</th>
</tr>

<xsl:for-each select="students/student">
<tr>
<td><xsl:value-of select="name"/> </td>
<td><xsl:value-of select="place"/> </td>
<td><xsl:value-of select="number"/> </td>
<td><xsl:value-of select="mark"/> </td>
</tr>
</xsl:for-each>
13 years ago
JSP
Hi All,


I wanted to know how to perform a fieldwise validation using validator framework.


Suppose i have a login form with userid and password and a Login Button
I have set 3 properties REQUIRED,LENGTH and MASK for each of these fields.

Now if i enter only userID that too invalid.(with just a letter) and hit the Login Button,
It will not validate the form for LENGTH and MASK for userID.It will only validate REQUIRED property for userID. Since it is satisfied it starts validating Password. and then once u enter a password then it starts validating for LENGTH of user ID,follwed by LENGTH of passwd .
Finally it validates MASK for userID and then MASK for passwd.

I wanted to know how we can restrict the validation of usedID first.and only if it is complete proceed for validating Passwd.?

Thanks,
Sowrabha
13 years ago
I am getting the following exception while after i configure my application in TestEnvironmentserver.5.0 and start it.
I am using WSAD5.1.
Also I have set the class loader policy of the application ARENT_LAST
and the classloader policy of the web ARENT_FIRST

Did any body come accross this error.?

[PresentationServicesWeb] [/PresentationServices] [Servlet.LOG]: JSP 1.2 Processor: init
[3/30/06 13:50:47:933 MST] 4c9c5218 WebGroup I SRVE0180I: [PresentationServicesWeb] [/PresentationServices] [Servlet.LOG]: SimpleFileServlet: init
[3/30/06 13:50:47:963 MST] 4c9c5218 WebGroup I SRVE0180I: [PresentationServicesWeb] [/PresentationServices] [Servlet.LOG]: InvokerServlet: init
[3/30/06 13:50:48:103 MST] 4c9c5218 WebGroup E SRVE0020E: [Servlet Error]-[ActionServlet]: Failed to load servlet: java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: com.ibm.ws.commons.logging.TrLogFactory
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.apache.struts.action.ActionServlet.<clinit>(Unknown Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:262)
at java.beans.Beans.instantiate(Beans.java:233)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1272)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:400)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:218)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1004)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:246)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
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:97)
13 years ago
Hi
I have a XML response which needs to be converted to String object and set it in any scope and then retrieve the same from my JSP.( what is the escape sequences for the xml tags in the jsp)
How do i do it?Please help

Regards,
Sowrabha
I had a generic question.

I have a xml and xsl and i am getting a html output of it.
I am using a struts based application.So when i get the output html page i am not able to use any struts tag in it.
I wanted to know if using JSTL will help me..
13 years ago
JSP
hi sandeep,
I agree with you.Lets all prepare our owns points chapterwise and share it.

Sowrabha
SCJP1.4
SCWCD in progress
Thanks Rufus, for the mock exam link and your suggestion.
Regards
Sowrabha
congrats!!! great score...
Tell me some good mock exam sites for SCWCD.


Sowrabha
SCJP1.4,preparing for SCWCD
My html page which is supoosed to perform a search is not getting submitted , when using frameset
.without using frameset, the page submits.
i am getting the following error while running my application in wepshere

TRAS0014I: The following exception was logged org.xml.sax.SAXParseException: The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232).

Please help
14 years ago
I am getting the following error .
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found.

I get this error,when i click on a button to go to another page from the main page.
14 years ago
Thank you.That solved my purpose.
14 years ago
what does this mean?
ExceptionUtil E CNTR0020E: Non-application exception.which is mentioned.



2/8/05 12:10:11:446 GMT+05:30] 4e83d40c RequestProces I org.apache.struts.action.RequestProcessor Processing a 'GET' for path '/LoanAmendSearch'
[2/8/05 12:10:12:196 GMT+05:30] 4e83d40c SystemOut O The current mode isaccountSearch
[2/8/05 12:10:12:196 GMT+05:30] 4e83d40c SystemOut O in if block
[2/8/05 12:10:12:196 GMT+05:30] 4e83d40c SystemOut O It is in the outer COMMON SEARCH LOOP
[2/8/05 12:10:12:196 GMT+05:30] 4e83d40c SystemOut O in accountSearch
[2/8/05 12:10:14:196 GMT+05:30] 4e83d40c SystemOut O Inside Session impl Searchmethod!!!
[2/8/05 12:10:14:196 GMT+05:30] 4e83d40c SystemOut O Inside Session impl Searchmethod After getDataAcces!!!
[2/8/05 12:10:19:009 GMT+05:30] 7a54d425 ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "searchMakerAccounts" on bean "BeanId(LoanAmendSearch#LoanAmendSearchEJB.jar#LoanAmendSearch, null)". Exception data: java.lang.OutOfMemoryError

[2/8/05 12:10:39:009 GMT+05:30] 7a54d425 LocalTransact E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[2/8/05 12:10:40:916 GMT+05:30] 7a54d425 SystemOut O In Remote Exception of delegateclass
[2/8/05 12:10:40:931 GMT+05:30] 7a54d425 SystemOut O in action class Sys exception
[2/8/05 12:10:40:931 GMT+05:30] 7a54d425 SystemErr R com.rak.loans.core.exception.RAKSysException
[2/8/05 12:10:40:931 GMT+05:30] 7a54d425 SystemErr R at com.rak.loans.amend.web.delegate.LoanAmendSearchDelegate.searchMakerAccounts(LoanAmendSearchDelegate.java:77)
[2/8/05 12:10:40:931 GMT+05:30] 7a54d425 SystemErr R at com.rak.loans.amend.web.action.LoanAmendSearchAction.execute(LoanAmendSearchAction.java:124)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[2/8/05 12:10:43:822 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
[2/8/05 12:10:43:853 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[2/8/05 12:10:43:869 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
[2/8/05 12:10:43:869 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[2/8/05 12:10:43:900 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[2/8/05 12:10:43:900 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
[2/8/05 12:10:43:900 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[2/8/05 12:10:43:900 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R Caused by:
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
java.lang.OutOfMemoryError
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R java.rmi.RemoteException: ; nested exception is:
java.lang.OutOfMemoryError
[2/8/05 12:10:43:931 GMT+05:30] 7a54d425 SystemErr R java.lang.OutOfMemoryError
[2/8/05 12:12:20:949 GMT+05:30] 3c86543a HttpTransport A SRVE0172I: Stopped transport http on port 9,080.
[2/8/05 12:12:23:215 GMT+05:30] 3c86543a HttpTransport A SRVE0172I: Stopped transport https on port 9,443.
14 years ago