RE: ActionForward and Frames

2001-03-29 Thread Sean Giles

yes,  thats what we doing currently but under certain conditions I would
like to change the target frame.

Thanks
Sean

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:49 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionForward and Frames




On Wed, 28 Mar 2001, Sean Giles wrote:

 Is it possible to target a specific frame with an ActionForward?  For
 instance if I want to return to a search page that exists in a leftmost
 frame if the target of the search results link was a contents frame?
 

Which frame the output goes to is determined by the "target" attribute on
the a or form tag that submitted the request.  Make sure you generate
your hyperlinks and input forms with the appropriate value, and this
should work.

 
 Thanks
 Sean

Craig McClanahan



ActionForward and Frames

2001-03-28 Thread Sean Giles


Is it possible to target a specific frame with an ActionForward? For instance if I want to return to a search page that exists in a leftmost frame if the target of the search results link was a contents frame?


Thanks
Sean

-- Sean Giles, [EMAIL PROTECTED] on 03/28/2001




RE: question about ActionForm reset()

2001-03-09 Thread Sean Giles

Here's part of the struts-config.xml

actionpath="/viewpnr"
   type="com.trx.agentpartner.beans.ViewPNRAction"
   name="pnrform"
   validate="false"
   scope="request"
   forward   name="success"  path="/ViewPNR.jsp"/
 /action

actionpath="/savepnr"
   type="com.trx.agentpartner.beans.SavePNRAction"
   name="pnrform"
   scope="request"
   input="/ViewPNR.jsp"
   validate="true"
   forward   name="success"  path="/ViewPNR.jsp"/
   forward   name="findpnr"  path="/FindPNR.jsp"/

 /action

Here's part of the JSP page

html:form action="savepnr.do" focus="address1"

table border="0" width="100%"

tr
th align="right"
  bean:message key="viewpnr.address1"/
/th
td align="left"
  html:text property="address1" size="35"
maxlength="50"/
/td
/tr

tr
th align="right"
  bean:message key="viewpnr.address2"/
/th
td align="left"
  html:text property="address2" size="35"
maxlength="50"/
/td
/tr


tr
td align="right"

html:submit
bean:message key="viewpnr.submit"/
/html:submit

/td

td align="left"
  html:reset
bean:message key="viewpnr.reset"/
  /html:reset

/td
/tr

    /table

    /html:form

Thanks

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:33 AM
To: [EMAIL PROTECTED]
Subject: Re: question about ActionForm reset()


Could you post your JSP, or a fragment of it? That would probably help us
help you.

Thanks.

--
Martin Cooper

- Original Message -
From: "Sean Giles" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 2:57 PM
Subject: question about ActionForm reset()


 I have a Actionform with request scope populated using
 PropertyUtil.copyProperties() and forwarded another page.

 All the properties display correctly on that page but when I actually
submit
 I see the reset() method being called and then validate(), however between
 reset() and validate() the form properties are not repopulated and
 validation fails.

 This is very much like the example edit/save subscription example which
 works perfectly.

 Anyone have any ideas on where I'm going wrong?

 Thanks
 Sean




question about ActionForm reset()

2001-03-07 Thread Sean Giles

I have a Actionform with request scope populated using
PropertyUtil.copyProperties() and forwarded another page.

All the properties display correctly on that page but when I actually submit
I see the reset() method being called and then validate(), however between
reset() and validate() the form properties are not repopulated and
validation fails.

This is very much like the example edit/save subscription example which
works perfectly.

Anyone have any ideas on where I'm going wrong?

Thanks
Sean



I18n

2001-02-10 Thread Sean Giles

How can I set the locale for each individual user session before the first
page displays?

I've tried putting the session.setAtttribute(Action.Locale_key,locale) but
it always displays in the default locale of the machine?  Changing the
machine locale causes the correct properties file to be used so I know that
is not the problem.

Thanks
Sean Giles



Re: I18n

2001-02-10 Thread Sean Giles


Thanks Craig I'm using Jrun 3.0 and downloaded the service pak and the session.setAtttribute(Action.Locale_key,locale now seems to be working. 

From a design standpoint what is the best way to set the locale information regardless of browser or machine settings to build the initial Accept-language header? Another servlet that reads a cookie and builds the headers before directing the request to the struts action servlet?

Basically I have a requirement for a user to be able to switch between languages on the fly but also being able to set an initial locale preference when they log in. The struts framework handles the switching without a problem (which is really cool) its the initial display that I'm wondering about since they may have us_english for a machine setting, browser setting for spanish and an initial application locale preference for French.

Thanks again,
Sean


On Sat, 10 Feb 2001 12:38:24 -0800, Craig R. McClanahan wrote:
Sean Giles wrote:

How can I set the locale for each individual user session before the first
page displays?

I've tried putting the session.setAtttribute(Action.Locale_key,locale) but
it always displays in the default locale of the machine? Changing the
machine locale causes the correct properties file to be used so I know that
is not the problem.


In the Struts example app, this is done by including the following tag on the
index.jsp page (actually, on every page):

%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html locale=true
... page content ...
/html:html

This causes that html:htmltag to consult the Accept-Language header sent by
the browser, and set up a Locale in the user's session if it is not already
there -- exactly the same way that the controller servlet does this if you
configure it to.

NOTE: There are currently problems with this on servlet containers that do not
correctly implement the JSP 1.1 requirements for converting custom tag attribute
values. I have heard problem reports about JRun 3.0 and ATG in this regard.


Thanks
Sean Giles

Craig



-- Sean Giles, [EMAIL PROTECTED] on 02/10/2001




HTML examples

2001-02-07 Thread Sean Giles

Are there any complex examples for using the form:tags?  I'm just getting
started with struts and am having a problem using the form:select and
form:option tags.

Thanks
Sean Giles



RE: Running and debugging with Oracle JDeveloper

2001-02-02 Thread Sean Giles

I recently had this problem and it was due to the "application" parameter
option in the web.xml file not pointing to a valid resource file

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: Running and debugging with Oracle JDeveloper





Hello,

has anyone successfully achieved to run/debug a web application based on
struts
using
Oracle JDeveloper 3.2.2?

If I run/debug my application I get the following error message:

javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
 void index._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServlet
Request,

javax.servlet.http.HttpServletResponse)
 void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
 void
oracle.jsp.JspServlet.internalService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest,
oracle.lite.web.JupResponse)
 void
oracle.lite.web.MimeServletHandler.handle(oracle.lite.web.JupApplication,
java.lang.String, int, oracle.lite.web.JupRequest,
oracle.lite.web.JupResponse)
 void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest,
oracle.lite.web.JupResponse)
 void oracle.lite.web.JupHandler.handle(oracle.lite.web.JupRequest,
oracle.lite.web.JupResponse)
 void oracle.lite.web.HTTPServer.process(oracle.lite.web.JupRequest,
oracle.lite.web.JupResponse)
 boolean
oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream,
oracle.lite.web.JupOutputStream)
 boolean
oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream,
oracle.lite.web.JupOutputStream)
 void oracle.lite.web.SocketListener.process(java.net.Socket)
 void oracle.lite.web.SocketListener$ReqHandler.run()



Any help would be appreciated.

Regards,

  Michael