Re: Our name has changed!! [struts-atlanta -> web-atlanta]

2005-07-09 Thread Vamsee Kanakala

John Henry Xu wrote:


Once I worked with some developers in Banglore on web applications. The final 
product cannot handle more than 10 connections and we spend lots of time (more 
than the time they developed it) to fix it.
 



It's changing. Real fast. Faster than you think.

Vamsee.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE Wars (was Struts vs World)

2005-07-03 Thread Vamsee Kanakala

Frank W. Zammetti wrote:

I very much DO NOT look forward to the day when we all must use the 
same toolset, whether its because we mostly agree its the best or 
because other factors leave us little choice.  People are different, 
why shouldn't the tools we use to get our jobs done be as well?



+1.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multibox

2005-03-19 Thread Vamsee Kanakala
Ben Taylor wrote:
Cheers, I've manged to get the ticks appearing now...  However
although they load fine on the first load they do not move after that.
i.e. I can change which ones are selected and it'll go off and update
the db but when I load the page again the origonal ticks are still
shown.
 

One reason could be that you defined the accompanying form with 
scope="session". If so, are you sure you need this? Then again, it could 
be that a method is pre-populating the checkboxes by retrieving the 
relevant values from the database that you just inserted. Can you post 
more code?

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Vamsee Kanakala
Joe Germuska wrote:
I don't know if we've all landed on most people's kill-filters or 
what, but one gets the sense that what some of us are interested in 
arguing thoroughly about is of little import to regular users.

I'm as 'regular' a user as you can get, but I thoroughly enjoy these 
technical discussions. For me, it's very educational. I don't understand 
everything, but  I feel really happy when I do. To use a cliche, I can 
"stand on the shoulders of giants". I might not go and start playing 
with 1.3 right now, but one of these days, I will muster enough courage 
to do so. Please do whatever you're doing, it's working ;)

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems using JSTL with struts

2005-03-18 Thread Vamsee Kanakala
Rodolfo GarcĂ­a Esteban/CYII wrote:
2. when I do 
 

EL is not working for you. Most probable culprit is web.xml. It should 
have webapp 2.4 DTD like so:


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";
   version="2.4">
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Fresh Blood

2005-03-15 Thread Vamsee Kanakala
Rick Reumann wrote:
Your friendly neighborhood losers are still hanging out in 
#FunkyCodeMonkey on irc.darkmyst.org and wouldn't mind having some 
fresh blood in the channel. 
Hi Rick,
XChat says:
* Looking up newserver
* Unknown host. Maybe you misspelled it?
Cycling to next server in irc.darkmyst.org...
* Disconnected ().
* Looking up newserver
What to do?
Thanks,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Validator Framework question

2005-03-15 Thread Vamsee Kanakala
Senthivel U S wrote:
Each sub
application is having its own config file but I could not create different
validation.xml for each sub application. If I create also it takes only one
validation.xml file into consideration.
 

This may sound silly, but did you name them differently?
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Slightly OT] Intuitive way of multi-select?

2005-03-14 Thread Vamsee Kanakala
Hello,

   I have been mulling over how to provide a simple way of
multi-select. Some  how, I'm not very comfortable with providing the
normal way of enlarged drop down list, which the users have use
Ctrl+click to select. The reason is that this becomes messy when they
come back to edit their selections.

   The only other option I see is to provide bunch of checkboxes.
Is there any other way of providing a simple way of doing multi-select
in an edit-friendly way?

TIA,
Vamsee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Anybody who can answer this ?

2005-03-14 Thread Vamsee Kanakala
nitin dubey wrote:
My question is where can we write
that ? In A's Action or in B's Action ?  Any simple
pattern that can be used for this ?
 

Neither. You can write it in A's action when you are pretty sure that A 
will be called before B. You can't write that in B because your 
'execute' in B will be called only after B's form is populated. I think, 
what you are looking for is a 'PrepareAction' class. Please check Rick's 
excellent tutorial:

http://www.reumann.net/struts/lesson2.do
-Vamsee Kanakala.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DataSource........

2005-03-11 Thread Vamsee Kanakala
K Rajesh wrote:
i have one doubt. Connection Pooiling only possible thro' JSTL 
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
HTH,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts DB Access :: Best Practices

2005-03-09 Thread Vamsee Kanakala
karthikeyan balasubramanian wrote:
 I want to know what is the best way to access database using struts.
 

This is just one way: http://www.ibatis.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Approach

2005-02-25 Thread Vamsee Kanakala
Tim Christopher wrote:
CustomerService.java
# Used to gain access to CustomerDAO and CustomerSqlMapDAO.
CustomerDispatchAction.java (ex insert method - but will contain CRUD)
# Gets instance of CustomerService; copies jsp form details into a
DynaActionForm; copy form DynaActionForm to Customer.java object;
calls insert method in CustomerService with Customer object as the
parameter; return ActionForward.
 

I'm interested in learning what the above classes do - can you please 
elaborate? Can you post/point to a little code? I'm particularly 
interested in how DispatchAction class can be used.

Thanks,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Relation between validator & ?

2005-02-24 Thread Vamsee Kanakala
Vamsee Kanakala wrote:
  I have a normal action class called PrepareFacultyEntryAction 
which basically retrieves some data from the database, and forwards it 
[...]
Sorry guys, my bad. I should've watched the logs properly. What was 
happening is that one of the arraylists I'm sending happens to be set to 
null (silly, but it completely slipped my mind), and beanutils 
OptionsTag.java was complaining that it's not able to find the bean. 
All's well now. Thanks, Eric :)

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Relation between validator & ?

2005-02-24 Thread Vamsee Kanakala
Hello Guys,
  I have a normal action class called PrepareFacultyEntryAction 
which basically retrieves some data from the database, and forwards it 
to a jsp page. I have a couple of  which are filled by an 
arraylist of label value beans. So far so good. The user selects 
something, and hits submit. Which will be submitted to another Action 
class called FacultyEntryAction which has a Validator form (the previous 
action class also uses the same formclass, but with validate="false", so 
that it won't validate the first time around) and does some validations 
(this time, I set validate="true" in the action mapping).

  But, when I submit to this Action class, all I'm seeing is a 
jumble of javascript written across the browser (and execute is not 
being called). Surprisingly, if I remove the two  tags, 
then it shows up correctly. The validations work, and the class is 
submitting properly. But if I put those two  tags, 
everything blows up. I'm completely lost. Please help.

TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [HELP] Understanding clearly about function of Nested Tags

2005-02-18 Thread Vamsee Kanakala
Rick Reumann wrote:
Now create a web page that has one form that will display all the 
companies (from a companies collection), and the departments 
underneath, and the employees in each department AND you can edit the 
name at any level... you can edit department names, employee names, 
company names, all from one form and submit and have you intial 
collection of companies all properly updated.

Sorry for jutting in, but won't that be a terribly ugly way of doing edits?
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts In Action - Still up to date?

2005-02-18 Thread Vamsee Kanakala
Christian Hauser wrote:
What I wanna say is that I wouldn't like Struts in Action 2nd Editionn 
to have lots about Struts 1.2 when Struts 1.3 anyway makes it all 
different. 
+1. It was quite ugly to see all those arrow marks in Struts in Action 
saying "Struts 1.1". I would rather the authors talked about the latest 
version in a clean, simple way.

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts or SpringFramework

2005-02-18 Thread Vamsee Kanakala
Richard Reyes wrote:
Whats the advantage of using spring for your persitence layer when you
can do it with struts?
 

I had the good fortune to read Rod Johnson & Juergen Hoeller's "J2EE 
developement without EJB". From what I can glean from the book, Spring 
is much more than a MVC or a Persistenece layer.

As Dakota Jack already said, it's a light-weight j2ee application 
framework. It uses 'Dependency Injection' or 'Inversion of Control' to 
make configuration and testing of web-apps much more simpler. Good 
starting point:

http://www.martinfowler.com/articles/injection.html
Also, it uses AOP to handle security concerns and other "aspects". A lot 
of the book is also devoted to giving arguments to support "EJB is way 
too complex for most web applications" and "open-source alternatives are 
easier to use and maintain" and "don't distribute your objects". 
Ofcourse I can't do full justice to the book, but it convinced me enough 
to try out Spring sometime in my next project.

Regards,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts or SpringFramework

2005-02-18 Thread Vamsee Kanakala
Marco Mistroni wrote:
You can use both of them at same time, for example using Struts
for weblayer and Spring for persistence layer (if you have one..)
 

Huh? I thought Spring didn't have it's own persistence layer (as far as 
I know, Spring persists through iBatis or Hibernate).

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Studio

2005-02-11 Thread Vamsee Kanakala
Brian Bezanson wrote:
I used a good Struts book --
amazingly (despite my hating the title) I found the Jakarta Struts for
Dummies book to be very well written and easy to learn from/reference.
 

+1. Worked for me, too.
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Logging Question

2005-01-30 Thread Vamsee Kanakala
Andrew Hill wrote:
Commons Logging over Log4J.
+1. There are several articles on the internet about why using commons 
logging is a bad idea, but so far I didn't face any problem.

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Connection Pool best practice

2005-01-19 Thread Vamsee Kanakala
Kalluru Uma. Maheswar wrote:
Hi,
I am using org.apache.commons.dbcp.BasicDataSource to implement a
connection pooling and this is my class.
 

If you're using Tomcat, you're better-off using JNDI Datasource:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using Validator framework with LookUpDispatchAction

2005-01-18 Thread Vamsee Kanakala
Venkata Krishna V. wrote:
the flow. (i.e. Instead of validating only for Add, the form is
validating even for Delete and Cancel)
Add this in your validator plugin declaration in struts-config.xml:

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URGENT : CMS Driven static site and Struts

2005-01-18 Thread Vamsee Kanakala
Jim Barrows wrote:
The one thing I hate doing is trying to figure out someonelses undocumented framework.  

 

+1. I've been in that situation before, and believe me, it's an 
unenviable position that I wouldn't wish on my worst enemies! :)

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JDBC Driver

2005-01-18 Thread Vamsee Kanakala
David Bolsover wrote:
What is wrong with the Microsoft driver?
 

Well, I can actually give a whole lot of reasons. One, it's extremely 
slow. Two, you can retrieve objects from ResultSet only in a certain 
order. Three, sometimes it just conks out giving strange errors. If you 
check for them on the Microsoft website, frequently they say "nothing 
can be done about it, that's how it was implemented". Thankfully, jTDS 
saved the day for me. It's fast, stable and implements JDBC 3.

Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts/Javascript mapping problem

2005-01-17 Thread Vamsee Kanakala
Hi List,
  I added a calendar control to my jsp page like so:
Select

 But, in case I use a validator form, and I have some validation 
errors, it maps the url to ".do" page. On which, clicking on the 
calendar control doesn't bring up the calendar because it's trying for 
".do#" instead of ".jsp#". How can I solve this problem? Please help.

TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Slightly OT] Simple date-picker?

2005-01-15 Thread Vamsee Kanakala
Hi List,
  I'm looking for a simple date-picker which integrates well with 
Struts...
as in, it places validator-checkable date format in the date field. I've 
been looking for javascripts on the net, but I can't find any that did 
the job straight-forwardly. I looked at struts-layout, but it seems 
overkill to install struts-layout for just a date-picker. Please suggest.

TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Errors with 'validwhen' rule

2005-01-15 Thread Vamsee Kanakala
Kishore Senji wrote:
http://struts.apache.org/userGuide/dev_validator.html
Probably you missed the validWhen rules; Search for "A few quick notes
on the grammer" on the above page
 

Thanks, I really missed that part. I have one more problem:
My form is populating a drop-down like this:

   Select
  

  


And, my validator.xml has this:

 

I'm trying to make the selection of a value compulsory. But, The error 
doesn't show up
after I try to submit without selecting anything. Isn't it supposed to 
say "Pool must be an integer" or something?

TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Errors with 'validwhen' rule

2005-01-15 Thread Vamsee Kanakala
Hi List,
I have something like this in my validation.xml:


  test
 
  ((phone != null) or (mobile == null) or (*this* != null))
 
 


But I have some errors like this:
line 1:38: expecting RPAREN, found 'or'
   at antlr.Parser.match(Parser.java:213)
   at 
org.apache.struts.validator.validwhen.ValidWhenParser.expr(ValidWhenParser.java:384)
   at 
org.apache.struts.validator.validwhen.ValidWhenParser.expression(ValidWhenParser.java:369)
   at 
org.apache.struts.validator.validwhen.ValidWhen.validateValidWhen(ValidWhen.java:114)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...

I checked Struts Validator guide, I can't find anything wrong with the 
validation rule. Please help. I also have a doubt: Can I also use 'and' 
in the above cases, if I need it?

TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Vamsee Kanakala wrote:
I have a code fragment like this:

  

  
Thanks guys... I solved it. Seems like it's an issue with the Tomcat 5, 
which supports JSP2.0, and I have to make changes to web.xml to enable 
EL. These posts on tomcat-user list have helped me:

http://www.mail-archive.com/taglibs-user@jakarta.apache.org/msg07569.html
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg123308.html
Thanks a lot! If only I could solve the Javascript gibberish problem I 
posted on the list... Nobody seems to have faced this before :(

-Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Javascript gibberish thrown by ValidatorForm!

2005-01-12 Thread Vamsee Kanakala
Hi List,
 I have a strange problem - I'm trying to display a ArrayList 
made of LabelValueBeans. I'm trying to display them in a  
like this:




But, All I'm getting is a bunch of javascript gibberish (which I think, 
comes from validation-rules.xml or something) written across the screen. 
Am I missing something important here? Please help!

TIA,
-Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Dakota Jack wrote:
Don't you have to define what "items" are covered by your "var"?
 

Sorry if I sound daft, but I do I have to do that? Where do I do that?
TIA,
-Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Rick Reumann wrote:
It sounds like you are probably are now using a JSP2.0 container like 
Tomcat5 and are refering to the wrong tld. Refer to the one in the jar 
like:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
and remove and direct pointing to the tlds you have.
Yes, I am using Tomcat 5.0.28. I then downloaded beanutils from the 
jakarta site, replaced the jstl.jar and standard.jar, and pointed to 
taglibs like you said above. I have strange problem - I am able to use 
 etc., but the "var" is not getting set. If I give something 
like this:


 

I get something like this:
${current} ${current} ${current} ${current} ${current}
I can't figure out what seems to be the problem. Please help.
TIA,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unable to see out put

2005-01-11 Thread Vamsee Kanakala
Hi List,
I have a code fragment like this:

  

  


Where statusList is a list of class instances, which has a setters and 
getters for properties id and name. Now, if I give the above code, I 
should be able to print out the names in each instance, right? But I am 
not able to. Please help. And, my Lomboz plugin auto-compiles my jsp and 
says:

"According to tld, Attribute items does not accept any expressions"
But I'm using c.tld. I don't know what I'm doing wrong. Please help.
-VK
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thank you, Struts!

2005-01-10 Thread Vamsee Kanakala
Hey folks,
  Well, I have been working with Struts for the past 1 month, and 
though the initial setup was a bit complex (the first time) and 
firguring out the action mappings was tough, I am slowly discovering how 
cool Struts is. Maybe that's why it's so popular. A heartfelt thanks to 
Craig and everybody  who's working on Sturts, you guys make my life 
easier and fun :) The documentation is truly, truly excellent. When I 
get some time, I will surely contribute. You guys rock!

Thanks for everything,
-Vamsee Kanakala.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Nice article...

2005-01-06 Thread Vamsee Kanakala
Hi folks,
  I found this nice article on TSS about Struts Action Mappings by 
Michael Jouravlev.

http://www.theserverside.com/articles/article.tss?l=StrutsActionMapping
Cheers,
Vamsee.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Best tutorial

2004-12-16 Thread Vamsee Kanakala
uma.k wrote:
Where can I get the best tutorial on struts?
 

http://www.reumann.net/struts/main.do
-VK
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]