[opencms-dev] View of Search Result in one line
maria.freixes_graells at alcatel.es
maria.freixes_graells at alcatel.es
Fri Aug 4 11:27:50 CEST 2006
Hi people!!
I've tried this code that seems it would be work, but not.....any idea?
The error is:
org.apache.jasper.JasperException: Unable to compile class for JSP An
error occurred at line: 12 in the jsp file:
/WEB-INF/jsp/offline/system/login/index3.html.jsp Generated servlet
error: workplaceSet cannot be resolved at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
at org.apache.jasper.compiler
<%@ page import="org.opencms.workplace.*, org.opencms.main.*,
org.opencms.db.*, org.opencms.search.*, org.opencms.file.*,
org.opencms.util.*, org.opencms.jsp.*, java.util.*, java.lang.String"
%>
<%
CmsLogin wp = new CmsLogin(pageContext, request, response);
%>
<%!
CmsWorkplaceSettings workplaceSet(CmsWorkplaceManager workplaceman,
String getAttribute)
throws CmsException {
if (workplaceman != null) {
return workplaceSet.setExplorerResource("/sites/default");
}
}
%>
<%=wp.displayDialog() %>
maria.freixes_graells at alcatel.es escribió:
> Christian!! Many thanks for your interest in my problem.....
> Unfortunately, your last code doesn't work, I don't understand the part:
> session.getAttribute(org.opencms.workplace.CmsWorkplaceManager.C_SESSION_WORKPLACE_SETTINGS);
>
>
> The error is:
> If you have any idea or suggestion, I'll be gratefully!!
> Thanks again and best regards,
> Maria
>
> org.apache.jasper.JasperException: Unable to compile class for JSP An
> error occurred at line: 10 in the jsp file:
> /WEB-INF/jsp/offline/system/login/index3.html.jsp Generated servlet
> error:
> org.opencms.workplace.CmsWorkplaceManager.C_SESSION_WORKPLACE_SETTINGS
> cannot be resolved An error occurred at line: 10 in the jsp file:
> /WEB-INF/jsp/offline/system/login/index3.html.jsp Generated servlet
> error: Void methods cannot return a value at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
> at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
> at
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) at
> org.apache.jasper.JspCompilationContext
>
>
>
>
> Christian Steinert escribió:
>>> -----Ursprüngliche Nachricht-----
>>> Von: The OpenCms mailing list <opencms-dev at opencms.org>
>>> Gesendet: 03.08.06 10:09:13
>>> An: The OpenCms mailing list <opencms-dev at opencms.org>
>>> Betreff: Re: [opencms-dev] View of Search Result in one line
>>>
>>
>>
>>
>>> Hi Christian!!
>>>
>>> Sorry but I don't have
>>>
>>> org.opencms.workplace.CmsWorkplaceAction.setCurrentFolder
>>>
>>> are you sure that this is the class and the method?
>>>
>>> Thanks and best regards,
>>> Maria
>>>
>>>
>>>
>>
>> sorry the class is an old class - it was not taken over to the
>> org.opencms.* packages and this class should not be used anymore. So
>> this was a bad suggestion from my side.
>>
>>
>>
>> You would need to get an instance of class CmsWorkplaceSettings
>>
>> The only way of doing this that I came across is this. Maybe there is
>> a cleaner way, but I don't know it:
>>
>> org.opencms.workplace.CmsWorkplaceSettings settings =
>>
>> (org.opencms.workplace.CmsWorkplaceSettings)session.getAttribute(org.opencms.workplace.CmsWorkplaceManager.C_SESSION_WORKPLACE_SETTINGS);
>>
>> if (settings != null) {
>> return settings.setExplorerResource("/path/to/display") ;
>> }
>>
>>
>>
>>
>> Christian
>> _____________________________________________________________________
>> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>> http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list