[opencms-dev] how to export resources with parameters?
Tosi, Joel
JTosi at cme.com
Tue Jan 10 15:56:32 CET 2006
Greg,
I don't believe the staticexport works in that sort of manner. What you could try doing is writing a java class that just does a URLConnection with the URL and parameters then read the output, i.e.
public String getContentWithParms(String page, String parmString)
{
String yourURL = page + parmString;
URL content = new URL(yourURL);
URLConnection yc = content.openConnection();
BufferedReader in = new BufferedReader( new InputStreamReader(yc.getInputStream());
String line;
String output;
while((line = in.readLine()) != null_
{
output += line;
}
return output;
}
Or something along those lines.
Hope this helps,
Joel
________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Gregor Stopar
Sent: Tuesday, January 10, 2006 8:06 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] how to export resources with parameters?
hi to all!
I'm working with OpenCMS 5 and I have somejsp.jsp file which has number of parameters.
I would like to do static export of this file. This means that OpenCMS must produce number of
static html files based on the parameters that somejsp.jsp can take.
Is there a way to do that?
thanks,
greg
--
Gregor Stopar
Razvojni inženir za Java tehnologije
Noviforum d.o.o., Stegne 31, SI-1000 Ljubljana
Tel: +386 1 500 8510
Faks: +386 1 519 7388
e-naslov: gregor.stopar at noviforum.si
www.noviforum.si, www.najdi.si
To sporočilo, vključno z vsemi pripetimi dokumenti, je namenjeno izključno naslovniku sporočila, njegova vsebina pa je lahko zaupne narave in varovana kot poslovna skrivnost, osebni podatek ali kot avtorsko delo.
Nepooblaščeno pošiljanje, spreminjanje ali razkritje vsebine tega sporočila je nezakonito. Če prejmete sporočilo po pomoti, ga takoj izbrišite iz sistema.
Vsebina tega sporočila, vključno z vsemi pripetimi dokumenti, izraža stališča avtorja oz. avtorjev in ne nujno tudi družbe Noviforum d.o.o.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060110/b9635e4f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1745 bytes
Desc: image001.gif
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060110/b9635e4f/attachment.gif>
More information about the opencms-dev
mailing list