Uwe Barthel

Greenhorn
+ Follow
since Dec 16, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Uwe Barthel

Please paste the cover text or explain a bit more about this book.
Witch frameworks ?
How depth you are diving into a framework ?
A lot to know
thx
17 years ago
hi,
what version of struts do you use ?
the wildcard mapping is NOT included in 1.2 and less.
so, get a nightly build.
thx
Uwe Barthel
17 years ago

Originally posted by Bruno Dery:
If you don't need fancy functions from Excel but just simply opening Excel directly from the file being downloaded, you can simply write a comma delimited file and it should open up with excel by default (if the user didnt changed his / her file associations, office sets .csv files associated with excel). So simply make sure you separate your columns by commas and your rows by newlines and name the file you output with the extension .csv.


yes, and add 'application/vnd.ms-excel' to 'Content-Type' in HTTP .
e.g.: <% response.setContentType( "application/vnd.ms-excel" ); %>
thx
Uwe Barthel
17 years ago
JSP

Originally posted by Igor Ko:
Is it ADVANCED forum question ?
Answer:
YES for Hashtable,
NO for Directory (don't know what is it)
YES for File.isDirectory()


both YES
public class Hashtable extends Dictionary implements Clonable, Map, Serializable
{}

I think he is meaning 'Dictionary' not 'Directory'
thx
Uwe Barthel
17 years ago

Originally posted by Uwe Barthel:

Hi,
Ok another question... how long do you need to read a technical book around 420 pages ?
"programming Jakarta Struts" Cavaness, Chuck, ISBN: 0-596-00328-5, O'Reilly
This book explain struts programming with a bookwide example a little shopping site. so you get 2 birds with one stone
hope that helps
thx
Uwe Barthel



P.S.: Sorry for my bad english :roll:
17 years ago

Originally posted by john mattucci:
My question is how many hours should this take for a mid level developer or a senior developer? I need to present the client with the number of hours this project will take and I dont want to quote him too high or too low. One more question what do you feel would be fair to ask for such a project? The client is a small business.
Thank you all for your time


Hi,
Ok another question... how long do you need to read a technical book around 420 pages ?
"programming Jakarta Struts" Cavaness, Chuck, ISBN: 0-596-00328-5, O'Reilly
This book explain struts programming with a bookwide example a little shopping site. so you get 2 birds with one stone
hope that helps
thx
Uwe Barthel
17 years ago
Hi,
that's what the code snip of sha ram do.
Sorry for my bad english.
-get the hashtable and iterate about ( <logic:iterate ...> )
- write down key and value ( <bean:write name="hs" property="key" ... /> )
what do you want really ?
thx
Uwe Barthel
[ December 22, 2003: Message edited by: Uwe Barthel ]
[ December 22, 2003: Message edited by: Uwe Barthel ]
17 years ago

Originally posted by Jose Larico:
I would like to do a ITERATE in a jsp page. For this I have been using a HashMap and each element of this map contains an ArrayList. In the array list different objects are stocked. I would lilke to recuperate each ArrayList and make it de second iterate. Ex.
ArrayList liste = new ArrayList();
UnObject o1 = new UnObject();
o1.setId(1);
o1.setSubject("Some text 1");
liste.add(o);
UnObject o2 = new UnObject();
o2.setId(2);
o2.setSubject("Some text 2");
liste.add(o2);
java.util.HashMap h = new java.util.HashMap();
h.put("MyID",liste);
request.setAttribute("myIterate",h);
<logic:iterate id="ref" name="myIterate">
.....
.....
</logic:iterate>
Thank...


Ok, take a look into the documentation of the struts logic tag.
http://jakarta.apache.org/struts/userGuide/struts-logic.html
-----8<----------8<----------8<-----
...
Normally, each object exposed by the ITERATE TAG is an element of the underlaying collection you are iterating over. However, if you iterate over a Map, the exposed object is of type Map.Entry that has two properties:
  • key - The key under which this item is stored in the underlaying Map
  • value - The value that corresponds to this key.

  • So, if you wish to iterate over the values of a Hashmap, you would implement code like the following:

    ...
    -----8<----------8<----------8<-----
    So, hope that helps
    Uwe Barthel
    17 years ago
    hi,
    A bit OT.
    Open your window's with JavaScript and give they names.
    And within your links fill the 'taget=""' with the name of the 2. window.
    The browser know the target and 'printed' the stream to this window-handle.
    thx
    Uwe Barthel
    [ December 16, 2003: Message edited by: Uwe Barthel ]
    17 years ago