iterating through an arraylist

2003-11-11 Thread Nick Faiz
Can anyone point me to some sample code for handling an object which consists of a couple of ArrayLists in an ActionForm? I'm trying to do two things: 1. take a url var and select an ActionForm from a hashmap (cache) sitting in application scope. 2. use that ActionForm in a struts form.

Re: STRUTS - Image/Img tags - Thanks

2003-11-11 Thread Todor Sergueev Petkov
Thanks for the reply. Todor Max Cooper wrote: The answer is yes, but not in the way you are thinking. You cannot send a stream of HTML and image data together and expect the browser to display it. You can send a stream of HTML data with references to image data (IMG tags) and the browser will

new to struts

2003-11-11 Thread sanjay paithankar
Hello can any one point the basic document regarding Struts which has given small examples. thnx -cs.. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree

RE: new to struts

2003-11-11 Thread Sumit S.
http://jakarta.apache.org/struts/learning.html is a good place to start. Sumit -Original Message- From: sanjay paithankar [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:47 PM To: [EMAIL PROTECTED] Subject: new to struts Hello can any one point the basic document

RE: new to struts

2003-11-11 Thread Saravanakumar P
Programming Jakarta Struts By Chuck Cavaness -O'Reilly publication is a good book to start. SaravanaKumar -Original Message- From: Sumit S. [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 3:07 PM To: Struts Users Mailing List Subject: RE: new to struts

RE: Servlet filter and Struts

2003-11-11 Thread Steffen Gransow
But that would be somewhat of an overkill, if all I need is securing some pages/actions, wouldn't it? I now have a simple servlet filter that redirects to login page if a simple object isn't to be found in session. User passwords (that is, hashes) will later be retrieved from a database. Is this

Re: new to struts

2003-11-11 Thread Pratik Patel
can any one point the basic document regarding Struts which has given small examples. There's this amazing new search engine, called Google, which you can access at www.google.com. If you enter the words Struts Tutorial and click Search it will bring up a huge list of Struts related websites.

Struts Validator + Cross Locale Validations.

2003-11-11 Thread Vara Prasad Reddy
Using Struts validator how can I do cross locale validations? Meaning, I want the validation to be done on one locale, but the error message should be from other locale. Example, The validation should be according to de-DE locale, but the error message should be of en-CA Thanks in Advance, Vara

Multiple modules in a .EAR without code replication

2003-11-11 Thread sreekant_gottimukkala
I am creating a STRUTS based app with .EAR as the deployable in which I want to host 2 .WARs, one for the internal user and the other for external user. I want to have exactly the same code base for both WARs including any resources and property/configuration files etc but for one Action class.

RE: Servlet filter and Struts

2003-11-11 Thread David Liles
If you're looking for a simple solution I've used the following snippet of code: % if(session.getAttribute(valid) == null) { % script language=JavaScript document.location=('/Logon.do'); /script % } % I place it in a JSP and then use a jsp include tag in each of the jsp pages I want secure.

Re: Hello World gone wrong

2003-11-11 Thread Adam Hardy
I also think you need to check that the struts.jar is in your WEB-INF directory... On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote: Richard, Try using forward slashes in your docbase instead of '\' docBase=E:/Projects/HelloWorld / Java might otherwise interpret it as an escape char.

Re: Populating the next Form

2003-11-11 Thread Pratik Patel
I have ActionA and FormA associated to screenA, similarly ActionB and FormB associated to screenB. Upon click of a button on ScreenA, I need to dispatch ScreenB with some values prefilled. I was wondering where should I be writing the logic to populate the FormB for showing those values prefilled

XML importing :

2003-11-11 Thread MBrewer
Sorry for a unrelated question, but is there a easy way of taking xml data and importing it into a relational database some like person nameMike/name /person gets translated as insert into user values (Mike) etc.. Mike

Re: Servlet filter and Struts

2003-11-11 Thread Max Cooper
That approach breaks the page-level addressibility advantage that building web apps generally affords, however. The breakage is that the user won't be sent back to the page they requested after they login. Container-managed security offers robust and time-tested security for your Actions/pages,

init form on page

2003-11-11 Thread Peter Klassen
Hi u all, would like to init a ActionForm on the Top of my JSP-Page with an given Data-Bean. How can i retrieve the Form? pageContext? session? thx, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Servlet filter and Struts

2003-11-11 Thread Nimish Chourey , Tidel Park - Chennai
You can also sub class the processRole method in Request Processor and then check whether the user logged in has a particular role . The accepted roles are declared in the action tag , there by giving you a action level Security . -Original Message- From: Steffen Gransow [mailto:[EMAIL

RE: XML importing :

2003-11-11 Thread Mike Jasnowski
You might try looking at www.xmlsoftware.com, they have tons of XML related utilities and tools. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 7:55 AM To: Struts Users Mailing List Subject: XML importing : Sorry for a unrelated

Re: Multiple modules in a .EAR without code replication

2003-11-11 Thread Brice Ruth
We just finished a thread on this - see the thread named Struts across WARs ... http://www.mail-archive.com/[EMAIL PROTECTED]/msg86129.html [EMAIL PROTECTED] wrote: I am creating a STRUTS based app with .EAR as the deployable in which I want to host 2 .WARs, one for the internal user and the

RE: Servlet filter and Struts

2003-11-11 Thread David Liles
Max, I've looked at the link you provided and noticed there is a limitation to the 2.3 servlet container. what options are available to the platform only supports a 2.2 version? Thanks -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent:

How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread alvin antony
Hi there, I have restricted the access to my actions with user Roles (in struts-config.xml and WEB.xml) and it works fine.. Thanks to JAAS. I couldn't't find the way to redirect user request to a status error page, in case he is not in the Role for requesting a page. any help? I am using...

RE: init form on page

2003-11-11 Thread Mike Jasnowski
You really should be populating the form from within an action before you get to the JSP. But if you must, custom tags aside, this might work: % ActionForm form = (ActionForm)pageContext.getAttribute(formBeanName); BeanUtils.copyProperties(databean,form);

ResourceBundle not available in ActionForm

2003-11-11 Thread Dominique Kraus-Ahma
Hi, i am trying to access a message-resource, that holds my error messages. Since i have two message resources, i need to give them an id to identify them. This is how my struts-config.xml looks like: !-- Message Resources Definitions -- message-resources

ResultSetDynaClass etc...

2003-11-11 Thread Sumit S.
The ResultSetDynaClass ResultSetDynaBeans are a powerful way of encapsulating ResultSets in DynaClasses. However, when we need to transfer the data from such a DynaClass to a ValueObject (say a structs ActionForm), the PropertyUtils.copyProperties looks for a property name match. So now my

RE: ResultSetDynaClass etc...

2003-11-11 Thread shirishchandra.sakhare
I think the dynaFormBean is there for exactly same purpose -Original Message- From: Sumit S. [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 4:17 PM To: [EMAIL PROTECTED] Subject: ResultSetDynaClass etc... The ResultSetDynaClass ResultSetDynaBeans are a powerful way of

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread Saul Q Yuan
How about this: Call response.sendError(HttpServletResponse.SC_FORBIDDEN, some description msg) in your action if the user is not in the role; Saul -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:49 AM To: Struts Users Mailing List

Re: ResourceBundle not available in ActionForm

2003-11-11 Thread alvin antony
Hi Dominique, Make sure that ApplicationResources.properties and ApplicationErrors.properties are available in a package 'resources' under WEB-INF/classes or WEB-INF/lib/ Alvin Dominique Kraus-Ahma [EMAIL PROTECTED] wrote: Hi, i am trying to access a message-resource, that holds my error

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread alvin antony
Hi Saul, Thanks for your replay. I knew this is one solution. But in my case the user is redirected to status message from Struts controller or tomcat authenticator. I would prefer to redirect the user to a jsp page with a descriptive message. It would be fine , if I can define some how in

RE: ResourceBundle not available in ActionForm

2003-11-11 Thread David Liles
Not sure if it matters, but is there a difference as to where the reference should be located (ie: web.xml vs. struts-config.xml) between Struts 1.0 and 1.1? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 9:42 AM

Re: ResourceBundle not available in ActionForm

2003-11-11 Thread Dominique Kraus-Ahma
Hi Alvin, all properties-files are available under /WEB-INF/classes/resources. The problem starts when trying to access them from the ActionForm, when i do not specify a bundle id (as opposed to the jsp file). When i use just one single properties-file (e.g. ApplicationResources.properties), it

NJ User Group to Study Struts / JSF

2003-11-11 Thread Menke, John
The NJMVCOpenSource Group meets in Morristown NJ every 4th Saturday of every month. We are just starting to discuss JSF / Struts. Anyone that wants to join please see: http://groups.yahoo.com/group/njmvcopensource/ We welcome new members :)

Re: ResourceBundle not available in ActionForm

2003-11-11 Thread Dominique Kraus-Ahma
Hi David, i sticked to this document http://www.systemmobile.com/articles/strutsMessageResources.html, so i used the struts-config.xml to create the reference to the resource file, only. Works fine in the jsps and also in the ActionForm-class, if i only have one single resource file. Regards,

fmt:message, fmt:setLocale and struts

2003-11-11 Thread Adam Hardy
Struts and JSTL seem to have different algorithms to establish the locale to use. I have JSPs which use fmt:message for titles, labels, comments etc and I have also just started to program a page which will include an underlying language page to incorporate big paragraphs of localized text. I

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread Saul Q Yuan
I think you can configure that in the web.xml file, something like befow: error-page error-code403/error-code location/http403.jsp/location /error-page you may need to check the dtd to see it's exact location in web.xml. Saul -Original Message- From: alvin antony [mailto:[EMAIL

Can't see my ActionForm in Action or any Context

2003-11-11 Thread Peter Klassen
Hi all, can't see my ActionForm in my Action, which triggers the Forward to the Page with the ActionForm. I also don't see the Form in any Context on the Page. I just get the Form on the next Action, forwarded by the form on the page. I've played with the configuration already, but with no effort.

RE: Servlet filter and Struts(SecurityFilter )

2003-11-11 Thread Stack Buffer
Hi all, I just read the SecurityFilter README file and I saw something about mapping all request to the security filter, but wait a minute, how far with mapping my request to the struts ActionServlet?. I will appreciate any help in clearifying the issue above. David Liles [EMAIL

Dallas struts user groups?

2003-11-11 Thread Sasha Borodin
Are there any struts groups in the area? Or at least java web development groups that anyone knows of, or is a part of? Thanks, -Sasha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: usage of tags inside tags

2003-11-11 Thread mohan
Hi in this construct c:set var=randrand:string ... //c:set html:hidden ... value=${rand}/ in place of value should we use value=$var or value=${rand}. Please let me know. html:hidden ... rand:string ... //html:hidden I have used this but somehow a random string is not constructed but only an

RE: ResultSetDynaClass etc...

2003-11-11 Thread Sumit S.
Yeah...but look at the following scenario 1. Call Database. Get back result set. 2. Create a DynaBean array list from the result set. 3. Use PropertyUtils.copyProperties() to transfer data from the result set into a value object. 3.1 At this stage my ValueObject property names have to be the

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread alvin antony
Hi Saul, Thanks it works. Alvin Saul Q Yuan [EMAIL PROTECTED] wrote: I think you can configure that in the web.xml file, something like befow: 403 /http403.jsp you may need to check the dtd to see it's exact location in web.xml. Saul -Original Message- From: alvin antony

RE: Dallas struts user groups?

2003-11-11 Thread Peng, Meimin
http://planojava.org --Zoe -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:52 AM To: Struts Users Mailing List Subject: Dallas struts user groups? Are there any struts groups in the area? Or at least java web development groups that

URGENT: struts random tag

2003-11-11 Thread mohan
Hi All I am using the struts random tag like this rand:string id=random1 charset=all length=20 / html:hidden property=keycode jsp:getProperty name=random1 property=random / /html:hidden I am trying to generate a random string and add this to the user attributes in the database. But somehow the

Re: usage of tags inside tags

2003-11-11 Thread Brice Ruth
within the struts tags that support EL, you need to use the ${...} syntax. To my knowledge, the only (standard) tags that use $var are the JSTL xml tags. Make sure that you are using the struts-html-el taglib. [EMAIL PROTECTED] wrote: Hi in this construct c:set var=randrand:string ... //c:set

Re: ResultSetDynaClass etc...

2003-11-11 Thread Craig R. McClanahan
Quoting Sumit S. [EMAIL PROTECTED]: The ResultSetDynaClass ResultSetDynaBeans are a powerful way of encapsulating ResultSets in DynaClasses. However, when we need to transfer the data from such a DynaClass to a ValueObject (say a structs ActionForm), the PropertyUtils.copyProperties looks

RE: ResultSetDynaClass etc...

2003-11-11 Thread Sumit S.
Yup...did think of that approach but felt that any change in the alias (for some reason DBA decides to change a stored proc ) means a change in the code...which means compile, test, redeploy. Using the map approach we just change the config file and we are done... We are using the framework

logging MessageResource requests by page

2003-11-11 Thread Daniel Lipofsky
I am wanting to do some special logging of MessageResource requests based on what page the user makes the request from. I looked at subclassing MessageResources and MessageResourcesFactory - but it looks like that won't work because in the MessageResources class you don't have a way to access

Re: usage of tags inside tags

2003-11-11 Thread mohan
Hi I meant should i say ${var} or ${rand}. --mohan within the struts tags that support EL, you need to use the ${...} syntax. To my knowledge, the only (standard) tags that use $var are the JSTL xml tags. Make sure that you are using the struts-html-el taglib. [EMAIL PROTECTED] wrote: Hi

Re: fmt:message, fmt:setLocale and struts

2003-11-11 Thread Kris Schneider
The JSTL algorithm will only use the root resource (your ApplicationResources.properties) as a last resort. It will walk through the set of locales returned by ServletRequest.getLocales and try to find a match. If it can't, JSTL implements the concept of a fallback locale that it will attempt to

Re: usage of tags inside tags

2003-11-11 Thread Brice Ruth
Use the ${...} syntax with whatever you name the var in: c:set var=randrand:string ... //c:set In this example, the variable is named rand - so you'd use ${rand}. Or, don't use that syntax at all and use the html:hidden ... rand:string ... //html:hidden syntax. Where you don't need to

Re: Nested tags : Desperately trying to get recursion to work

2003-11-11 Thread Arron Bates
Jyothi, You still having problems with this? Sorry that I haven't gotten back to you, but work's been quite busy and not enough hours inbetween. Just let me know. Arron. PS: you'll get my attention faster with this email address. :) Hi, I am very new to nested tags and I am trying

Re: usage of tags inside tags

2003-11-11 Thread mohan
I used the second sytax as html:hidden property=keycode rand:string id=random1 charset=all property=random / /html:hidden And i cannot see this value in my keycode. I do not want to store it anywhere but the resetPasswordForm the form bean for this jsp(resetpassword.jsp) Use the ${...} syntax

Re: usage of tags inside tags

2003-11-11 Thread Brice Ruth
What HTML is generated? [EMAIL PROTECTED] wrote: I used the second sytax as html:hidden property=keycode rand:string id=random1 charset=all property=random / /html:hidden And i cannot see this value in my keycode. I do not want to store it anywhere but the resetPasswordForm the form bean for

Re: usage of tags inside tags

2003-11-11 Thread Brice Ruth
Looking at the docs for the random tag library, you'll probably need something like this: rand:string id=random1 charset=all property=random/ html:hidden property=keycode c:out value=${random1.random}/ /html:hidden -OR- if you're not already using the JSTL core library (prefix: c), then replace

ear file

2003-11-11 Thread Rhet Behler
can someone tell me how to build an ear for deployment?

Re: ear file

2003-11-11 Thread Brice Ruth
There should be documentation tools in Sun's J2EE reference implementation download ... check out the J2EE section at java.sun.com. Rhet Behler wrote: can someone tell me how to build an ear for deployment? -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc.

Struts-Validation Error

2003-11-11 Thread Ramadoss Chinnakuzhandai
Hi, I need to accept .(dot) as part of input value. While trying to test it does not accept . in the input entry. Any idea how to make it accept . character in the validation pattern. following is the validation pattern for that field in validation.xml form name=AvailabilityForm

Re: usage of tags inside tags

2003-11-11 Thread Kris Schneider
Why not just forget about html:hidden? rand:string id=random4 charset=A-Z ! @ # \\ \- + ? amp; $/ input type=hidden name=security value=jsp:getProperty name=random4 property=random/ BTW, I don't think html:hidden will use it's body content as its value. Quoting Brice

tiles and getRequestURI

2003-11-11 Thread James Norman
I'm in the process of porting a web application from the Jetspeed/Turbine framework over to struts and I ran into a problem someone may be able to help me with. When I have a Jsp that is included by a tile, the httpServletRequest.getRequestURI() returns the location of the Jsp that the tiles

Re: usage of tags inside tags

2003-11-11 Thread mohan
Hi Kris, Your method works fine for me. Brice thank you very muchfor helping me out. Kris's method works fine for me. Thank you guys --Mohan your method works Why not just forget about html:hidden? rand:string id=random4 charset=A-Z ! @ # \\ \- + ? amp; $/ input type=hidden

Re: tiles and getRequestURI

2003-11-11 Thread Craig R. McClanahan
Quoting James Norman [EMAIL PROTECTED]: I'm in the process of porting a web application from the Jetspeed/Turbine framework over to struts and I ran into a problem someone may be able to help me with. When I have a Jsp that is included by a tile, the httpServletRequest.getRequestURI()

Struts Message Board

2003-11-11 Thread Robert Long
Anyone know of any good struts message boards? Thanks in advance, ~Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts-Validation Error

2003-11-11 Thread Ramadoss Chinnakuzhandai
I'm experiencing some peculiar error in the validation framework.. I hv tested the validation for two different fields in different pages using pattern matching maskfield in some page it does working...but other doesn't...I just wondering what was the problem with me..? It does working

Re: tiles and getRequestURI

2003-11-11 Thread James Norman
I read the section of the specification that you referring to and I think that you have it backwards. It doesn't say in the specification that when you do a requestDispatcher.include() that you should change the request.getRequestURI(). What I do see in the spec is that the request attribute of

Re: Can't see my ActionForm in Action or any Context

2003-11-11 Thread Hubert Rabago
Peter - that's is how it's supposed to run. The form is available to the Action it was submitted to, carrying with it the values typed in by the user. --- Peter Klassen [EMAIL PROTECTED] wrote: Hi all, can't see my ActionForm in my Action, which triggers the Forward to the Page with the

RE: sendRedirect within Action

2003-11-11 Thread Lee, Dennis
Hi, You can sendRedirect as usual and then return 'null' for the ActionForward. Best Regards, Dennis Lee -Original Message- From: Mohamed Abu Zur [mailto:[EMAIL PROTECTED] Sent: 20031110 09:27 To: Struts Users Mailing List Subject: sendRedirect within Action Hi all: How I can make

Re: Hello World gone wrong

2003-11-11 Thread Richard Morris
Adam, The struts.jar is located in the /WEB-INF/lib folder. I know the struts.jar file is working because I can use the html tags (i.e. html:html, html:base/, etc.) without error. I just don't know what the problem could be. I am sure it is something stupid but with such a simple application,

RE: new to struts

2003-11-11 Thread Eric SCHULTZ
Good evening... -Original Message- From: Saravanakumar P [mailto:[EMAIL PROTECTED] Sent: November 11, 2003 4:38 AM To: Struts Users Mailing List Subject: RE: new to struts Programming Jakarta Struts By Chuck Cavaness -O'Reilly publication is a good book to start. that's the book i

OT - parsing a TSV file in java

2003-11-11 Thread rickchev
All, I know this is off topic, but I'm stuck. I'm trying to read a TSV file in java for use in a struts application but the java buffered reader skips the first row of the data with the column headings and the StringTokenizer skips the fields that are separated by tabs but don't contain any

Re: new to struts

2003-11-11 Thread Abhijeet Mahalkar
bye mastering struts . good book for basics as well as masters. try out.. abhijeet - Original Message - From: sanjay paithankar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:47 PM Subject: new to struts Hello can any one point the basic document

Re: OT - parsing a TSV file in java

2003-11-11 Thread Saul Q Yuan
Just a thought, another way to do it is, you can setup a odbc datasource to the file, and using jdbc-odbc bridge to read the file like from a database. Saul. - Original Message - From: rickchev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:37 PM Subject: OT

Rephrased: MysqlDataSource problem?

2003-11-11 Thread todd thorner
...because my webapp only started punking out once I tried to add my first data-source element, I've rephrased this post (even though I'm not sure that it's the data source where I'm going wrong). -- - Original Message - DATE: Mon, 10 Nov 2003 05:29:59 From: todd thorner [EMAIL

Re: OT - parsing a TSV file in java

2003-11-11 Thread matsuhashi
Elliotte Rusty Harold's Java Network Programming section17.2.1 tab-seperated-values content handler shows a working example code. I think it is rude to copypaste the example here. It is just 20 lines of Java. - To

forward problem ?

2003-11-11 Thread Kalra, Ashwani
hi, I have one link http://localhost:8080/controller?id=23 when user clicks it , a page is loaded, user fills in the details in the form, and presses one button and the same page should be loaded . The problem is that redirecting to the same page is done using forward, which leaves the address

Re: forward problem ?

2003-11-11 Thread Abhijeet Mahalkar
create one more tag in action ... forward name=controllerFRWD path=/controller1.jsp/ and provide this name in action class forward. this works... abhijeet - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Sent: Wednesday, November 12,

RE: XML importing :

2003-11-11 Thread V, Sriram
Hi There is some thing called toplink in Oracle.. y dont u look thru that.. which is Object representation for table and properties.. but one thing is that its compatible only with Oracle databases... and there is one more software called the castor.. where u have a methodology for marshalling