RE: can i have multiple struts-config.xml

2004-06-16 Thread Satish Kataria
Yes you can have any number of struts-config file. You have to name them differeently though and put allof them in WEB-INF folder. Then declare all the struts-config files in web.xml E.g action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml, /WEB-I

AW: Reporting Tool

2004-06-16 Thread Ralf Alt
I'm using the http://jasperreports.sourceforge.net/ and the design tool iReport http://sourceforge.net/projects/ireport/. Ralf -Ursprungliche Nachricht- Von: Shailender Jain [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. Juni 2004 08:37 An: [EMAIL PROTECTED] Betreff: Reporting Tool H

RE: Reporting Tool

2004-06-16 Thread Joe Hertz
>1. The data in the crystal report can be read only from a data > source i.e. tables. Therefore there is a need to create some > table for reports. What else would you expect for #1? >2. The reports needs to be presented in such a manner that the > ro

Re: can i have multiple struts-config.xml

2004-06-16 Thread Lionel
>> Lionel wrote: >> http://otn.oracle.com/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html Shailender Jain wrote: > I went to this link but this document seems to have been > removed. Is there is any other link? the given link works fine... try

RE: can i have multiple struts-config.xml

2004-06-16 Thread Viral_Thakkar
I tried this and I am getting parsing error. -Original Message- From: Satish Kataria [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:45 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: can i have multiple struts-config.xml Yes you can have any number of struts

Re: LookupDispatchAction and Form validation + DispatchAction

2004-06-16 Thread Mark Lowe
Another way is to check which dispatch action is being activated and then run validation or not depending on which action is being run. e.g. /foo.do?method=save mapping.getParameter() return the name of the parameter used to dispatch with. In this case "method" request.getParameter(mapping.ge

RE: can i have multiple struts-config.xml

2004-06-16 Thread Rajat Pandit, Gurgaon
Check for well formed xml using any xml editor which can validate your document based on the dtd -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:48 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: can i have multiple strut

Newbie: Using Struts with JAAS?

2004-06-16 Thread Adam Lipscombe
Folks, I am struggling to understand how to use JAAS with Struts 1.1 I need a simple-to-follow example. The requirement is for standard authentication and permission handling - logging a user in and checking that they have permission to access an Action or URL. Should I use JAAS or home-grown

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Joe Hertz
You've got a middle case youre not mentioning. What's wrong with container managed/declarative security (ex: A JDBCRealm) or something a shade more robust like SecurityFilter? > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 16, 2004 5:11 AM

Re: Newbie: Using Struts with JAAS?

2004-06-16 Thread Ravi Vedala
Try looking at JGuard ! regds r-a-v-i - Original Message - From: "Adam Lipscombe" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 2:40 PM Subject: Newbie: Using Struts with JAAS? > Folks, > > > I am struggling to understand how to

Struts validator unauthorized string value

2004-06-16 Thread Heligon Sandra
I have a field (string) in my DynaValidatorForm 'type' and I would like to return an error 'Invalid type name' when the selected value is 'undefined'. Has someone an example of validation.xml file wich do that ? Thanks a lot in advance

RE: Caching data from resultset

2004-06-16 Thread Pilgrim, Peter
> -Original Message- > From: Kies, Daniel [mailto:[EMAIL PROTECTED] > Sent: 14 June 2004 17:52 > To: 'Struts Users Mailing List' > Subject: RE: Caching data from resultset > > > I recently implemented pagination for resultsets using Oracle > 9i. Instead > of loading up the entire resul

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Matthias Wessendorf
Hi Adam, in tomcat 4.1.X there is an application (admin) that is based upon JAAS and struts. it uses MemoryRealm to identify the users. (a file "tomcat-users.xml" in $TOMCAT_HOME/conf) watch WEB.XML (for security-rules) and login.jps in $TOMCAT_HOME/server/webapps/admin there is also a simple l

RE: Caching data from resultset

2004-06-16 Thread Freddy Villalba Arias
Hi, Yes, indeed. Postgres has something similar. Regards, Freddy. -Mensaje original- De: Pilgrim, Peter [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 16 de junio de 2004 11:51 Para: 'Struts Users Mailing List' Asunto: RE: Caching data from resultset > -Original Message- > F

RE: Query question

2004-06-16 Thread Pilgrim, Peter
> -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent: 14 June 2004 18:13 > To: '[EMAIL PROTECTED]' > Subject: Query question > > > Anyone here familiar with using CATSEARCH type oracle > queries? If so, I am > trying to do something like: > SELECT COLNAME >

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Adam Lipscombe
Hi Joe, Thanks for that. I cant comment which approach most appropriate 'cos I haven't used them, Really I am looking for advice on which is the most practical "real-world" way to enforce security in a Struts 1.1 environment. I don't need anything fancy - just logging a user in and then preventi

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Enrique Medina
In my organization, we use JAAS with Struts through the RequestProcessor class. There are two cases: - With respect to authentication, we use an action (LogonAction) which is responsible for creating a JAAS subject in session. - With respect to authorization, simply extend RequestProcessor class

exception handling

2004-06-16 Thread Viral_Thakkar
Hi All, Please verify the below exception handling scenario. Struts Action class --> Business Delegate --> EJB (Uses OR Mapping Top link to talk to database) Also, we have a ServiceLocator class which is used to get the EJBHome reference. There are three layers at which we need to handle the

RE: can i have multiple struts-config.xml

2004-06-16 Thread Viral_Thakkar
503 Parsing error -Original Message- From: Satish Kataria [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 1:09 PM To: Viral_Thakkar Subject: RE: can i have multiple struts-config.xml What is extact error you are getting Also can you send me ur strut config files and web.xml? Sa

RE: can i have multiple struts-config.xml

2004-06-16 Thread Asim Ghosh
i dont think we can have multiple strut-config file. But yes we can divide strut-config file into module. later there should be an entry of those module strut config file in strut-config.xml. Asim Viral_Thakkar <[EMAIL PROTECTED]> wrote: 503 Parsing error -Original Message- From: Sat

using errorPage with tiles

2004-06-16 Thread Parag
Experts, I have an application which uses tiles to compose pages. the sections being header, menu, body, footer. JSP pages in the 'body' tile use <%@ page errorPage="/jsp/Errors.jsp" %> to handle errors if any, on the JSP page. Errors.jsp has <%@ page isErrorPage="true" %> Problem: when there

RE: can i have multiple struts-config.xml

2004-06-16 Thread Matthias Wessendorf
hi, without *blanks* config /WEB-INF/struts-config.xml,/WEB-INF/a.xml,/WEB-INF/b.xml or modules (e.g. supplier, customer...): config /WEB-INF/conf/struts-default.xml config/module1 /WEB-INF/conf/struts-module1.xml > -Original Mes

RE: exception handling

2004-06-16 Thread Pilgrim, Peter
Please, really! Do you really want to us to design and develop your application for you? Check out Struts global exception configuration. HTH > -Original Message- > From: Viral_Thakkar [mailto:[EMAIL PROTECTED] > > Please verify the below exception handling scenario. -1 > > Struts Act

Re:[SOLVED] using java.util.Map

2004-06-16 Thread Henrique VIECILI
Well, I was using a TreeMap and put it straight to the application scope from a plugin, but what i needed was some collection in the scope, then i did : Map states = new TreeMap(); states.put(...); getServletContext().setAttribute("states",states.entrySet()); The entrySet() returns a Set (colle

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Rajat Pandit, Gurgaon
Hello, A simple home brew approach would be to develop a custom ActionMapping and use it. Then on every action(based on the request made) call the custom ActionMapping and check which groups are allows. This way you can divide the users in groups. And in your struts-config.xml's action mapping tag

RE: exception handling

2004-06-16 Thread Viral_Thakkar
I just want to verify my approach from the experts. Thanks Viral -Original Message- From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 4:57 PM To: 'Struts Users Mailing List' Subject: RE: exception handling Please, really! Do you really want to us to design

Re: [OT]Help needed in wring regular expression

2004-06-16 Thread Christopher Schultz
Ram, Initially we had to use (\d{1,4})|(FEW)|(few)|(MANY)|(many) and eventually we found that it is accepting 0(zero) when we enter a integer value as 0(zero) or which is invalid. anybody have any idea about how to achieve the above using regular expression. I tried finding any document to ref

RE: can i have multiple struts-config.xml

2004-06-16 Thread Viral_Thakkar
I tried this but still same error 503 Service Unavailable Servlet error: Parsing error processing resource path /WEB-INF/struts-config.xml,/WEB-INF/a-config.xml -Original Message- From: Satish Kataria [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 5:45 PM To: Viral_Thakkar Su

RE: Struts alternative to using request.getParameterValues in an actionform?

2004-06-16 Thread Satish Kataria
You can use nested tags to automatically retrive and populate information. A snippet of code is as follows It assumes you have a attribute named sitesList in ur action form This way you can access any type of attribute from ur action form -Or

Resultsets and multi-check forms

2004-06-16 Thread CRANFORD, CHRIS
To broaden the prior discussion on resultset caching, I'd like to also ping the group on the concept of being able to have this "resultset" of data and paging through it but extendeding it to where a checkbox exists for each viewable record. I need to be able to pre-select values from a database

RE: exception handling

2004-06-16 Thread Rajat Pandit, Gurgaon
:) lol -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 5:12 PM To: Struts Users Mailing List Subject: RE: exception handling I just want to verify my approach from the experts. Thanks Viral -Original Message- From: Pilgrim, Pete

RE: Caching data from resultset

2004-06-16 Thread Viral_Thakkar
Should we need to store the X and Y values in session? -Original Message- From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 3:21 PM To: 'Struts Users Mailing List' Subject: RE: Caching data from resultset > -Original Message- > From: Kies, Daniel [mai

Re: Reporting Tool

2004-06-16 Thread Susan Bradeen
"Shailender Jain" <[EMAIL PROTECTED]> wrote on 06/16/2004 02:37:00 AM: > Hi, > > I want to generate some reports in my application. > I am currently using Struts as a framework. > > The current architecture for generating reports uses Crystal > Report 9.0 >

user@struts.apache.org

2004-06-16 Thread bojke
Hi, Do Tiles work with FRAMES ? Thank you, Bojan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

user@struts.apache.org

2004-06-16 Thread James Mitchell
Does PHP work with Frames? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "bojke" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9:02 AM Subject: T

user@struts.apache.org

2004-06-16 Thread James Mitchell
Does JSP work with Frames? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "bojke" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9:02 AM Subject: T

user@struts.apache.org

2004-06-16 Thread James Mitchell
http://www.htmlgoodies.com/tutors/fram.html -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "bojke" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9

user@struts.apache.org

2004-06-16 Thread bojke
Very polite from you, Thanks, dear evangelist Bojan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

user@struts.apache.org

2004-06-16 Thread James Mitchell
No problem my friend, glad I could help. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "bojke" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9:12

[OT] java server mode vs. client mode

2004-06-16 Thread Matt Bathje
So I was reading the stories here: http://www.sys-con.com/story/?storyid=45250 http://www.kano.net/javabench/ Summary: Java in server mode is faster than C++ in the benchmarks run. Java in client mode is much more iffy, sometimes faster, sometimes slower, and sometimes the same. So my question

how to find struts version

2004-06-16 Thread Eyup TEKIN
hi there is a project developed with jbuilderX and struts i tried to migrate it from tomcat4.1.x to oracle9ias10g but i cant find struts version in the project. i downloaded struts1.1 and there are errors while tried to install tiles-documentation.war to oc4j.i used jdeveloper10G sincerely -

Re: Struts alternative to using request.getParameterValues in an actionform?

2004-06-16 Thread Asif Rahman
I tried this, it should work theoretically, but my form is empty now, none of the textfields are showing up. I do have a property called sitesList in the OpporutnitySitesForm and it is already populated when I arrive at this page. Please advise. Thanks. -Asif - Original Message - From

Respond Differently based upon host name

2004-06-16 Thread Jeremy Cowgar
Greetings. I run lifewithchrist.org, a blogging system. I writing version 2.0 and doing so in struts (1.0 is PHP). I am not certian of one thing. Currently (and it must remain this way), I have DNS setup to a wildcard, and it ships it all to the same webserver (apache). The webserver then direc

Re: how to find struts version

2004-06-16 Thread klute
if you have access to the struts.jar being migrated, find manifest.mf file there and open it. Look for Specification-Version and Implementation-Version values. Hope this helps, James ___ http://www.devbistro.com <- web dev jobs --- Eyup TEKIN <[EMAIL PROTECTED]> wrote: > hi > there is a projec

RE: multiple tilesdef

2004-06-16 Thread Ricardo Cortes
What's the issue? When you specify the value for the "definitions-config" property in the TilesPlugin, you can list as many Tiles-def.xml files as you want. An example is below. -Original Message---

Re: Struts alternative to using request.getParameterValues in an actionform?

2004-06-16 Thread Asif Rahman
*blush* sorry, forgot the taglib directive. -Asif - Original Message - From: "Asif Rahman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 9:50 AM Subject: Re: Struts alternative to using request.getParameterValues in an actionform?

RE: [OT]Help needed in wring regular expression

2004-06-16 Thread RDoss
Chris: thank you for your help. yes, I need to accept any leading zeros but it should be followed by any non-zero integer in that case. ([1-9][0-9]{0,3})|([Ff][Ee][Ww])|([Mm][Aa][Nn][Yy]) is working fine but could not enter any leading zeros. thank

Vexing session creation issue

2004-06-16 Thread Frank Zammetti
Argh, this one is hurting my head... I have an application that starts out by returning index.jsp (it's the welcome file). This JSP opens a new window via JavaScript and loads into it index1.jsp. index1.jsp populates five frames of a frameset. At the end of all this, my logon screen is seen.

Re: Respond Differently based upon host name

2004-06-16 Thread Joe Germuska
At 10:10 AM -0400 6/16/04, Jeremy Cowgar wrote: Greetings. I run lifewithchrist.org, a blogging system. I writing version 2.0 and doing so in struts (1.0 is PHP). I am not certian of one thing. Currently (and it must remain this way), I have DNS setup to a wildcard, and it ships it all to the sa

RE: Vexing session creation issue

2004-06-16 Thread Frank Zammetti
Never mind... as usual, it was a stupid developer trick... Turns out I forgot two JSP's that get loaded, and they didn't have session=false in them, so that explains it. My bad. Well, I still do have another problem (I think... could be me again!)... When you execute an Action, assume it's the

How do I put a JSP via a DispatchAction class into a tile?

2004-06-16 Thread bojke
I understand how to put a static page into a tile ... ... ... but how do I put a dymanic page ... that is, a JSP via a DispatchAction class into a tile? When I use the action path from struts-config.xml (i.e. "main.do"), It does not work. Thanks. --

RE: Rendering Images

2004-06-16 Thread mike
With respect, I think this is a great solution (and the exact one I offered long ago in this thread with the code to do it) but a wrong description of the problem. He is trying to create a response and as part of that has to request an image, which is a typical and unexceptional requirement, bu

RE: Rendering Images

2004-06-16 Thread mike
I forgot. I have the entire solution I use at the struts wiki at http://wiki.apache.org/struts/StrutsCatalogEschewUrlForProtocol. All you have to do is to examine the input and give a different output for your problem. I use Wendy's get the data right solution, but I don't have your problem.

RE: Rendering Images

2004-06-16 Thread Hookom, Jacob
Why would you use something like that? I'm maybe not following the code? Is this so instead of writing: /images/hello.gif you can write: /resource.do?file_type=gif&file_name=hello.gif ?? -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 10:14 AM T

RE: Rendering Images

2004-06-16 Thread mike
The reason is that I use jsp behind WEB-INF and want to avoid all the difficulties with HTML and URLs behind WEB-INF. It also gives me a great interface for solving all sorts of problems like this one. This allows the page designer just to ask for whatever they want in a standard way that nev

RE: Rendering Images

2004-06-16 Thread mike
I should say also, Jacob, that if you think the simple "URL" or "protocol" is important and you wanted to complicate the code you could easily change the request in the response to: /resource.do?hello.gif. I use /resourcedo?file_type=gif&file_name=hello.gif because in fact there are other uses

RE: Rendering Images

2004-06-16 Thread Linck, Ken
Sorry..didnt make the connection initially between your initial proposal and mine. Some subtle differences but mostly identical. -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:14 AM To: Struts Users Mailing List; Struts Users Mailing List Subjec

RE: Rendering Images

2004-06-16 Thread Linck, Ken
On a sidenote, it would be kind of nice to add some kind of imageNotFound property to the tag where you could specify an alternate image instead. It seems like a common challenge in many places. -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:48

Re: How do I put a JSP via a DispatchAction class into a tile?

2004-06-16 Thread Asif Rahman
Example: I have a DispatchAction called OpportunityCustomerAction that is forwadring to a tile: //*snippet start in struts config // //*snippet end struts config// Whether the validation fails or succeeds it will forwarded to the CustomerDef tile. //*snippet start

RE: Rendering Images

2004-06-16 Thread CRANFORD, CHRIS
YES! ;-) -Original Message- From: Linck, Ken [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:57 AM To: Struts Users Mailing List Subject: RE: Rendering Images On a sidenote, it would be kind of nice to add some kind of imageNotFound property to the tag where you could speci

The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
I have a "list" of articles to be retrieved from the database and displayed. The first time I display the list, I simply sort the list by posting date and descending order (without providing a form) when I query the database. Thereafter, users are offered opportunities on top of the table of the

[OT] jasper.runtime.BodyContentImpl problem

2004-06-16 Thread Barnett, Brian W.
I must have done something to mess up my dev environment. My jsp pages will not render now. This is what displays in the browser now: [ServletException in:/WEB-INF/jsp/AgentList.jsp] org.apache.jasper.runtime.BodyContentImpl.clearBody()V' I upgraded Tomcat (5.0.16 to 5.0.25), Eclipse (M4 to

RE: The Same Action With and Without a Form

2004-06-16 Thread CRANFORD, CHRIS
Define your form in struts-config.xml like: .. Other properties here Then define your action mapping to use this formbean. When your form posts, it will assume the default values for sort/order if they not present in the request. If they're present in the HttpRequest object, then the

Re: Struts alternative to using request.getParameterValues in an actionform?

2004-06-16 Thread Asif Rahman
Satish, it does not seem to work in the actionform. The properties are not getting set for the individual site objects using the nested tags. I have a setSitesList(arraylistOfSiteTransferObjects). What am I missing? Thanks. -Asif - Original Message - From: "Asif Rahman" <[EMAIL PR

Using a servlet code within Struts

2004-06-16 Thread Ricardo Andres Quintero
Hello everyone I want to make some servlet code to work in Struts. i dont want to make the servlet to work. i want to rewrite the code into Struts. The servlet uses out = response.getOutputStream() and then out.write(); I know Struts uses the model 2, so that the view is a jsp. Im thinking of u

RE: Using a servlet code within Struts

2004-06-16 Thread Kommana, Sridhar
Look at it here: http://www.jguru.com/faq/view.jsp?EID=531024 -Original Message- From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: Using a servlet code within Struts Hello everyone I want to make some servlet co

R: Using a servlet code within Struts

2004-06-16 Thread Amleto Di Salle
Hi, you can return null inside the Action as ActionForward. In this case Struts doesn't dispatch the request to view. BR Amleto -Messaggio originale- Da: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] Inviato: mercoledì 16 giugno 2004 18.28 A: [EMAIL PROTECTED] Oggetto: Using a serv

help plz

2004-06-16 Thread Arif ERSİN
Hi all, I have a problem, I was split my application to 3 modules. They have a configuration file, struts-m1.xml struts-m2.xml struts-m3.xml and one global conf. file struts-congig.xml. I am define action in struts-m1.xml, like this, in we

Re: How do I put a JSP via a DispatchAction class into a tile?

2004-06-16 Thread Ron Grabowski
> Date: Wed, 16 Jun 2004 16:50:17 +0200 > From: bojke <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] > Subject: How do I put a JSP via a DispatchAction > class into a tile? > > I understand how to put a static page into a tile > ... > >

RE: help plz

2004-06-16 Thread Ram Venkataswamy
Hi, Web.xml of Struts module need little extra configuration, basically the default struts-config.xml is defined as config parameter and then all the module struts config as config/moduleName. In your case you have to define struts-m1.xml in web.xml as below config/mod1 /WEB-INF/str

RE: help plz

2004-06-16 Thread Ram Venkataswamy
FYI: setting contextRelative=true is required only for switching modules (that is call to action defined in other module) V.K.Ram NitroX Struts Team -Original Message- From: Arif ERSIN [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: he

Newbie: Using Struts with JAAS?

2004-06-16 Thread charles gay
hi adam, if you want to use an inner java mechanism(included in j2se since java 1.4), well-suited like JAAS, you should look at http://sourceforge.net/projects/jguard/ jGuard helps you to use easily JAAS, in a pluggable manner, in your j2ee web application. you can with it,manage access and a

ServletContextListener

2004-06-16 Thread gdeschen
Greetings, I have created a ServletContextListener that sets a Bean in the application scope. This Bean contains 2 list of Months... and these lists contain LabelValueBeans. My uncertainty is on the best way to get my JSP to use the appropriate List depending on the locale. JSP code:

Tiles problem

2004-06-16 Thread Bob Thomas
When I do this ... ... I get the following error message: java.lang.IllegalStateException: Cannot forward after response has been committed What am I doing wrong? Thanks in advance, Bob - Do you Yahoo!? Take Yahoo! Mail with you! Ge

RE: Using a servlet code within Struts

2004-06-16 Thread mike
Just return null in the Action code. At 10:33 AM 6/16/2004, Kommana, Sridhar wrote: Look at it here: http://www.jguru.com/faq/view.jsp?EID=531024 -Original Message- From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:28 AM To: [EMAIL PROTECTED] Subject:

RE: Rendering Images

2004-06-16 Thread mike
No worries, Ken. Seeing you thinking the same way was a bit edifying. I am not sure why people continue to use URLs when protocols will do and are so much general a solution. I use this, by the way, to convert all my jpegs to Flash inside ActionScript without having to introduce any image in

RE: Using a servlet code within Struts

2004-06-16 Thread Pingili, Madhupal
Yes. You can return null inside the Action's execute method just like follows: OutputStream out = response.getOutputStream(); out.write(data.getBytes()); //This action sends the response itself, so return null. return null; Reddy Pingili > -Original Message- >

Re: ServletContextListener

2004-06-16 Thread mike
At 12:13 PM 6/16/2004, [EMAIL PROTECTED] wrote: Greetings, I have created a ServletContextListener that sets a Bean in the application scope. This Bean contains 2 list of Months... and these lists contain LabelValueBeans. My uncertainty is on the best way to get my JSP to use the appropriate List d

Re: Tiles problem

2004-06-16 Thread James Mitchell
Did you configure an error page in your web.xml? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bob Thomas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 3:23 PM Subject: Ti

Re: Struts/Lunar Pages/Resin Issues

2004-06-16 Thread DGraham
I'm curious.  Did you get this resolved? Dennis mike <[EMAIL PROTECTED]> 06/14/2004 02:57 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Developers List" <[EMAIL PROTECTED]>, "Struts Users Mailing List" <[EMAIL PROTECTED]> cc "Struts Developers Li

Re: Tiles problem

2004-06-16 Thread Bob Thomas
We have an error 404 page: 404 /error.jsp I'm not sure why the 'main.do?method=doInit()' doesn't get put into the tile. James Mitchell <[EMAIL PROTECTED]> wrote: Did you configure an error page in your web.xml? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc

Re: Resultsets and multi-check forms

2004-06-16 Thread Chris Cranford
I haven't seen any comments on this .. any ideas? > To broaden the prior discussion on resultset caching, I'd like to also ping > the group on the concept of being able to have this "resultset" of data and > paging through it but extendeding it to where a checkbox exists for each > viewable record

Re: Resultsets and multi-check forms

2004-06-16 Thread DGraham
You might want to re-present the problem.  When I read your email, it seemed like you were describing a typical use-case: 1. Get data from a persistent store 2. Populate form.  If attribute indicates "selected", preselect checkbox 3. Render form (allowing user to edit) 4. Persist edits. Dennis

Re: Struts/Lunar Pages/Resin Issues

2004-06-16 Thread mike
Yes, thanks. They had another instance of Resin setting before my website was initialized and when my website was initialized the Resin instance default port conflicted with the other instance. There was nothing wrong with my code or Struts. They just assumed that since Resin kept resetting

Re: ServletContextListener

2004-06-16 Thread gdeschen
My apologies for being unclear... Yes the Bean has one method called getMonths()... and in this method I will return the appropriate months based on the locale. It is just that getting/passing the Locale to the getMonths() in a JSP is not really elegant. JSP code: And wondering if there

Re: Tiles problem

2004-06-16 Thread mike
I haven't looked at the flush in the tiles tag, but that may commit the response and, so, when you do the init with your /main.do?method=doInit" the forward at the end of your action is not possible. Something like that seems to be indicated by the error message. Do you have a stack trace? At

Re: Tiles problem

2004-06-16 Thread Bob Thomas
Here's the stack trace: java.lang.IllegalStateException: Cannot forward after response has been committed at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.j

Re: ServletContextListener

2004-06-16 Thread mike
You are using struts so, instead of calling a jsp page for the response, call an action class that sets an appropriate "months" in the request scope and forwards to your jsp page and then just call the correct "months" from request scope in the jsp page. At 12:47 PM 6/16/2004, [EMAIL PROTECTED]

Re: Tiles problem

2004-06-16 Thread James Mitchell
As mike mentionedyou should not be trying to forward after your /main.do completes. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bob Thomas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EM

Re: Resultsets and multi-check forms

2004-06-16 Thread Chris Cranford
Sort-of Yes. We never really "persist" what is selected to any layer beyond the form because we're only gathering attributes that which are provided to our "search" action once all the selectable attributes. So from a technical use-case perspective I understand that: 1. Form session scoped for

Re: Tiles problem

2004-06-16 Thread Bob Thomas
So, how do I get the result of main.do into a tile? How do developers typically get the results of a DispatchAction class method into a tile? James Mitchell <[EMAIL PROTECTED]> wrote:As mike mentionedyou should not be trying to forward after your /main.do completes. -- James Mitchell Soft

Re: Tiles problem

2004-06-16 Thread Joe Germuska
At 12:23 PM -0700 6/16/04, Bob Thomas wrote: When I do this ... ... I get the following error message: java.lang.IllegalStateException: Cannot forward after response has been committed What am I doing wrong? James' point is that if your servlet detects an error and you have a configured err

Re: Resultsets and multi-check forms

2004-06-16 Thread DGraham
Sounds like you're describing a struts Multibox: http://jakarta.apache.org/struts/userGuide/struts-html.html#multibox Ted Husted has a nice intro here: http://www.jguru.com/faq/view.jsp?EID=925277 Dennis   "Chris Cranford" <[EMAIL PROTECTED]> 06/16/2004 04:06 PM Please respond to "Stru

Re: ServletContextListener

2004-06-16 Thread gdeschen
Sure, my idea of using a Bean in the application scope is to not have to do the creation of the List of months in every Action class and just reference the Bean in the application scope from the JSP page.. So I guess that the Action class can obtain the Months from the Bean in the application s

Re: Tiles problem

2004-06-16 Thread James Mitchell
I typically use this kind of structure: (struts-config.xml) (tiles-defs.xml) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Bob Thomas" <[EMAIL

Re: Tiles problem

2004-06-16 Thread mike
At 12:54 PM 6/16/2004, Bob Thomas wrote: Here's the stack trace: java.lang.IllegalStateException: Cannot forward after response has been committed at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371) at org.apache.catalina.core.ApplicationDi

Re: Resultsets and multi-check forms

2004-06-16 Thread DGraham
Ah ha.  I think I just understood the real problem; each subsequent submission of the form wipes out the current collection of selected checkboxes.  If that's your problem, then I believe you're going to have to modify the way you're modelling the collection of as well as the behavior of the acces

getMessageResources in webLogic?

2004-06-16 Thread Jacob Weber
In my Struts app, I need to get data from a resource bundle. So I make a call to: MessageResources.getMessageResources("myFile") The file name is actually myFile_en_US.properties, and when I run this code on Tomcat, it's able to find the right file. But when I run the same code on WebLogic, i

RE: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
The property of the 'initial' attribute inside the tag (i.e. initial="postDate") does not seem to become the default value. The query method (with sort and order among the parameters) that retrieve articles from the database got the NullPointerException. I know the query method works well becaus

Re: Resultsets and multi-check forms

2004-06-16 Thread Chris Cranford
There ya go! I knew you'd see my problem ;-) So I could have a form that contains: String[] checkedItemsRender; // Rendered collection String[] checkedItemsSubmit; // Submitted collection LabelValueBean[] pageItems; // data/id to show in form Then the form takes the checkedItemsRender and

  1   2   >