Achal Jalan

Greenhorn
+ Follow
since Nov 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Achal Jalan

Hi,

Hi,

In the code below,

Row1 of the table has a drop down menu
In row2 I need to display an appropriate msg depending on the choice the user made in row1.

Could you please advise me on the best way to go about it.

Any sample code would be very very helpful.

The code below is just a subsection of the actual jsp page, thus I need to be able to do this without going to the servlet.


THE JAVASCRIPT




THE RELEVEANT HTML




The obove doesnt seem to work and gives me an error " 'result' object not found. "...

Thanks in advance for all the help
Achal
19 years ago
Hi,

In the code below,

Row1 of the table has a drop down menu
In row2 I need to display an appropriate msg depending on the choice the user made in row1.

Could you please advise me on the best way to go about it.

Any sample code would be very very helpful.

Example:

If the user chooses 90 then row2 should have in it 'A+' but if the user chooses 80 then 'A' and so on.

The code below is just a subsection of the actual jsp page, thus I need to be able to do this without going to the servlet.



Any kind of help will be appreciated

THanks a LOT in advance
Achal
Thanks a bunch Alan... that solved it...
19 years ago
Hi

In my struts project I am using a combination of the bean:write and other struts input tags.

If there is an error when a user inputs the data in all the fields and submits the form. The page is re-displayed with the error messages but the information that was being displayed by the bean:write tag dissapears.

Any help on how i can fix this, will be very appreciated.

A subsection of the code where I get the error 7 lines down




Thanks for all the help in advance
Cheer
Achal
19 years ago
Thanks for all your suggestions.

I would like to have all the information on the ONE webpage so that the action class doesn't need to called again n again. This seems possible only if all the data is already stored in 'javascript' variables.

I can get the information from the action class and display it onto the webpage, but how can I pass this information (arraylists consists of available options) into a 'javascript' function and initialize the variables?

Any help on this will be very very appreciated.

Thanks a bunch
Achal
19 years ago
Hi,

In a struts project I have to create ONE web page with around 5-6 drop downs. The content of one drop down depends on the value selected in the previous one.

e.g

drop down 1 : UK (selected)
FRANCE

drop down 2 : LONDON
LEEDS

BUT if

drop down 1 : UK
FRANCE (selected)

drop down 2 : PARIS
NICE



Can any one tell me I can achieve this.

Thanks for the all the help in advance
Achal
19 years ago
Hi,

I have to create ONE web page with around 5-6 drop downs. The content of one drop down depends on the value selected in the previous one.

e.g

drop down 1 : UK (selected)
FRANCE

drop down 2 : LONDON
LEEDS

BUT if

drop down 1 : UK
FRANCE (selected)

drop down 2 : PARIS
NICE



Can any one tell me I can achieve this.

Thanks for the all the help in advance
Achal
19 years ago
JSP
Hi,

I created a new 'admin' module in struts and wanted to know how to delete it ?

I have deleted the java packages wsad generated for the module and the application resource file, but the module still exists.

Any help on how I could achieve this will be very apriciated.

Thanks
Achal
19 years ago
Hi Guys,

I am trying to upload a file in struts,

In my action form I have


In the action class



At this point I am stuck, I need to store the file on the hard disk.
Can some one give me a few hints or a code snippet.

Thanks in advance for all the help
Achal
[ March 29, 2005: Message edited by: Achal Jalan ]
19 years ago
Thanks for the suggestion. I think i will go about doing that, the only problem I have is time. So if there exists any sample code to read from and update spreadheets using POI it will be very very very helpful.

Cheers guys
19 years ago
Hi,

I need to be able to create excel charts in a wrkbook using java.

Any clues or sample code ?

Thanks in advance
Achal
19 years ago
Hi,

In the following piece of code I am trying to select in the dropdown box the "buId" when equal to the "bu" set in the form and add the other "buchoices" to the drop down list.

"buchoices" has been initialised to {"Abc", "def", "ghi"} in the action class using the set method from the form. And "bu" has been set to "Abc" in the similar manner.

I am failing on 2 counts
1. selecting the value in the drop down when buId == bu
2. showing the rest of the list on the webpage to the user

(timeDetails is the name of the form bean which has has been declared using the usebean tag.)



Any help on how i can do this will be greatly appreciated.

Thanks a bunch
Achal Jalan
19 years ago
Hi,

In HTML the option tag we can select a value in the drop down list as in the code below



Is there any way the same can be achieved using the struts options tag ?

Thanks for all the help in advance
Cheers
Achal
19 years ago
Hi

My application starts of with an index.jsp page where the user inputs his name and email address, this call an action 'createCookie' where the details are stored in a cookie.

I need the details to be read from the cookie and displayed to the user the next time he opens the webpage.

The relevant code int index.jsp



The revelant code in createCookie.java





The code in bold italics in index.jsp in the text input box is where I am getting the error. If any one could point me the right way to do this, it will be great.

The error I get is "attribute nameCookie has no value", even though the line above that prints out the value of the nameCookie.


Thanks a bunch
Achal
[ February 28, 2005: Message edited by: Achal Jalan ]
19 years ago
setting the value caused the problem

it wrks fine now. Thanks a bunch guys
19 years ago