Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 9 Jul 2008 23:01:21 -0000 Issue 8131

user-digest-help

2008-07-09


Author LoginPost Reply

user Digest 9 Jul 2008 23:01:21 -0000 Issue 8131

Topics (messages 188640 through 188662):

Re: [S2] Struts configuration vizualization
 188640 by: Milan Milanovic
 188643 by: newton.dave.yahoo.com

Struts 2.1.3 build cannot resolve xwork-2.1.2-SNAPSHOT.jar
 188641 by: John Moose
 188644 by: Musachy Barroso
 188645 by: John Moose
 188647 by: Musachy Barroso

problem with checkbox (when using disabled property)
 188642 by: akash agrawal
 188646 by: Lukasz Lenart
 188648 by: Owen Berry
 188659 by: newton.dave.yahoo.com

iterate from session
 188649 by: Dhiraj Thakur
 188650 by: Struts Two
 188652 by: Lukasz Lenart
 188653 by: Dhiraj Thakur
 188654 by: newton.dave.yahoo.com
 188655 by: newton.dave.yahoo.com
 188656 by: Dhiraj Thakur

Struts-Tiles - Missing Content
 188651 by: Ryan Henson

page level bean into value
 188657 by: Chris Pat
 188658 by: newton.dave.yahoo.com
 188661 by: Chris Pat

looking for suggestion regarding interceptor
 188660 by: Dhiraj Thakur

Re: [S2] s:iterator tag - var or id
 188662 by: Timothy Wonil Lee

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_188640.ezm (zipped)

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 probably be enough (plus your build directory, I
> think somebody else mentioned).
>

All of my libs are in my lib directory, and I put CLASSPATH variable to that
directory and still I got that error with LogManager.

--
Milan



newton.dave wrote:
>
> Milan Milanovic wrote:
>> 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 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
>>>>> 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 wrote:
>>>>>> 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-plugin.html
>>>>>>>
>>>>>>> musachy
>>>>>>>
>>>>>>> On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <donald.brown@(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, Milan Milanovic
>>>>>>>> <milanmilanovich@(protected):
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I'm wodering is there any Eclipse plug-in (or something similar)
>>>>>>>>> which
>>>>>>>>> will
>>>>>>>>> vizualize struts.xml configuration ?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thx, Milan
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18342762.html
>>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18361832.html
>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18362620.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18363044.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_188643.ezm (zipped)
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 wrote:
> 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 probably be enough (plus your build directory, I
>> think somebody else mentioned).
>>
> All of my libs are in my lib directory, and I put CLASSPATH variable to that
> directory and still I got that error with LogManager.
> --
> Milan
> newton.dave wrote:
>>
>> Milan Milanovic wrote:
>>> 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 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
>>>>>> 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 wrote:
>>>>>>> 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-plugin.html
>>>>>>>>
>>>>>>>> musachy
>>>>>>>>
>>>>>>>> On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <donald.brown@(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, Milan Milanovic
>>>>>>>>> <milanmilanovich@(protected):
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I'm wodering is there any Eclipse plug-in (or something similar)
>>>>>>>>>> which
>>>>>>>>>> will
>>>>>>>>>> vizualize struts.xml configuration ?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Thx, Milan
>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18342762.html
>>>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18361832.html
>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18362620.html
>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18363044.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
> --
> View this message in context: http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18364578.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)


Attachment: user_188641.ezm (zipped)
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.

Attachment: user_188644.ezm (zipped)
Did you run 'mvn install' for xwork?

musachy

On Wed, Jul 9, 2008 at 1:52 PM, John Moose <jgmoose@(protected):
> 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.
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment: user_188645.ezm (zipped)
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]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\servlet\ServletHostConfig.java:[23,36]
cannot find symbol
symbol : class EnumerationIterator
location: package com.opensymphony.xwork2.util

C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\filter\FilterHostConfig.java:[23,36]
cannot find symbol
symbol : class EnumerationIterator
location: package com.opensymphony.xwork2.util

C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\servlet\ServletHostConfig.java:[45,19]
cannot find symbol
symbol : class EnumerationIterator
location: class org.apache.struts2.dispatcher.ng.servlet.ServletHostConfig

C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\filter\FilterHostConfig.java:[46,19]
cannot find symbol
symbol : class EnumerationIterator
location: class org.apache.struts2.dispatcher.ng.filter.FilterHostConfig


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:579)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:499)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:478)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:330)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java:291)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:142)
  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:336)
  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:129)
  at org.apache.maven.cli.MavenCli.main (MavenCli.java:287)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke (Method.java:585)
  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
  at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
  at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:451)
  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:558)
  ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Wed Jul 09 14:19:05 EDT 2008
[INFO] Final Memory: 28M/254M
[INFO]
------------------------------------------------------------------------


On 7/9/08, Musachy Barroso <musachy@(protected):
>
> Did you run 'mvn install' for xwork?
>
> musachy
>
>
> On Wed, Jul 9, 2008 at 1:52 PM, John Moose <jgmoose@(protected):
> > 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.
> >
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_188647.ezm (zipped)
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 <jgmoose@(protected):
> 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]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\servlet\ServletHostConfig.java:[23,36]
> cannot find symbol
> symbol : class EnumerationIterator
> location: package com.opensymphony.xwork2.util
>
> C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\filter\FilterHostConfig.java:[23,36]
> cannot find symbol
> symbol : class EnumerationIterator
> location: package com.opensymphony.xwork2.util
>
> C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\servlet\ServletHostConfig.java:[45,19]
> cannot find symbol
> symbol : class EnumerationIterator
> location: class org.apache.struts2.dispatcher.ng.servlet.ServletHostConfig
>
> C:\dev\Struts-2.1.x\core\src\main\java\org\apache\struts2\dispatcher\ng\filter\FilterHostConfig.java:[46,19]
> cannot find symbol
> symbol : class EnumerationIterator
> location: class org.apache.struts2.dispatcher.ng.filter.FilterHostConfig
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:579)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:499)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:478)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:330)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java:291)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:142)
>   at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:336)
>   at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:129)
>   at org.apache.maven.cli.MavenCli.main (MavenCli.java:287)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke (Method.java:585)
>   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
> failure
>   at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
>   at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>   at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:451)
>   at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:558)
>   ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 12 seconds
> [INFO] Finished at: Wed Jul 09 14:19:05 EDT 2008
> [INFO] Final Memory: 28M/254M
> [INFO]
> ------------------------------------------------------------------------
>
>
> On 7/9/08, Musachy Barroso <musachy@(protected):
>>
>> Did you run 'mvn install' for xwork?
>>
>> musachy
>>
>>
>> On Wed, Jul 9, 2008 at 1:52 PM, John Moose <jgmoose@(protected):
>> > 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.
>> >
>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment: user_188642.ezm (zipped)
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 property it works as expected.

My code:
<s:checkbox name="myFlag" label="myLabel"                   value="%{model.isMyFlag()}" required="true" labelposition="left"                   disabled="true" tooltip="myToolTip" />

This checkbox is selected (true), when the form is submitted the value passed to the action is not selected (false).

Thanks.



   

Attachment: user_188646.ezm (zipped)
Did you try with some others browsers, like IE, FF?


Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment: user_188648.ezm (zipped)
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
<lukasz.lenart@(protected):
> Did you try with some others browsers, like IE, FF?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_188659.ezm (zipped)
--- On Wed, 7/9/08, Owen Berry <owen.berry@(protected):
> 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 <s:checkbox.../> tag already includes the hidden field; I don't know what it does for disabled checkboxes, though. The checkbox interceptor *should* work in concert with the tag to handle disabled checkboxes as well, or at least I thought it did.

Dave


Attachment: user_188649.ezm (zipped)
Hi there,

I am trying to iterate a session variable of type HashMap<String, List>
using the following code, but it's not producing any markup..

<s:iterator value="#session.User" id="User">
<s:property value="key" />
<s:property value="value"/>
</s:iterator>

If there is any example on how to iterate object from session variable than
please let me know.

regards,
Dhiraj

Attachment: user_188650.ezm (zipped)
What do you mean by "it's not producing any markup" ?. The iterator tag does not produce any markup.

----- Original Message ----
From: Dhiraj Thakur <desi.tek.org@(protected)>
To: user@(protected)
Sent: Wednesday, July 9, 2008 4:05:39 PM
Subject: iterate from session

Hi there,

I am trying to iterate a session variable of type HashMap<String, List>
using the following code, but it's not producing any markup..

<s:iterator value="#session.User" id="User">
<s:property value="key" />
<s:property value="value"/>
</s:iterator>

If there is any example on how to iterate object from session variable than
please let me know.

regards,
Dhiraj



   __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.


Attachment: user_188652.ezm (zipped)
> I am trying to iterate a session variable of type HashMap<String, List>
> using the following code, but it's not producing any markup..
>
> <s:iterator value="#session.User" id="User">

You mixing different types, once HashMap and then User


Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment: user_188653.ezm (zipped)
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 <strutstwo@(protected):

> What do you mean by "it's not producing any markup" ?. The iterator tag
> does not produce any markup.
>
> ----- Original Message ----
> From: Dhiraj Thakur <desi.tek.org@(protected)>
> To: user@(protected)
> Sent: Wednesday, July 9, 2008 4:05:39 PM
> Subject: iterate from session
>
> Hi there,
>
> I am trying to iterate a session variable of type HashMap<String, List>
> using the following code, but it's not producing any markup..
>
> <s:iterator value="#session.User" id="User">
> <s:property value="key" />
> <s:property value="value"/>
> </s:iterator>
>
> If there is any example on how to iterate object from session variable than
> please let me know.
>
> regards,
> Dhiraj
>
>
>
>     __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
> favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_188654.ezm (zipped)
--- On Wed, 7/9/08, Dhiraj Thakur <desi.tek.org@(protected):
> I am trying to iterate a session variable of type
> HashMap<String, List> using the following code, but
> it's not producing any markup..
>
> <s:iterator value="#session.User" id="User">
>  <s:property value="key" />
>  <s:property value="value"/>
> </s:iterator>
>
> If there is any example on how to iterate object from
> session variable than please let me know.

Iterating over a session variable isn't any different than iterating over any other object--is there really a session variable named "User" that's a Map?

(As an aside, I'd recommend making the name of objects containing multiple objects plural, and not using the same name for a single object from the map of objects--that's confusing.)

Dave


Attachment: user_188655.ezm (zipped)
--- On Wed, 7/9/08, Dhiraj Thakur <desi.tek.org@(protected):
> 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


Attachment: user_188656.ezm (zipped)
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 10, 2008 at 1:48 AM, Dave Newton <newton.dave@(protected):

> --- On Wed, 7/9/08, Dhiraj Thakur <desi.tek.org@(protected):
> > I am trying to iterate a session variable of type
> > HashMap<String, List> using the following code, but
> > it's not producing any markup..
> >
> > <s:iterator value="#session.User" id="User">
> >  <s:property value="key" />
> >  <s:property value="value"/>
> > </s:iterator>
> >
> > If there is any example on how to iterate object from
> > session variable than please let me know.
>
> Iterating over a session variable isn't any different than iterating over
> any other object--is there really a session variable named "User" that's a
> Map?
>
> (As an aside, I'd recommend making the name of objects containing multiple
> objects plural, and not using the same name for a single object from the map
> of objects--that's confusing.)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_188651.ezm (zipped)
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 Struts2 and Tiles2 because that would be a lot of work.

Here is my scenario, I'm developing a struts/tiles application, part of
which contains a reporting mechanism for users to query against. I have
the ability to print a report, but I also want the ability to PDF that
exact same report and save it for the user. To accomplish that task I
am using the iText API and a HttpURLConnection to retrieve the report
content.

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 makePDF.do action which sets up an HttpURLConnection to the
getReport action. The getReport action then forwards to the tiles name
which retrieves the layout jsp and is where it should insert the tiles
attributes and get the report content. This is where it breaks down
however and the only HTML that is returned is from the layout page.

My goal is to simply convert the resulting HTML code into a PDF
document, so if there is another approach I could take I am open to it.
This is the best method I could figure that would allow me to maintain
just one copy of the report rather than having to build both a
printable and PDF version of the report and ensuring they look the same.

I've also noticed something interesting, and
that is in the PDF there is text rendered for the tiles tag
<tiles:getAsString name="title" /> which tells me that the
HttpURLConnection is getting the tiles attributes, but where it is
failing is on the <tiles:insert attribute="body" /> tag. That at
least narrows the problem down to the tiles:insert line specifically
and not tiles overall.

How can I make this work???

THANKS!
-Ryan Henson

PDFAction.java

/*
* @author: Ryan Henson Created on July 7, 2008
*
* Purpose: This file takes an input source, converts it into a PDF, and returns it
*/
package org.airybsa.struts.control;

import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.lowagie.text.*;
import com.lowagie.text.html.HtmlParser;
import com.lowagie.text.pdf.PdfWriter;

public class PDFAction extends DispatchAction {
public ActionForward makePDF(ActionMapping mapping, ActionForm form,
       HttpServletRequest request, HttpServletResponse response)
throws Exception {
try {
// prepare a string of key value pairs.
       String paramStr = "func=getReport&print=true&reportID=1&selectedIDs=315,158";

// POST requests are required to have Content-Length
       String lengthString = String.valueOf(paramStr.length());

/*
        * Establish a connection to the application.
        */
       URL url = new URL("http://localhost:8080/AirySchedule/getReport.do");
       URLConnection con = url.openConnection();

/*
        * configure the connection to allow for the operations necessary.
        * 1. Turn off all caching, so that each new request/response is
        * made from a fresh connection with the servlet. 2. Indicate that
        * this client will attempt to SEND and READ data to/from the
        * servlet.
        */
       con.setUseCaches(false);
       con.setDefaultUseCaches(false);
       con.setDoInput(true);
       con.setDoOutput(true);
// Set the content type we are POSTing and length of the data.
       con.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
       con.setRequestProperty("Content-Length", lengthString);

       OutputStream os = con.getOutputStream();
       OutputStreamWriter osw = new OutputStreamWriter(os);
// send data to servlet
       osw.write(paramStr);
       osw.flush();
       osw.close();

       Document document = new Document();
       document.setPageSize(PageSize.A4.rotate());
       OutputStream out = response.getOutputStream();

       response.addHeader("Content-Type", "application/pdf");
//response.addHeader("Content-Disposition", "attachment; filename=\"unnamed.pdf\"");
//response.addHeader("Content-Length", "" + cachedURL.length());

try {
          PdfWriter.getInstance(document, out);
          HtmlParser.parse(document, con.getInputStream());
} catch (Exception e) {
          log.error(e);
}

} catch (Throwable t) {
       log.error(t);
}
return null;
}
}


   

Attachment: user_188657.ezm (zipped)
Hello
I have defined a page level bean (<bean:page .../>) 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
<html:text ... value="${pageScope|sessionScope.beanName.beanMember}"/>or even
<html:text ... value="<bean:write name="myBean" property="beanMemberName"/>"/>.  Is it possible?  What is the syntax?  tia.


Attachment: user_188658.ezm (zipped)
--- On Wed, 7/9/08, Chris Pat <cpanon@(protected):
> I have defined a page level bean (<bean:page .../>)
> 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
> <html:text ... value="${pageScope|sessionScope.beanName.beanMember}"/>

Did you try just beanName.beanMember?

Are you using a JSP 2+ container? If not, are you using the EL tags?

> <html:text ... value="<bean:write name="myBean"
> property="beanMemberName"/>"/>. 

Well you had to know *that* wouldn't work.

Dave


Attachment: user_188661.ezm (zipped)
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 <bean:write.../> substitution the ' for the " within some contexts worked in the past, of course it didnt here.  What framework/jars do I need to get this to work with Tomcat 5.0.28?  Yes I should upgrade, I just want to get this work first.  Any ideas/edification appreciated.

--- On Wed, 7/9/08, Chris Pat <cpanon@(protected):
From: Chris Pat <cpanon@(protected)>
Subject: page level bean into value
To: "Struts Users Mailing List" <user@(protected)>
Date: Wednesday, July 9, 2008, 5:30 PM

Hello
I have defined a page level bean (<bean:page .../>) 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
<html:text ...
value="${pageScope|sessionScope.beanName.beanMember}"/>or even
<html:text ... value="<bean:write name="myBean"
property="beanMemberName"/>"/>. Is it possible? What
is the syntax? tia.

Attachment: user_188660.ezm (zipped)
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("category") == null) {

       CategoryDAO categoryDAO = new CategoryDAO();

       categoryList = categoryDAO.listCategory();

       session.setAttribute(ConfigAPP.CATEGORY_KEY, categoryList);

       categoryList = (List)
session.getAttribute(ConfigAPP.CATEGORY_KEY);

       System.out.println(categoryList.size());

    } else {
       categoryList = categoryList = (List)
session.getAttribute(ConfigAPP.CATEGORY_KEY);
    }


or is there any other way to do that ?



*Dhiraj*

Attachment: user_188662.ezm (zipped)
Ah.. I see.
Thank you.

Timothy Wonil Lee

Java Developer
http://timundergod.blogspot.com/

-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@(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 docs are for the 2.1.x version of Struts even
though they say they are for the 2.0.x line (and are shipped with it).
At this point you have to use the id attribute. I'm not sure what
the technical reason that prevents the documentation being versioned
like the rest of the code, maybe one of the committers can explain.
(*Chris*)

On Tue, Jul 8, 2008 at 11:53 PM, Timothy Wonil Lee
<timothyl@(protected):
> Hi all,
>
> I was trying to use s:iterator tag, and when I looked at the documentation
> on http://struts.apache.org/2.0.11.2/docs/iterator.html
> it says, attribute (parameter) 'id' is deprecated and 'var' should be
used.
> So I did:
> <s:iterator var="profile" value="profiles" status="row">
>
> However, my IDE complained about the attribute 'var' being not valid
> according to the TLD.
> So I looked at the struts-tags.tld (which was inside
> struts2-core-2.0.11.2.jar file) and I am lead to believe that the TLD
indeed
> does not define 'var' attribute.
>
> Using the 'id' isn't too much of a problem for me at the moment, but I was
> just wondering if this was a known issue.
> Does anybody know if this is reported as a JIRA issue?
>
> Timothy Wonil Lee
>
> Java Developer
> http://timundergod.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


!DSPAM:48746182256198698421205!

©2008 gg3721.com - Jax Systems, LLC, U.S.A.