Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 17 Dec 2009 14:38:45 -0000 Issue 8963

user-digest-help

2009-12-17


Author LoginPost Reply

user Digest 17 Dec 2009 14:38:45 -0000 Issue 8963

Topics (messages 204295 through 204322):

Re: How to forward....
 204295 by: Pawe³ Wielgus

custom properties file not loading in Glassfish V2
 204296 by: Bhaarat Sharma

xwork-conversion.properties
 204297 by: Donato Pirozzi
 204298 by: Lukasz Lenart
 204299 by: Donato Pirozzi
 204300 by: Lukasz Lenart
 204302 by: Donato Pirozzi

Re: Essential Dependencies Only
 204301 by: stanlick

[Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets
 204303 by: Fernandes Celinio
 204304 by: Fernandes Celinio

Re: [Struts 2.1.8] Dojo tags and attributes (listenTopics, notifyTopics ...) with Tiles
 204305 by: Fernandes Celinio

Struts2 + Spring + ibatis configuration set in applicationContext-ibatis.xml
 204306 by: Emi Lu

Struts2 Apps as REST/SOA Producer
 204307 by: Frans Thamura

@Service(value = "filesManager")
 204308 by: Frans Thamura

action tag
 204309 by: Nguyen Xuan Son
 204310 by: Thắng Hoàng
 204311 by: Nguyen Xuan Son

Re: Unique Id creation
 204312 by: jayakumar ala

JavaScript / AJAX + Struts 2?
 204313 by: Jim Collings
 204314 by: Pawe³ Wielgus
 204320 by: Jim Collings
 204322 by: james billa

Accessing to an inherited property via OGNL, is possible?
 204315 by: Cristian Peraferrer
 204317 by: Pawe³ Wielgus
 204318 by: Cristian Peraferrer

The GWT Plugin
 204316 by: Saeed Iqbal
 204319 by: Martin Gainty

[Struts 2.1.8] Dojo with Tiles: works or not ?
 204321 by: Celinio Fernandes

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_204295.ezm (zipped)
Hi Rafael,
instead forward name="success" path="/MainMenu.class"
write forward name="success" path="/MainMenu.do".

Best greetingsgus.
,
Paweł Wiel


2009/12/16 Rafael Muneton <rafael_muneton@(protected)>:
>
> Hello:
>
>
>
> I am trying to develop a small application that contains a Login.jsp, in case of failure the controller must redirect to Login.jsp again;   in case of success the controller must redirect to a Java application ,MainMenu.class.
>
>
>
> I think this is done in struts-config.xml file:
>
>
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>
> <!DOCTYPE struts-config PUBLIC
>
> "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
>
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
>
> <!-- This is the Struts configuration file for the Login example application -->
>
> <struts-config>
>
> <!-- ========== Data Source Definitions ================================ -->
>
> <!-- ========== Form Bean Definitions ================================== -->
>
> <form-beans>
>
> <form-bean name="loginForm"
>
> type="jhtp5.jsp.LoginForm"/>
>
> </form-beans>
>
>
>
> <!-- ========== Action Mapping Definitions ============================= -->
>
> <action-mappings>
>
> <action path="/login"
>
> type="jhtp5.jsp.LoginAction"
>
> name="loginForm"
>
> scope="request"
>
> input="/login.jsp"
>
> validate="true">
>
> <forward name="failure" path="/login.jsp"/>
>
> <forward name="success" path="/MainMenu.class"/>
>
> </action>
>
> </action-mappings>
>
> <!-- ========== Message Resources Definitions ========================== -->
>
> <message-resources null="false"
>
> parameter="ApplicationResources"/>
>
> </struts-config>
>
>
>
> Is this OK??????
>
> What is the right way to do it????
>
> Any help is welcome.
>
>
>
> Vangelis
>
> _________________________________________________________________
> Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009


Attachment: user_204296.ezm (zipped)
Hello,

I have a Struts2 app in which my struts.properties resides in
WEB-INF/classes. It contains the following line

struts.custom.i18n.resources=mypropertyfile

mypropertyfile also resides in WEB-INF/classes. and inside the
properties file, for example I have the following:

pdf.test.title=PDF Test

then in my jsp I use it as follows

<s:text name="pdf.test.title"/>

On the browser it shows "pdf.test.title" rather than "PDF Test"

With the same setup this problem was not there on Sun application
server 8.2. Problem started happening after we moved to GlassFish.

I will ask the question to GlassFish users as well but before that I
wanted to know if there is any OTHER way in struts to use properties
file? I do not have access to the App server so I want to try and
resolve the issue with code fix.

Please let me know if there is another way to use properties files in struts?

Thanks

Attachment: user_204297.ezm (zipped)
Hi,

I have problem with my custom converter...

I have a bean that provided get/set methods for date.

public class Person {
 ...
 private Date bornDate;
 ...
 public void setBornDate(Date bornDate) { ... }
 public Date getBorn() { ... }
}

On my jsp I have dojo input dijit.form.DateTextBox
<s:form ...>
...
<input type="text" name="model.bornDate" dojoType="dijit.form.DateTextBox"
required="true" />
...
</s:form>

Problem is that when user submit form, there is an exception
NoSuchMethodException setBornDate(String str)
I have created my converter DateConverter that extends StrytsTypeConverter
and I have added src/main/resources/xwrork-conversation.properties (maven2
project) with mapping.

java.util.Date = org.converter.DateConverter

I don't understand if xwork-conversation.properties is loaded correctly,
because I haven't any usefully log information.

I'm using struts 2.1.8.1.

Thanks all.

Attachment: user_204298.ezm (zipped)
2009/12/16 Donato Pirozzi <donatopirozzi@(protected)>:
> and I have added src/main/resources/xwrork-conversation.properties (maven2

Should be >>xwork-conversion.properties<<


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


Attachment: user_204299.ezm (zipped)
Thanks for the answer Lukasz,

obviously is a typos, name of my file into my project is
xwork-conversion.propertis

Sorry for the mistake.


2009/12/16 Lukasz Lenart <lukasz.lenart@(protected)>

> 2009/12/16 Donato Pirozzi <donatopirozzi@(protected)>:
> > and I have added src/main/resources/xwrork-conversation.properties
> (maven2
>
> Should be >>xwork-conversion.properties<<
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_204300.ezm (zipped)
2009/12/16 Donato Pirozzi <donatopirozzi@(protected)>:
> obviously is a typos, name of my file into my project is
> xwork-conversion.propertis

Did you try to use annotations?

@TypeConversion(converter = "org.demo.DateConverter")
public void setDateNow(Date now) { this.now = now; }


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


Attachment: user_204302.ezm (zipped)
Hi and thanks for answer,

I have tried to use annotation, but don't work, error message is the same:

Error setting expression 'model.dataMandato' with value
'[Ljava.lang.String;@(protected)'
ognl.MethodFailedException: Method "setDataMandato" failed for object
org.storage.mandati.Mandato@(protected):
org.storage.mandati.Mandato.setDataMandato([Ljava.lang.String;)]

My bean have:

  public Date getDataMandato() { return dataMandato; }
 
@TypeConversion(converter="org.common.struts2.dataconverter.DateConverter")
  public void setDataMandato(Date dataMandato) { this.dataMandato =
dataMandato; }

Note: Bean is into a jar, into a package org.storage.mandati
converter is into
src/main/java/org.common.struts2.dataconverter.DateConverter

I have try it with different bean that I have into my project.

Thanks.

Lukasz Lenart wrote:
> 2009/12/16 Donato Pirozzi <donatopirozzi@(protected)>:
> Did you try to use annotations?
>
> @TypeConversion(converter = "org.demo.DateConverter")
> public void setDateNow(Date now) { this.now = now; }
>
>
> Regards
>  



Attachment: user_204301.ezm (zipped)

I am swimming around in Maven this morning and I am bouncing around like a
steel ball in a pinball machine! We use a homegrown tool with all the warts
and bumps. I am trying to run mvn dependency:tree over
struts2-core-2.1.8.pom to see if the analysis might help me with the
forest/tree problem. When I run it I am getting the following trace. A
Google search revealed some dependency changes in Maven and requested I
delete my local repo from my ../.m2 which I did. The problem is the same.
Here is the output from mvn -v. Another potential clue is the 'cmd' is not
recognized as an internal or external command, message I get often. Do you
have any suggestions?

C:\maven\scott\struts2-core>mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
Java version: 1.6.0_12
Java home: C:\Program Files\Java\jdk1.6.0_12\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\maven\scott\struts2-core>



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

C:\maven\scott\struts2-core>mvn dependency:tree -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: dependency:tree in
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
dependency:tree in
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1867)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds (DefaultLifecycleExecutor.java:462)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:175)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:362)
    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    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:597)
    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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Dec 16 10:14:47 CST 2009
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\maven\scott\struts2-core>mvn dependency:tree




Musachy Barroso wrote:
>
> yeah I know, so do we ;), right now grep is all I got
>
> On Tue, Dec 15, 2009 at 10:09 AM, <stanlick@(protected):
>> Thanks brother.  Actually it's not our projects we analyze; it's the open
>> source projects.  We *do not* simply download/dump the OS project and
>> begin
>> to use it.  We factor each project into as many constituent OS projects
>> as
>> it made from and then recursively walk down the tree doing this at each
>> node.  It is a big PITA!
>>
>> On Tue, Dec 15, 2009 at 12:03 PM, Musachy Barroso <musachy@(protected)>
>> wrote:
>>
>>> mvn dependency:tree will give you all the dependencies nicely. I also
>>> have to help with this task in my company, and we haven't found any
>>> decent tool that does what you described. If all your projects use
>>> maven, then there is probably a plugin for that, but that's not the
>>> case for us.
>>>
>>> On Tue, Dec 15, 2009 at 9:58 AM,  <stanlick@(protected):
>>> > Thanks Wes --
>>> >
>>> > Have you or others discovered any software that could be used to
>>> "decompose"
>>> > an open source product into its constituent parts and then further
>>> decompose
>>> > each of those in turn.  Looking at a single POM rarely answers the
>>> "real"
>>> > questions.  The dependency/version graph is wicked to deal with by
>>> hand
>>> and
>>> > the licenses therein complicate matters even further.  I struggle when
>>> > thinking how many shops are each doing this over-and-over with each
>>> new
>>> > version release and it seems like a missing piece of the FOSS/legal
>>> puzzle.
>>> >
>>> > Peace,
>>> > Scott
>>> >
>>> >
>>> > On Mon, Dec 14, 2009 at 10:44 AM, Wes Wannemacher <wesw@(protected)>
>>> wrote:
>>> >
>>> >> Scott, take a look at the mailreader and blank apps. You can also
>>> read
>>> >> through the struts2-core pom (annotated and easier to read here -
>>> >>
>>> >>
>>> http://jarvana.com/jarvana/inspect-pom/org/apache/struts/struts2-core/2.1.8/struts2-core-2.1.8.pom
>>> >> ,
>>> >> that points to 2.1.8, they haven't indexed 2.1.8.1 yet, but there is
>>> >> no differences in dependencies).
>>> >>
>>> >> If you just want to cut to the chase, the "essentials" would be -
>>> >>
>>> >> struts2-core 2.1.8.1
>>> >> xwork-core 2.1.6
>>> >> freemarker 2.3.15
>>> >> ognl 2.7.3
>>> >>
>>> >> -Wes
>>> >>
>>> >> On Mon, Dec 14, 2009 at 10:36 AM, stanlick <stanlick@(protected)>
>>> wrote:
>>> >> >
>>> >> > Greetings and Happy Holidays --
>>> >> >
>>> >> > I am sitting down to unwind the Essential Dependencies Only jar
>>> >> > (struts-2.1.8.1-lib.zip) in preparation for the litany of questions
>>> the
>>> >> > lawyers are going to ask before accepting the Struts 2.1.8.1
>>> upgrade
>>> in
>>> >> > house.  Now either I have a different understanding of the word
>>> >> essential,
>>> >> > or this version of our new Struts has really spread her arms.
>>>  There
>>> are
>>> >> > seventy-one jars in the lib folder of the *essential dependencies
>>> only
>>> >> jar*
>>> >> > and a quick glance suggests they are *not* all essential.  So does
>>> >> essential
>>> >> > != core or required?  Is there a resource where an analysis can be
>>> made
>>> >> to
>>> >> > determine compile, testing, run-time dependencies?  Untangling this
>>> ball
>>> >> of
>>> >> > yarn by hand is going to burn up hours and lead an analyst down
>>> many
>>> >> rabbit
>>> >> > holes.  Is there a POM that could save the man hours?
>>> >> >
>>> >> > Peace,
>>> >> > Scott
>>> >> > --
>>> >> > View this message in context:
>>> >>
>>> http://old.nabble.com/Essential-Dependencies-Only-tp26779724p26779724.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)
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Wes Wannemacher
>>> >>
>>> >> Head Engineer, WanTii, Inc.
>>> >> Need Training? Struts, Spring, Maven, Tomcat...
>>> >> Ask me for a quote!
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> 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)
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> 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_204303.ezm (zipped)
Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles
template then it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it
keeps showing up in my browser.

I am not too familiar with the Dojo tags yet.
Before investigating any further i would like to know if someone already
has a clue about that ?

Thanks for helping.





Attachment: user_204304.ezm (zipped)
By the way, I am using Struts 2.1.8, not 2.18 of course.

-----Message d'origine-----
De : Fernandes Celinio [mailto:cfernandes@(protected)]
Envoyé : mercredi 16 décembre 2009 18:26
À : Struts Users Mailing List
Objet : [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets

Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles template then it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it keeps showing up in my browser.

I am not too familiar with the Dojo tags yet.
Before investigating any further i would like to know if someone already has a clue about that ?

Thanks for helping.




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



Attachment: user_204305.ezm (zipped)
Sorry I got the message completely wrong (end of the day ...) : I meant Tiles, not Facelets !

Any idea ? Thanks.


-----Message d'origine-----
De : Fernandes Celinio [mailto:cfernandes@(protected)]
Envoyé : mercredi 16 décembre 2009 18:29
À : Struts Users Mailing List
Objet : RE: [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets

By the way, I am using Struts 2.1.8, not 2.18 of course.

-----Message d'origine-----
De : Fernandes Celinio [mailto:cfernandes@(protected)]
Envoyé : mercredi 16 décembre 2009 18:26 À : Struts Users Mailing List Objet : [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets

Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles template then it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it keeps showing up in my browser.

I am not too familiar with the Dojo tags yet.
Before investigating any further i would like to know if someone already has a clue about that ?

Thanks for helping.




---------------------------------------------------------------------
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)



Attachment: user_204306.ezm (zipped)
Hello list,

Struts2 + Spring + ibatis, database connection configuration question:
=============================================================================

(1) In applicationContext-ibatis.xml

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
  <property name="driverClassName" value="${driverClassName}" />
  <property name="url"    value="${url}" />
  <property name="username" value="${username}" />
  <property name="password" value="${password}" />
</bean>

<bean id="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
  <property name="dataSource">
    <ref local="dataSource" />
  </property>

  <property name="configLocation"
value="WEB-INF/classes/sqlMapConfig.xml" />
  </bean>


My question is in each my action class, do I have to define as the
following?
<bean id="client1" class="ActionClass1">
    <property name="sqlMapClient" ref="sqlMapClient" />
</bean>

<bean id="client2" class="ActionClass2">
    <property name="sqlMapClient" ref="sqlMapClient" />
</bean>

....

<bean id="clientN" class="ActionClassN">
    <property name="sqlMapClient" ref="sqlMapClient" />
</bean>



So for each my action class I have to define one bean? Is it true or
there are other simple ways?




Thanks a lot!

--
Lu Ying






Attachment: user_204307.ezm (zipped)
hi there


i am working to turn my S2 apps become like facebook, we can provide web
API, so every developer can access to the system develop by S2,

anyone have experience with this, may be wanna to share your experience

F

Attachment: user_204308.ezm (zipped)
hi all

i have a code like this

@Service(value = "filesManager")

from

import org.springframework.stereotype.Service;

any idea to implement without spring but have this feature?

thx


--
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK
yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma

Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing fast and
reliable.

Attachment: user_204309.ezm (zipped)
dear all
In the JSP page I have
<s:action name="homeDiscountedNews">
<s:iterator value="listHomeSaleoffs" >
<div class="newsframe">
<img src="upload/images/saleoff/<s:property value='picture'/>" align="left"
class="newsimg">
<strong class="gray_dd"><s:property value='title'/></strong>
<br><s:property value='brief'/>
<br style="line-height:6px ">
<a href="/g/viewListNews.action?id=<s:property value='row_id'/>"
class="gray_d" title="詳しく" ><strong>read more</strong></a>
<img src="g/images/plus_red.jpg" align="absmiddle" style="margin-left:5px
"></div>
<p><br style="line-height:10px "><div class="line"><img
src="g/images/spacer.gif"></div></p>
</s:iterator>
</s:action>

though the data is available but nothing is displayed on the JSP page
do you have any suggestion
thank you very much

--
=======================================================================
Ritsumeikan University, Asia JinZai Project
Master of Information Science
Nguyen Xuan Son

Add     : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu
Rien, Room 103
Tel/Fax : 81-(0)90-3976 2246
Email   : nr0003xx@(protected)
Mobile  : 81-(0)90-3976 2246       URL : http://www.ritsumei.jp
=======================================================================

Attachment: user_204310.ezm (zipped)
maybe you forgot to include the taglib header

<%@(protected)" %>

2009/12/17 Nguyen Xuan Son <yamacom@(protected)>

> dear all
> In the JSP page I have
> <s:action name="homeDiscountedNews">
> <s:iterator value="listHomeSaleoffs" >
> <div class="newsframe">
> <img src="upload/images/saleoff/<s:property value='picture'/>" align="left"
> class="newsimg">
> <strong class="gray_dd"><s:property value='title'/></strong>
> <br><s:property value='brief'/>
> <br style="line-height:6px ">
> <a href="/g/viewListNews.action?id=<s:property value='row_id'/>"
> class="gray_d" title="詳しく" ><strong>read more</strong></a>
> <img src="g/images/plus_red.jpg" align="absmiddle" style="margin-left:5px
> "></div>
> <p><br style="line-height:10px "><div class="line"><img
> src="g/images/spacer.gif"></div></p>
> </s:iterator>
> </s:action>
>
> though the data is available but nothing is displayed on the JSP page
> do you have any suggestion
> thank you very much
>
> --
> =======================================================================
> Ritsumeikan University, Asia JinZai Project
> Master of Information Science
> Nguyen Xuan Son
>
> Add     : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18
> ShiteiHaimu
> Rien, Room 103
> Tel/Fax : 81-(0)90-3976 2246
> Email   : nr0003xx@(protected)
> Mobile  : 81-(0)90-3976 2246       URL : http://www.ritsumei.jp
> =======================================================================
>



--
Best regards,

Thang Hoang

Attachment: user_204311.ezm (zipped)
I had that already, without that tag the system wont understand any tag
which starts with 's:'
do you have any other suggestion?
thank you very much

Vào 14:00 Ngày 17 tháng 12 năm 2009, Thắng Hoàng <thanghv@(protected)
viết:

> maybe you forgot to include the taglib header
>
> <%@(protected)" %>
>
> 2009/12/17 Nguyen Xuan Son <yamacom@(protected)>
>
> > dear all
> > In the JSP page I have
> > <s:action name="homeDiscountedNews">
> > <s:iterator value="listHomeSaleoffs" >
> > <div class="newsframe">
> > <img src="upload/images/saleoff/<s:property value='picture'/>"
> align="left"
> > class="newsimg">
> > <strong class="gray_dd"><s:property value='title'/></strong>
> > <br><s:property value='brief'/>
> > <br style="line-height:6px ">
> > <a href="/g/viewListNews.action?id=<s:property value='row_id'/>"
> > class="gray_d" title="詳しく" ><strong>read more</strong></a>
> > <img src="g/images/plus_red.jpg" align="absmiddle" style="margin-left:5px
> > "></div>
> > <p><br style="line-height:10px "><div class="line"><img
> > src="g/images/spacer.gif"></div></p>
> > </s:iterator>
> > </s:action>
> >
> > though the data is available but nothing is displayed on the JSP page
> > do you have any suggestion
> > thank you very much
> >
> > --
> > =======================================================================
> > Ritsumeikan University, Asia JinZai Project
> > Master of Information Science
> > Nguyen Xuan Son
> >
> > Add     : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18
> > ShiteiHaimu
> > Rien, Room 103
> > Tel/Fax : 81-(0)90-3976 2246
> > Email   : nr0003xx@(protected)
> > Mobile  : 81-(0)90-3976 2246       URL : http://www.ritsumei.jp
> > =======================================================================
> >
>
>
>
> --
> Best regards,
>
> Thang Hoang
>



--
=======================================================================
Ritsumeikan University, Asia JinZai Project
Master of Information Science
Nguyen Xuan Son

Add     : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu
Rien, Room 103
Tel/Fax : 81-(0)90-3976 2246
Email   : nr0003xx@(protected)
Mobile  : 81-(0)90-3976 2246       URL : http://www.ritsumei.jp
=======================================================================

Attachment: user_204312.ezm (zipped)
I am using Jquery MultiFile to select multiple file. I still be selecting
one by one file but when i do upload it will be multiple file. There are
other ways to select multiple files through Browse button like Flash
components or Applet.

On Tue, Dec 15, 2009 at 9:39 PM, Lee Clemens <java@(protected):

> OP: What Struts tag are you using to upload multiple files at the same
> time?
> I may be wrong, but I didn't know this was possible with Struts.  If so,
> what filename are they given by default? I use file upload tags but they
> are
> saved as default-named files I can access via the File setter in my Action
> (file.getAbsolutePath()).
>
> Otherwise, I would suggest going with a solution along the line of PK's
> solution with UUID (probably best with the ms timestamp) as part of the
> file
> name or using SecureRandom.nextInt and Integer.MAX_VALUE.
>
> To be extra safe, you could have a static Set to maintain all file names
> and
> ensure it not is contained in that Set before creating it (and populate the
> Set during initialization).
>
>
> TG, Out of curiosity, why would the current milliseconds past epoch need to
> be zero-padded? (besides code written for ~277 years from now, when it
> still
> likely wouldn't matter?)
>
> -----Original Message-----
> From: Todd Grigsby [mailto:strutsuser@(protected)]
> Sent: Tuesday, December 15, 2009 3:02 PM
> To: Struts Users Mailing List
> Subject: Re: Unique Id creation
>
> jayakumar ala wrote:
> > Hi All,
> > I am using struts2 in my web application.
> > Which is the best way to create unique Id for each file upload i do in
> my
> > application...?
> >
> > Thanks
> > Ala
> >
> >
>
> I've always used the original filename with a time stamp, down to the
> millisecond formatted with leading zeros and without separators,
> appended to the end. If a create fails, I wait a few milliseconds and
> regenerate the filename. The nice part about the time stamp is that you
> have the date and time the file was uploaded in the name itself.
>
> TG
>
> ---------------------------------------------------------------------
> 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)
>
>

Attachment: user_204313.ezm (zipped)
So I have two actions and one jsp. The idea is that one is for the
entire page and another is for putting into a <div> via a JavaScript
method.

Question: How do I get items off of the value stack for use in JavaScript?


Jim C.


Attachment: user_204314.ezm (zipped)
Hi Jim,
action is on server side and javascript is on browser side,
they don't interact, You can generate js server side but that's it.
Js will be run in browser so it has no access to stack or action variables.

Best greetings,
Paweł Wielgus.



2009/12/17 Jim Collings <jlistnews@(protected)>:
> So I have two actions and one jsp.  The idea is that one is for the
> entire page and another is for putting into a <div> via a JavaScript
> method.
>
> Question:  How do I get items off of the value stack for use in JavaScript?
>
>
> Jim C.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_204320.ezm (zipped)
So it's impossible? JavaScript and Struts 2 don't interact at all?
What good is Struts 2 then?

2009/12/17 Paweł Wielgus <poulwiel@(protected)>:
> Hi Jim,
> action is on server side and javascript is on browser side,
> they don't interact, You can generate js server side but that's it.
> Js will be run in browser so it has no access to stack or action variables.
>
> Best greetings,
> Paweł Wielgus.
>
>
>
> 2009/12/17 Jim Collings <jlistnews@(protected)>:
>> So I have two actions and one jsp.  The idea is that one is for the
>> entire page and another is for putting into a <div> via a JavaScript
>> method.
>>
>> Question:  How do I get items off of the value stack for use in JavaScript?
>>
>>
>> Jim C.
>>
>> ---------------------------------------------------------------------
>> 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)
>
>


Attachment: user_204322.ezm (zipped)
Pawel,

I am doing something like shown below and it works good for me. Isn't it
calling the values from model/stack value from java script? zipCodes is in
my model. Please tell me ur option. that would help me underst it better. I
am using struts 2.1.6. Thanks.

function showmylist() {
var myList = '<s:property value="zipCodes"/>';
var seletedzipcodelist = new Array();
seletedzipcodelist = myList.split(",");
if (seletedzipcodelist != null && seletedzipcodelist != "") {
 for (i in seletedzipcodelist) {
  document.getElementById(seletedzipcodelist[i]).className = "showzip";
 }
}
document.getElementById("something").value = '<s:property
value="NewDate"/>';
}



2009/12/17 Paweł Wielgus <poulwiel@(protected)>

> Hi Jim,
> action is on server side and javascript is on browser side,
> they don't interact, You can generate js server side but that's it.
> Js will be run in browser so it has no access to stack or action variables.
>
> Best greetings,
> Paweł Wielgus.
>
>
>
> 2009/12/17 Jim Collings <jlistnews@(protected)>:
> > So I have two actions and one jsp. The idea is that one is for the
> > entire page and another is for putting into a <div> via a JavaScript
> > method.
> >
> > Question: How do I get items off of the value stack for use in
> JavaScript?
> >
> >
> > Jim C.
> >
> > ---------------------------------------------------------------------
> > 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)
>
>

Attachment: user_204315.ezm (zipped)
I have a POJO class B that extends the POJO class A.

It is possible to access an inherited property of class A through a
class B object, via OGNL (in a JSP page)?

Thanks,

Cristian

--
GPG Key-ID: 0x564903FA - JID: corellian@(protected)


Attachment: user_204317.ezm (zipped)
Hi Christian,
b.propertyFromClassA - just like that.

Best greetings,
Paweł Wielgus.


2009/12/17 Cristian Peraferrer <corellian.c@(protected)>:
> I have a POJO class B that extends the POJO class A.
>
> It is possible to access an inherited property of class A through a
> class B object, via OGNL (in a JSP page)?
>
> Thanks,
>
> Cristian
>
> --
> GPG Key-ID: 0x564903FA - JID: corellian@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_204318.ezm (zipped)
Ok thank you :-)

I wasn't sure about it because it wasn't working due to another cause,
now I've fixed the other cause and it works.

Cristian

2009/12/17 Paweł Wielgus <poulwiel@(protected)>:
> Hi Christian,
> b.propertyFromClassA - just like that.
>
> Best greetings,
> Paweł Wielgus.
>
>
> 2009/12/17 Cristian Peraferrer <corellian.c@(protected)>:
>> I have a POJO class B that extends the POJO class A.
>>
>> It is possible to access an inherited property of class A through a
>> class B object, via OGNL (in a JSP page)?
>>
>> Thanks,
>>
>> Cristian
>>
>> --
>> GPG Key-ID: 0x564903FA - JID: corellian@(protected)
>>
>> ---------------------------------------------------------------------
>> 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)
>
>



--
GPG Key-ID: 0x564903FA - JID: corellian@(protected)


Attachment: user_204316.ezm (zipped)
I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin
looks very good. How do I make it work with Struts on parts of the project,
will it need multiple entrypoint 's?

--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment: user_204319.ezm (zipped)

the endpoints would have the same class attribute from the action tag e.g.
<action name="Hello" class="example.Hello" method="hello">
MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
endpoint.setServiceEntryPoint("Hello.action");

http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html

Martin Gainty
independant?
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 17 Dec 2009 16:38:37 +0500
> Subject: The GWT Plugin
> From: saeedcs@(protected)
> To: user@(protected)
>
> I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin
> looks very good. How do I make it work with Struts on parts of the project,
> will it need multiple entrypoint 's?
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
           
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

Attachment: user_204321.ezm (zipped)
Hi,
I already posted a message about my problem, yesterday.
I followed this example here : http://struts.apache.org/2.1.8.1/docs/struts-2-spring-2-jpa-ajax.html
It works well.
However if i put the JSP pages inside Tiles, then it does not work.
What happens is that the page seems to refresh all the time and grows exponentially (one page inside another inside another etc).

Is there a know problem with Dojo in combination with Tiles ?
http://www.dojotoolkit.org/tags/tiles

Not too sure if it's a big issue or just a minor modification i need to do in my Tiles template or the JSPs to make it work.

Perhaps some issue with the <s:div> Dojo tag ?

I do not think I need to copy-paste any code for more details. The header, footer, menu are very classic.
Does anyone have any idea ?
thanks for helping.



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