• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

I need to have Dropdowns dynamically

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I am new to JSP and MVC structure,I have a page which displays the values dynamically reading from an XML file.Along with each and every value i mean say a complete information for instance parameter name,value I have an Edit link.User can change this value when it is clicked ,it goes to other page having that 2 values in them ,the parameter name is diabled but the value can be changed in xml file.Till this I got,the real problem is that how can I validate in the parameter value so that user cannot just enter anything and change my xml file.

Also there is a parmater in the xml file
<currency>
<curr key="currency" value="rupees"/>
</currency>

For this particular element I need a dropdown menu to choose from ,say dollars,Euro.How can this be done.?

please send the code to validate between numeric and alhapetical values ,as the value in the above currency tag is a String and in other Tags it is numberic.How to differntiate this and then validate keeping in mind the dynamic menu for currency and normal textbox for my other two tags.
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch neha,

The following statement:

please send the code ...



leads me to believe that you have misunderstood the nature of JavaRanch.

No one will "send you the code". You need to write the code, and then ask for help with any aspects of it that you may be having problems with.

People here are more than willing to help you write your code, but they're not going to write it for you.

So, what do you have written so far? What aspects are giving you troubles?
 
neha parmar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sheriff

What I meant by writing code is that could you please in statement let me know what to do,I just want some alternatives to get my values from one page to other and based on that I need to validate whether they are numberic or alpabet if it is alphabet then I need a drpdown menu istead of text box.

Sorry,as it might have seem differently to you.Never even reread what I had written ,so please provide a way to do.Replies are awaited.
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic