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

divya sharma

Ranch Hand
+ Follow
since Jan 25, 2007
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 divya sharma

Hi,

I have one PhoneFax table on which we can insert phone no as well as fax no. Now, my problem is how to insert both phone and Fax no in one shot.I tried but it insert single row at a time. Please suggest me how to do it.

Here is my Code:
Hi,

I am new to hibenate. I want to extract list of countries from the country table(DB). I am using JSP & struts as front end.

Please guide the basic concept how to call country list in my application.

Thanks!!
Hi,

Thanks for the reply!!

Now, I have mention the name of the sequence as :

<generator class="sequence">
<param name="sequence">customer_id_seq</param>
</generator>

but still it's showing me same error.

Thanks
Hello
I am facing some problem in setting the primary key value in database.

I am using Oracel10g as my DB and front end is JSP,struts and using hibenate.In customer.hbm.xml I have mention the primary key i.e customerID as

<
class name="gov.kda.JRECS.Customer.DAO.Customer " table="CUSTOMER" schema ="JRECS">
<id name="customerId" type="java.lang.Long">
<column name="CUSTOMER_ID" precision="6" scale= "0" />
<generator class="native" >
</generator>
</id>

But when ever I try to set it shows me an error :

13:57:29,640 INFO [STDOUT] 13:57:29,640 ERROR [CustomerDAO] save failed
org.hibernate.exception.SQLGrammarException
: could not get next sequence value
at org.hibernate.exception.SQLStateConverter.convert(
SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(
JDBCExceptionHelper.java:43)
at org.hibernate.id.SequenceGenerator.generate(
SequenceGenerator.java:96)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(
AbstractSaveEventListener.java:91)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(
DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(
DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(
DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(
DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(
DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(
SessionImpl.java:530)
at org.hibernate.impl.SessionImpl.save(
SessionImpl.java:518)
at org.hibernate.impl.SessionImpl.save(
SessionImpl.java:514)
at gov.kda.JRECS.Customer.DAO.CustomerDAO.save(
CustomerDAO.java:37)
at gov.kda.JRECS.Customer.struts.Action.CustomerAction.execute(
CustomerAction.java:79)
at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(
ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(
ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(
HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(
HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by:
java.sql.SQLException: ORA-02289: sequence does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(
DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(
T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(
T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(
T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(
T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(
OracleStatement.java:965)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(
T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
OracleStatement.java:1051)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(
OraclePreparedStatement.java:3026)
at org.hibernate.id.SequenceGenerator.generate(
SequenceGenerator.java:75)
... 35 more
13:57:29,640 ERROR [STDERR]
org.hibernate.exception.SQLGrammarException: could not get next sequence value
at org.hibernate.exception.SQLStateConverter.convert(
SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(
JDBCExceptionHelper.java:43)
at org.hibernate.id.SequenceGenerator.generate(
SequenceGenerator.java:96)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(
AbstractSaveEventListener.java:91)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(
DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(
DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(
DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(
DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(
DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(
SessionImpl.java:530)
at org.hibernate.impl.SessionImpl.save(
SessionImpl.java:518)
at org.hibernate.impl.SessionImpl.save(
SessionImpl.java:514)
at gov.kda.JRECS.Customer.DAO.CustomerDAO.save(
CustomerDAO.java:37)
at gov.kda.JRECS.Customer.struts.Action.CustomerAction.execute(
CustomerAction.java:79)
at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(
ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(
ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(
HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(
HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by:
java.sql.SQLException: ORA-02289: sequence does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(
DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(
T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(
T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(
T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(
T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(
OracleStatement.java:965)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(
T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
OracleStatement.java:1051)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(
OraclePreparedStatement.java:3026)
at org.hibernate.id.SequenceGenerator.generate(
SequenceGenerator.java:75)
... 35 more
13:57:29,656 INFO [STDOUT] could not get next sequence value
As I dont create a Table I dont know the name of generator.
Please help me to find where I did mistake.

Thanks!!
Hi,

I am trying to use sequence from the oracle..

My customer.hbm.xml



Here is the error I get:


Please help!!1

Thanks
In my system there is java5.0 therefor my can run jboss as per the requirment of jboss4.2 but in my application I am using java1.4 does it effect??

Thanks
12 years ago
Please elaborate some more coz i could not find much about it in google.

Thanks!!!
12 years ago
Hi,

What is POJO? I was using EJB in my project then some body suggest me to use POJO.

Thanks

Divya
12 years ago
Hi,

I am using JBOss 4.2.0GA and my java version is 1.4. Here is my oracle-ds.xml code

"kda" is the name of the database.

Thanks!!
12 years ago
I ahve wroote path on html like this :

<html>
<head>
<title>header.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">




<link rel="stylesheet" href="../Theme/Master.css" type="text/css"></link></head>

<body>
<table width="100%" border="0">
<tr>
<td width="70%" rowspan="3">
<img src="C:\Chetan\kdaWorkspace2\JRECSWeb\WebRoot\static\logo.png"></img>

<td width="50%" id="headerTD">
<a href="">Home</a>  
<a href="">Main Menu</a>  
<a href=""> Help</a>  
<a href="">Logout</a>
</td>
</tr>

</table>


</body>
</html>

and calling this file on jsp as : <%@include file="\static\header.html"%>

Still not displaying image


thanks
12 years ago
JSP
Hi,

Can oyu tell me how to connect JBOSS with oracle 10g... I tried to connect it but it fail... I copy oracle.jar to jboss and oracle-ds.xml to server>> deploy folder... getting error:

21:16:31,906 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

21:16:31,906 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2

21:16:31,906 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

21:16:31,906 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml

org.jboss.deployment.DeploymentException

: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException : The processing instruction target matching "[xX][mM][lL]" is not allowed.)
at org.jboss.deployment.XSLSubDeployer.findDd(

XSLSubDeployer.java:231)
at org.jboss.deployment.XSLSubDeployer.init(

XSLSubDeployer.java:161)
at org.jboss.deployment.MainDeployer.init(

MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(

AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(

ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(

URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(

URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(

AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(

AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(

ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(

ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(

ServiceController.java:978)
at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(

ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)

at org.jboss.deployment.SARDeployer.start(

SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(

MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(

MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(

ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(

Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(

AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(

ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(

Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(

AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(

MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(

MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)

at org.jboss.system.server.ServerImpl.doStart(

ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(

ServerImpl.java:362)
at org.jboss.Main.boot(

Main.java:200)
at org.jboss.Main$1.run(

Main.java:508)
at java.lang.Thread.run(Unknown Source)

Caused by:

org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)

at org.jboss.deployment.XSLSubDeployer.findDd(

XSLSubDeployer.java:227)
... 68 more

21:16:32,281 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'

21:16:32,468 INFO [A] Bound to JNDI name: queue/A

21:16:32,468 INFO [B] Bound to JNDI name: queue/B

21:16:32,468 INFO [C] Bound to JNDI name: queue/C

21:16:32,468 INFO [D] Bound to JNDI name: queue/D

21:16:32,468 INFO [ex] Bound to JNDI name: queue/ex

21:16:32,484 INFO [testTopic] Bound to JNDI name: topic/testTopic

21:16:32,484 INFO [securedTopic] Bound to JNDI name: topic/securedTopic

21:16:32,484 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

21:16:32,484 INFO [testQueue] Bound to JNDI name: queue/testQueue

21:16:32,546 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093

21:16:32,562 INFO [DLQ] Bound to JNDI name: queue/DLQ

21:16:32,671 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

21:16:32,687 INFO [TomcatDeployer] deploy, ctxPath=/JRECSWeb1, warUrl=.../deploy/JRECSWeb1.war/

21:16:32,968 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/

21:16:33,062 ERROR [URLDeploymentScanner] Incomplete Deployment listing:


--- Incompletely deployed packages ---

org.jboss.deployment.DeploymentInfo@ba142ef1 { url=file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml }

deployer: org.jboss.deployment.XSLSubDeployer@19ee8a

status: null

state: FAILED

watch: file:/C:/jboss-4.2.1.GA/server/default/deploy/Oracle-ds.xml

altDD: null

lastDeployed: 1193192191906

lastModified: 1193192191906

mbeans:




21:16:33,156 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

21:16:33,171 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

21:16:33,171 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 11s:296ms

Thanks
Divya
12 years ago
Hi Bear,

Thanks for the reply!!!

But my image is still not displayed . My image is on WebRoot >> Static >> Logo.png.

And my JSP is in WebRoot >> Customer>> customer.JSP. i have mention the path on header.html i.e. WebRoot >>Static >> header.html.
is like "<img alt="KDA" src="/WebRoot/static/logo.png" width="186" height="74">" But still it's not displayed

Thanks
12 years ago
JSP
What's a server relative path? My complete path toward my image is "C:\Chetan\kdaWorkspace\JRECSWeb1\WebRoot\static\logo.png".

And I have mention on my header.html is "../static/logo.png".

Thanks

Divya
12 years ago
JSP
Hi All,

I have create a JSP and for it's header ;calling it's header.html. There is a image in Header.html.On every jsp there is this header.html and on my main jsp there are sevral link.

When I write address of image like this :<img alt="KDA" src="../static/logo.png" width="186" height="74"> Image will displayed when user click on the link and not on that main page and when I write address link this <img alt="KDA" src="/static/logo.png" width="186" height="74"> image will display only on main page not on other when I click on link...

Please Help!!!

Thanks
Divya
12 years ago
JSP