Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

p madhavi

Greenhorn
+ Follow
since Jun 10, 2005
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 p madhavi

It didn't work for me. I think, I need to let my team know that there is no other solution other than images ....
Anyways, thank you.
Thanks for reply. I need the text in the vertical form, means the whole text is titled 90 degrees. For example, consider " THE " ,


| | |
----

----
|
----

|
|---
|


I am not able to show exactly, the way I wanted. Hope this would help.

Thank you.
Hi,

I'm generating a table from database dynamically and i want that the column header sholud appear in vertcal form rather than in horizontal form.
Any help would be appreciated.
Thanks in advance.
Is there any other way, still using display:table ??

Thank you.
11 years ago
Thanks for the reply.

According to ur suggestions, I tried but it didn't work. I am not sure exactly where I can use it. Here is the my code sample,


<body>
<form ....>
<table>
<tr>
here I have the heading for the table.
</tr>

<tr>
<td>
<display:table .....>
<display:column property=".. " title=".." class=".."
headerClass=".."/>
<display:column ... >
<display:column ... >
and so on....
</display:table>
</td>
</table>
</body>


Could u please guide me...
Thank you.
11 years ago
Hi,
I need help regarding the display:table. I have a table which has 20 columns. I am displaying, using <display:table> tag in jsp.I want this table to have a horizontal scrollbar only for last 10 records.
Can anyone help me out.
Thanks in advance.
11 years ago
Hi,
I need help regarding the display:table. I have a table which has 20 columns. I am displaying, using <display:table> tag in jsp.I want this table to have a horizontal scrollbar only for last 10 records.
Can anyone help me out. Thanks in advance.
11 years ago
Hi,

I tried to write a small script...

<Script Language="Javascript" >

function focus1() {
if(document.all.usrFile.click())
return true ;
else
return false ;
}
</script>

But the problem is when i focus on browse button with mouse and then click "enter" button, the file dialog opens and once the file is selected and submit button is clicked, the data in the text field is gone and no process is performed.....

Any suggestions ??
Thanks.
12 years ago
Any suggestions to my problem....

Since <html:file....> tag creates text and browse buttone, there is no way i can focus separately on browse button....is there any alternative for it??

Thanks.
12 years ago
Hi,

My java version is 1.3.1.
I have a float value ex: 34.68999904660606668687678978....
I want to have precision of 5 digits. I looked into Javaranch, found regarding BigDecimal and DecimalFormat, and Java API, but what is see mostly it works for doubles....but i want for float....
Any suggestions..

Thanks.
12 years ago
There is no specific function, basically select file window pops up when browse button is clicked normally. Below is the code:

<html:form method="post" action="/Trans.do" enctype="multipart/form-data">
<b>Select File</b> <html:file property="usrFile"/>
<html:submit value="Process"/>
</html:form>

So there is no code to add for browsefunction.
12 years ago
Hi,

This is the way i tried:


function putFocus() {
if (document.forms.length > 0) {
document.forms[0].usrFile.focus();
}
}

But what is happening is, the focus is there in the text area of file. I want to focus on Browse button so that when I click the keyboard button "ENTER", browse button should be activated and select file window should pop up. But the button "Process" is activated instead.
what do i need to change in the code??
Any suggestions??

Thanks.
12 years ago
Hi,

On the form, there is a browse button and a submit button. When mouse is pointed on browse button and a "ENTER" button is clicked on keyboard, submit button is activated and hence error(user defined) is displayed since file is not entered. How can i focus on browse button and when mouse pointer is pointing on browse button and "ENTER" button is clicked, then it should open the select file one....

<html:form method="post" action="/Submit.do" enctype="multipart/form-data" >
...
...
<html:file property="File"/ >
...

Any suggestion please??

Thanks.
12 years ago
Hi,

I am new to struts. I am trying to create a sample program. I am using WSAD as IDE and running tomcat . When i tried to run, i get this error:

2005-06-10 11:39:36 - LoadOnStartupInterceptor: cannot load servlet name: action
- java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.jav
a:310)
at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:3
78)
at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:192)

at org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(LoadOnS
tartupInterceptor.java:98)
at org.apache.tomcat.core.Context.init(Context.java:498)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:554)
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom
cat.java:625)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:7
91)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:775)

at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S
upport.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.
java:76)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:77
3)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.
java:52)
at org.apache.tomcat.startup.Main.execute(Main.java:272)
at org.apache.tomcat.startup.Main.main(Main.java:98)

[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
2005-06-10 11:39:36 - Ajp12Interceptor: Starting on 8007
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=31/47 config=C:\jakarta-tomcat-3.3.2\conf
\jk2.properties
EmbededTomcat: Startup time 125

I looked and feel everything is good enough as in the example program.
Could anyone suggest why it is not able to load it??

Thanks.
12 years ago