<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>We ran into this as well with some of our JSP code when
moving from 5.0 to 5.0.1.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>Try referencing getCmsObject() as a member of
com.opencms.flex.jsp.CmsJspActionElement instead of
com.opencms.flex.cache.CmsFlexRequest...that got things working for
us.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>Mark Roedel</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>Web Programmer / Analyst</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=547085522-10032004><FONT face=Arial
color=#0000ff size=2>LeTourneau University</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-admin@opencms.org
[mailto:opencms-dev-admin@opencms.org] <B>On Behalf Of </B>Miyuru C.
Ratnayake<BR><B>Sent:</B> Tuesday, March 09, 2004 5:34 AM<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] Method missing in
Opencms 5.0.1<BR></FONT><BR></DIV>
<DIV></DIV>Hi I used this method to create a CmsObject from a Request in a JSP
file com.opencms.file.CmsObject cms =
((com.opencms.flex.cache.CmsFlexRequest)request).getCmsObject(); but in
OpenCMS 5.0.0 its working properly but in OpenCMS 5.0.1 it is not working.
There is no such method getCmsObject() in CmsFlexRequest in OpenCMS 5.0.1 My
code is as follows com.opencms.file.CmsObject cms =
((com.opencms.flex.cache.CmsFlexRequest)request).getCmsObject();
com.opencms.file.CmsRequestContext reqContext = cms.getRequestContext();
reqContext.setCurrentProject(4); String WORKING_PATH=reqContext.getUri();
com.opencms.core.CmsRequestHttpServlet req =
(com.opencms.core.CmsRequestHttpServlet)(reqContext.getRequest());
java.util.Enumeration files = req.getFileNames(); Hashtable h=new
Hashtable(2); h.put("Title",req.getParameter("title"));
h.put("NavText",req.getParameter("navText")); while(files.hasMoreElements()){
String this_filename = (String) files.nextElement(); byte[] filecontent =
req.getFile(this_filename); cms.createResource(WORKING_PATH, this_filename,
req.getParameter("type"), h, filecontent); cms.unlockResource(WORKING_PATH +
this_filename); cms.publishResource(WORKING_PATH + this_filename); } I need to
run this in Opencms 5.0.1 is there a different method to use. Thanks, Miyuru
Ratnayake
<P></P></BLOCKQUOTE></BODY></HTML>