Action Problem ....

2008-03-28 Thread Narayana S
Hi, i am having one link in a page. when i click on the link, i am going to the other page with some request level attribute. in the second page i have one update button, when i press that button, after performing some action and should return back to the 1st page along with same

Extending Struts 2 controls

2008-06-05 Thread Narayana S
Hi, in my application, i have a requirement of implementing field level customization, like locking the field, hiding the field etc.. to achieve this i am planning to extends struts-tags tag library functionality. can any one give any idea of how to do this? Thanks in advance.

Re: Extending Struts 2 controls

2008-06-06 Thread Narayana S
.views.jsp.ui.TextFieldTag*, i want to add a new attribute to the text field tag. can you tell me, how i can implement this? Thanks in advance. On Thu, Jun 5, 2008 at 6:45 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Thu, 6/5/08, Narayana S [EMAIL PROTECTED] wrote: in my application, i have

Struts Themes Problem - help

2008-06-22 Thread Narayana S
Hi, i am new to struts 2, developed sample application that is using resource bundle, i could configure application and labels are perfectly displayed with the values retrived from the resource bundle. The problem is here struts 2 is applying it's own styles to my page, i want to give my

Re: Struts Themes Problem - help

2008-06-22 Thread Narayana S
Newton [EMAIL PROTECTED] wrote: --- On Sun, 6/22/08, Narayana S [EMAIL PROTECTED] wrote: The problem is here struts 2 is applying it's own styles to my page, i want to give my own styles instead of using struts default styles, The easiest answer is to just supply your own CSS styles. You

my Own CSS

2008-06-23 Thread Narayana S
Hi, i used struts 2 default theme to develop the pages. but recently i got the CSS from the designer now i need to apply those styles to my project. the problem is when i change theme to simple, it is not letting me to read values from properties file(Resource bundle). how can i apply my

Simple Theme - Internationalization problem

2008-06-23 Thread Narayana S
Hi, i am applying simple theme for my struts 2 page, when the theme is default it could read values from resource bundle, after i changed theme to simple, it couldn't read the values from the resource bundle. s:form action=SimpleAction method=post theme=simple s:label

Re: Struts Themes Problem - help

2008-06-24 Thread Narayana S
] wrote: Narayana S wrote: Hi Dave, thanks for your reply, but when i use simple theme, my application is not getting any values from resource bundle.. How is it failing? Note that the 'simple' theme generates a lot less markup, and doesn't generate everything the other themes do. Are I18N

Fwd: Struts Themes Problem - help

2008-06-25 Thread Narayana S
Hi Laurie / Dave, can you please help on this? -- Forwarded message -- From: Narayana S [EMAIL PROTECTED] Date: Tue, Jun 24, 2008 at 3:12 PM Subject: Re: Struts Themes Problem - help To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Hi laurie

Re: Struts Themes Problem - help

2008-06-26 Thread Narayana S
the s:label to work the same way, but the s:textfield to generate no label (because the simple theme doesn't do that). If that's what you're seeing, that's the correct behaviour. If you are seeing something different, you need to describe exactly what that is. L. Narayana S wrote: Hi

Re: Struts Themes Problem - help

2008-06-29 Thread Narayana S
PROTECTED] wrote: --- On Fri, 6/27/08, Narayana S [EMAIL PROTECTED] wrote: but here it introduced one more problem, with the xhtml theme we get the field level validation error messages below the individual control, but the simple theme is not giving any validation error messages. to get

Validation doubt

2008-06-30 Thread Narayana S
Hi, as per my understanding, we can implement validations in struts 2 in the following ways... 1. overriding validate() method in Action class 2. writing ActionClass-validation.xml file 3. using validator annotations validate method implements declarative security,

Re: Validation doubt

2008-07-01 Thread Narayana S
Hi Jeromy and Lukasz, Thanks for your reply, the information provided by you is really helpful. i could understand well about validation framework with your explanation. Thanks a lot. On Mon, Jun 30, 2008 at 1:45 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Narayana S wrote: Hi

Customizing CSS

2008-07-10 Thread Narayana S
Hi, as per my requirement, i have to apply two different colors to alternate rows.can any one guide me how to extend theme to implement this?

Re: Customizing CSS

2008-07-14 Thread Narayana S
should come with two different background colors. On Thu, Jul 10, 2008 at 3:18 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, as per my requirement, i have to apply two different colors to alternate rows.can any one guide me how to extend theme to implement this?

Extending Struts Controls - problem

2008-07-14 Thread Narayana S
Hi, I have extended Simple theme (by modifying XHTML theme), implemented the column span for every control as given below. s:textfield label=Trucker name=truker size=70 s:param name=labelcolspan value=%{2} / s:param name=inputcolspan value=%{6} / /s:textfield it is working

Re: Customizing CSS

2008-07-14 Thread Narayana S
class Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 11:40 AM

Re: Extending Struts Controls - problem

2008-07-14 Thread Narayana S
any one please reply to this... i am kind of stucked On Mon, Jul 14, 2008 at 11:49 AM, Narayana S [EMAIL PROTECTED] wrote: Hi, I have extended Simple theme (by modifying XHTML theme), implemented the column span for every control as given below. s:textfield label=Trucker name

an issue with my Action class - help me

2008-07-15 Thread Narayana S
Hi, I am new to struts 2. my page is having a list which is dynamically generated by action, so while calling the jsp page itself from a menu, I am calling URL /mymodule1/EditEmployee.action, which is mapped to EditEmplyeeAction.java. first time when i am generating the page I am

Re: an issue with my Action class - help me

2008-07-15 Thread Narayana S
Thanks Dave and Lukasz, i got the concept, and solved the issue. Thank you very much. On Tue, Jul 15, 2008 at 4:47 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Tue, 7/15/08, Narayana S [EMAIL PROTECTED] wrote: I am new to struts 2. my page is having a list which

Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, In my form I have employee number, name, and roles, here employee number and name are text fields and roles is a checkboxlist, to generate the list boxes i had a map called rolesMap in my action class, as well i have a set called userRoles that specifies the items to be selected. *jsp*

Re: Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, Please discard this email. as my action mapping is wrong it is behaving like this, now i could fix the issue. Sorry. On Thu, Jul 17, 2008 at 4:03 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, In my form I have employee number, name, and roles, here employee number and name are text

disabling textfield....problem

2008-07-21 Thread Narayana S
Hi, i have a text field, with disabled property set to TRUE, and when i coming back to the same page with some error messages for the other fields, it is missing the textfield value, it is not retaining like the non-disabled fields where i am missing? plz help me..

Re: disabling textfield....problem

2008-07-22 Thread Narayana S
According to html, browser will not send the disabled fields to the server along with the request headers. So you've to send that value in the form of a hidden value. Regards, ManiKanta Narayana S wrote: Hi, i have a text field, with disabled property set to TRUE, and when i coming

Tree Control events problem..

2008-08-07 Thread Narayana S
Hi, in my project i need to use a tree control, i have started looking at tree tag of struts, but though i wrote some event handle, it is not at all executing any events. he is the part of code... head titleShowcase - UI Tag Example - Tree Example (Static)/title s:head theme=ajax

Re: Tree Control events problem..

2008-08-07 Thread Narayana S
Did any one see this mail ? :( On Thu, Aug 7, 2008 at 12:52 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, in my project i need to use a tree control, i have started looking at tree tag of struts, but though i wrote some event handle, it is not at all executing any events. he

DoJo Plugin for struts 2.0.11

2008-08-19 Thread Narayana S
Hi, i am right now working on struts 2 tree component, as we have some issues with the events of this tree version, some where i found that using struts pojo plug-in will solve this issue, but i couldnt find any url to download the dojo plugin, can you please tell me how and where i can

Re: DoJo Plugin for struts 2.0.11

2008-08-21 Thread Narayana S
in advance. On Wed, Aug 20, 2008 at 4:00 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Wed, 8/20/08, Narayana S wrote: i am right now working on struts 2 tree component, as we have some issues with the events of this tree version, some where i found that using struts pojo plug-in will solve

Re: DoJo Plugin for struts 2.0.11

2008-08-21 Thread Narayana S
-in, for example dojo plugin can be found inside the struts-2.1.2-lib.zip archive which can be downloaded from the link above. And you must put the struts2-dojo-plugin-2.1.2.jar file under your lib (ie. /WEB-INF/lib) folder. ** Regards. On Thu, Aug 21, 2008 at 10:27 AM, Narayana S [EMAIL PROTECTED

Struts 2.1 Tree Problem

2008-08-21 Thread Narayana S
Hi, i was using struts 2.0.11 and we know tree control is having some issues in that version, so i want to migrate to struts 2.1. for that i removed struts 2.0.11 jars and replaced them with 2.1 version files, and also copied struts-dojo-plugin-2.1.2.jar. still i couldn't trace the tree

Re: Struts 2.1 Tree Problem

2008-08-21 Thread Narayana S
Hello,,, Can any one please reply to this mail On Thu, Aug 21, 2008 at 7:05 PM, Stephan Schröder [EMAIL PROTECTED]wrote: some example i tried on struts-blank-2.1.2 it is working and recognizing events and responding. am i missing any imp step in migration, is that

Re: Struts 2.1 Tree Problem

2008-08-22 Thread Narayana S
Hi, Issue is solved and migration is successful with respect to tree control, i found solution in code pencil blog. Have a nice time. On Thu, Aug 21, 2008 at 6:44 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, i was using struts 2.0.11 and we know tree control is having some

Tree State Example

2008-09-04 Thread Narayana S
Hi, i am working with tree control, recently i have upgraded to version 2.1. tree control is working fine for me after up-gradation.but i want to retain the state of the tree between different requests. can any one give me some example code using version 2.1 to implement dojo

Re: Tree State Example

2008-09-04 Thread Narayana S
Hi, Can any one please reply to this email ? On Thu, Sep 4, 2008 at 3:29 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, i am working with tree control, recently i have upgraded to version 2.1. tree control is working fine for me after up-gradation.but i want to retain the state

Struts 2.1 Tree Problem

2008-09-10 Thread Narayana S
Hi, now i am working with tree control, when i load the tree i want to load it default extended and what ever the node id i pass that should be activated. how i can achieve this using struts 2.1 version. and one more thing is when i select a node in the jsp page itself i have to find out the

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
did any one see this email please help me On Thu, Sep 11, 2008 at 10:17 AM, Narayana S [EMAIL PROTECTED] wrote: Hi, now i am working with tree control, when i load the tree i want to load it default extended and what ever the node id i pass that should be activated. how i can achieve

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
have no idea what the answer to your question is, I have not used the tree control at all -- but what have you tried? Can you share your code with us so that we can help point you in the right direction?) jk On Thu, Sep 11, 2008 at 5:08 AM, Narayana S [EMAIL PROTECTED] wrote: did any one

Re: Struts 2.1 Tree Problem

2008-09-12 Thread Narayana S
]wrote: As far as I know, there is no way to set some nodes already extended server-side. You can open the nodes you want client-side using javascript, however. On Fri, Sep 12, 2008 at 6:48 AM, Narayana S [EMAIL PROTECTED] wrote: Hi Jim, Thanks for your reply, tree control

Extending Struts 2 Tags

2008-09-18 Thread Narayana S
Hi, i have a requirement of extending the struts 2 control tags like text field, check box, select. i want to add a new attribute to the component, which will allows to identify certain properties like visibility, editability, label text from the database and render the component. to

Extending Struts Tags

2008-09-24 Thread Narayana S
Hi i missed my previous email about the same topic, one guy helped me to implement struts UI tag customization. i could extend the Bean and Tag classes to implement the required behavior. now based on some value from the database i want to stop rendering of the control itself. means for

Re: Extending Struts Tags

2008-09-26 Thread Narayana S
do about that other than possibly throwing you own exception which could arguably be better in performance that those operations. Only a thought! Narayana S wrote: Hi i missed my previous email about the same topic, one guy helped me to implement struts UI tag customization. i

Tree default expanded ??

2008-09-26 Thread Narayana S
Hi Is it possible to display a tree expanded by default? I am using struts 2.1.2 dojo-plugin to create the tree structure. any one used tree...plz help me

Re: Tree default expanded ??

2008-09-30 Thread Narayana S
any one who worked on tree control plz give some helping hand On Fri, Sep 26, 2008 at 3:34 PM, Narayana S [EMAIL PROTECTED] wrote: Hi Is it possible to display a tree expanded by default? I am using struts 2.1.2 dojo-plugin to create the tree structure. any one used tree...plz

Re: Tree default expanded ??

2008-10-07 Thread Narayana S
) %; dojo.event.topic.publish('ListSelectionFilled'); }); Regards Jan Von: Narayana S Gesendet: Di 07.10.2008 12:23 An: Struts Users Mailing List Betreff: Re: Tree default expanded ?? Hello. Please any one tell me a solution to this problem? can we do this in struts? if not suggest me another

Re: Tree default expanded ??

2008-10-07 Thread Narayana S
know. One thing to try might be to run the expansion script after you're sure the tree widget has been rendered. Jukka On Wed, Oct 1, 2008 at 9:19 AM, Narayana S [EMAIL PROTECTED] wrote: Hi, Thanks for your reply, i tried this code but it is returning nodes.length as zero though i

File Upload into database

2008-10-21 Thread Narayana S
Hi, i am new to struts 2, want to use file upload control. once the file is uploaded i want to store its content into the database, i didn't work on the file upload previously also. so any one can please tell me the best way to access the uploaded file and store that into database? any

Re: File Upload into database

2008-10-21 Thread Narayana S
Hi Thanks for your reply, but when i submit my form it is not setting value for the upload properties. this is how my code is ... -- in jsp s:file name=upload label=Attachment/ -- in action private String uploadContentType; private String uploadFileName; private File upload; and

Re: File Upload into database

2008-10-21 Thread Narayana S
... ?? -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: 21. oktober 2008 12:31 To: Struts Users Mailing List Subject: Re: File Upload into database Hi Thanks for your reply, but when i submit my form it is not setting value for the upload properties

Re: File Upload into database

2008-10-21 Thread Narayana S
name=basicStack/ http://cwiki.apache.org/WW/file-upload-interceptor.html Thanks everyone. On Tue, Oct 21, 2008 at 4:25 PM, Narayana S [EMAIL PROTECTED] wrote: yes s:form action=CreateIssue theme=qxhtml method=POST enctype=multipart/form-data this is the form tag... On Tue, Oct 21

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi Greg, Excellent work. i am looking for the same solution. i tried implementing your interceptor , but it is throwing exception ... java.lang.UnsupportedOperationException: Don't use default servlet session. near session.setAttribute(ACTION_MESSAGES_KEY,actionMessages); can you

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi, i am using apache Tomcat 6.0.3, struts 2.1.2, and jdk 1.6. can any one help me solving this issue? Thanks in advance. On Tue, Nov 4, 2008 at 7:06 PM, Greg Lindholm [EMAIL PROTECTED] wrote: Ganesh123 wrote: Excellent work. i am looking for the same solution. i tried

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-05 Thread Narayana S
request(){ return ServletActionContext.getRequest(); } On Wed, Nov 5, 2008 at 12:05 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, i am using apache Tomcat 6.0.3, struts 2.1.2, and jdk 1.6. can any one help me solving this issue? Thanks in advance. On Tue

Struts 2 - REST showcase

2008-11-12 Thread Narayana S
Hi, can any one please let me know where can i download struts 2 REST showcase examples zip? Thanks in advance.

Overriding Struts UI Controls

2008-12-28 Thread Narayana S
Hi, i am overriding the struts UI controls for my role based UI rendering. based on user role i have to decide few attributes of UI component like editability,visibility etc. for that i have implemented logic required. to achieve this i am extending TextFieldTag and in the overriding method