Can you plz tell me the one stop best resource to fill all struts2 tags.

2011-02-27 Thread sandeep kotha
Hi All,

Can you plz tell me the one stop best resource to fill all struts2 tags.

Regards


Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread sandeep kotha



web.xml

?xml version=*1.0* encoding=*UTF-8*?

web-app id=*WebApp_ID* version=*2.4* xmlns=*
http://java.sun.com/xml/ns/j2ee* xmlns:xsi=*
http://www.w3.org/2001/XMLSchema-instance* xsi:schemaLocation=*
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd*

display-nameMessage_Resource_Struts2_Ant/display-name

  welcome-file-list

welcome-fileindex.jsp/welcome-file

  /welcome-file-list





filter

filter-namestruts2/filter-name

filter-class
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/
filter-class

/filter



 filter-mapping

filter-namestruts2/filter-name

url-pattern/*/url-pattern

/filter-mapping



/web-app


My struts simple web.xml.



Please go through and let me know if im missing some thing

Thanks
Sandeep Kotha


Re: Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread sandeep kotha
Thank you Łukasz / hantsy.

On 20 July 2010 12:23, Lukasz Lenart lukasz.len...@googlemail.com wrote:

 Hi,

 You have plenty of errors in XML, take a look on that with some
 validation tool, for example.:

 * user-name/root/user-name - first tag closed

 * local-tx-datasourcee ... /local-tx-datasource - double ee in the
 first tag

 Use better tool instead asking  questions!


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Struts 2 + dates

2010-06-08 Thread sandeep kotha
I agree with ken simple best thing to do

%@ taglib prefix=sx uri=/struts-dojo-tags%
sx:head /
sx:datetimepicker key=bean.date displayFormat=dd/MM//.

On 8 June 2010 23:09, lucas owen sr.ilus...@gmail.com wrote:

 Hi Struts users!


 I need to present a java.util.Date in a jsp. It has to be within a
 s:textfield because the user can modify/edit this date.

 The problem is when I display the date  s:textfield name=myDate/, it
 shows the date with a wrong format.

 I can use fmt:formatDate value=${myDate} pattern=dd/MM/ / but in
 this case the date wouldnt be editable...


 any ideas???

 Thanks in advance!



Re: struts2 + javascript doubt

2010-05-24 Thread sandeep kotha
One more simple thing just replace * with '  it will work

On 24 May 2010 23:40, lucas owen sr.ilus...@gmail.com wrote:

 Hi:


 is it possible to pass a dynamic parameter to a javascript function???

 I'm trying this:


 h3 id=s:property value=*'info.id_html'*/ class=*head*

 a href=*javascript:fPrimerNivel(*s:property
 value=*'info.id_html'*/*);*
 s:property value=*info.titulo_menu*//a

 /h3

 javascript function:

  fPrimerNivel(id){ alert(id); }

 yields [object]



 If I try the same, but with javascript:fPrimerNivel(this.id), I get
 [undefined]



 I dont know if this is possible, any help would be so much appreciated

 ciaooo



Re: Live search with Dojo (Ajax) and Struts 2

2010-04-08 Thread sandeep kotha
step1. google.com
step2 search with autocomplete + dojo

On 7 April 2010 01:15, Celinio Fernandes cel...@yahoo.com wrote:

 Hi,
 I am using Struts 2.1.8 and the Dojo plugin.
 What i am trying to realize is the following :
 the user has to fill a field that corresponds to a REFERENCEID. I want to
 help that user to type in the REFERENCEID
 by suggesting 20 REFERENCEID as soon as he types in a digit.
 For instance, if he types in 1, i want to make a SQL request in the
 database and bring the 20 first REFERENCEID that start with 1.
 Then if the user types 13, i do another SQL request and bring the  20 first
 REFERENCEID that start with 13.
 And so on.

 Has anyone done that ? I would be interested in sample code.

 Is there a component in Dojo that already does that ?

 I am looking for something a bit like this demo with Ext JS :
 http://www.extjs.com/deploy/dev/examples/form/forum-search.html

 Also, does that field have to be a combobox ? can it be a text input
 (input type=text )?
 If it is a text input tag, where do i display the result (20 suggestions) ?
 In a DIV ?


 I am using Struts 2 which, as you know, comes with a nice plugin for Dojo.
 So I have sx:div and sx:bind tags at my disposal.

 Thanks for helping with sample code or any suggestion that might help.





Re: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-03 Thread sandeep kotha
Thank you Lenart, Its working after making the change you said.

On 3 April 2010 14:05, Lukasz Lenart lukasz.len...@googlemail.com wrote:

 2010/4/2 sandeep kotha sandeep4u.ko...@gmail.com:
  In-spite of having *struts2-core-2.1.8.1.jar *under
  /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error .

 Is that /WEB-INF/lib/struts-2.1.8.1/ a directory ???
 ^
 If so, your jars cannot be found, move them to /WEB-INF/lib as is
 specified by servlet specification!


 Regards
 --
 Łukasz
 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010
 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-02 Thread sandeep kotha
In-spite of having *struts2-core-2.1.8.1.jar *under
/WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error .

Exception starting filter struts2
*java.lang.ClassNotFoundException*:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

*
my web.xml*

?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
display-namemy_project/display-name
  welcome-file-list
welcome-fileinitial.jsp/welcome-file
  /welcome-file-list


filter
filter-namestruts2/filter-name
filter-class
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
/filter-class
/filter

 filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
/filter-mapping

/web-app

Any help is much appreciated.


Re: Regarding download for Hibernate!

2010-03-31 Thread sandeep kotha
http://sourceforge.net/projects/hibernate/files/hibernate3/

On 31 March 2010 20:56, reuben swaroop singh reube...@rediffmail.comwrote:

 Hi,


 I wanna download and use Hibernate.Kindly suggest the webpage where i can
 download Hibernate latest version?

 kindly forward this to appropriate mail id.

 In Anticipation

 With Regards


 Reuben Appadurai




Re: struts2 + Tiles, whypages shrink in top center ?

2010-03-29 Thread sandeep kotha
Hi Lenard

Taking view source from your page i see width attribute is missing for your
table. Set the width attribute to 100% that will fix your issue.

Pasted is your view source with width attribute. This could help you.



!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   http://www.w3.org/TR/html4/loose.dtd;

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
titleWelcome/title
/head
body
table   border=1 cellpadding=2 cellspacing=2 align=center
width=100%

tr
td height=30 colspan=2
div align=center style=font-weight:boldTV
shows/div

/td
/tr
tr
td height=250



a
href=/Struts2Tiles/friendsLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF
Friends/abr
a
href=/Struts2Tiles/officeLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF
The Office/abr

/td
td width=350

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
titleInsert title here/title
/head

body
Welcome Guest.
/body
/html
/td
/tr
tr
td height=30 colspan=2
div align=centercopy; vaannila.com/div

/td
/tr
/table
/body
/html






On 29 March 2010 11:45, Lukasz Lenard lukasz.len...@googlemail.com wrote:

 2010/3/29 A. Lotfi majidna...@yahoo.com
 
  I tried all the browsers but still small, plz take a look here :
 
  http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action

 Did check the source of your page in browser? It's a mess, duplicated
 body and so on. Check your tiles, only main page (the layout) should
 have body tag. The reset has to be just a html snippet - no html, body
 tags.


 Regards
 --
 Łukasz
 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010
 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: struts2 + Tiles, whypages shrink in top center ?

2010-03-29 Thread sandeep kotha
it occupies entire screen right how do you want your screen to look like ?
can you send me a screen shot it may help better

On 29 March 2010 23:24, A. Lotfi majidna...@yahoo.com wrote:

 I put the  width attribute to 100%

 but look how it looks now :
 http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action


 --- On Mon, 3/29/10, sandeep kotha sandeep4u.ko...@gmail.com wrote:


 From: sandeep kotha sandeep4u.ko...@gmail.com
 Subject: Re: struts2 + Tiles, whypages shrink in top center ?
 To: Struts Users Mailing List user@struts.apache.org,
 lukasz.len...@gmail.com
 Date: Monday, March 29, 2010, 10:04 AM


 Hi Lenard

 Taking view source from your page i see width attribute is missing for your
 table. Set the width attribute to 100% that will fix your issue.

 Pasted is your view source with width attribute. This could help you.



 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;

 html
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 titleWelcome/title
 /head
 body
 table   border=1 cellpadding=2 cellspacing=2 align=center
 width=100%

 tr
 td height=30 colspan=2
 div align=center style=font-weight:boldTV
 shows/div

 /td
 /tr
 tr
 td height=250



 a

 href=/Struts2Tiles/friendsLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF
 Friends/abr
 a

 href=/Struts2Tiles/officeLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF
 The Office/abr

 /td
 td width=350

 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
 http://www.w3.org/TR/html4/loose.dtd;
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 titleInsert title here/title
 /head

 body
 Welcome Guest.
 /body
 /html
 /td
 /tr
 tr
 td height=30 colspan=2
 div align=center© vaannila.com/div

 /td
 /tr
 /table
 /body
 /html






 On 29 March 2010 11:45, Lukasz Lenard lukasz.len...@googlemail.com
 wrote:

  2010/3/29 A. Lotfi majidna...@yahoo.com
  
   I tried all the browsers but still small, plz take a look here :
  
   http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action
 
  Did check the source of your page in browser? It's a mess, duplicated
  body and so on. Check your tiles, only main page (the layout) should
  have body tag. The reset has to be just a html snippet - no html, body
  tags.
 
 
  Regards
  --
  Łukasz
  http://www.lenart.org.pl/
  Kapituła Javarsovia 2010
  http://javarsovia.pl
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 







Re: Can we some how persist form values in Struts2 the way we do in struts1.x

2010-03-17 Thread sandeep kotha
Hi Scott
Got you !! Thank you very much.

On 17 March 2010 04:30, stanl...@gmail.com wrote:

 Hi Sandeep --

 One clean way you can do this is by using the
 ScopedModelDrivenInterceptor
 http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html
 .

 Peace,
 Scott

 On Tue, Mar 16, 2010 at 4:22 PM, sandeep kotha sandeep4u.ko...@gmail.com
 wrote:

  Hi All,
 
  We are migrating our application from Struts1.x to Struts2. Let me say we
  have some 5 pages on each page user enters different data on 5th page we
  have submit button. Clicking on submit button we insert data entered in
 all
  5 pages to DB.
 
  User can navigate to previous pages to change data he entered while user
  navigating to previous pages we need to populate the data user had
 entered.
 
  In Struts1.x we are storing all the data in a form. In struts2 when we
  navigate to previous pages we are loosing the entered data.
 
  We welcome any suggestions to fix this issue.
 
  Thanks
  Sandeep.Kotha
 



Can we some how persist form values in Struts2 the way we do in struts1.x

2010-03-16 Thread sandeep kotha
Hi All,

We are migrating our application from Struts1.x to Struts2. Let me say we
have some 5 pages on each page user enters different data on 5th page we
have submit button. Clicking on submit button we insert data entered in all
5 pages to DB.

User can navigate to previous pages to change data he entered while user
navigating to previous pages we need to populate the data user had entered.

In Struts1.x we are storing all the data in a form. In struts2 when we
navigate to previous pages we are loosing the entered data.

We welcome any suggestions to fix this issue.

Thanks
Sandeep.Kotha