what should i do to set the session in the pageContext in a Action class?

2004-04-17 Thread Ricky Lee
hi, thanks for reading.. i have a problem about set the seesion(pageContext) in the action class.. i know that set the seesion in the request, just like request.getSession().setAttribute("login_username",userForm.getUsername()); and in the JSP page, we can use the code to get the seesion: <%=

Re: A better exception-handling strategy?

2004-04-17 Thread Craig McClanahan
Frank Burns wrote: I want to have a consistent display of exceptions that occur in my Struts-based applciation. For exceptions that occur in my Action classes, I use the declarative exception handling mechanism and forward to a set of "exception pages" that I have created. However, the declarative

A better exception-handling strategy?

2004-04-17 Thread Frank Burns
I want to have a consistent display of exceptions that occur in my Struts-based applciation. For exceptions that occur in my Action classes, I use the declarative exception handling mechanism and forward to a set of "exception pages" that I have created. However, the declarative exception handling

Re: Detrmining which module from within JSP

2004-04-17 Thread Craig McClanahan
Josh Holtzman wrote: Hello, Can anyone suggest a means to determine the current struts application module from within a JSP? As long as you have correctly gone through an action first, the ModuleConfig object for the selected module has been stored as a request attribute under the key "org.ap

Re: Retaining Textbox values even after form submit

2004-04-17 Thread Craig McClanahan
Nilesh wrote: In my Struts application I am implementing Search, It is working fine with the relevant results being displayed. In the result page I again have the same SearchForm. The user can search any number of times because he is always provided with SearchForm. I want to retain (display ) the

RE: Struts Application Security within the Controller Layer

2004-04-17 Thread Josh Holtzman
Joe, Your suggestion sounds interesting, but I'm not sure if I fully understand it. Correct me if I'm wrong. You suggest extending the ActionMapping class and adding the fields to this class that I will need for checking the user group that may access this path/resource. Let's say this is a s

Re: Struts Application Security within the Controller Layer

2004-04-17 Thread Niall Pemberton
You don't need to add "additional XML elements to the Action in the struts-config.xml" to use a custom ActionMapping If you create your own custom ActionMapping with an additional "securityLevel" property: public class MyActionMapping extends ActionMapping { protected String securityLevel;

RE: Retaining Textbox values even after form submit

2004-04-17 Thread Khalid K.
You can presist the "lastSearchTerm" in HttpSession and update your form object with it. In Action something like If(session.getAttribute("lastSearchTerm") != null) myform.setSearchTerm((String) session.getAttribute("lastSearchTerm")); -Original Message- From: Nilesh [mailto:[EM

Re: html:form

2004-04-17 Thread Christian Bollmeyer
On Saturday 17 April 2004 05:13, as as wrote: > Hi > > Has anyone implemented two html:form in a same jsp.. > > I wish to do this to implement two tables.each table displaying > values in a row, of a bean... > > so there are two beans... > > for some reason, it gives me error saying it cnat find ge

Re: tiles and custom RequestProcessor

2004-04-17 Thread Niall Pemberton
Your SessionRequestProcessor needs to subclass TilesRequestProcessor. Niall - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 17, 2004 8:27 PM Subject: tiles and custom RequestProcessor > I am using tiles *and* I want to use a

Re: JSTL + isUserInRole

2004-04-17 Thread Christian Bollmeyer
On Friday 16 April 2004 21:58, Paulo Alvim wrote: > Hi! > > Is it possible to test "isUserInRole" using JSTL 1.0 (like the struts > "logic present role" tag)? > > Thanks in Advance... > > Alvim. Hi, AFAIK that's not possible in plain JSTL, so your options are either to use scriptlets or stick to

Re: tiles and custom RequestProcessor (SOLVED)

2004-04-17 Thread Dean A. Hoover
OK, the trick is to subclass TilesRequestProcessor. Thanks anyway Dean A. Hoover wrote: Sorry, I should probably have included the exception: javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor not compatible with TilesRequestProcessor org.apache.struts.tiles.TilesPl

Re: tiles and custom RequestProcessor

2004-04-17 Thread Dean A. Hoover
Sorry, I should probably have included the exception: javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor not compatible with TilesRequestProcessor org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:360) org.apache.struts.tiles.Til

tiles and custom RequestProcessor

2004-04-17 Thread Dean A. Hoover
I am using tiles *and* I want to use a custom RequestProcessor to handle HttpSession stuff. It seems that tiles uses its own request processor. I wrote a simple subclass of RequestPorcessor and configured as follows: How can I get "in front of" the tiles request processor? Dean

Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-17 Thread Christian Bollmeyer
On Saturday 17 April 2004 14:13, Erik Price wrote: > On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote: > > Finally! > > > > http://otn.oracle.com/software/products/jdev/index.html (249MB) > > > > -- Chris > > No MacOSX version? > > >:( Hi Erik, though MacOS X is not an officially supported

Detrmining which module from within JSP

2004-04-17 Thread Josh Holtzman
Hello, Can anyone suggest a means to determine the current struts application module from within a JSP? Would it be possible to use a Bean or Logic tag to make this determination? Thanks again for any suggestions. Regards, Josh Holtzman American Data Company [EMAIL PROTECTED

RE: basic problem in java

2004-04-17 Thread David Friedman
What is your CLASSPATH variable set to and is java installed in c:\biren\java? Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:47 AM To: Struts Users Mailing List Subject: basic problem in java Hi,

Re: Strange problem with the validator.

2004-04-17 Thread Nathan Maves
No ... it was the fact that I was missing the resource="false" attribute. So the validator was looking for the var:maxLength key in the application.properties which of course is not there. Nathan On Apr 17, 2004, at 6:02 AM, Erik Price wrote: But what was it, for the sake of the archives? It

Re: Pls help on request parameter

2004-04-17 Thread Prashanth.S
hi... this is because when u forward to next page ur request parameter will go as "country=nepal&bhutan" but it will be interpreted as "country=nepal"&bhutan where country and bhutan becomes 2 name pairs...so urlencode that value and than decode it cheers prashanth sougata <[EMAIL PROTECTE

RE: javascript -check all

2004-04-17 Thread Kruse, Matt
>but i ahve a jsp using struts that has a table with rows.each row has a >check box.I have a checkbox at the top of the table, clicking which, i >want all below checkboxes to be checked..has anyone implemented this >code.. I have a javascript library which makes this functionality very easy to imp

Re: [OT] Oracle JDev 10g Final (9.0.5.1 build 1605) is out!

2004-04-17 Thread Erik Price
On Apr 14, 2004, at 4:24 AM, Christian Bollmeyer wrote: Finally! http://otn.oracle.com/software/products/jdev/index.html (249MB) -- Chris No MacOSX version? >:( -- Erik Price - To unsubscribe, e-mail

Re: Pls help on request parameter

2004-04-17 Thread birendar . waldiya
User   URLEncoder  and URLDecoder  to encode & decode the variable wher the paramater are having character &  etc .. BTW Nepal  & Bhutan aret ow separate country. Birendar Singh Waldiya "sougata" <[EMAIL PROTECTED]> 17-04-04 05:16 PM Please respond to "Struts Users Mailing List" <[EMAI

Re: catch NoSuchMethodException

2004-04-17 Thread Adam Hardy
You can do that in the web.xml deployment descriptor. There's a section you set up defining what to do with various classes of exception. On 04/16/2004 11:54 PM Nicolas wrote: hi when i use the DispatchAction and someone tries to access a method which doesn't exist a NoSuchMethodException is

Re: Strange problem with the validator.

2004-04-17 Thread Erik Price
But what was it, for the sake of the archives? It wasn't the fact that the "L" in "maxLength" wasn't capitalized, was it? (Because this recently bit one of our developers, as apparently JavaScript expects it to be capitalized [even though IIRC XHTML says it shouldn't be].) Erik On Apr 14, 20

Pls help on request parameter

2004-04-17 Thread sougata
Hi Guys, I am facing a problem.I have a country drop down.I am showing the corresponding country details from the drop downs options selected.Now I have a country name like "Nepal & Bhutan" When I am trying to get the value of the country name using request.getParameter("country") it is showing on

Re: Converting DTO into formBean and vice versa

2004-04-17 Thread Adam Hardy
String -> java.sql.Date is possible with BeanUtils. Write a plugin to register a Converter with ConvertUtils at app startup. Actually I believe there are skeleton classes for LocaleBeanUtils to do what you want, but they haven't been programmed yet. Perhaps you should check on jakarta about their s

Retaining Textbox values even after form submit

2004-04-17 Thread Nilesh
In my Struts application I am implementing Search, It is working fine with the relevant results being displayed. In the result page I again have the same SearchForm. The user can search any number of times because he is always provided with SearchForm. I want to retain (display ) the last searched

Re: Struts for fatclient-server applications

2004-04-17 Thread Craig McClanahan
Andrew Petro wrote: Struts could be used for the server portion of your client-server application -- the server could be implemented as a standard web application, perhaps providing XML to the client. The client would play the role of the web browser -- be the web browser -- in interacting with t

Re: Locale="true" in html:html tag

2004-04-17 Thread Craig McClanahan
Stjepan Brbot wrote: "Craig McClanahan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] You don't need it at all if you're willing to let the user's language selection in the browser control everything (which is the default behavior). If you want to offer a "change Language" cont