Re: struts response character encoding.

2004-07-17 Thread Jason Lea
iso-8859-1 is the default page encoding for web pages. To use anything else you need to tell the webserver. Use this at the top of every jsp page: <%@ page contentType="text/html; charset=UTF-8"%> Or for Tomcat 5 you can use Servelt 2.4/JSP2.0 spec and set the page encoding in the web.xml

struts response character encoding.

2004-07-17 Thread Olve Sæther Hansen
I have some problems using struts/tiles and UTF-8 characters embedded in an jsp page. How can I make struts/tiles respect the system default encoding, and not use iso-8859-1 for all jsp pages? This problem occurs in tomcat 4.1.29, 5.0.19 and 5.0.27. I have a struts version bundled with Appfuse,

JSF vs Struts

2004-07-17 Thread Martin Gainty
Sorry for the simplistic question Starting a new project and trying to get a handle on 2 different approaches What does Struts have to offer over JSF? Thanks, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: About Master-Detail / Radio Buttons / Indexed Properties Behavious !!!

2004-07-17 Thread Rick Reumann
Could you please try to format your e-mail message better with breaks that make sense. (Code needs some hard coded breaks at appropriate places:). Buland Altaf wrote: Hi Theres, I am facing some issues about master-detail / radio button for indexed properties. Issues are:-___ Problem 1

Re: Question on parameterizing action attribute to html:form

2004-07-17 Thread Rick Reumann
Erik Weber wrote: I found the answer. It is to use the struts-el html tag library instead of the standard html tag library, and then to refer to the variable using the expression language syntx: . . . Erik are you uisng one of the DispatchActions (regular DispatchAction, LookUpDipsatcchAction

Re: outputting mysql (or any other database) error in jsp

2004-07-17 Thread Research labs
Quite exhaustive, thanks. I did not notice the inherited _getMessage()_; thanks for bringing it to my attention. This is exactly what I need. Ola. --- Brett Connor <[EMAIL PROTECTED]> wrote: > The exception will contain a message via the > inherited _getMessage()_ > etc, if it's just display

Re: outputting mysql (or any other database) error in jsp

2004-07-17 Thread Brett Connor
The exception will contain a message via the inherited _getMessage()_ etc, if it's just display purposes you're looking for this may be enough, except for localization issues. Beyond that, if you want to get a correctly localized message or make some useful interpretation of the error code to p

RE: outputting mysql (or any other database) error in jsp

2004-07-17 Thread Research labs
Thanks for your prompt response. As you are aware, getErrorCode() method of SQLException returns the vendor specific SQL error code, but there is no getErrorMessage() method. Since this is the case, how can I get the actual error message if I implement according to your suggestion? Please do you

RE: outputting mysql (or any other database) error in jsp

2004-07-17 Thread Robert Taylor
One strategy is to wrap the SQLException thrown by mySQL in a meaningful ApplicationException which can be caught in your action class or declarative exception handling mechanism and "interpretted" into the appropriate client error message which can be placed in the appropriate scope (request or se

outputting mysql (or any other database) error in jsp

2004-07-17 Thread Research labs
Can anyone please tell me the best way to get a database error into my java code so that I can output the database error in a JSP etc. My key problem is how to pass the database error to my Java code. Thank you. Ola.

RE: Intermediate loading page

2004-07-17 Thread Denis Peyrusaubes
Hi, A simpliest solution for resolve such a problem: The form that previously runs the pdf generation know do a forward to A jsp page indicating "please wait" and that contains a "onload" tag That post a request to the action that construct the pdf report. Such a solution a easier to develop

About Master-Detail / Radio Buttons / Indexed Properties Behavious !!!

2004-07-17 Thread Buland Altaf
Hi Theres, I am facing some issues about master-detail / radio button for indexed properties. Issues are:-___ Problem 1 __>1. I am facing later mentioned problem of>master-detail from on session time out.I am using>DynaActionForms with array properties as form-bean>property