Calling struts actions between the two Web projects
I don't know if it's the right forum for this question.
Let's say I have two Web projects: MyProjectWeb and OtherProjectWeb.
Each of them has they own struts-config.xml configuration and each of them has they own Web Deployment Descriptor (web.xml):
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
Links to the Actions in the two projects are:
http://localhost:8080/MyProjectWeb/myRender.do
http://localhost:8080/OtherProjectWeb/otherRender.do
The question is how can I forward the action from MyProjectWeb to OtherProjectWeb ?
The configuration in MyProjectsWeb struts-config.xml would look like this:
<action path="/myRender" type="MyRenderAction" >
<forward name="forward" path="/OtherProjectWeb/otherRender.do" contextRelative="false"/>
</action>
But it doesn't seem to work!
Can somebody help me with this problem?
As you've discovered, action paths are relative to the web application you're running on (so that you can deploy the app to any context path you want, without changing anything). They are not relative to the server. Therefore, forwards between webapps are not supported. Your best bet would be to redirect instead.
By the way, a good source of help on Struts specific questions is the Struts user mailing list at Apache ... it's filled with helpful people, and the archives are a gold mine of good advice. To subscribe, send an empty message to <[email protected]>.
Craig McClanahan
Similar Messages
-
I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.
Each device needs a separate address. Use an email address (gmail.com) on the iPad.
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
Cheers, Tom -
How to call an action when the user selects a radiobutton
Hai
PLease help me in providing the information.
In my Project i have two radio buttons as
New
Asssessment
when the user selects new button, i want to automatically call an action in the controller(.jpf file)
Simalarly when he selects the other radio button i need to call a separate action in the controller.
Remember i dont have the submit button.
I want to dynamically call an action when the user selects the radio button.
i dont have any field inthe radio button which actually takes action as an attribute .
please provide me the necessaryHi,
You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
Let me know if you have any further questions. -
I have purchased a new iPad and given my old one to my husband. How do I change the Apple ID over to him. We are having continuous confusion between the two iPads
Hi Marg42,
Thanks for visiting Apple Support Communities.
First, your husband can create his own Apple ID via the web, computer, or iPad, if he hasn't already:
My Apple ID
https://appleid.apple.com
iTunes: How to set up an Apple ID within iTunes
http://support.apple.com/kb/ht2731
Next, he can sign out of the Apple services that are currently using your Apple ID on your old iPad, and sign in with his own.
This article has instructions for doing so for specific Apple services:
Apple ID: What to do after you change your Apple ID
http://support.apple.com/kb/HT5796
Alternately, he can erase the device and set it up as new using the steps in this article:
iOS: How to back up your data and set up your device as a new device
http://support.apple.com/kb/ht4137
Best Regards,
Jeremy -
We have 2 ITunes libraries on one computer. Is there a way to share movies, music, etc. between the two libraries?
To your second question, probably the easiest way is to set up another user account on your machine. Then when that user opens iTunes, it will be a new library (empty) that they can put anything they want into, and not corrupt your library.
With another user account, they can also customize their own desktop photo, desktop icons, etc. so lots of benefits doing it that way. Works out great for me and my 13 year old daughter so I don't have to see the latest Emo band hearthrob's face on my desktop.
Patrick -
Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID?
Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID? SO i could iMessage if out from my iPod to my iPad at home to be viewed by a family member?
Look into using Apple Configurator. It's the easiest way to "reimage" and Manage iPads that I know of right now.
http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
Also, look into using the Educational Volume Purchase Program, if you have not already done so.
http://www.apple.com/education/volume-purchase-program/ -
Just set up my ipad3 using my same apple id and password that I used for my iPad 2. I want to FaceTime between the two. Do I need to change one of the iPad settings to do so???
Settings > Facetime > Apple ID > tap it and log out, log in with other Apple ID
-
My daugher and I both have an iPhone and we have shared my apple ID. She just replaced her phone and now our contacts are syncing -- and we don't want that. How do I differentiate between the two phones?
Is the same Apple iCloud account being accessed on each iPhone?
-
Hello Apple Community,
Can I backup two devices (with different documents) to one iCloud account?
For example: iPad Air and iPhone 5, not everything is synced between the two, but I would like to backup each (seperately in the cloud). Is this possible?
This way when I change from an old ipad to a new, I can restore with the ipad backup, and when I change from an old iphone to a new, I can restore from the
iphone backup.
Thank you in advance!Terminology check here. Do you really mean a "CD"? There's a difference in Cloud behavior between content from a physical CD you ripped (which only has Cloud content if you have iTunes Match) and an "album" you bought from the iTunes Store.
Read references for Home Sharing.
iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
Home Sharing Support page - http://www.apple.com/support/homesharing/
iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
The above can get pretty complicated. You are probably best off by syncing both devices to a single library and/or updating the libraries on both computers to have the same content. -
I am trying to create a poster - in Keynote - transferring it to PDF then to JPEG so I can print it - and while I like the background in this Keynote theme (leather book) I can't seem to remove the artwork that is positioned between the two text boxes. Does anyone know how??? Can it even be done?
I somehow ended up on creating a new master slide. I can FINALLY access the artwork - it has a box around it of x's - but I can't seem to do anything. Delete doesn't work. Trying to shrink the box doesn't work. I'm not getting a dialog box when I click on it that is specific to the x'ed area. It pertains to the full background page. I'm obviously missing something - the fact that I have never been in Keynote before may have something to do with it! :-)
-
My iPhone has a different id than my iPad. How can I stream between the two devices
I should say that you can add the other account to each device as a seconday account by going to Settings>Mail,Contacts,Calendars>Add Account>iCloud and signing in with the ID the other device is using. This would allow you to see mail, contacts, calendars, reminders and notes from the other account alongside the same data from the primary account on each device.
-
When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?
When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?
-
How can I transfer iTunes music from iPad to Nano without the use of a computer? Can it be done with Lightning plugs between the two?
There is no way to do that.
-
Difference between the two modes ws_policy and sap_wsdl
Dear All,
what is the difference between the two modes ws_policy and sap_wsdl and how do we set them and where do we set them.
do let me know the steps to be followed.
Thanks & Regards
VenugopalVenu,
Please check this document from Bill where he has explained clearly:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f?overridelayout=true
Regards,
---Satish -
Is it possible for the Adobe to put video instructions on these following things as my professor works on CS4 and I have CS6,it is really confusing for me to follow the disparitie between the two
Modifying the header
Changing page background color
Changing sidebars in CSS
Adding/changing a Spry link's background and hover colors in navbar
Formatting headers in split view
Deleting placeholder copy in the content container
Inserting a video in a table
Changing table background color
Formatting text in the content container
Format hyperlinks in CSS
Insert page anchors and link to them with navbar hyperlinks
Enter text in footer with a hyperlink
Insert and format headers
Use of a color picker (Color Cop)Use CS6 Help (F1). Those are the most up to date articles for your product version.
<Changing page background color>
We've already told you how to do that with CSS code.
<Deleting placeholder copy in the content container>
Placeholders are deprecated. Adobe removed them.
<Inserting a video in a table>
Insert > Media > HTML5 Video
<Insert page anchors and link to them with navbar hyperlinks>
Named anchors are deprecated in HTML. Adobe removed them from DW. Use Div IDs instead.
Why are you taking a course that teaches outdated methods in CS4 which is no longer supported?
Nancy O.
Maybe you are looking for
-
ABAP-- diff between sy-sy-tabix and sy-index
Hi Guru's, Pleae can anybody expalins me what is the difference between sy-tabix and sy-index(Loop Index) ? Because in one case i am Modifyimg the internal table inside the do loop by giving sy-index ((Index of Internal Tables)(MODIFY scarr_tab INDEX
-
I don't know what happened. All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yah
-
Delivery Report Pending? (Nokia 5200)
Ok yeah i know what pending means, that is not what i am asking. It says i have pending delivery reports on all the messages i have sent from my phone, but i know for a fact they have been sent (tested it with a phone in the same house). If i am corr
-
Having issues with acrobat 9 standard installation
I'm having problems with acrobat 9 not printing PDF documents. I uninstalled the program without deactivating. Now when I attempt to reinstall I get the following error 1935. An error occurred during the installation of assembly component {6633265
-
Error exception when testing Adapter
Hi all 1.I am doing XML to File and I am getting error when I am testing the scenario with my input.dat xml file...FYI when I do XML2XML in the same scenarion - the Flag is OK and everything looks great ! I also Do Message Mapping Test and I have OK