RE: Looking for junior Java/Struts developers

2004-02-04 Thread Jiin-Her Lu
Depends on when, where, and what is your citizenship. It can be up to $ 85000+  in US.

Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 02/03/04 10:34PM >>>
whats a graduate programmer worth? i'm told to accept 45k, which i believe in
the states would be 30k or roundabouts.
*sniff* US 50k *sniff*
i wonder how many years i'll have to slave for before i see money like that.








50k US??? Thats like 85k over here - which is a *lot* more than even a very
senior programmer is worth nevermind a junior. 85k for a JUNIOR programmer.
Wow! You could buy a car with that! (Which unlike junior programmers are
distinctly not cheap over here. )

so... whats the tax rate like over in the States these days?
;-)



-- 
ajay
---
Who Dares Wins

-
This mail sent through IMP: www-mail.usyd.edu.au

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



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



RE: Validation problem

2004-02-03 Thread Jiin-Her Lu
This is an interesting thing. Here is the way to avoid Struts calls  validate method 
on ActionForm

This one Struts framework will NOT call validate method on ActionForm



While this one does 



The only difference is if you do have property, Struts adds name="your_data". While if 
you don't have property set, Struts add name="org.apache.struts.taglib.html.CANCEL". 

Why these make the difference?



Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 01/29/04 05:45PM >>>
The Struts Validator provides a mechanism to deal with Cancel buttons. A
flag is set in the onclick method for the cancel button in the jsp page. The
validate methods check this flag and if it is set, they skip validation and
just return true.
 


If you're not using the Struts Validator, maybe you could try mimicking this
behavior in your validate method ??

Brian Barnett

-Original Message-
From: Nathan Pitts [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 29, 2004 4:16 PM
To: Struts List
Subject: Validation problem

I am wondering how to solve the following problem with a minimal amount 
of recoding, and hope someone can give some input.  I have a form the 
has three html:submit buttons -- Update, Cancel and Delete.   I am 
using a LookupDispatchAction and an ActionForm with the validation in 
the validate() method.  Under normal conditions everything works 
fine..But when a user clicks Update with invalid data on the form, 
the validate method catches the bad data and returns the proper error 
message.  If the user then decides to click Cancel (without changing 
the invalid data), the validate() method is still called and the user 
is returned the same error.


One thing that I might be able to do is to somehow find out what button 
was clicked in the validate() method...??  How would I do that, I 
wonder...



thanks in advance,
-nathan


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

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



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



Re: ... question? SELECTED ATTRIBUTE

2004-02-02 Thread Jiin-Her Lu
In you ActionForm java class, you have to define the selectedCountry instance 
variable. For example  


public MyForm extends ActionForm {

private String [] selectedCountry = {}; // if the option is multiple selection (check 
box or multiple selection listbox)
// private String selectCountry;// if the option is single selection 
(radio button or dropdown box)


// generate getter and setter method based on the above variable)


}

When Struts populates the data, it checks the selectedCountry array in your form. If 
the country is found in your ActionForm, Struts automatically adds "selected" to that 
item (country). You don't have to do anything as long as your ActionForm class defined 
correctly.

I have done for radio button, checkbox, dropdown box, single and multiple listbox. 
They work well!


Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 02/02/04 11:47AM >>>
How does one add selected attribute if I want one the
option to have the SELECTED attribute
--- Jiin-Her Lu <[EMAIL PROTECTED]> wrote:
> you can do as following. 
>  countryCollection is an ArryList with object of
> struts' LabelValueBean. The value is the country
> code and label is the country name for example.
> Once the user changes the country selection, it will
> submit the change to server so that the action can
> generate the city list based on the selected county.
> Once it's done, forward to itself. The list of city
> will be populated accordingly. If you want use
> javascript, then it's a different story.
> 
> Hope this can help!
> 
> 
>  property="value" labelProperty="label" 
> onchange="submit()" />
> 
> 
> 
>  property="value" labelProperty="label"  />
> 
> 
> 
> 
> Jiin-Her Lu
> (816) 926-2145
> 
> >>> [EMAIL PROTECTED] 02/02/04 09:49AM >>>
> Apologies for this newbie question...
> 
> I have 2 selections: Country and City 
> I have 2 collections in session (CityList contains a
> reference to Country)
> I don't want the user to select a City before
> selecting a Country and I want
> to display a list of Cities that relate to the
> selected Country...
> 
> Can anyone please help with this code:
> 
>   ...
>   
> Country
> 
>onchange="document.forms['myForm'].city.value='';
>  
> document.forms['myForm'].submit();">
> Select a
> country...
>  property="country"
> labelProperty="description" />
>   
>property="country" />
> 
>   
>   
> City
> 
>   
> Select a
> city...
>  property="list"
> type="City">
>
<<<<<---
> --
>property="country" value="">
> !!! This is where I'm stumped. How do I get the
> comparison to work between 2
> beans?
>
>>>>>---
> --
>  labelProperty="description" />
>   
> 
> 
>   
>/>
> 
>   
>   ...
> 
> Any help much appreciated!
> Derek
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] 
> For additional commands, e-mail:
> [EMAIL PROTECTED] 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] 
> For additional commands, e-mail:
> [EMAIL PROTECTED] 
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/ 

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


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



Re: ... question?

2004-02-02 Thread Jiin-Her Lu
you can do as following. 
 countryCollection is an ArryList with object of struts' LabelValueBean. The value is 
the country code and label is the country name for example.
Once the user changes the country selection, it will submit the change to server so 
that the action can generate the city list based on the selected county. Once it's 
done, forward to itself. The list of city will be populated accordingly. If you want 
use javascript, then it's a different story.

Hope this can help!











Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 02/02/04 09:49AM >>>
Apologies for this newbie question...

I have 2 selections: Country and City 
I have 2 collections in session (CityList contains a reference to Country)
I don't want the user to select a City before selecting a Country and I want
to display a list of Cities that relate to the selected Country...

Can anyone please help with this code:

  ...
  
Country

  
Select a country...

  
  

  
  
City

  
Select a city...

<<<<<---
--
  
!!! This is where I'm stumped. How do I get the comparison to work between 2
beans?
>>>>>---
--

  


  
  

  
  ...

Any help much appreciated!
Derek



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



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



RE: html:options and html:select

2004-02-02 Thread Jiin-Her Lu
If your list stores objects which is the type of Struts' LabelValueBean (provides only 
getValue() and getLabel() methods), then you can simply as 


    



Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 02/02/04 06:31AM >>>

Hi Frank

Try using

Request.setAttribute("collectionName",list);





I have tried putting the Collection as the request attribute never in
the form bean. One more thing make user you provide exact path of
CProduct in the name field.

Regards

Anant

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 5:41 PM
To: Struts-User (E-Mail)
Subject: html:options and html:select


hello,

I have following bean:

public class CProduct {

private Integer id;

private String name

public Integer getId() {return id;}
puclic void setId(Integer id){
...
}

My form class contains a java.util.List of CProduct bean.

How can I display the List as select box? I want to use the id as value
and the name as label of the select box.

For example:


scanner
harddisk


Has anyone an idea?

Regards,

Frank


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



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



[RESOVLED] Re: File "/tags/struts-logic" not found

2004-01-30 Thread Jiin-Her Lu
If you use <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
 in your jsp files, then you have to specify the mapping in your web.xml file since 
there is no /tags/ folder (in general)  since the *.tld normally located in /WEB-INF/ 
folder.
if you  use <%@ taglib uri="/web-inf/struts-logic" prefix="logic" %>  then if you move 
*tld to folder other than /WEB-INF/ then you have to change all of your JSPs

There is a better way to do it. Instead of doing as above, use following in your 
jsp,then you don't have to define the mapping in web.xml neither change your jsp

<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"; prefix="logic" %>





Jiin-Her Lu
(816) 926-2145

>>> [EMAIL PROTECTED] 01/30/04 06:17AM >>>
Thank you guys,

appartently it was just that in my index page i was reffering to
/tags/struts-logic
rather than /WEB-INF/struts-logic.tld The strange thing is that I did not
make ANY changes between deleting the temp file and reaccessing my app !

Theo

- Original Message - 
From: "Ramachandran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 5:03 AM
Subject: RE: File "/tags/struts-logic" not found


> Hi !
>  No problem will occurs by deleting the files in work folder. If u
> restarted the server then it will have new compiled files.
> i thought your tld file for struts-logic is corrupted. So relace
> that one. It will work
>
> Ram
>
> -Original Message-
> From: shankarr [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 30, 2004 10:20 AM
> To: Struts Users Mailing List
> Subject: Re: File "/tags/struts-logic" not found
>
>
> Hi!
>
> I am not much aware of the application's temp directory part.
> But, it seems that you have accidentally deleted the struts-logic.tld file
> in WEB-INF folder.
>
> Richie
>
> At 01:26 AM 1/30/2004 +, you wrote:
>
> >Hi all,
> >
> >I had to delete my application's temporary directory in Tomcat's
> >\work\Standalone\localhost  because it was not running using my latest
> >compiled files. Now when I access my application I get the following
error
> >and I don't have a clue why that is so! Any ideas?
> >
> >Thank you for your time,
> >Theo
> >
> >HTTP Status 500 -
> >
>
>---
> -
> >
> >type Exception report
> >
> >message
> >
> >description The server encountered an internal error () that prevented it
> >from fulfilling this request.
> >
> >exception
> >
> >
> >org.apache.jasper.JasperException: File "/tags/struts-logic" not found
>
> "To achieve all that is possible, one must attempt the impossible"
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>
>

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



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