Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 4 Jan 2010 19:56:42 -0000 Issue 8973

user-digest-help

2010-01-04


Author LoginPost Reply

user Digest 4 Jan 2010 19:56:42 -0000 Issue 8973

Topics (messages 204480 through 204495):

Re: Struts 2.0 to 2.1 Migration problem
 204480 by: Dale Newfield

Nexus for S 2.1.8
 204481 by: Frans Thamura

CRUD operations for 100 tables
 204482 by: nani2ratna
 204483 by: Paul Benedict

TypeConversionException;
 204484 by: Frans Thamura
 204486 by: Lukasz Lenart
 204488 by: Frans Thamura

Re: how do I use absolute url actions in html:form tag with struts 1.3.8
 204485 by: Paul Benedict
 204487 by: Brian Thompson

I18N
 204489 by: uuk007

migration to tiles2 - put attribute into request scope?
 204490 by: Michael Heinen
 204494 by: Michael Heinen

Locale SEO permanent link URLs in Struts2
 204491 by: Ignacio de Córdoba

struts 2 validation error
 204492 by: Rakesh K nair
 204493 by: Pawe³ Wielgus

Re: OT- Versioning in Struts
 204495 by: Paul Benedict

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_204480.ezm (zipped)
OP wrote:
> 2.0.6 ... 2.1.6

Any reason you'd upgrade to an old version, and not the most recently
released 2.1.8.1?

-Dale


Attachment: user_204481.ezm (zipped)
hi there

i helping an university to have nexus server for the students

http://ugforge.gunadarma.ac.id/nexus

i try to create a simple struts2 using their repository

but, i just got struts 2.0.11

can help me so i can get the 2.1.8.1

anyone?


--
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_204482.ezm (zipped)

Hi,

I need to do CRUD operations for almost 100 tables in 9 schemas but in one
web application.
I am using struts 2, spring and ibatis.
I can do this by writting 100 jsp's, 100 actions and so on.
There is no common column in those tables.

Can any body have any idea to do this.

Is there better way to do this.

Thanks and Regards
RS

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



Attachment: user_204483.ezm (zipped)
I believe AppFuse 2.x can help you. Go google it. It is a code
generator that will create model objects and Struts actions out of
your database schema.

Paul

On Sat, Jan 2, 2010 at 3:48 PM, nani2ratna <nani2ratna@(protected):
>
> Hi,
>
> I need to do CRUD operations for almost 100 tables in 9 schemas but in one
> web application.
> I am using struts 2, spring and ibatis.
> I can do this by writting 100 jsp's, 100 actions and so on.
> There is no common column in those tables.
>
> Can any body have any idea to do this.
>
> Is there better way to do this.
>
> Thanks and Regards
> RS
>
> --
> View this message in context: http://old.nabble.com/CRUD-operations-for-100-tables-tp26996808p26996808.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_204484.ezm (zipped)
hi all

i just got there is no
com.opensymphony.xwork2.util.TypeConversionException; for XWork 2.1.6

anyone can help me out


Frans


Attachment: user_204486.ezm (zipped)
2010/1/3 Frans Thamura <frans@(protected)>:
> i just got there is no
> com.opensymphony.xwork2.util.TypeConversionException; for XWork 2.1.6
>
> anyone can help me out

It's here
http://svn.opensymphony.com/svn/xwork/trunk/core/src/main/java/com/opensymphony/xwork2/conversion/TypeConversionException.java


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


Attachment: user_204488.ezm (zipped)
thx, work now ;)

just a refactor. huhu

F

On Sun, Jan 3, 2010 at 2:58 PM, Lukasz Lenart
<lukasz.lenart@(protected):
> 2010/1/3 Frans Thamura <frans@(protected)>:
>> i just got there is no
>> com.opensymphony.xwork2.util.TypeConversionException; for XWork 2.1.6
>>
>> anyone can help me out
>
> It's here
> http://svn.opensymphony.com/svn/xwork/trunk/core/src/main/java/com/opensymphony/xwork2/conversion/TypeConversionException.java
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_204485.ezm (zipped)
I don't think you can. Why would you want to?

On Tue, Dec 22, 2009 at 8:01 PM, Jason Novotny <jason.novotny@(protected):
> Hi,
>
>    I'm a Struts newbie and am tasked with trying to change relative URLs on
> our site to be absolute. I have a form that looks like:
>
> <html:form action="/fcon/MyAction">
>
> and once it renders it displays:
>
> <form id="myForm" method="GET" action="/modules/mymodule/fcon/MyAction.do"
> onsubmit="return validateFilterForm(event, this);">
>
> What I'd like is to have it render an absolute URL:
>
> <form id="myForm" method="GET"
> action="http://www.mysite.com/modules/mymodule/fcon/MyAction.do"
> onsubmit="return validateFilterForm(event, this);">
>
> How can I do this?
>
>    Thanks a lot, Jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_204487.ezm (zipped)
I'll echo the question of "why would you want to?", but it's easy to
accomplish if you're not insistent on using the <html:form> tag:

<form id="<html:property value="%{myForm}"/>" method="GET"
action="<html:property value="%{fullUrl}"/>">

...

</form>

-Brian

P.S. Is it just me, or is the documentation on the struts form tag a bit
lacking in examples?



On Sun, Jan 3, 2010 at 1:28 AM, Paul Benedict <pbenedict@(protected):

> I don't think you can. Why would you want to?
>
> On Tue, Dec 22, 2009 at 8:01 PM, Jason Novotny <jason.novotny@(protected)>
> wrote:
> > Hi,
> >
> >   I'm a Struts newbie and am tasked with trying to change relative URLs
> on
> > our site to be absolute. I have a form that looks like:
> >
> > <html:form action="/fcon/MyAction">
> >
> > and once it renders it displays:
> >
> > <form id="myForm" method="GET"
> action="/modules/mymodule/fcon/MyAction.do"
> > onsubmit="return validateFilterForm(event, this);">
> >
> > What I'd like is to have it render an absolute URL:
> >
> > <form id="myForm" method="GET"
> > action="http://www.mysite.com/modules/mymodule/fcon/MyAction.do"
> > onsubmit="return validateFilterForm(event, this);">
> >
> > How can I do this?
> >
> >   Thanks a lot, Jason
> >
> > ---------------------------------------------------------------------
> > 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_204489.ezm (zipped)

Hi,

We are developing a educational system for which we need to have the
I18N...I have read the articles and tutorials related to that and found that
the locale of the user will be retrieved from the HttpServletRequest.
(Correct me if i am wrong)....But in the education system, user will choose
the locale while registering for this application...That is a person who is
in Japan registered for (en,US) locale should view the content in english
and vice versa...

I know that in Java using ResourceBundle class, i can get the string by
passing the locale object...In struts MessageResources class will help to
achieve the same in action classes...

Can you please tell me how to achieve the same in JSP, ActionForms and other
classess...

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



Attachment: user_204490.ezm (zipped)
Hi,

I migrated a webApp from tiles1 to tiles 2.0.5 and got one thing not working.
I cannot put an attribute into request scope to make it accessible by other frameworks.

Sample code is below: It is the attribute with name=activeTab

tiles 1:
<definition name=".mainLayout" path="/WEB-INF/layout/main.jsp">
  <put name="header" value="/WEB-INF/layout/header.jsp"/>
  <put name="navigation" value="/pages/empty.jsp"/>
  <put name="content" value="/pages/empty.jsp"/>
  <put name="activeTab" value=""/>
</definition>

<definition name="/batches.tiles" extends=".mainLayout">
  <put name="navigation" value="/WEB-INF/layout/navigation.jsp"/>
  <put name="content" value="/pages/bcontent.jsp"/>
  <put name="activeTab" value="ba"/>
</definition>

main.jsp:
<tiles:insert attribute="navigation" flush="false" ignore="false">
<tiles:put name="activeTab" beanName="activeTab"/>
</tiles:insert>

navigation.jsp
<tiles:useAttribute id="activeTab" name="activeTab" ignore="true" classname="java.lang.String" scope="request"/>


tiles2:
<definition name=".mainLayout" template="/WEB-INF/layout/main.jsp">
  <put-attribute name="header" value="/WEB-INF/layout/header.jsp"/>
  <put-attribute name="navigation" value="/pages/empty.jsp"/>
  <put-attribute name="content" value="/pages/empty.jsp"/>
  <put-attribute name="activeTab" value=""/>
</definition>

<definition name="/batches.tiles" extends=".mainLayout">
  <put-attribute name="navigation" value="/WEB-INF/layout/navigation.jsp"/>
  <put-attribute name="content" value="/pages/bcontent.jsp"/>
  <put-attribute name="activeTab" value="ba"/>
</definition>

main.jsp:
<tiles:insertAttribute name="navigation" flush="false" ignore="false">
<tiles:putAttribute name="activeTab" value="activeTab"/>
</tiles:insertAttribute>

navigation.jsp
<tiles:useAttribute id="activeTab" name="activeTab" ignore="true" classname="java.lang.String" scope="request"/>

How can I place the content of activeTab (here "ba") into request scope to make it accessible by other frameworks?
Currently the String "activeTab" is passed but I want to pass "ba".

Thanks,
Michael

Attachment: user_204494.ezm (zipped)
I sent this tiles issue the wrong list.

Sorry for crossposting to struts and tiles.



BTW:

Got it working with an additional import statement:



Main.jsp

<tiles:importAttribute name="activeTab" scope="request"/>

<tiles:insertAttribute name="navigation" flush="false" ignore="false"/>



<tiles:useAttribute is also not required any more in navigation.jsp.



Michael


From: Michael Heinen
Sent: Sonntag, 3. Januar 2010 17:24
To: 'user@(protected)'
Subject: migration to tiles2 - put attribute into request scope?

Hi,

I migrated a webApp from tiles1 to tiles 2.0.5 and got one thing not working.
I cannot put an attribute into request scope to make it accessible by other frameworks.

Sample code is below: It is the attribute with name=activeTab

tiles 1:
<definition name=".mainLayout" path="/WEB-INF/layout/main.jsp">
  <put name="header" value="/WEB-INF/layout/header.jsp"/>
  <put name="navigation" value="/pages/empty.jsp"/>
  <put name="content" value="/pages/empty.jsp"/>
  <put name="activeTab" value=""/>
</definition>

<definition name="/batches.tiles" extends=".mainLayout">
  <put name="navigation" value="/WEB-INF/layout/navigation.jsp"/>
  <put name="content" value="/pages/bcontent.jsp"/>
  <put name="activeTab" value="ba"/>
</definition>

main.jsp:
<tiles:insert attribute="navigation" flush="false" ignore="false">
<tiles:put name="activeTab" beanName="activeTab"/>
</tiles:insert>

navigation.jsp
<tiles:useAttribute id="activeTab" name="activeTab" ignore="true" classname="java.lang.String" scope="request"/>


tiles2:
<definition name=".mainLayout" template="/WEB-INF/layout/main.jsp">
  <put-attribute name="header" value="/WEB-INF/layout/header.jsp"/>
  <put-attribute name="navigation" value="/pages/empty.jsp"/>
  <put-attribute name="content" value="/pages/empty.jsp"/>
  <put-attribute name="activeTab" value=""/>
</definition>

<definition name="/batches.tiles" extends=".mainLayout">
  <put-attribute name="navigation" value="/WEB-INF/layout/navigation.jsp"/>
  <put-attribute name="content" value="/pages/bcontent.jsp"/>
  <put-attribute name="activeTab" value="ba"/>
</definition>

main.jsp:
<tiles:insertAttribute name="navigation" flush="false" ignore="false">
<tiles:putAttribute name="activeTab" value="activeTab"/>
</tiles:insertAttribute>

navigation.jsp
<tiles:useAttribute id="activeTab" name="activeTab" ignore="true" classname="java.lang.String" scope="request"/>

How can I place the content of activeTab (here "ba") into request scope to make it accessible by other frameworks?
Currently the String "activeTab" is passed but I want to pass "ba".

Thanks,
Michael

Attachment: user_204491.ezm (zipped)

Hi there,
I have several working struts2 applications using i18n bu have an issue I
need to solve.
From the user perspective, the struts2 request_locale parameter approach is
perfect but as locale information is stored in session, urls visited by a
user (or robot) are not locale specific.
Is there a recommended approach in struts2 to do something like:

http://www.mysite.com/index.action (english)
http://www.mysite.com/es/index.action
http://www.mysite.com/fr/index.action

Both should return the same code, changing only the locale. The main english
site should always return content in english locale, even if user has
visited the /es/index.action and so has changed the locale to spanish.

I've been thinking about extending the i18n interceptor to make struts work
this way and not storing locale in session, but maybe I'm missing something.

Of course, I also have the problem of mapping the /LANGUAGE/*.action
I wouldn't like to add mapping for every language I plan to use.

(I've also been thinking about using www.mysite.com for english,
es.mysite.com, fr.mysite.com, ... and making the custom incerceptor force
locale based on subdomain... I don't really like this option anyway)

thanks for any comments/ideas/directions,

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



Attachment: user_204492.ezm (zipped)

Hi

In my struts2 jsp page there is a "selection list".I am populating the
"list" from action class before rendering the page.I have some validation in
the page.After submitting it calls the same page.If validation is successful
it enters the action class and initializes the "list" , but if it is failure
then it will go to "input" result from there to jsp page without entering
action class then raising an null pointer exception.I need that "list" even
if the validation fails.

Please help me to get out of this problem

expecting your kind interaction

thanks in advance

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



Attachment: user_204493.ezm (zipped)
Hi Rakesh,
use preparable interface and in prepare method initialize anything
that is necessary to show that page.

Best greetings,
Pawel Wielgus.

2010/1/4, Rakesh K nair <rakeshknair84@(protected)>:
>
> Hi
>
> In my struts2 jsp page there is a "selection list".I am populating the
> "list" from action class before rendering the page.I have some validation in
> the page.After submitting it calls the same page.If validation is successful
> it enters the action class and initializes the "list" , but if it is failure
> then it will go to "input" result from there to jsp page without entering
> action class then raising an null pointer exception.I need that "list" even
> if the validation fails.
>
> Please help me to get out of this problem
>
> expecting your kind interaction
>
> thanks in advance
>
> rakesh
> --
> View this message in context:
> http://old.nabble.com/struts-2-validation-error-tp27009670p27009670.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_204495.ezm (zipped)
1 = Struts 1
2 = Struts 2

On Mon, Jan 4, 2010 at 10:06 AM, Balwinder Kumar
<balwinder.mca@(protected):
> Hi Paul,
>
> Thanks for insight.
>
> 2 = Major release version. This is the architecture number.
>
> Can you please tell me how exactly this architecture number is decided, I
> mean what kind of changes in architecture will actually call for a change in
> this number?
>
> Regards,
> Balwinder Kumar
>
> Paul Benedict wrote:
>>
>> The science is in the version format: 2.X.Y.Z
>>
>> 2 = Major release version. This is the architecture number.
>> X = Minor release version.
>> Y = Patch release version.
>> Z = Emergency patch release version. Not always needed.
>>
>> Paul
>>
>> On Sat, Jan 2, 2010 at 10:09 AM, Balwinder Kumar
>> <balwinder.mca@(protected):
>>
>>>
>>> Hi,
>>>
>>> I just wanted to know how the version of release in Struts is decided? Is
>>> there a scientific way that you guys follow to determine the version? If
>>> yes, what is the process?
>>>
>>> Regards,
>>> Balwinder Kumar
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@(protected)
>>> For additional commands, e-mail: dev-help@(protected)
>>>
>>>
>>>
>>
>>
>
>

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