Chris Pat

Ranch Hand
+ Follow
since Aug 27, 2005
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 Chris Pat

Hi Paul
Thanks. After about two weeks exclusively on this topic I think I have some clarity. What is needed is a JNDI for dragged applets and installed applications and the ability of Liveconnect to query it and call its methods like normal applet on a page. Yes, I see the security issues(some will sarcastically call it a self-implantable virus delivery system) but the programming power is significant and the necessary security is already there. I am trying to simulate that with a dragged applet from a frame and some type of bootstrap but I dont know how to make Liveconnect access the appletstub of a dragged applet. Interestingly the docs state that the applet can bootstrap Java-JS communication. So I dont know if something like two applets on the first page, one dragged and one probe and the probe one on every successive page. All I need is a means for Liveconnect to query Web start maintained applications. I am nonplused without further documentation.
12 years ago
Hello
Is there any way or any alternative technology that will allow the deployment of client-side Java application with access to application methods from JavaScript? Applets work, but you incur the life-cycle and if the page is navigated away from destroy() is not friendly. I thought Liveconnect would give me access or something specific for Chrome or Firefox. Any enlightenment would be appreciated.
12 years ago
Hello
I get the following when trying to forward to a frameset that is already up and presenting content to the client. I know the for global forwards is correct, it work the first time in the default. Can someone help me explain why this failure?

protected ForwardConfig execute(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) throws Exception { return null;}
12 years ago
Hi Paul
The two jnlps are necessary for the legacy signed jars that the applet uses. The previous implementation was putting the applet in one frame and the changing client view in another frame using JSTL. This work well for the default state, cached the applet but when I tried to change the client view in a state other than the default it never changed. Even when I re-implemented it with a proper working tiles-defs. The frame code is below. It was inscrutable to me why it didnt change and after a frighteningly long time I gave up and looked for another implementation that would allow me to keep the applet cached(or maintained by JWS) and change the client view but have some calling convention that allowed the client view to call methods in the JWS maintained applet. Sorry I was not detailed enough, and may still not be. Ideas?

<html>
<head>
<title>
${sessionScope.fb00.frameTitle}
</title>
</head>
<frameset rows="85%,15%" id="enclosingFrame" title="totalFrame">
<html:frame page="${sessionScope.fb00.framesetPage}" frameName="transFrame" title="transFrameTitle" marginheight="0" marginwidth="0" frameborder="0"/>
<html:frame page="/ccAuth13_applet.jsp" frameName="appletFrame" title="appletFrameTitle" marginheight="0" marginwidth="0" frameborder="0"/>
</frameset>
</html>
12 years ago
Hi Paul
Thank you. I am still unclear on the nomenclature. Now I can access it with parent.[appletFrameName].document.[appletName].method. Where do I "pickup" the name of the applet that was previously in the non-changing frame of the frameset? It is now "somewhere" implemented by JWS. I have been searching and have yet to come up with an answer in parallel. Now that I have the two jnlp working that is the next milestone. Ideas?
12 years ago
Hi Paul, et. al.
I just discovered my own answer. The syntax for the second jnlp is
...
<component-desc/>
<resources>
<jar href="jar00.jar"/>
<jar href="jar01.jar"/>
...

I actually intended Javascript, not JScript. That question still holds, is it possible to access a jnlp implemented applet with Javascript? The difficulty is I do it now in a frame that nicely caches the applet and has a very defined nomenclature. I want to change one of the jsp in the frame and it doesnt, agony of weeks, so I need another approach. Any enlightenment welcomed.
12 years ago
Hello
Two related questions if I may:
1. Using the latest Java Plugin 1.6.10+ I am able to create a second jnlp file with the component-desc for the third party jars, but it fails on loading the <jar href="jar00.jar,jar01.jar"/> saying "unable to load resource http://localhost:8080/testJAWS/jar00.jar,jar01.jar

What is the proper syntax for the loading multiple jars in a second jnlp?

2. When this is working my true goal is to access this applet with JScript from my html pages. Is/how this possible?
12 years ago
Hello
What was needed to stop the error was below. Still a problem in that even though I can, the first time, process and forward to my tiles-defs on the second time I forward and NOTHING happens. No error, no re-processing of the page. The page as an applet in the footer and I am changing the report body depending on the state. How can it be a successful, forward does not change, force the reprocessing of the report body.
<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>
12 years ago
Thanks
Below is the tiles-defs.xml and the template. All that I am doing in my action is a simple mapping.findForward("defaultReport); and it is reporting unable to find forward "defaultReport". If I define a global forward it states defaultReport does not begin with /. How do I "hook" the forward designation into the tiles-defs? A catch-22. Can you help?
tiles-defs.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
"http://struts.apache.org/dtds/tiles-config_1_3.dtd"><tiles-definitions>
<definition name="defaultReport" path="/ccAuth15_template00.jsp" >
<put name="title" value="defaultReport"/>
<put name="report" value="/ccAuth15_PO_all.jsp"/>
<put name="applet" value="/ccAuth13_applet.jsp"/>
</definition>
<definition name="posSO" extends="defaultReport" >
<put name="title" value="defaultReport"/>
<put name="report" value="/ccAuth15_soDetail.jsp"/>
</definition>
<definition name="posPO" extends="defaultReport" >
<put name="title" value="defaultReport"/>
<put name="report" value="/ccAuth15_poDetail.jsp"/>
</definition>
</tiles-definitions>

ccAuth15_template00.jsp
<%@ page errorPage="ccAuth15_template00_error.jsp" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<html>
<head>
<title><tiles:getAsString name="title" ignore="true"/></title>
</head>
<body bgcolor="#ffffff">
<tiles:insert attribute="banner"></tiles:insert>
<tiles:insert attribute="report"></tiles:insert>
<tiles:insert attribute="applet"></tiles:insert>

</body>
</html>
12 years ago
Hello
I have a properly configured tiles-defs.xml, have the tiles plugin configure in struts-config.xml and when I try a findForward([namedTilesDef]), it says ...not prefaced with /. What is the nomenclature to be able to forward to a tiles definition?
12 years ago
Hello
I need to create a blank form with Struts1.
Conceptually I can create a blankLine object that is composed of and ArrayList of field objects as simple as new String() or LabelValueBean. Then populate an ArrayList, blankForm, with n number of blankLine objects. I can logic:iterate over the blankForm which should expose a single blankLine object at a time. However I cant figure out how to logic:iterate for each field and the necessary form members to capture the fields in the the line and the lines in the form. I dont know if I need to use indexed attribute. Can someone instruct me on the details to success with an implementation?
13 years ago
Hello
I had an old but working JDO configuration with kodo working perfectly from compile, database and limited/requisite functionality. Incredulously it did everything that I needed. However I needed to upgrade to TC5.5.30 and now the exact same web.xml which worked under TC 5.0.x is failing in JDOPlugin iinit(ActionServlet servlet, ModuleConfig config). What default configuration in TC 5.0.x worked that I lost in TC 5.5.30? I the defaults would work and that I understood it. I would really like to understand the deeper issue(s). tia.
13 years ago
Hi Dave
Thank you. That was the problem. I was resistant to it as I thought I got that from other libraries, obviously not.
14 years ago
Hello
I am using the net.sf.json libraries but when I execute my action I get the following error:
java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
on the JSONObject jsonObj00 = new JSONObject();
the library is in the path, in the war, in the deployment. How can I get around this? tia.
14 years ago
Hello
Still struggling with a design that needs to keep to pages separate and javascript accessible on a page, BUT that the submission of one does not force a reload of the second on upon return. I know that is a definition of an Ajax call, but that will not work here for other reasons.

I hope I can ask, rather than spend a few hours "slugging it out", will a page composed with Tiles keep both frames, or in this case tiles, separate as describe above? A frameset is the simplest, but as often doesnt work. tia.
14 years ago