Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Prasanth Pillai

Ranch Hand
+ Follow
since Oct 16, 2006
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 Prasanth Pillai

I found the issue. there was some issue with setting the form to request.
11 years ago
Hi,

I am trying to populate dynamic arraylist values inside the

When the JSP displays it works. But when I click the submit button, the values from the dynamically selected drop down (for which I use tag) value is not setting in the attribute which is part of another arraylist of value Objects. I hope the requirement is clear.
I have searched through the forum and got similar issues and I tried all possible ways. I am sure I followed the indexedproperties as welll (http://faq.javaranch.com/view?IndexedProperties). Please ADVISE.


I have the index getter method in form with the exact name as in JSP.

11 years ago
thanks for the response. I was under the assumption that its a generalized one. Because I see many tools available in the internet for this convertion. So I was wondering whether is there any such tool which can be integrated with a java code?
13 years ago
hi,

Is there any option available in java to convert a binary file to ascii file? Any help is greatly appreciated.

regards,
prasanth
13 years ago
the issue is not clear. where exactly are you setting the session/request parameter? I guess you are not doing that part.
13 years ago
looks like the issue was with the &noc. I guess you are asking about the code flow.

1. when the user input the value , the values are get assigned to your bean (here addform).
2. now when the user submit the data for futher process, the control comes to your action(via Actionservlet, which is internal to struts, the user don't have to wrry abt this class & struts-config.xml) where you will get the input values from the your form (addform)



3. Now you are assigning the final value, noc to the request attribute named "noc". You can give any name in the first parameter.



4. and then you are telling the strut-config.xml that take me to "success" page, by mentioning return mapping.findForward("success");

5. now in struts config, you have mapping for a "success" to success.jsp. & you get the result page, where you are retriving the noc value from request attribute.


Hope this helps.
13 years ago
Can anyone tell me the difference between accessing a jsp file through the server directory listing & same page through application.

when I access the jsp page from server directory list, it works fine.
for example, http://localhost:8080/location/folder1/NewService.jsp ( this works fine). I can see the desired tabs in the screen.

If I access the same JSP file through my application, that means when I invoke the jsp from other JSP or through any other file, I am not able to see any TAB format.

I have placed all the related files in the same directory as the JSP file & put some alert messages to make sure that nothing went wrong with the file location. I see all the alert messages in both cases. Only TAB is not coming. looks weird !!!

please let me know if you have any idea.
13 years ago
oh yeah, thats true, that part is missing. let me try with that also. But as per the instruction I need to do only few steps.

To start a new web projet with Struts-Layout, the following steps must be followed:
Configure Struts


Configure Struts-Layout actions

Configure the Struts-Layout treeview and sort action in your struts-config.xml

<action path="/sort"
type="fr.improve.struts.taglib.layout.sort.SortAction"
scope="request"
validate="false">
</action>

<action path="/treeview"
type="fr.improve.struts.taglib.layout.treeview.TreeviewAction"
scope="request"
validate="false">
</action>


If forward to Tiles definition are to be used with sorting or paging on the server, the Struts-Layout request processor must be used and declared in struts-config.xml :

<controller processorClass = "fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor"/>


the Tiles definitions must also have a dot in their names.
Copy the static resources

Copy the the "config" and "images" directory from the "resources" folder of the Struts-Layout archive to your webapp root folder
Copy the Struts-Layout jar

Copy the struts-layout.jar file into the WEB-INF/lib directory. This file is located into the "src/library" of the Struts-Layout distribution archive.

and now the steps which you told. Is that all?
13 years ago
thank you for the useful link. But at this point of time I can not change the whole code with the new set of jars. I am not sure I have done it correctly or not. I just need to implement the TAB feature only for 2 jsps. After downloading the Struts-Layout-1.2.jar and making the changes, I am getting many errors while accessing the pages.

Can I do the changes only for 2 JSP's without affecting rest of the code?
13 years ago
oh, I was wrong. It is working only for HTML pages. For some reason when I place the same code in side a JSP & after deploying it in server (using .war file )trying to access from brower, I am not getting the desired TAB format. I have placed all the required files in the correct location. If anyone know the reason please let me know.
13 years ago
thanks for all the inputs. I got it done. The following link gives the simplest way to achieve the same.

http://phrogz.net/JS/Tabtastic/index.html#overview
13 years ago
hi

My project is developed in Struts framework, is having a war file & its working properly in JBoss server. When I deployed the same war file in Weblogic7.1, I am not getting the validations from Messageresources.properties file,w hich is in WEB-INF/classes folder. rather it is not doing any validations which is working in JBoss. Is it because the weblogic7.1 will not support Struts automatic validation?

regards,
Prasanth
13 years ago
1)http://www.coreservlets.com

here you can download all the materials related with struts. You may use the below link as well.



2)http://www.roseindia.net/struts/struts_validator_framework.shtml

http://struts.apache.org/1.2.x/userGuide/dev_validator.html
13 years ago
thanks Tom and Merrill for the tip. Now how will I implement the same in my application? I mean currently I have a JSP page with 120 number of fields. I am not sure whether the application will work, if I use the simple DHTML scripts.
13 years ago