Re: Updating a config(.ini) file in Action class

2006-12-05 Thread Venkata Phani Kumar
Hi, You can get any resource path wich is under context path using ServeletContext.getRealPath(). The usage of this method is here, String iniFilePath = request.getSession().getServletContext().getRealPath("test.ini"); you can use the 'iniFilePath' to instatiate FileOutStream, and

Re: datasource creation problem?

2006-12-04 Thread Venkata Phani Kumar
Hi mallik, just try by adding commons-dbcp.jar to build path. - Original Message - From: "Mallik" <[EMAIL PROTECTED]> To: Sent: Monday, December 04, 2006 3:22 PM Subject: datasource creation problem? > > Hi friends > i started my application in Struts using IDE Eclipse. > when i create

Re: A Filter Action !

2006-11-16 Thread Venkata Phani Kumar
Hi youssef, You can override RequestProcessor instead. The required steps are 1) in struts-config.xml 2) Create a Class wich extends RequestProcessor If you are using Tile Framework you have extend from TilesRequestProcessor 3) Then override method processPreprocess()

How to use Jboss datasource in struts-config.xml

2006-11-09 Thread Venkata Phani Kumar
Hi, I have created a datasource which will bind to a jndi name. Now i want to use the same datasource in my struts application. For this i need to mention the same jndi name in my struts-config.xml. can any body help me out how to mention the jndi name in struts-config.xml Thanks & Regards

Re: ActionMessages in Struts?

2006-10-26 Thread Venkata Phani Kumar
hi mallik, you can save some messages in action so that they can be accessed from jsp ActionMessages errorMsgs = new ActionMessages(); errorMsgs.add("messageId", new ActionMessage("message.Inserted_successfully")); saveErrors(request, errorMsgs); in jsp, - Original Message - From: "Mal

Re: Plugin

2006-10-17 Thread Venkata Phani Kumar
Hi, First of all you need to create a class which implements org.apache.struts.action.PlugIn. Then you need to override method init(ActionServlet servlet, ModuleConfig modConfig) and do your own initializations. Finally you have to configure this class under struts-config.xml using tag as -

using dojo with struts

2006-10-03 Thread Venkata Phani Kumar
Hi, I need some help regarding dojo with struts. I have one form which contains some check boxes and 'delete' button. i have corresponding Action and ActionForm classes to implement delete. I am trying to implement Dojo here to avoid total page refresh. the code in jsp is : function onclick_

Re: How do i know if exits errors in any scope?

2006-09-28 Thread Venkata Phani Kumar
Hi Ramos, You can check errors present using validator tld as You can get property specific errors using - Original Message - From: "Yariel Ramos Moreno" <[EMAIL PROTECTED]> To: Sent: Friday, September 29, 2006 12:59 AM Subject: How do i know if exits errors in any scope? How do i

Re: Forward to action without jsp

2006-09-28 Thread Venkata Phani Kumar
- Original Message - From: "Andy.de" <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 6:25 PM Subject: Forward to action without jsp > > Hi all, > how can i forward to an action without input (jsp) ? > The path attribute of action tag in struts-config must point to jsp's. To

Re: extending from DynaValidator problem?

2006-09-25 Thread Venkata Phani Kumar
check commons-beanutils.jar is present or not - Original Message - From: "Mallik" <[EMAIL PROTECTED]> To: Sent: Monday, September 25, 2006 4:08 PM Subject: extending from DynaValidator problem? > > HI friends > i want to do some validations, that why i want to extends from > DynaValida

Re: Applicationresource.properties

2006-09-21 Thread Venkata Phani Kumar
Hi savino, you can get message resources instance using MessageResources messageResources = getResources(request) ; if you have multiple message resources you can get specific message resource as MessageResources messageResources = getResources(request, "bundleName") ; Now to get correspon

iterating Vector of HashMap using Logic:iterate

2006-09-21 Thread Venkata Phani Kumar
Hi, I have a Vector. Each HashMap holds two elements as key 'field1' and 'filed2'. Now in jsp page i have to iterate over above vector and have to construt one combo box as below field2 could any body help how to display as above using Regards Venkata Phanikumar. G

Re: about pagination

2006-09-20 Thread Venkata Phani Kumar
Hi Brainne, do you have any idea about these ready made library for pagination. beacuase i also require the same. thnx, Venkata phanikumar.g - Original Message - From: "Kim Brianne Go" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, September 21, 2006 6:35 AM Subject

parameter value is not coming correct with html:link

2006-09-20 Thread Venkata Phani Kumar
hi, I am trying to display some hyper links which links to same action called 'edituser.do'. adding to that i have pass the user email id as parameters. To achieve that i am using following code. every thing is fine but the link is looking like this /edituser.do?email=mail%40mail.com Infact

RE: Paging in DisplayTag

2005-07-08 Thread Phani
Last] Thanks. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Yes, I noticed. I find it works better when you set > it to blank. I don't know whether it will resolve > your problem but you may want to try it. > > -Original Message- > From: Phani [mailto:[EMAIL P

RE: Paging in DisplayTag

2005-07-08 Thread Phani
See my code.. I have requestURI set to my Action class.. --- Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > What happens when you set requestURI="" ? > > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED] > Sent: Friday, July 08, 2005 10:59

RE: Paging in DisplayTag

2005-07-08 Thread Phani
Here is my code: It displays fine without pagesize attribute..all the results in a single page.. But with pagsize attribute, it gives me null pointer exception when I hit next.. Thanks, Phani. --- Abdullah Jibaly <[EMAIL PROTECTED]>

Paging in DisplayTag

2005-07-07 Thread Phani
Hi, Shud my Action form be in session scope if I want to specify pagesize in display tag for paging.. Because I get the following error: Error 500: Cannot find bean storeForm in any scope Thanks, Phani. __ Do you Yahoo!? Yahoo

Re: Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
> > > Sadly you cannot unless you make the scope of the > form session. > > > > I find it limiting to say the least! > > > > > > > > -Original Message- > > From: Phani [mailto:[EMAIL PROTECTED] > > Sent: 30 June 2005 16:14 >

RE: Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
Tell me which is performance efficient & desired way: Putting the form in session or making a trip to the database.. assuming we have collection of 50 - 60 records.. Phani.. --- Mark Benussi <[EMAIL PROTECTED]> wrote: > Sadly you cannot unless you make the scope of the > form

Passing collection Objects from html form to Action class

2005-06-30 Thread Phani
class I can just say, String name = myForm.getName(); How can I achieve the same thing for a collection object. Thanks, Phani. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: Checkbox question

2005-06-29 Thread Phani
ch collects the values of the selected checkboxes. See the documentation of at http://struts.apache.org/userGuide/struts-html.html#multibox. My Action works on the intarray to do the proper thing with the values. Remember to set intarray to zero length in the reset method of the ActionForm.

Re: EL expression not getting evaluated

2005-06-29 Thread Phani
If it is so.. why is my expression not getting evaluated... ${partItem.intproperty} --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 6/29/05, Karr, David <[EMAIL PROTECTED]> wrote: > > I don't know whether WSAD 5.1.2 is a JSP 2.0 > container. If it is not, then you'll need to use > the Struts

EL expression not getting evaluated

2005-06-29 Thread Phani
evaluated.. I see the following in the view source of the page for each checkBox: value = ${partItem.intproperty}, instead of a literal. Shud I have to use EL version of the struts tags?? If so how ?? as I haven't used them.. Thanks, Phani. _

URL Parameter passing in Display Tag

2005-06-24 Thread Phani
untNo=<%=item.account%> Thanks in advance.. Phani. __ Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://disc

trouble passing multiple parameters using

2005-06-22 Thread Phani
Here is my code in the JSP page: <% java.util.HashMap params = new java.util.HashMap(); params.put("storeNo",param1); params.put("storeName",param2); pageContext.setAttribute("storeInfo", params); %> Click Here In the Action class: String storeNumber = (String)request

Remainder Operation

2004-11-19 Thread Phani
Sorry this is not a struts question..more anlytical.. I have this simple program where I want to check whether the division operation returns a whole number or not...For this purpose I am actually checking whether the remainder is zero..which fails for a particular case.. Here is my program below

Re: Back Button Implementation

2004-10-11 Thread Phani
Roy, You can use something like this: --- Sudipto Roy <[EMAIL PROTECTED]> wrote: > > > Hi > > I am working in a J2EE Project in which we are using > Struts. Can anyone tell me whether I can track a > Browser Button Hit as I want to synchronise Browser > Back Button with our Application Bac

Re: parameter passing to

2004-10-07 Thread Phani
That works, Thanks Jeff. --- Jeff Beal <[EMAIL PROTECTED]> wrote: > Oops! Forgot the paramId attribute on html:link; > include > paramId="filename". > > paramId="filename" >paramName="map" >paramProperty="key">View > > > Jeff Beal wrote: > > > paramName="map" > > paramProper

parameter passing to

2004-10-07 Thread Phani
I need to display all the elements in the map, the key & value pairs. Till here it's fine. Evrything works fine except the tag. When I click on "view", the "key" of the map has to be passed as parameter. I am not able to get the syntax right for passing the parameter. Thanks. Here is my code

Re: Iterating an array list into -- Version Issue 1.0

2004-10-06 Thread Phani
Can I use nested taglib or the indexed property of html:text with struts version 1.0 As I am working on a project which is using Struts 1.0 version. Thanks. --- Jeff Beal <[EMAIL PROTECTED]> wrote: > Try using the nested taglib or the indexed property > of html:text > >

Iterating an array list into

2004-10-06 Thread Phani
I came across this problem of displaying the string elements in an Arraylist into Textfields. How can I display them into the textfileds & capture them back into the ArrayList. (Using Struts 1.0) Thanks. _

Passing key of a Treeap as a parameter in

2004-10-06 Thread Phani
Ok, My Code snippet looks like this. <%=item%> view I have a map, & for each key in the map I hav

RE: unterminated.tag Exception

2004-10-05 Thread Phani
arameter. I am not able to get the syntax right for passing the parameter. Thanks. --- Erez Efrati <[EMAIL PROTECTED]> wrote: > What are you trying to accomplish with the "+key"? > > Erez > > -Original Message- > From: Phani [mailto:[EMAIL PROTECTED]

unterminated.tag Exception

2004-10-05 Thread Phani
I am getting the jsp.error.unterminated.tag exception because of the following line. view Can I get any help. Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --

unterminated.tag Exception

2004-10-05 Thread Phani
Hi, I got an exception like this. I am running JBoss server. org.apache.jasper.JasperException: /analytics/varAssumptionsFiles.jsp(95,59) jsp.error.unterminated.tag It seems one of the tag has not been terminated. My Question is how do we debug JSP pages: I mean how can I track in which line of

Display a list contained in value of a TreeMap

2004-10-04 Thread Phani
Hi, I got a TreeMap structure in my FormBean. Each key in the TreeMap has got an ArrayList as its value. Please let me know how to display the keys as well as the list of values for each key in the JSP page. TreeMap map; ArrayList items = (ArrayList)map.get(key); The ArrayList "items" now cont

tag

2004-10-04 Thread Phani
Anyone has any idea about this tag: Please let me know. Thanks. __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail ---