Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 22 Dec 2009 08:27:56 -0000 Issue 8966

user-digest-help

2009-12-22


Author LoginPost Reply

user Digest 22 Dec 2009 08:27:56 -0000 Issue 8966

Topics (messages 204357 through 204371):

creat thumbnail image
 204357 by: Nguyen Xuan Son
 204358 by: Saeed Iqbal

[Struts 2.1.8] Is the Dojo plugin really deprecated on Struts 2.1 ?
 204359 by: Fernandes Celinio
 204360 by: Lukasz Lenart
 204361 by: Fernandes Celinio
 204362 by: Lukasz Lenart

struts2 internationalization in html attributes
 204363 by: Ïëàìåí Óçóíîâ
 204364 by: Lukasz Lenart
 204365 by: Ïëàìåí Óçóíîâ

Re: Struts2 drop down box
 204366 by: vineith kaul
 204367 by: Kawczynski, David
 204368 by: Pawe³ Wielgus
 204369 by: vineith kaul

Strusts Error - no Action mapped for action name HelloWorld
 204370 by: dhammikas

StrutsSpringTestCase - not releasing connections until all tests complete
 204371 by: carl ballantyne

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_204357.ezm (zipped)
dear all
im trying to create a thumbnail image from the original one
i've refered to ic_cms_sources project but I've not found any idea
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_204358.ezm (zipped)
You can use BufferedImage class for low res thumbnail, and JAI for high res

On Mon, Dec 21, 2009 at 9:27 AM, Nguyen Xuan Son <yamacom@(protected):

> dear all
> im trying to create a thumbnail image from the original one
> i've refered to ic_cms_sources project but I've not found any idea
> 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
> =======================================================================
>



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

Attachment: user_204359.ezm (zipped)
Hi,
According to the documentation, the "The Dojo plugin will be deprecated
on Struts 2.1".
http://struts.apache.org/2.1.8/docs/ajax-tags.html

Is that true ?
I have been playing with it lately, it seems to work well.
If it is really deprecated, what is the replacement then ? jQuery ?

What JavaScript framework / JavaScript plugin should we use with Struts
2 then ?

Thanks for your feedback.


Attachment: user_204360.ezm (zipped)
2009/12/21 Fernandes Celinio <cfernandes@(protected)>:
> Is that true ?

Yes

> I have been playing with it lately, it seems to work well.
> If it is really deprecated, what is the replacement then ? jQuery ?

Exactly, take a look on that
http://code.google.com/p/struts2-jquery/

it should be soon integrated into framework


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


Attachment: user_204361.ezm (zipped)

Thanks for the info.
I have got 2 additional questions :
What is the motivation ? Why is Dojo deprecated in favour of jQuery ?

I am not too familiar with jQuery. Does it handle events/topics subscriptions/notifications like Dojo to
call Struts actions ? If yes, how ? Is there an example available somewhere ?

Thanks.


-----Message d'origine-----
De : Lukasz Lenart [mailto:lukasz.lenart@(protected)]
Envoyé : lundi 21 décembre 2009 12:53
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Is the Dojo plugin really deprecated on Struts 2.1 ?

2009/12/21 Fernandes Celinio <cfernandes@(protected)>:
> Is that true ?

Yes

> I have been playing with it lately, it seems to work well.
> If it is really deprecated, what is the replacement then ? jQuery ?

Exactly, take a look on that
http://code.google.com/p/struts2-jquery/

it should be soon integrated into framework


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

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



Attachment: user_204362.ezm (zipped)
2009/12/21 Fernandes Celinio <cfernandes@(protected)>:
> I have got 2 additional questions :
> What is the motivation ? Why is Dojo deprecated in favour of jQuery ?

I really don't remember, there was large discussion about that - too
complicated code base, old dojo version used, too hard to migrate, so
on...

> I am not too familiar with jQuery. Does it handle events/topics subscriptions/notifications like Dojo to
> call Struts actions ? If yes, how ? Is there an example available somewhere ?

Sorry, I don't know any details, please check demo
http://www.weinfreund.de/struts2-jquery-showcase/index.action


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


Attachment: user_204363.ezm (zipped)
Help!

I need to internationalize some attribure in html when using struts 2.
An example a 'title' or 'alt' of 'img' tag. Or 'keywords', 'description'
attributes of 'meta' tag. This issue is helpful for SEO of web project.i


Regards,
Plamen Uzunov

Attachment: user_204364.ezm (zipped)
2009/12/21 Пламен Узунов <puzunoff@(protected)>:
> I need to internationalize some attribure in html when using struts 2.
> An example a 'title' or 'alt' of 'img' tag. Or 'keywords', 'description'
> attributes of 'meta' tag. This issue is helpful for SEO of web project.i

<img src='<s:text name="src.key"/>' alt="<s:text name='alt.key'/>">


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


Attachment: user_204365.ezm (zipped)
Thanks Lukasz!

On Mon, Dec 21, 2009 at 4:24 PM, Lukasz Lenart <lukasz.lenart@(protected)
> wrote:

> 2009/12/21 Пламен Узунов <puzunoff@(protected)>:
> > I need to internationalize some attribure in html when using struts 2.
> > An example a 'title' or 'alt' of 'img' tag. Or 'keywords', 'description'
> > attributes of 'meta' tag. This issue is helpful for SEO of web project.i
>
> <img src='<s:text name="src.key"/>' alt="<s:text name='alt.key'/>">
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Пламен Узунов,
М-Тел: 088/8869066,
puzunoff@(protected),
webmaster@(protected).

Attachment: user_204366.ezm (zipped)
Can someone please help me with this ?
Really appreciate any input.This is my first post on this struts2
mailing-list :-)

Thanks!
Vineith

On Sat, Dec 19, 2009 at 5:17 PM, Vineith Kaul <vineith@(protected):

> Does anyone know how to differentially color options in struts 2 drop
> down.e.g I need one option to be in red other to be in blue etc.I tried to
> look for it - looks like has smthng to do with cssSyle but not sure how can
> we apply it for different options of the drop down.FYI : I m populating the
> drop down using the list attribute from the database.
>
>
> Thanks
> Vineith
>
>
>


--
Vineith Kaul
Bioinformatics Application Developer/Analyst
Department of Medical Genetics
Emory School of Medicine-Atlanta,GA
# 213-379-3539

Attachment: user_204367.ezm (zipped)
If you're using S2's form taglibs to construct the select list, I don't
think you will find the level of control needed for this. Not unless
you know how to do that with a single css style element. If you do,
specify that style class as the <s:select cssClass> attribute.

If you're not trying to do this, your only hope may be to use
<s:iterate> to loop the List obtained from the DB, and evaluate the
#rowstatus.odd value to print out alternating class attributes on an
<option> tag using the <s:property> tag or ognl.


> -----Original Message-----
> From: vineith kaul [mailto:vineith@(protected)]
> Sent: Monday, December 21, 2009 12:32 PM
> To: user@(protected)
> Subject: Re: Struts2 drop down box
>
> Can someone please help me with this ?
> Really appreciate any input.This is my first post on this struts2
> mailing-list :-)
>
> Thanks!
> Vineith
>
> On Sat, Dec 19, 2009 at 5:17 PM, Vineith Kaul
> <vineith@(protected):
>
> > Does anyone know how to differentially color options in
> struts 2 drop
> > down.e.g I need one option to be in red other to be in blue
> etc.I tried to
> > look for it - looks like has smthng to do with cssSyle but
> not sure how can
> > we apply it for different options of the drop down.FYI : I
> m populating the
> > drop down using the list attribute from the database.
> >
> >
> > Thanks
> > Vineith
> >
> >
> >
>
>
> --
> Vineith Kaul
> Bioinformatics Application Developer/Analyst
> Department of Medical Genetics
> Emory School of Medicine-Atlanta,GA
> # 213-379-3539
>
Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates Direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.



Attachment: user_204368.ezm (zipped)
Hi Vineith,
the question is more about does HTML select options allow for such thing?
Honestly i have no idea, also it has nothing to do with struts.
But if the answear is yes, You can do it yourself, simply generate
HTML code by hand. Create select html element by writing its HTML code
and inside it, iterate over all your options and produce HTML option
code for each but with special style added < option
style="background-color: black;" />

Best greetings,
Pawel Wielgus.


2009/12/21, vineith kaul <vineith@(protected)>:
> Can someone please help me with this ?
> Really appreciate any input.This is my first post on this struts2
> mailing-list :-)
>
> Thanks!
> Vineith
>
> On Sat, Dec 19, 2009 at 5:17 PM, Vineith Kaul <vineith@(protected):
>
>> Does anyone know how to differentially color options in struts 2 drop
>> down.e.g I need one option to be in red other to be in blue etc.I tried to
>> look for it - looks like has smthng to do with cssSyle but not sure how
>> can
>> we apply it for different options of the drop down.FYI : I m populating
>> the
>> drop down using the list attribute from the database.
>>
>>
>> Thanks
>> Vineith
>>
>>
>>
>
>
> --
> Vineith Kaul
> Bioinformatics Application Developer/Analyst
> Department of Medical Genetics
> Emory School of Medicine-Atlanta,GA
> # 213-379-3539
>


Attachment: user_204369.ezm (zipped)
Thanks a lot Pawel and Dave for pointing me in the right direction.

For anyone with a similar problem , this is what I did.Although I never
quite understand when to put a ${ attribute } and when to put %{attribute}

<select>
               <s:iterator value="listValues">
                  <option value="<s:property value="code"/>"
style="color:${attribute}">
                  <s:property value="description"/>
                  </option>
               </s:iterator>
</select>

Thanks!
Vineith

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

> Hi Vineith,
> the question is more about does HTML select options allow for such thing?
> Honestly i have no idea, also it has nothing to do with struts.
> But if the answear is yes, You can do it yourself, simply generate
> HTML code by hand. Create select html element by writing its HTML code
> and inside it, iterate over all your options and produce HTML option
> code for each but with special style added < option
> style="background-color: black;" />
>
> Best greetings,
> Pawel Wielgus.
>
>
> 2009/12/21, vineith kaul <vineith@(protected)>:
> > Can someone please help me with this ?
> > Really appreciate any input.This is my first post on this struts2
> > mailing-list :-)
> >
> > Thanks!
> > Vineith
> >
> > On Sat, Dec 19, 2009 at 5:17 PM, Vineith Kaul <vineith@(protected):
> >
> >> Does anyone know how to differentially color options in struts 2 drop
> >> down.e.g I need one option to be in red other to be in blue etc.I tried
> to
> >> look for it - looks like has smthng to do with cssSyle but not sure how
> >> can
> >> we apply it for different options of the drop down.FYI : I m populating
> >> the
> >> drop down using the list attribute from the database.
> >>
> >>
> >> Thanks
> >> Vineith
> >>
> >>
> >>
> >
> >
> > --
> > Vineith Kaul
> > Bioinformatics Application Developer/Analyst
> > Department of Medical Genetics
> > Emory School of Medicine-Atlanta,GA
> > # 213-379-3539
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Vineith Kaul
Bioinformatics Application Developer/Analyst
Department of Medical Genetics
Emory School of Medicine-Atlanta,GA
# 213-379-3539

Attachment: user_204370.ezm (zipped)

Dear All,
I am very new to strusts 2.1 and just struggling with up and running the
hello world app. Following is the error that i am getting

------------------------------------------------------------------------------------
WARNING: Could not find action or result
There is no Action mapped for action name HelloWorld. - [unknown location]
 at
com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java:178)
 at
org.apache.struts2.impl.StrutsActionProxy.prepare (StrutsActionProxy.java:61)
 at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:39)
 at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (DefaultActionProxyFactory.java:47)
 at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:478)
 at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (ExecuteOperations.java:77)
 at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter (StrutsPrepareAndExecuteFilter.java:91)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
 at
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233)
 at
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191)
 at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128)
 at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
 at
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)
 at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286)
 at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:845)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Unknown Source)

------------------------------------------------------------------------------------
Following is the mapping at web.xml


<display-name>hw</display-name>


<filter>
    <filter-name>struts2</filter-name>
   
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    <init-param>
     <param-name>actionPackages</param-name>
     <param-value>sample</param-value>
    </init-param>
  </filter>


<filter-mapping>
   <filter-name>struts2</filter-name>
   <url-pattern>/*</url-pattern>
</filter-mapping>


------------------------------------------------------------------------------------
Following is the strusts.xml mapping

<struts>
  <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
  <constant name="struts.devMode" value="false"/>
 
  <package name="sample" namespace="/sample" extends="struts-default">
    <action name="HelloWorld" class="sample.HelloWorld">
       <result>/pages/helloWorld.jsp</result>
    </action>
  </package>
</struts>


------------------------------------------------------------------------------------
Following is the sample.HelloWorld.java

package sample;

import com.opensymphony.xwork2.ActionSupport;

public class HelloWorld extends ActionSupport{
 
  private String message;

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
 
  public String execute() throws Exception {
    setMessage("Hello World!");
    return SUCCESS;
  }
 

}


------------------------------------------------------------------------------------
Following is the /pages/helloWorld.jsp

<%@(protected)" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Hello World</title>

</head>
<body>
<div align=left>To your information this is your helloWorld.jsp page under
WebContent directiory.</div>
<br>
<br>
<center><h1><s:property value="message"/></h1></center>
</body>
</html>


------------------------------------------------------------------------------------
Following is the url being used to access the helloWorld.jsp

http://localhost:8080/hw/sample/HelloWorld.action
http://localhost:8080/hw/sample/HelloWorld.action



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

ANYBODY, PLEASE BE KIND ENOUGH TO HELP ME TO GET RID OF THIS TERRIBLE DAMN
ERROR.

Thanking and please let me know any concerns/thoughts.
Dham

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



Attachment: user_204371.ezm (zipped)
Hi all,

I am having a problem with my JUnit tests. They are not closing the
hibernate session until ALL of the tests have finished. Needless to
say now that I have quite a few tests some are failing because they
cannot connect to the database.

The app is a Struts 2, Spring 2.5.6 app. I am not using an Open
Session In View filter preferring to grab all my data before the view
layer.

I know this is a bit of a general problem and will be difficult for
people to analyse but maybe someone has run into this before.

I am using the StrutsSpringTestCase which is part of the struts
release. I notice a few other examples on the web and linked to from
the docco where people use their own classes.


Cheers,
Carl.


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