Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: byam
  • Order by date
  1. byam

    dropdown problem

    I see you are using Struts. <html:optionsCollection> should do what you want. http://struts.apache.org/userGuide/struts-html.html#options
  2. byam

    how debug servlet

    I found Eclipse + Tomcat Plugin very handy in debuging. You can step through every single step very easily. Use Eclpise as your IDE for your web application, with Tomcat plugin, just start up Tomcat at Eclipse, you can then set break point at runtime, and step through the code via Eclipse.
  3. byam

    java.util.Calendar compilation problems

    Calendar.CompareTo() was introduced in 1.5, so it will not compile in any earlier JDK version.
  4. byam

    getChildNodes()..problem in XML parsing

    I guess setting just ignore the white space in the content, but still create the text node. I'm pretty sure if you remove all spaces and line spacing between each element (i.e. make whole xml into one line), you can then elimiate all #text nodes. Or if you are using xerces parser, you can...
  5. byam

    getChildNodes()..problem in XML parsing

    This is because the white spaces between elements are consider text node. If you remove all the white space between nodes, then #text will disappers. Alternatively you can turn ignore-whitespace on at the DocumentBuilderFactory. DocumentBuilderFactory dbf =...
  6. byam

    How to not to lose parameter after validate() method

    I beleive when forwarded to writeMessage.do, it is still within the same request scope, therefore the "id" parameter value should still available, and can be accessed via request.getParameter("id"). Isn't it?
  7. byam

    Posting with HttpClient

    Your code only makes call to one page. It won't go the next page unless you make another call, right?
  8. byam

    HTML to PDF conversion

    You can first do a HTML to XSL-FO conversion using this: http://html2fo.sourceforge.net/ then do a XSL-Fo to PDF using apache FOP http://xml.apache.org/fop/index.html
  9. byam

    How to sort data in coulmns

    You will have to implement your own Comparator to compare Test object based on different "sort-by" column.
  10. byam

    Could not find Main class problem

    I think I see this error before. If I remember correctly, it's due to the jartest class is not under any package. Try put the jartest class in a package say "myPakage". then in the manifest file: Main-Class: myPackage.jartest
  11. byam

    HashMap contains method without Case senstive generating problems

    If it is always case insensitive for the HashMap use in your application, then one work around would be always change the key to the same case when you put in the hashmap as well as the key that use to do the lookup. e.g. HashMap map = new HashMap(); String key1 = "aBC"; String key2 = "def"...
  12. byam

    jsp checkbox

    try this <html:checkbox property="Supplies" <%= obj.getUnmeteredTO().getSupplies() ? "checked" : "" %> />
  13. byam

    Tomcat/Apache HTML render issues w/ Mozilla

    Here is the header I got from your site: HTTP/1.1 200 OK Date: Sun, 19 Jun 2005 16:31:06 GMT Server: Apache/1.3.33 (Darwin) mod_jk/1.2.6 DAV/1.0.3 mod_ssl/2.8.22 OpenSSL/0.9.7b PHP/4.3.10 Cache-Control: max-age=60 Expires: Sun, 19 Jun 2005 16:32:06 GMT Set-Cookie...
  14. byam

    need some kind of singleton-functionality on server-side!

    Create a servlet with startup on load that read usr/pwd infro from a configuration file, set username and password to a class with static variable to hold the value. This should work on any application server.
  15. byam

    Requesting a TIP / Advice for multiple views

    Sounds like you can make use of Struts modules: http://struts.apache.org/userGuide/configuration.html#dd_config_modules one module for each store.
  16. byam

    how to send multiple value in Struts?

    In your Action From, define the field type as String[]. e.g. in your action form class: .... private String[] names; public String[] getName() { return names; } public void setName(String[] names) { this.names = names; } ......
  17. byam

    MS updates break java applet

    Since the applet is located and run on local system, I think the default java security policy allow it to write to local file system; however, the OS security setting may not. Have you check the security setting of the filter file folder? It could be the user who run the application doesn't...
  18. byam

    Data base mapping software

    here you go http://prdownloads.sourceforge.net/middlegen/middlegen-2.1.zip?download
  19. byam

    Extending Action class

    You can get the message resource in Action class using getResources().. String centrale = getResources(request).getMessage("ambito.centrale");
  20. byam

    Data base mapping software

    try middlegen http://boss.bekk.no/boss/middlegen/ it maps an existing database and gen code for EJB, Hibernate, JDO, etc. One of the best open source tool for this purpose.

Part and Inventory Search

Back
Top