Struts2 and Security

2009-06-19 Thread aum strut
Hi All, We are on the way to develop a new application using struts2. Currently we are analysing the area of authentication and authorization, we do have some options of using the following frame work for these 1) Acegi 2)JAAS my point is that we any one in the list is using any of the security

Re: how to correctly generate path and type in structs-config.xml file?

2009-06-19 Thread Nils-Helge Garli Hegvik
This has nothing to do with Struts. You have to put the source file in a folder structure that mirrors your package definition. Nils-H On Fri, Jun 19, 2009 at 6:00 AM, Sam Wunswun2...@gmail.com wrote: Hi, I  have an Action java source code with package at the top of the file. When I put the

is possible to get value from included page in outer page?

2009-06-19 Thread 谢冬鸣
Thanks! I want to get some value from the included page in outer page ( I use Struts2 ). For example i have one in.jsp and one outer.jsp in.jsp: ...s:set name=title value='value to get' / outer.jsp: ... Title : s:property value=#title / s:include value=in.jsp/ I want to render the value

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Dave, Please consider copying your code snippets into a plain-text editor before including them in an email message: we're getting a blank line between each line and a lot of spurious asterisks. noted :) Yes, we are loading the list with 10 values from database and struts creating the

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Girish, Is this mean we can load the list again in Action's Preparable method ? currently, we are trying looking at the sample in internet. Thanks Regards Yanto On Thu, Jun 18, 2009 at 10:23 PM, Girish Naik girish.n...@gmail.com wrote: After validation, Action's Preparable method is

Re: Documenting Applications with Apache Struts 2

2009-06-19 Thread stanlick
Dave-- Does this mean your book is about to be unpakt? If this chapter is representative of the book, this will be a real gem! Peace, Scott On Thu, Jun 18, 2009 at 11:04 PM, juded ju...@packtpub.com wrote: Every developer's favorite task is documenting their application. In this chapter,

Re: Struts2 and Security

2009-06-19 Thread Jim Kiley
I can't speak in too much depth about JAAS in general, nor about certain aspects of Acegi, but we've been using Acegi (now Spring Security) in production with a Struts 2 site for a couple of months and we are very pleased with the relative ease of implementation. Without knowing what you want out

RE: Struts2 and Security

2009-06-19 Thread Kofford, C Todd
I developed an webapp about a year ago, using struts 2 and a security package called (at the time) jsecurity. Since then, jsecurity has become an apache project and has been renamed Apache Ki/Shiro. I guess that there was a naming conflict with the Ki name, so it is now called Apache Shiro (as of

Re: how to prevent users from directly accessing jsp files

2009-06-19 Thread Greg Lindholm
I tried putting the below string in web.xml, but all my css, js from the application got blocked. But pages are coming. Is something missing or some extra thing to be done? security-constraint display-namePrevent access to raw pages./display-name web-resource-collection

Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
All, I am new to struts2. Downloaded and manually configured the helloworld war in JDeveloper. Every thing work fines in the app. I am getting hello world message. Login page, validations using validator. Only thing not work in the app is css file. Its in the root directory under css folder. Any

Re: Newbie (possibly RTFM) issue

2009-06-19 Thread Burton Rhodes
I think if you change your isTestBool function to getTestBool it should work. If you use a primative I think the isTestBool will work, otherwise the 'object' version of a boolean needs to be a 'get' method. On 6/17/09, chumbobumbo chumbobu...@hotmail.com wrote: Haven't tried it (had to move on)

Fw: Struts2 dynamic tree error -- able to solve this issue

2009-06-19 Thread Bala . T . Ramanadham
Hi All, Write some html page to call action for tree - home.html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head META HTTP-EQUIV=Refresh CONTENT=0;URL=treesupport.action /head body h3One moment please./h3 /body /html

Re: drop down list not working after using validation.xml

2009-06-19 Thread Girish Naik
One of my colleague had done it in some project. But dont know if its the correct way. :( Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html -

Re: how to prevent users from directly accessing jsp files

2009-06-19 Thread Girish Naik
But in that case the css, images, js is compromised rite? What if I want all to be secured? Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Fran Lebowitzhttp://www.brainyquote.com/quotes/authors/f/fran_lebowitz.html -

RE: Struts2 Error

2009-06-19 Thread Bala . T . Ramanadham
Martin, I was in an assumption that Nodes will created by itself when you use thatsx:tree tag, however when i try to execute that action, treeNodeTitle property is getting a null value and that caused the error, it took a while to figure where the error is coming from, its always poing me to

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
Is this error comming on app start? Are u sure that this error is due to css? Is your app working when there is no css? If Yes then can u use relative path for calling css instead of s:url Regards, - Girish Naik Mobile:-+91-09740091638

Struts2 s:textfield to formatted html

2009-06-19 Thread ets04uga
In looking at the code for the s:textfield tag and it uses the template/simple/text.ftl file as the template. The text.ftl file starts with the html input tag and I'm not understanding where the label, td and tr tags come from such that s:textfield key=user.firstname name=firstName / becomes

Re: drop down list not working after using validation.xml

2009-06-19 Thread Yanto
Hi Greg, thanks for the link...seem this faq entry explain the problem that we face now...will try it... Thanks Yanto On Fri, Jun 19, 2009 at 11:15 PM, Greg Lindholm greg.lindh...@gmail.comwrote: Did you look at this FAQ entry?

Re: drop down list not working after using validation.xml

2009-06-19 Thread Greg Lindholm
Did you look at this FAQ entry? http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html On Fri, Jun 19, 2009 at 10:43 AM, Girish Naik girish.n...@gmail.com wrote: One of my colleague had done it in some project. But dont know if its the correct way. :(

Re: how to prevent users from directly accessing jsp files

2009-06-19 Thread Greg Lindholm
On Fri, Jun 19, 2009 at 10:48 AM, Girish Naik girish.n...@gmail.com wrote: But in that case the css, images, js is compromised rite? What if I want all to be secured? Regards, - Girish Naik Wrong. You have to allow direct access the

SQL Optimization Tools and Procedures

2009-06-19 Thread Edward Song
Here's a Friday discussion. As an application developer, I can write SQL pretty well, but I wouldn't say that I'm an expert. My last project I did run into some design and architecture issues that needed a little bit of reworking and refactoring. To help avoid this, I want to get better and

Re: how to prevent users from directly accessing jsp files

2009-06-19 Thread Girish Naik
OMG!! now i need to write a new Web Browser ;) Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Rodney Dangerfieldhttp://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html - What a dog I got, his favorite bone

Netbeans 6.7 RC3 and Struts2

2009-06-19 Thread Andy Sykes
Hi all, Is anyone else using NB 6.7 RC3 and editing pages with S2 tags in them? The tags seem to really screw up the editor's error parsing mechanism, leaving red lines under everything after an S2 tag (like s:property), and giving an error of missing ; before statement which looks like a

Re: SQL Optimization Tools and Procedures

2009-06-19 Thread Terry Gardner
If you have the code in a workable configuration, you can test it easily with a SQL query job using SLAMD (http://slamd2.dev.java.net). This generate load that may point to indexing problems and other performance-related problems. On Jun 19, 2009, at 11:16 AM, Edward Song wrote: Here's a

SLAMD conversion to Struts

2009-06-19 Thread Terry Gardner
SLAMD (http://slamd2.dev.java.net) is being converted to use MVC via Struts. I've posted a blog entry describing the functionality with emphasis on Struts and interceptors at http://blogs.sun.com/terrygardner/entry/slamd_internals_functional . -- terry.gard...@sun.com Blog:

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
app is working fine. Even if css s:url is there. Css just does not get applied to the pages. I am only seeing the error thru firefox web development tool by viewing css. I know it is weird. I have tried every combination. I tried doing relative path too. Same error. It looks to be it has

RE: SLAMD conversion to Struts

2009-06-19 Thread Martin Gainty
as MVC Architecture is a fav topic I will certainly include your link as one my favorites i now have a impartial link to a MVC discussion available for my next chat with indian job agents.. O/T: sorry to hear of Bernard Archard curious if you will you be part of the move to Redwood Shores?

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
Is CSS applied to pages where there no parameters in the URL of the app? Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Rodney Dangerfieldhttp://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html - What a dog

Re: Struts2 s:textfield to formatted html

2009-06-19 Thread Girish Naik
May be you should have a look at the different themes available in struts. Using a simple theme will not generate such unwanted tags. For getting a simple theme you need to put the following parameter in web.xml: context-param param-namecsstheme/param-name

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
I am not getting the source of the error, but have few debugging questions: Have you copied the example.xml contents into the struts.xml file? And you have removed or deleted the contents of that (example.xml) file. when you hit '/index' the default action gets called 'index' and when you hit

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
Crud application worked with CSS. I am gonig to look into the differences and see what is the missing thing in the two apps and keep you all posted. Thanks for all the help Girish. On Fri, Jun 19, 2009 at 1:26 PM, jill juneja jilljun...@gmail.com wrote: yes. I am using struts2-blank-2.1.6

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
example.xml is in its place. I have not touched it. I agree with you that when index.html is hit - it should execute example/HelloWorld.xml but I dont think it is finding index.html. Filter is not intercepting the correct way. My crud example worked just now. I am going to look and compare the

Do I need to configure Tomcat to enable heavy multiple downloads of a file in Struts?

2009-06-19 Thread jaya krishna
Hi all, I have a requirement in my website that a user can download a file of size - 150 MB. The number on concurrent requests go up along with number of users enrolled in my website. Am using struts framework to support this download concept. Do I need to configure Tomcat server to support

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
Yahooo -- fixed the problem. Compared web.xml in crud and helloworld app. In helloword app the configuration is filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class /filter If I change it to

Re: Do I need to configure Tomcat to enable heavy multiple downloads of a file in Struts?

2009-06-19 Thread Greg Lindholm
On Fri, Jun 19, 2009 at 2:27 PM, jaya krishna krishna1...@gmail.com wrote: Hi all, I have a requirement in my website that a user can download a file of size - 150 MB. The number on concurrent requests go up along with number of users enrolled in my website. Am using struts framework to

Simple syntax question

2009-06-19 Thread Jim Collings
I have an action with a property that I want on my result jsp in plain text, no controls. Can't remember the syntax for this. lil help? Jim C. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

[OT] Re: Documenting Applications with Apache Struts 2

2009-06-19 Thread Dave Newton
stanl...@gmail.com wrote: Does this mean your book is about to be unpakt? If this chapter is representative of the book, this will be a real gem! My folks say they got a copy via Amazon, and a couple of guys where I work say the got shipping notices, so it must exist. Now my parents can

Re: Simple syntax question

2009-06-19 Thread Musachy Barroso
${property} or s:property value=%{property} / musachy On Fri, Jun 19, 2009 at 12:40 PM, Jim Collingsjlistn...@gmail.com wrote: I have an action with a property that I want on my result jsp in plain text, no controls. Can't remember the syntax for this. lil help? Jim C.

Re: Struts2 s:textfield to formatted html

2009-06-19 Thread Dave Newton
ets04uga wrote: In looking at the code for the s:textfield tag and it uses the template/simple/text.ftl file as the template. The text.ftl file starts with the html input tag and I'm not understanding where the label, td and tr tags come from such that s:textfield key=user.firstname

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-19 Thread phillips1021
Nils-H (or anyone else): I've duplicated this problem with 2.1.6 and portlets as follows: Created a Struts 2 web/portlet application with a pom.xml having a dependency on struts2-core-2.0.11.2.jar. Works both as a normal web application and as a portlet application. Changed the dependencies

Scoped Model Driven Example?

2009-06-19 Thread Stephen Turner
Would someone be kind enough to point me to an example of the Scoped Model Driven usage? Both the xml config part and the Action code. I've googled this, and delved into the sample source code, and not come up with anything - Thanks, Steve

Re: [OT] Re: Documenting Applications with Apache Struts 2

2009-06-19 Thread Dale Newfield
Dave Newton wrote: so it must exist. They sent me two copies for reviewing it, which I received yesterday. I definitely don't need two of these... -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Struts2 s:textfield to formatted html

2009-06-19 Thread ets04uga
So yes, the label piece I was looking for was farther down the pipeline in xhtml/controlheader-core.ftl -E -- View this message in context: http://www.nabble.com/Struts2-s%3Atextfield-to-formatted-html-tp24113259p24118045.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-19 Thread Nils-Helge Garli Hegvik
It would be helpful if you could create a sample app and attach it to a JIRA issue. Then I'll have a look at it. Nils-H On Fri, Jun 19, 2009 at 9:52 PM, phillips1021bphill...@ku.edu wrote: Nils-H (or anyone else): I've duplicated this problem with 2.1.6 and portlets as follows: Created a

Form survey problem (html:radio)

2009-06-19 Thread Luis Ureña
I am working in a survey form with several questions. Each question can have several options. That options are builded with an iterate. When I execute the page generate one radio button name. If I add the indexed=Yes property for the html:radio this generate one radio button name for all the first

Gracefully continuing an interrupted action flow

2009-06-19 Thread Mitchell, Steven
Is there a best practice for capturing a user's original destination when interrupting a request with an interceptor with the intention of allowing them to continue on their way later... like form authentication does? In my case I have a Cookie Enforcer Interceptor that checks for the presence of

Fwd: Form survey problem (html:radio)

2009-06-19 Thread Luis Ureña
I am working in a survey form with several questions. Each question can have several options. That options are builded with an iterate. When I execute the page generate one radio button name. If I add the indexed=Yes property for the html:radio this generate one radio button name for all the first

Struts 1.3.10 question

2009-06-19 Thread Luis Esquivel
Hello, We are seeing a problem with this version of struts that we haven't been able to resolve. I hope somebody can help. We had an old app in struts 1.1.X and decided to upgrade to 1.3.10. The application that has been working for quite a few years stopped working after doing the upgrade.

Struts 1.3.10 problem

2009-06-19 Thread Luis Esquivel
Hello, We are seeing a problem with this version of struts that we haven't been able to resolve. I hope somebody can help. We had an old app in struts 1.1.X and decided to upgrade to 1.3.10. The application that has been working for quite a few years stopped working after doing the upgrade.

Re: [OT] Re: Documenting Applications with Apache Struts 2

2009-06-19 Thread Paweł Wielgus
Hi Dale, what should i do to review the second one ;-) Best greetings, Pawel Wielgus. 2009/6/19, Dale Newfield d...@newfield.org: Dave Newton wrote: so it must exist. They sent me two copies for reviewing it, which I received yesterday. I definitely don't need two of these... -Dale

Struts 1.3.10 problem

2009-06-19 Thread Luis Esquivel
Hello, We are seeing a problem with this version of struts that we haven't been able to resolve. I hope somebody can help. We had an old app in struts 1.1.X and decided to upgrade to 1.3.10. The application that has been working for quite a few years stopped working after doing the upgrade.

Form survey problem (html:radio)

2009-06-19 Thread Luis Ureña
I am working in a survey form with several questions. Each question can have several options. That options are builded with an iterate. When I execute the page generate one radio button name. If I add the indexed=Yes property for the html:radio this generate one radio button name for all the first

Re: Gracefully continuing an interrupted action flow

2009-06-19 Thread Paweł Wielgus
Hi Steve, in my last app i have implemented it with interceptor that catches not logged user, saves all necessary data to return to original request into session and forwards to a login-input.jsp then in LoginAction i check if there is such data in session and if there is i redirect to the users

RE: Struts2 and Security

2009-06-19 Thread Farshad Rabbani
Hi Todd, I hope you don't mind that I am emailing you directly. I am about to start work on an immigration project for Belize using Struts2. I am new to struts but wanted to use it for this project. I am using MySQL for my database and have 30+ tables. I also have a table

Re: Struts2 and Security

2009-06-19 Thread Jim Kiley
Hi Farshad, I hope you don't mind that your direct email to Todd went to the whole list. jk On Fri, Jun 19, 2009 at 8:02 PM, Farshad Rabbani farshadrabb...@hotmail.com wrote: Hi Todd, I hope you don't mind that I am emailing you directly. I am about to start work on an

Input validation in Struts 2 and extrating the errors in jsp

2009-06-19 Thread Thomas Rene Vervik
I manage to do input validation when I have one of the default themes selected (xhtml, css_xhtml, etc). But what if I dont want to use Freemarker, I want to build the whole HTML in my Jsp, how do I extract the error messages the validation framework generate. Example, see the code in the code

Re: Input validation in Struts 2 and extrating the errors in jsp

2009-06-19 Thread Yanto
you need to use tags s:fielderror and s:actionerror to display error if you use simple theme Regards Yanto On Sat, Jun 20, 2009 at 9:06 AM, Thomas Rene Vervik thomas.ver...@gmail.com wrote: I manage to do input validation when I have one of the default themes selected (xhtml, css_xhtml,

Re: Input validation in Struts 2 and extrating the errors in jsp

2009-06-19 Thread Dave Newton
Thomas Rene Vervik wrote: I manage to do input validation when I have one of the default themes selected (xhtml, css_xhtml, etc). But what if I dont want to use Freemarker, I want to build the whole HTML in my Jsp, how do I extract the error messages the validation framework generate. Call

Re: SQL Optimization Tools and Procedures

2009-06-19 Thread john feng
Judge if the data model designed is optimized the business requirements matter most. First of all, one got to make sure the data model closely represents the business object relationship - functionally properly modeled; then considering the possible production usage situation info gathered before

Re: Struts 1.3.10 problem

2009-06-19 Thread Girish Naik
May be this will bring some help: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 But what i feel is that the app should have been upgraded to 1.2 first then from there to 1.3 ? Regards, - Girish Naik Mobile:-+91-09740091638

Doubt with using check box

2009-06-19 Thread Vishnu Vyasan Nelliparmbil
Hi Friends, I am new to web development and struts. I have a simple question. I am using logic:iterate tag to iterate through a list of Employees and display their details. The list contains the Employee objects. Now while displaying Employee details in a table, the row is ending with a check