Custom tag lib, tomcat server cant parse descripter file
Hi there, I'm working on custom tag libraries, and I have created a simple tag which prints a string when it is called from a jsp file. And I have created a descriptor file for that perticular tag and also created a jsp file which is using the tab lib that I have created, I have placed all these files in their corresponding files, well the problem is when I'm trying to call that jsp file it says the server can't parse the tags.tld file, because <urn></urn> must be declared. And can anybody throw some light on this! it would be much of help from you side, regards, Raasi
I have pasted all the files with the error message please have a look
************** Descriptor file ****************88
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<!-- a tag library descriptor -->
<taglib>
<!-- after this the default space is "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd" -->
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>csajsp</shortname>
<urn></urn> <!-- problem is here. -->
<info>
A tag library from Core Servlets and JavaServer Pages, http://www.coreservlets.com/.
</info>
<tag>
<name>example</name>
<tagclass>coreservlets.tags.ExampleTag</tagclass>
<info>Simplest example: inserts one line of output</info>
<bodycontent>EMPTY</bodycontent>
</tag>
<!-- Other tags defined later... -->
</taglib>
The JSP file which is using that descriptor file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<%@ taglib uri="csajsp-taglib.tld" prefix="csajsp" %>
<TITLE><csajsp:example /></TITLE>
<LINK REL=STYLESHEET HREF="JSP-Styles.css" TYPE="text/css">
</HEAD>
<BODY>
<H1><csajsp:example /></H1>
<csajsp:example />
</BODY>
</HTML>
error message from Tomcat4.1 server
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: XML parsing error on file /jsp/csajsp-taglib.tld: (line 9, col 7): Element type "urn" must be declared.
at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:189)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:247)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:183)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:799)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
Apache Tomcat/4.1.12
********************************8
Hi,
I have used the following dtd file for a simple tag you can use it by just replacing the tag properties
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>CooperatingTags</short-name>
<description>
</description>
<tag>
<name>first</name>
<tag-class>com.opera.tagclasses.FirstTag</tag-class>
<body-content>EMPTY</body-content>
<attribute>
<name>sessionID</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
I guess tag urn is not required.
Hope this helps
Ravi
Similar Messages
-
How to use custome tag lib in the JSP page?
How to use custome tag lib in the JSP page?...with JDeveloper
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/
-
How to use JSP custom tag lib in PAR file?
Hi All,
I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
As part of the changes I would require to use JSP custom tag library in my par file.
I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
I tried modifying some things in portalapp.xml but was not successful.
Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
Thanks
SanthoshHi Johny,
Thanks for the reply. Actually I am able to change colors etc. with out any problem.
My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
And I have added the following line in portalapp.xml under component-profile section of default
<property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
Could any one provide me some inputs on how to check this error?
Thanks
Santhosh -
Custom tag lib issue with task flow in portal
Dear Experts,
I am facing an issue and need your guidance
I have a ADF task flow which is consumed in portal. My task flow uses a custom tag library.
When I run the task flow on portal I am facing following issue:
Caused by: oracle.jsp.parse.JspParseException:
Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
at oracle.jsp.parse.JspParseTagXMLTextContainer.processAttributeForELFunctions(JspParseTagXMLTextContainer.java:118)
at oracle.jsp.parse.JspParseTagXMLTextContainer.processAttributeValue(JspParseTagXMLTextContainer.java:103)
at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1565)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:886)
at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
at oracle.jsp.parse.OpenJspTagHandler.parseXMLSrcBody(OpenJspTagHandler.java:782)
at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
at oracle.jsp.parse.JspParseTag.parseXMLSrcNextTag(JspParseTag.java:780)
at oracle.jsp.parse.JspParseTag.parseXMLSrcBody(JspParseTag.java:1297)
at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1572)
at oracle.jsp.parse.JspParseTagFile.parseXMLSrc(JspParseTagFile.java:341)
at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:256)
at oracle.jsp.parse.OracleJsp2Java.transformImpl(OracleJsp2Java.java:439)
at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:593)
at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:691)
at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:490)
at oracle.jsp.runtimev2.JspPageCompiler.parseAndGetTreeNode(JspPageCompiler.java:457)
at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:624)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:645)
... 120 more
<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1Hi,
Make sure you have the JSTL tag library selected in you deployment plan. Go to Project Properties->Deployments->your_deployment_profile->WWB-INF/Lib Contributors and check JSTL.
Let me know if this worked for you!
Regards,
Mihai -
Custom tag lib with output parameter
Hi,
I need a tag libray that gives me a specific element of a Vector.
Here there is the line I have in my jsp.
<ct:partizione tronco="${contenitoreCentralineTronco}" indice="index" partizione="tmpPartizione"/>
...-contenitoreCentralineTronco is an Object that contains a Vector of other specif objects.
-indice is the vector index of the specif instance I need.
-partizione should be the output instance.
This is part of my tld file:
<tag>
<name>partizione</name>
<tagclass>ss.aspi.classi.centraline.grafica.tagSupport.Partizione</tagclass>
<bodycontent>empty</bodycontent>
<info>Estrae una partizione da un vettore di partizioni dato l'indice</info>
<attribute>
<name>tronco</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>indice</name>
<required>true</required>
</attribute>
<attribute>
<name>partizione</name>
<required>false</required>
</attribute>
</tag>
...this is part of the class called by the tag:
private ContenitoreTroncoBean tronco;
private Integer indice;
private ContenitorePartizioneBean partizione;
public int doStartTag() throws JspException {
try {
Vector<ContenitorePartizioneBean> partizioni = tronco.getPartizioniBean();
partizione = partizioni.get(indice);
}catch (Exception e) {
log.error("Errore nell'estrazione della Partizione "+indice);
e.printStackTrace();
return TagSupport.SKIP_BODY;
//All getter and setter functionsWhen I run the application I get this exception:
jsp.error.beans.property.conversion
looking deeper in the class code jenerated from the jsp, I noted that the problem refers to the third attribute of the tag <ct:partizione>.
It seems It trys to set the attribute "partizione" with the value "tmpPartizione", but partizioni should be an output attribut non input. The varible tmpPartizione doesn't exist... the tag should create it.
I realized I didn't get how I should create a tag with output parameters.
Anyone can explane me it?
Thanks.One suggestion: Take a closer look at the EL (expression language)
It has an excellent syntax for accessing collections/maps
${contenitoreCentralineTronco[index]} would exactly what you want, without having to write a custom tag for it.
If you REALLY want to do this as a custom tag, then you need to treat the input attribute as a String (the name of the variable you are going to create?) Right now your tag declares the attribute partizione as being of type ContenitorePartizioneBean which is probably the cause of the problem - you are passing it a String.
Cheers,
evnafets -
Hi,
Can't we use seam tags inside Java class ?
I need to create a custom tag using seam tag <s:link />
stringbuf.append("<s:link id=\"sample\" view=\"/sample.seam\" value=\"Sample123\" propagation=\"none\"/> ");
The below given code is not giving me a link in the UI. While taking source from the UI the <s:link /> tag is not converted into html <a href >.
What should I do to get a link by <s:link> using as a custom tag ?Sorry, wrong forum, should be in the JSP forum. Hope someone can still help!
-
Custom tag or help in reading an image file into the HTTP stream
Since under WL we do not deploy our app physically there is no physical
directory to write our dynamic images to (via kavachart).
I can call their bean with:
response.setContentType("image/png");
ServletOutputStream output = response.getOutputStream();
but that only allows the image back not the housing page. I can use an
iframe but there are other issues and was wondering if anyone has idea on a
custom tag the can easily read a physical directory outside of WL's space
and include an image file in the http stream. Our app server and webservers
are in separate zones so I can not just write to some virtual directory on
the webserver and then serve it up w/ a simple <img> tag.
BTW Kavachart has some tags referred to in their thin doc but I did not have
good luck w/ their suggestions.
Thanks in advance.
dmg
[email protected]
Hi joe.com,
Thanks for the response. It's greatly appreciated. Actually, I'm trying to run this on an Nokia SDK (s80 emulator) and eventually a windows mobile emulator.
I was wondering if the JSR is the problem. I'm currently using jsr 62 and I'm thinking of trying to 216 to get PP 1.1. I'm wondering if 62 maybe limiting file io?
any help is appreciated. -
How to allow Portal server to parse shtml files stored in KM
Hello,
I've created a KM repository and stored shtml files in the folder. Currently when I link to one of those files a prompt window is displayed asking me whether I would like to download or view file instead of launching in the browser as an HTML file. The server is not able to interprete shtml files. If the file was an html file, the file is properly displayed in the browser as a web site.
How can we configure the Portal server to serve/parse SHTML pages.
Your help would be gretaly appreciated. I would be glad to display you my problem if you open a webex session.
Thanks in advance
RabihHello Paul,
Thanks for your response.
A file extension that is also sometimes known as SSI, SHTML is a HTML file that includes server instructions or server side includes, and is similar to an ASP file. This file is commonly used as a method of identifying files that include server instructions. For example if you have static html page and you would like to add a common header you can use server side includes.
Is it possible to enable SSI on SAP J2EE server to be able to parse shtml files?
Thanks
Rabih -
How to set Tomcat server to read library files from webapps \lib
I am trying to put all the web apllication used library files into their own directories instead of puting at the <tomcat-home>\common\lib\
but it doesnt seem to be working, the server keep telling me that
the library file could not found, what action should i take to let the server know that my library files is in the <tomcat-home>\webapps\<webapp>\lib?
thankWhat library files are you referring to here?
Things like struts.jar or jstl.jar used in a web app? They should be fine in WEB-INF/lib
Or things like database drivers?
In order to use connection pooling the database driver has to be in /common/lib, because the server needs to access that code.
Have you tried putting them in /shared/lib?
That makes files accessible to all web apps, but not to the server. -
All pages that contain a custom tag fail with the following exception: HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153)
uploadQS1_jsp._jspx_meth_strutshtml_hidden_0(uploadQS1_jsp.java:225)
uploadQS1_jsp._jspService(uploadQS1_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
note The full stack trace of the root cause is available in the Tomcat logs.Even a simple <struts-html: hidden ... /> tag causes this exception. As long as the page has no custom tags, it is served fine. The same web-app works as expected in JBoss3.2.3/Tomcat4.x.
It almost looks as if Tomcat is looking in a object pool for a custom tag object reference and when it fails to find one, throws a null-pointer instead of instantiating a new one to work with. (This is pure speculation on my part).
Did the TLD's req's change, or the setup for Tomcat? It's not my tags, even Struts tags fail. Any ideas why my tags aren't "resolving"?Has anyone had any luck getting this to run or run into this problem? It fails even with a fresh JBoss install using tomcat 5.0.16.
-
How to create custom tags in my own folder..(It is very important to know)
Hi developers,
I am try to develop custom tags, But i am fail. I take support of internet. I read some documentations to develop custom tags. I can understand everything to develop custom tags . My problem is where to place taghandler,tld and jsp files in tomcat. Could you please guide me how develop custom tags in tomcat. I try to wax. Please guide me.
Thanking you.
with regards
sure...:)-You'll have something like
tomcat/webapps/mysite
where 'mysite' is the webapp root.
Then
mysite/* - holds JSP (in root directory or any subdirectory except WEB-INF)
mysite/WEB-INF - holds TLDs
mysite/WEB-INF/classes - holds non-jar class files
mysite/WEB-INF/lib - holds the jar file containing the custom tag java code
You can put java classes in either WEB-INF/classes (for *.class files) or WEB-INF/lib (for *.jar files), doesn't matter which. -
How can i avoid restarting tomcat server when servlet is modified?
please advice me that how can i avoid restarting the tomcat server, whenever a servlet file is modified in my application. is their any way ?
No probs. Here's how I do things...
1. Install tomcat as normal (e.g. I install to C:\Apps\jakarta-tomcat-5.5.4)
2. Create a webapps directory in your eclipse project with the following directory structure
MyEclipseProject
- src
- conf
- webapps
- MyApplication
- META-INF
- WEB-INF
- classes
- lib
- pages3. Set the project's output folder (e.g. bin folder) to webapps/MyApplication/WEB-INF/classes
4. Put all your jar files in the lib directory
5. Put JSPs / HTML in the pages directory (you may also want to create additional directories for TLDs, config files etc)
6. Ensure your web.xml is in the WEB-INF directory
7. Although it isn't essential I create a context.xml file and store it in META-INF, e.g.
<Context reloadable="true">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>WEB-INF/conf/struts/struts-config.xml</WatchedResource>
<WatchedResource>WEB-INF/conf/struts/tiles-defs.xml</WatchedResource>
<WatchedResource>WEB-INF/conf/struts/validation.xml</WatchedResource>
</Context>I use this to set monitored resources that will trigger an automatic appliation reload and to configure JAAS (not shown). See the Tomcat documentation for additional information.
8. In the 'conf' directory I create a server.xml file used to configure Tomcat (you can copy the one from your <TOMCAT_HOME>/conf/server.xml).
After copying the file change appBase attribute in the host element to be the full path to the webapps directory. You can also change the HTTP and HTTPS ports if you wish
9. Download and install the Tomcat Launcher plugin from Sysdeo.
10. In Eclipse's Preferences menu you will see a new entry for Tomcat. Click this then
a. Set your Tomcat Version
b. Set your Tomcat Home
c. Set "Context declaration mode" to server.xml
d. Set the configuration file to the full path to your server.xml file created in step 8
On the "Advanced " sub page select all relevant projects to add to the Tomcat classpath
On the "JVM Settings" page add all the jars in your WEB-INF lib directory to the class path
On the "Source Path" page select all relevant projects
Now if you start Tomcat using the Tomcat icon, you will be able to remote debug your application. If you change web.xml (or any other file in your context.xml watched resources) it will automatically reload. Any changes to JSPs will automatically be picked up (providing your tell your browser not to use the page in cache - e.g. CTRL+F5 in IE)
There are some limitations that I'm still working on however. Primarily that I haven't included the Tomcat Manager application in my webapps directory, so Sysdeo cannot perform a reload. This means that if I change a source file, and eclipse auotmatically rebuilds, Tomcat doesn't pick up the change unless I either change a watched resource file (e.g. web.xml) or stop and restart Tomcat.
There's no reason why this can't be fixed, I just haven't got round to it yet.
I'm sure there are lots of other (probably better) ways of achieving the same thing. This was the first method I tried and it worked, so I stuck with it. I'm not a Tomcat config guru and I'm sure other forum users could provide some improvements should they wish.
Post if you get into trouble, however I won't be able to respond until next week.
Cheers,
Steve -
Output proper special characters in JSTL custom tag
I've written a custom JSTL Tag and want to output proper encoded special characters, like the c:out tag does (example: > to >). Do I have to parse that manually or is there a method within the jsp-api?
Custom JSTL tag ?????Oops. Custom tag, of course.
In custom tags, you have to manually parse it AFAIK.Somehow I can't imagine that such a frequently needed feature has do be done manually. Almost every tag that has to output data, has to convert special characters, otherwise cross-side-scripting would be possible. -
Hi
In CF8 it's not possible to use unc path for "Custom Tag
Paths"? In CF7 this
work! New feature? bug? possible workarounds?
Thanks,
AllanMark Mongeau wrote:
> I have serveral CF servers running. Is it possible to
map to custom tags on one
> server from another server without a share between the
servers?
> Or even with shared drives?
> What are the security issues if you create a share?
> Thanks
> Mark
>
It would be possible but both servers would have to be able
to read a
common network/file location. Either a shared drive on one CF
server or
the other or a common directory on a file server that both cf
servers
can read. For any of this to work one or both of the cf
servers will
have to be configured to run under a user (localsystem by
default on a
windows box) that has the required permissions to read the
desired
remote resource.
Once the required permissions are granted, one just needs to
put the
UNC/Mapped drive path to the shared custom tag directory in
the
appropriate server setting.
The risk is the same with granting any user permission to a
common file
location. They have the granted permissions to do what they
are allowed
to do at that location. With intelligent consideration of
what
permissions to give the user designated to run CF under this
can be
easily mitigated to a low risk issue. Don't use an
administrator/super
user account that can do anything anywhere. Create a CF user
and only
give it the required permissions to do what you need CF to
do. -
I have serveral CF servers running. Is it possible to map to
custom tags on one server from another server without a share
between the servers?
Or even with shared drives?
What are the security issues if you create a share?
Thanks
MarkMark Mongeau wrote:
> I have serveral CF servers running. Is it possible to
map to custom tags on one
> server from another server without a share between the
servers?
> Or even with shared drives?
> What are the security issues if you create a share?
> Thanks
> Mark
>
It would be possible but both servers would have to be able
to read a
common network/file location. Either a shared drive on one CF
server or
the other or a common directory on a file server that both cf
servers
can read. For any of this to work one or both of the cf
servers will
have to be configured to run under a user (localsystem by
default on a
windows box) that has the required permissions to read the
desired
remote resource.
Once the required permissions are granted, one just needs to
put the
UNC/Mapped drive path to the shared custom tag directory in
the
appropriate server setting.
The risk is the same with granting any user permission to a
common file
location. They have the granted permissions to do what they
are allowed
to do at that location. With intelligent consideration of
what
permissions to give the user designated to run CF under this
can be
easily mitigated to a low risk issue. Don't use an
administrator/super
user account that can do anything anywhere. Create a CF user
and only
give it the required permissions to do what you need CF to
do.
Maybe you are looking for
-
Compiling against the 10g Instant Client in Linux
Does anyone know if it's possible to compile and successfully link C++ programs that use the occi header against the 4 shared occi libraries that come with the 10g instant client. I dug out the 30 or so header files that come with the full 10g Linux
-
I am trying to manually update Adobe Shockwave & it won't work, pls HELP
I get as far as when the dialog box gets transferred to my download folder (after I have "saved" the file) then, nothing happens. I think it may be because I have to unblock the block on the add-on (?) however, don't remember how to do that. Pls. Hel
-
ABAP short dump when loading data into Infocube
Hello All, I am getting an ABAP short dump error when loading data into Infocube. I tried to load data from PSA and ODS. I ran the code to compress the Infocube, no improvement still getting the same error. Error Analysis: A raise statement in the pr
-
can anybody help me in Logging SAP in Hindi language... How do i proceed Kindly help it is urgent
-
Script path problem on Tiger 10.4.11
Hi, I just came across a problem about scripting path I think. Now the applications located in /Applications folder on my MBP can not run their scripts properly. For example, Gimp has a script to detect and launch X11, but the script can not be loade