Re: Struts-Tiles - Missing Content

2008-07-09 Thread Antonio Petrelli
> I've been experimenting with multiple variations on how to accomplish > this so my below code is a little messy, but it does create and return > a PDF, but it is missing the content it should have. As far as I can > tell from the order of events the following occurs. I open my browser > to the ma

Re: Action method specific custom validation

2008-07-09 Thread ManiKanta G
Thanks... I'll try right away... Regards, ManiKanta Gabriel Belingueres wrote: Yes. To form the validation method name just concatenate "validate" with your action's method name. 2008/7/9 ManiKanta G <[EMAIL PROTECTED]>: Hi, I've three execute() kind of methods in single action. To valid

Re: looking for suggestion regarding interceptor

2008-07-09 Thread Gabriel Belingueres
Wow it is amazing how S2 can be used. This is a use of interceptor I've never seen before. IMHO, I think it is too much trouble to declare an xxxAware interface and an xxxInterceptor to just share the same database data across multiple pages. I would stick to store the data in session or applicati

Re: looking for suggestion regarding interceptor

2008-07-09 Thread Chris Pratt
That's usually how I start. The one thing I usually add is an Aware interface that allows me to inject the value into my Actions when it's needed. So in your case I'd add a simple interface: interface CategoryListAware { void setCategoryList(List categories); } And at the end of your intercep

[OT] Re: looking for suggestion regarding interceptor

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Dhiraj Thakur <[EMAIL PROTECTED]> wrote: > There are 4 jsp page in which i want to show same category > by retrieving it from database. > What is the best way to do that? should i write a > intercepter which will retrieve Category from database > and store it in session? If i

RE: [S2] s:iterator tag - var or id

2008-07-09 Thread Timothy Wonil Lee
Ah.. I see. Thank you. Timothy Wonil Lee Java Developer http://timundergod.blogspot.com/ -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 July 2008 4:58 PM To: Struts Users Mailing List Subject: Re: [S2] s:iterator tag - var or id Unfortunately those do

Re: page level bean into value

2008-07-09 Thread Chris Pat
Hi I am using the 1.1.1 jstl jars.  I thought the struts bean tags put the bean into the pageScope or sessionScope.  I can get other bean.values from the sessionScope with the jstl syntax.  I tried the substitution the ' for the " within some contexts worked in the past, of course it didnt he

looking for suggestion regarding interceptor

2008-07-09 Thread Dhiraj Thakur
Hello there, There are 4 jsp page in which i want to show same category by retrieving it from database. What is the best way to do that? should i write a intercepter which will retrieve Category from database and store it in session? something like this if (session.getAttribute("categor

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Owen Berry <[EMAIL PROTECTED]> wrote: > You need to have a hidden field value that will take the > place of the disabled checkbox as some browsers do not > send disabled field values. The tag already includes the hidden field; I don't know what it does for disabled checkboxe

Re: page level bean into value

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Chris Pat <[EMAIL PROTECTED]> wrote: > I have defined a page level bean () > and I can get at its members, however I cant get the damn > syntax right to expose the members in a struts html:text > tag.  I have tried > Did you try just beanName.beanMember? Are you using a JSP 2

page level bean into value

2008-07-09 Thread Chris Pat
Hello I have defined a page level bean () and I can get at its members, however I cant get the damn syntax right to expose the members in a struts html:text tag.  I have tried or even "/>.  Is it possible?  What is the syntax?  tia.

Re: iterate from session

2008-07-09 Thread Dhiraj Thakur
oh my mistake actually it is a list i retrieved user name from database stored it in list and i stored that userList in session now i want to iterate userList from session to display all the user from List in jsp page. sorry for confusion its late night here feeling sleepy . Regards On Thu, Jul 1

Re: iterate from session

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Dhiraj Thakur <[EMAIL PROTECTED]> wrote: > actually i stored the userList in session now i want to > iterate it on jsp page to list users how to do that? > and how to access userList object from session in jsp page? #session.userList? Dave ---

Re: iterate from session

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Dhiraj Thakur <[EMAIL PROTECTED]> wrote: > I am trying to iterate a session variable of type > HashMap using the following code, but > it's not producing any markup.. > > > > > > > If there is any example on how to iterate object from > session variable than please le

Re: iterate from session

2008-07-09 Thread Dhiraj Thakur
actually i stored the userList in session now i want to iterate it on jsp page to list users how to do that? and how to access userList object from session in jsp page ? Regards, Dhiraj On Thu, Jul 10, 2008 at 1:39 AM, Struts Two <[EMAIL PROTECTED]> wrote: > What do you mean by "it's not produci

Re: iterate from session

2008-07-09 Thread Lukasz Lenart
> I am trying to iterate a session variable of type HashMap > using the following code, but it's not producing any markup.. > > You mixing different types, once HashMap and then User Regards -- Lukasz http://www.lenart.org.pl/ --

Struts-Tiles - Missing Content

2008-07-09 Thread Ryan Henson
I think I have found a strange behaviour in the Struts-Tiles framework that I am attempting to pin down and understand. First, I'm using Struts 1.2.9 with the bundled Tiles framework, so its a bit older, but I'm hoping it will work without having to go through the trouble of upgrading to Strut

Re: iterate from session

2008-07-09 Thread Struts Two
What do you mean by "it's not producing any markup" ?. The iterator tag does not produce any markup. - Original Message From: Dhiraj Thakur <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wednesday, July 9, 2008 4:05:39 PM Subject: iterate from session Hi there, I am trying to ite

iterate from session

2008-07-09 Thread Dhiraj Thakur
Hi there, I am trying to iterate a session variable of type HashMap using the following code, but it's not producing any markup.. If there is any example on how to iterate object from session variable than please let me know. regards, Dhiraj

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Owen Berry
You need to have a hidden field value that will take the place of the disabled checkbox as some browsers do not send disabled field values. Basically, it's just for display. On Wed, Jul 9, 2008 at 2:29 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Did you try with some others browsers, like IE, F

Re: Struts 2.1.3 build cannot resolve xwork-2.1.2-SNAPSHOT.jar

2008-07-09 Thread Musachy Barroso
Don't feel too bad about it: http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-874 The build is broken. Don, are you out there? musachy On Wed, Jul 9, 2008 at 2:22 PM, John Moose <[EMAIL PROTECTED]> wrote: > Thank you Musachy, that got me over th hump and into the compile > process...th

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Lukasz Lenart
Did you try with some others browsers, like IE, FF? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2.1.3 build cannot resolve xwork-2.1.2-SNAPSHOT.jar

2008-07-09 Thread John Moose
Thank you Musachy, that got me over th hump and into the compile process...then this happened: [INFO] Compiling 361 source files to C:\dev\Struts-2.1.x\core\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] -

Re: Struts 2.1.3 build cannot resolve xwork-2.1.2-SNAPSHOT.jar

2008-07-09 Thread Musachy Barroso
Did you run 'mvn install' for xwork? musachy On Wed, Jul 9, 2008 at 1:52 PM, John Moose <[EMAIL PROTECTED]> wrote: > I ahve svn'd the xwork tree and built xwork-2.1.2-SNAPSHOT in the target > folder, > did the mvn install:install-file command but the Struts 2 build still > cannot find the xwo

RE: RE: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread [EMAIL PROTECTED]
That's not how classpaths work: as I said, jar files must be listed individually. This is most easily done programmatically in a shell script (or batch file*s*; thanks Windows :( *Class* files need only the top-level directory listed--usually a build output directory. Dave Milan Milanovic wro

problem with checkbox (when using disabled property)

2008-07-09 Thread akash agrawal
Hi, Using struts tag for a checkbox. I disable my checkbox using disabled property so that user cannot change it. When the form is submitted, the value of the checkbox passed to the action comes out as false, even if the checkbox was selected (true). The weird thing is if I remove the disabled

Struts 2.1.3 build cannot resolve xwork-2.1.2-SNAPSHOT.jar

2008-07-09 Thread John Moose
I ahve svn'd the xwork tree and built xwork-2.1.2-SNAPSHOT in the target folder, did the mvn install:install-file command but the Struts 2 build still cannot find the xwork jar in any repository?? This is killing me.

RE: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
Hi, newton.dave wrote: > > Driving. In an automobile. To get from one place to another. > > Oh that, sorry ;-). You are anwsering to the list while driving, WOW :-). newton.dave wrote: > > Java 101 just means really basic Java: if you put all the libraries in > your lib directory that'd p

Re: Handling Exceptions in Action constructors

2008-07-09 Thread Jim Kiley
I think in this situation I would have SomeAction implement Preparable, and put someComponent's initialization into the prepare() method, if I could get away with it. I realize that might not be possible in your situation, but not knowing more details it's my first suggestion. jk On Wed, Jul 9,

Handling Exceptions in Action constructors

2008-07-09 Thread Lyallex
Hi I have a question about handling Exceptions in Action constructors I have the following constructor in an Action public SomeAction() throws BusinessComponentException { someComponent = new SomeBusinessComponent(); } Now when an instance of this Action is i

RE: [OT] Re: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread [EMAIL PROTECTED]
It's the only time I can sleep, too :D Dave Antonio Petrelli wrote: > 2008/7/9 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> Driving. In an automobile. To get from one place to another. > Sending e-mail *while* driving? You want a ticket, right? :-D > Antonio > ---

[OT] Re: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread Antonio Petrelli
2008/7/9 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Driving. In an automobile. To get from one place to another. Sending e-mail *while* driving? You want a ticket, right? :-D Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread [EMAIL PROTECTED]
Driving. In an automobile. To get from one place to another. Java 101 just means really basic Java: if you put all the libraries in your lib directory that'd probably be enough (plus your build directory, I think somebody else mentioned). Dave Milan Milanovic wrote: > You are driving ? Java 10

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
Is this plugin going to work if I define action classes located in struts.xml by using Spring ? -- Thx, Milan Musachy Barroso wrote: > > Or this: > > http://cwiki.apache.org/S2PLUGINS/sitegraph-plugin.html > > musachy > > On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <[EMAIL PROTECTED]> wrote:

RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
You are driving ? Java 101 ? I must say I don't understand you :-(. I now how to define classpath, but there is a lot of things to configure for this SiteGraph plugin, so I'm asking if anyone have an example ? -- Milan newton.dave wrote: > > No, I'm driving. This is Java 101, so any Java tuto

RE: RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread [EMAIL PROTECTED]
No, I'm driving. This is Java 101, so any Java tutorial should be able to point you in the right direction. Dave Milan Milanovic wrote: > Could you please give me an example ? > -- > Milan > newton.dave wrote: >> >> No, it means you should include the directory *containing* the compiled >> cla

Re: Injecting singleton beans into Servlets

2008-07-09 Thread Musachy Barroso
Short anwser, no. You can use @Inject when that class is instantiated by the container(S2 internal Guice in this case), but servlets are instantiated by the servlet container. musachy On Wed, Jul 9, 2008 at 10:11 AM, Kleiderman, Matthew <[EMAIL PROTECTED]> wrote: > Not quite, I'm trying to keep S

RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
Could you please give me an example ? -- Milan newton.dave wrote: > > No, it means you should include the directory *containing* the compiled > class files. Jar files must be listed individually (trivial under > Unix-like environments, nearly under Windows--set your classpath or do it > from a

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
I put this in my System environment variable: CLASSPATH, C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar; but I still got the same error ? -- Milan Gabriel Belingueres-2 wrote: > > You may need common-logging jar files to actually execute the plugin, > that is

RE: Injecting singleton beans into Servlets

2008-07-09 Thread Kleiderman, Matthew
Not quite, I'm trying to keep Spring out of the mix - I have a couple of classes that manage access to remote services. They get defined in WEB-INF/classes/struts.xml as singletons, and injected into Actions via @Inject annotations. Now I've realized that I need to give one of these classes a ref

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Gabriel Belingueres
You may need common-logging jar files to actually execute the plugin, that is, in your java classpath. 2008/7/9 Milan Milanovic <[EMAIL PROTECTED]>: > > It's wierd because I have in that lib directory: > > commons-logging-1.0.4.jar > commons-logging-api-1.1.jar > > -- > Milan > > > Milan Milanovic

RE: Re: [S2] Struts configuration vizualization

2008-07-09 Thread [EMAIL PROTECTED]
No, it means you should include the directory *containing* the compiled class files. Jar files must be listed individually (trivial under Unix-like environments, nearly under Windows--set your classpath or do it from a shell/batch script; why would you do it by hand?!) Dave Milan Milanovic wro

Re: Action method specific custom validation

2008-07-09 Thread Gabriel Belingueres
Yes. To form the validation method name just concatenate "validate" with your action's method name. 2008/7/9 ManiKanta G <[EMAIL PROTECTED]>: > Hi, > > I've three execute() kind of methods in single action. > > To validate the data, we can use actionName-actionAliasName-validation.xml > for valida

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
It's wierd because I have in that lib directory: commons-logging-1.0.4.jar commons-logging-api-1.1.jar -- Milan Milan Milanovic wrote: > > When I tried to run it from my web-inf/lib directory, like this: > > C:\eclipse\workspace\myProjeect\WebContent\WEB-INF\lib>java -cp ... -jar > stru > ts

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
When I tried to run it from my web-inf/lib directory, like this: C:\eclipse\workspace\myProjeect\WebContent\WEB-INF\lib>java -cp ... -jar stru ts2-sitegraph-plugin-2.0.11.1.jar - config ../src/java views ../../pages/adminis tration,../../pages/registry,../../pages/samples output graf I got this

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
Hi, what this means: "Futhermore, you must also include your Action class files referenced in struts.xml" ? Does this mean that I should include in command line all of my 100 action classes ? -- Thx, Milan Musachy Barroso wrote: > > Or this: > > http://cwiki.apache.org/S2PLUGINS/sitegraph-pl

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Milan Milanovic
Thanks. But this plug-in must be runned from command-line, it doesn't exists as an Eclipse plug-in ? -- Regard, Milan Musachy Barroso wrote: > > Or this: > > http://cwiki.apache.org/S2PLUGINS/sitegraph-plugin.html > > musachy > > On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <[EMAIL PROTECTED]

RE: Re: [S2] s:iterator tag - var or id

2008-07-09 Thread [EMAIL PROTECTED]
The wiki is a database, not versionable files. There's only one wiki, exported to files for the distros. This means no matter what version of Struts a bit of documentation is for it's going into a single uber-wiki--we can't say 'okay, this is for version 2.1 of the wiki', all we can do is add v

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Musachy Barroso
Or this: http://cwiki.apache.org/S2PLUGINS/sitegraph-plugin.html musachy On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <[EMAIL PROTECTED]> wrote: > You can try the config browser plugin: > > http://struts.apache.org/2.x/docs/config-browser-plugin.html > > Don > > On Wed, Jul 9, 2008 at 2:04 AM, Mila

Re: Getting Struts2 Parameters?

2008-07-09 Thread Jim Kiley
Happens to the best of us. :-) On Tue, Jul 8, 2008 at 5:38 PM, Chris Miles <[EMAIL PROTECTED]> wrote: > Argh, You know I could not see that at all? > > Thank you :) > > Chris > - Original Message - From: "Jim Kiley" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Monday, Ju

Re: [S2] Struts configuration vizualization

2008-07-09 Thread Don Brown
You can try the config browser plugin: http://struts.apache.org/2.x/docs/config-browser-plugin.html Don On Wed, Jul 9, 2008 at 2:04 AM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm wodering is there any Eclipse plug-in (or something similar) which will > vizualize struts.xml config

Action method specific custom validation

2008-07-09 Thread ManiKanta G
Hi, I've three execute() kind of methods in single action. To validate the data, we can use actionName-actionAliasName-validation.xml for validating actionName specific validations. But how to write custom validate() to deal specifically based on the method being requested. Is there are pro