How to use GX tags in a JSP?
Hi, everybody!
Our company have got a NAS 2.1 application (with AppLogic's and HTML templates) that it needs to be migrated to J2EE model. In this moment, we can't cover a complete migration from AppLogic to a J2EE, and furthermore, we have to maintain all the presentation layout and keep GX tag's in our templates.
From my point of view, AppLogic's must be translated into Servlets and HTML-template files could be renamed in JSP files, keeping GX tags.
Nowadays we are making this partial migration, but we've realized that JSP engine doesn't evaluate correctly JSPs with GX tag's.
Example
Servlet:
TemplateMapBasic tmpMap = (TemplateMapBasic) GX.CreateTemplateMapBasic();
tmpMap.putString("nombre","Alberto");
req.setAttribute("GX_MAP",tmpMap);
// Call JSP
getServletContext().getRequestDispatcher("/example.jsp").forward(req,res);
JSP:
%gx type=cell id=nombre%
%/gx%
Result:
%gx type=cell id=nombre%
%/gx%
Insteof of appearing Alberto, it shows the tag.
Does anybody know what it is happening?
Do I need to include some tag library into the JSP?
Thanks in advance.
Alberto
PD: We are using iPlanet Application Server 6.0 SP4.
Hello again,
Just tried this and got the same problem, copy the file into your actual web application so the link becomes
continue
Or put in a sub directory as you see fit.
I have never tried to open files on the pc in this way, only files under my web site, but it seems as though the browser will not allow the execution of files on your computer.
Thinking about it, javascript is not able to execute such processes either, it is a security constraint.
Would you want websites to be able to execute jobs on your local PC??
I think not!!
Similar Messages
-
How to use Flex tag library in jsp
Hi All,
We are planning to use flex in our J2EE application in order
to show some charts. Our j2ee application is in JSP,Struts. I have
searched on google about this and found that I can include flex 3
tab library in the jsp in order to use mxml tag in the jsp. I have
written a sample program in the jsp which uses flex.
<%@ taglib uri="FlexTagLib" prefix="mm" %>
<SCRIPT LANGUAGE="JavaScript">
function showMessage() {
message.value = "Use this application wisely";
function hideMessage() {
message.value = "";
</SCRIPT>
<mm:mxml border="5" onmouseover="showMessage();"
onmouseout="hideMessage();">
</mm:mxml>
<TABLE>
<TR>
<TD><input type="text" name="message"
size="50"></TD>
</TR>
</TABLE>
I have added entry inweb.xml. See below,
<taglib>
<taglib-uri>FlexTagLib</taglib-uri>
<taglib-location>/WEB-INF/tlds/flex-bootstrap.jar</taglib-location>
</taglib>
Following are the problems that I am currently facing.
1) Could anybody let me know whether the entry of
<taglib> tag is correct in the web.xml. Is it the correct
jar(flex-bootstrap.jar) that I should include?
2) If yes, from where to download it? or
If no, what is correct jar that i should include and how?
your response will be highly appriciated as this is the major
requirement in our project?
Thanks ,
ChandanHi,
Pleas find details at the URL below.
http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
Hope this helps. -
How to USE Display Tag in my jsp pageInMy JDBC program in NetBeans 5
I want my program 2 fetch Data from the database and display in the nice format provided by the Display Tags.. I have simple JSP pages, without using any Beans. I m running netBeans 5.
What is the Solution to display my Table data in JSP display Tags facility.
reply soon ...
tht help me a lotHello,
I am not sure how far you got with this display tag. I had issues added the displaytag lib and the dependencies to my library. On the right-hand side of Netbeans, under Project, under the war directory of the application, I was able to add the libraries to my project. It stop some errors I have been having for so long.
Still, I am not able to display my data using display. How far this you did with this project? Have you resolve the problem so far. I know it's been a long time.
Thanks
eve -
How to use standard tags in JSP
Hi all,
Just wanted to know how to use standard tags of endeca in JSP ... say for example to display Dimension Name using standard tags.
Thanks
--Sami was just checking whether we can use endeca TAG'S ( typo mistake in my earlier post not the JSTL standard library )....in my JSP
We cannot use endeca TAG ...as they are for different purpose.
Sameer -
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/
-
sir
plz tell me how to use custom tag in jsp.plz describe it.
i will be thankful to uDo you want to use taglibs or develop custom tags? Either way take a look at these:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
http://www.stardeveloper.com/articles/display.html?article=2001081301&page=1
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
http://jakarta.apache.org/taglibs/tutorial.html
http://www.ibm.com/developerworks/edu/j-dw-java-custom-i.html
http://www.herongyang.com/jsp/tag.html -
How to use nested tag in Struts
Hi..
Can any one guide me how to use nested tag in Struts. So far i already tried bean tag with no error but when i try to use nested tag i got error like
javax.servlet.ServletException: Cannot find bean: "" in any scope
Below are my class:
action class
session.setAttribute ("MyDetailList", detailList);
JSP page
<logic:iterate id="list" name="MyDetailList">
Company ID : <bean:write name="list" property="companyID" />
</logic:iterate>
For bean tag, i got no error at all and below are my code for nested tag
action class
session.setAttribute ("MyDetailList", detailList);
JSP Page
<nested:nest property="MyDetailList">
Make : <nested:text property="make"/>
Car ID : <nested:text property="carID"/>
</nested:nest>
When i run the code, i got error message
javax.servlet.ServletException: Cannot find bean: "" in any scope
Any body can help me?
zulwhat am I doing wrong?You will notice above that I mentioned
YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
(was that loud enough for you to notice this time)?
Try
<html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
//or
<html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
better alternative: populate your formbean with your action and just have:
<html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
Cheers,
evnafets -
How to use HTML Tags in Smartforms
Hi,
Can you please help me out in knowing how to use HTML tags in Smartforms,
suppose i want to display some text in BOLD i should use the tag </b> as shown
</b> Header Information <b>
regards
RanveerHi Ranveer ,
check this following links,
hope this wil helps you
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf">check this link,to know abt HTML in smartforms</a>
rgds,
shan -
How to use HTML Tags in webdynpro java
Hi,
Can any body tell me how to use HTML Tags in webdynpro java.
If u provide me with sample code it will become more usefull.
Thanks & Regards,
SNHI,
Please find the steps:
Create a html file and store in your webdynpro project
Add the html contents in your file
& Create a IFRAME UI element and refer you html file
Now you able to see the html in webdynpro
Thanks & Regards,
Ram -
How to use debug my jdevloper devloped jsp applications using tomcat 4.0?
hello,
how to use debug my jdevloper devloped jsp applications using tomcat 4.0?
how to run with using tomcat path with browser?
can any one help?
thanks
pullareddyHi Pullareddy,
Charles' answer will work for Servlets in Tomcat, but debugging JSPs is a bit more complicated than debugging Servlets.
Here's what you need to do:
(I don't have Tomcat, so I don't know the details of Tomcat configuration files and I can't guarentee that Tomcat provides the flexibility so that you can configure it for debugging JSPs. Each application server is configured a bit differently. Hopefully you can adjust the following instructions to Tomcat.)
1. You need to replace Tomcat's JSP engine with OJSP and you need to setup debugging parameters for OJSP.
This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
Here are some tips:
A. You'll probably need to specify the following jars in some Tomcat config file: ojsp.jar, ojsputil.jar, xmlparserv2.jar, ojc.jar, and jdev-rt.jar.
B. The OJSP class name is oracle.jsp.runtimev2.JspServlet.
C. The debug parameters are:
debug_mode = true
developer_mode = true
encode_to_java = true
emit_debuginfo = true
jspjavacompiler = oracle.jdevimpl.jsp.JspOjcCompiler
2. You need to make Tomcat start the Java command with debugging options. (This is what Charles was talking about. One of the debug options is -XXdebug). This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode". Please read that documentation help topic.
3. You need to delete any old .java or .class files which were created in the past for your JSP. If you leave old .java or .class files around, then the debugger may not be able to stop at breakpoints in your JSPs. So, be sure to clean up old files.
4. Set your project settings for remote debugging. This is on the Debugger - Remote panel in the Project Settings dialog box. You probably want either Attach to OJVM or Attach to JPDA. Which radio button you choose depends on what command line options you specified in step 2.
-Liz -
Can I use any Class in a Use Bean Tag of a JSP
I have tried to modify the existing EditForm.java file and created a new Class File which changes the presentation(render method)in the Edit Form.
can I use the new class as a Bean in the use bean tag of a JSP.You can use any class as part of the useBean tag. If you want to add your class to the list of available webbeans, you can add it to <jdev dir>\teamplates\webbeans.xml.
-
How we can use jsf tags in included jsp enclosed in subview tags
Hello everybody,
I am developing web app by using jsf. I am including a jsp page "header.jsp" into another jsp page "main.jsp". The header.jsp page is enclosed in jsf subview tag on main.jsp page. The header.jsp contains some static html code and some jsf tags like "outputText". When i added tag library url in header.jsp then my app was not even not initiating and i was getting following exception
ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
16:22:16,890 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
....Now i removed jsf tag library url from included jsp "header.jsp" so now my app is running but only static html data is being displayed but the value in the jsf tag "outputText" is not being printed in the browser
kindly help me. i would be very thankful....Your question has nothing to do with Sun Java System Directory Server.
Please use the right forum(s).
Thanks -
Help!! how to use ms office chart in jsp
I want to use ms office chart in jsp for getting real time statistical chart.
but I don't know how to satart.
give me an example please,(including the code is better)
thanksDo you need MS Office? Try Cewolf, a tag library for JFreeChart:
http://cewolf.sourceforge.net/
Regards,
Dave Gilbert
JFreeChart Project Leader -
How to use ApplicationModule custom methods in JSP?
I have an ApplicationModule for which I have defined several custom methods (in the ApplicationModuleImpl class). I wish to invoke these methods from a JSP. I'm having trouble getting a scriptable reference to the application module object in the JSP. I can get data from the view objects using the jbo:xxx data tags, but I can't get any sort of reference to the application module object that would allow me to invoke the methods. I have tried editing the application module to expose the methods as client methods, but still can't get a reference to them.
My main questions:
1. Is there a way to invoke the custom methods somewhere between the jbo:ApplicationModule tag and the jbo:ReleasePageResources tag?
2. Is there a way to declare and use the application module without using the jbo:ApplicationModule tag? Would I ever benefit from doing this?Alan, here's how to call a custom method String getSomeInfo() that I've created on my application module, MyModule in this example. Also, in this example the id parameter in the ApplicationModule tag is "am" (<jbo:ApplicationModule id="am"...):
First, edit your application module. In the app module editor, go to the Client Methods tab and move getSomeInfo into the selected list.
Next, edit your JSP to call your custom method.
<% MyModule myAm = (MyModule)am.useApplicationModule(); String someInfo = myAm.getSomeInfo(); %>
You also have to add the correct import statements to the page tag in your JSP:
<%@ page contentType="text/html;charset=windows-1252" import="oracle.jbo.*, MyModule.common.*"%>
Hope this helps
Blaise -
How to use JAVA APPLET VIEWER in JSP?
i want to use applet viewer in my jsp, but i've no idea how to do this. Now, i'd like to finish the two jobs below with applet viewer:
1. Open a CR Report with applet viewer in a jsp
2. Programmlly pass parameters into the report
thx allI'm not sure why you are getting the console message, but here is how you might use the tag. This will simply print out the list of immediate groups (not parent groups) to which user "weblogic" is a member.
<%@ taglib uri="http://www.bea.com/servers/p13n/tags/userGroupManagement" prefix="ugm" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<ugm:getGroupNamesForUser username="weblogic" id="groupNames"/>
<c:forEach items="${groupNames}" var="groupName">
bq. <c:out value="${groupName}"/>
</c:forEach>
Maybe you are looking for
-
How do i reinstall Adobe Creative Cloud on Mac book air ?
itsays You are running an operating system that After Effects no longer supports. Refer to the system requirements for a full list of supported platforms.
-
Send postmaster mails to BLACK HOLE
Hi, Is there anyway I can send postmaster mails to black hole ( /dev/null ) I know that people will ask why I want to send postmaster mails to /dev/null. But this is the requirement. Cheers Rakesh Malik
-
MY FF PLAYED UP AT THE WEEKEND AND IVE LOST ALL BOOKMARKS ALSO ON THE TOOLBAR YOU HAVE THE DOWNLOAD ARROW WELL BESIDE THAT USE TO BE A DOWNLOAD TIMER/COUNTER FOR WHEN YOU WATCHED VIDEOS YOU CLICK THE DOWNLOAD AND THE COUNTER WOULD WORK. I HAVE NO COU
-
I can't activate my ipad it says its not recognising the id but it is the one I used when it was originally set up.
-
(UG1020) SDAccel Development Environment Installation and Licensing Guide
Hi there, I was wondering if it was possible for me to get hold of the said user guide (UG1020)? The user guide is referenced from within UG1023 (v2015.1). Thank you, Kat