Re: HTTP Status 500

2002-11-29 Thread Jens Khnberger
try http://localhost/wileystruts

Paul Kavanagh wrote:

Hi there,

I'm trying to get the attached Struts webapp (from Chapter Three of
Mastering Struts) working with Tomcat
4.1.12. My understanding is that I should be able to just drop the attached
(unzipped of course)
into a webappname/ folder and then be able to access it via
http://localhost/webappname. Is this
correct ?

When I try however, I get get this error:

HTTP Status 500 - No Context configured to process this request


type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured
to process this
request) that prevented it from fulfilling this request.


Apache Tomcat/4.1.12-LE-jdk14

I have all the struts jars in WEB-INF/lib.

I know this is probably something dumb and config-related on my behalf. I
appreciate the help.

Thanks in advance,
-Paul

ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: getting username of logged in user

2001-11-18 Thread Jens Khnberger

Just save the username in the session, then you can get the username on 
a jsp page the following way:
%=  pageContext.getSession().getAttribute("username") %

Jens

[EMAIL PROTECTED] wrote:

Hi all,

couldn't find this one in the archives:

how do I get the username of the user that is logged in, from within a
JSP-file?

Thanks,
Michel


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: ActionServlet return a pdf document

2001-11-14 Thread Jens Khnberger

Just handle the output of the pdf by yourself and return null for your 
Action.

Jens


IZAGA,IGNACIO (HP-Germany,ex1) wrote:

Hi,

I am trying to generate a PDF document on the fly based on dynamic html
generation comming from BroadVision.

I am using a tool called HTMLDOC that can use as input parameter a html file
or a URL.

If i used this tool directly from the command line, 

htmldoc URL -f result.pdf

then, the pdf generation is fine, includig images.


But if i called this via an action, and i get the ouput of the tool and send
it to the response, the pdf result is not displayed if i used the image tag
in the HTML.

This is the java code for my action :


Process process; 
Runtime runtime; 
java.io.InputStream input; 
byte buffer []; // Buffer for output data
int bytes; // Number of bytes

command = the called to my tool with the options and the URL :
/opt/htmldoc http://www.myfile.jsp 

runtime = Runtime.getRuntime();
   
try
{
process = runtime.exec(command);

input = process.getInputStream();
buffer = new byte[8192];

while ((bytes = input.read(buffer))  0)
   outputStream.write(buffer, 0, bytes);   
   
return (process.waitFor());


Any idea or suggestion ???

Thanks in advance

Regards,

ignacio




   

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Check Box,Radio button (Urgent)

2001-11-02 Thread Jens Khnberger

When you call a page for the first time and you want some values in 
checkboxes or radiobuttons preselected,
just initialise the form bean with the values you want to preselect.

Jens

Ted Husted wrote:

It's hard to say without seeing your code. They should automatically
select the current value.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

yogesh borse wrote:

Hi All,

I'm populating a FormBean from action class so that I can open the
form(jsp)in edit mode with all values for updating purpose but the
problem is, I'm having checkbox or radio button, It's not showing me
selected radio or checked chech box if it is checked or selected before.
Can any one please tell me the solution for this problem.It's urgent.

Regards
Yogesh

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: HowTo: Preselect a value of a SelectBox

2001-10-26 Thread Jens Khnberger

If you got something like:

html:select property="somevalue"
html:options ...
/html:select

then initialise the variable "somevalue" in your form bean with the 
value you want to have preselected.

Jens

storck wrote:

Hi,

how can I preselect a value of a SelectBox?

Many Thanks!!